@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

/* ============================================================
   0. БАЗА И ПЕРЕМЕННЫЕ
   ============================================================ */

:root {
    --brand: #34488D;
    --brand-dark: #2a3a75;
    --text: #1e2530;
    --muted: #374151;
    --muted-light: #6b7280;
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 16px;
    --shadow-card: 0 2px 4px rgba(16, 24, 40, 0.02), 0 12px 24px -8px rgba(52, 72, 141, 0.08);
    --shadow-hover: 0 4px 12px rgba(16, 24, 40, 0.04), 0 24px 48px -12px rgba(52, 72, 141, 0.15);
    --shadow-btn: 0 4px 10px rgba(52, 72, 141, 0.20), 0 12px 24px -8px rgba(52, 72, 141, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --shadow-btn-hover: 0 6px 14px rgba(52, 72, 141, 0.25), 0 18px 32px -10px rgba(52, 72, 141, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    --gradient-hero: linear-gradient(180deg, rgba(249, 115, 22, 0.14) 0%, rgba(251, 146, 60, 0.06) 25%, #ffffff 50%, rgba(56, 189, 248, 0.06) 75%, rgba(14, 165, 233, 0.14) 100%);
    --gradient-card: linear-gradient(180deg, rgba(52, 72, 141, 0.04) 0%, #ffffff 50%, rgba(52, 72, 141, 0.02) 100%);
    --gradient-card-light: linear-gradient(180deg, rgba(52, 72, 141, 0.02) 0%, #ffffff 50%, rgba(52, 72, 141, 0.01) 100%);
}

body {
    font-family: "Google Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400..700;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
    color: var(--text);
}

/* ============================================================
   1. HERO SECTION
   ============================================================ */

.hero-section {
    position: relative;
}

.hero-section--card .hero-section__bg-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background-color: #ffffff;
    background-image: var(--gradient-hero);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 6px 16px rgba(16, 24, 40, 0.05), 0 24px 48px -12px rgba(52, 72, 141, 0.10);
    isolation: isolate;
}

.hero-section--card .hero-section__bg-card::before,
.hero-section--card .hero-section__bg-card::after {
    content: none;
    display: none;
}

.hero-section--card .hero-section__row {
    position: relative;
    z-index: 1;
}

/* Анимации */
.hero-section__title {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
    text-wrap: balance;
    opacity: 0;
    animation: hero-title-drop 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

@keyframes hero-title-drop {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(8px) scale(1);
    }

    80% {
        transform: translateY(-4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-section__lead {
    color: var(--muted);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
    font-weight: 400;
    line-height: 1.6;
    max-width: 62ch;
    margin-inline: auto;
    opacity: 0;
    animation: hero-fade-up 0.8s ease-out 0.3s forwards;
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section__actions {
    --bs-gap: 0.75rem;
    opacity: 0;
    animation: hero-fade-up 0.8s ease-out 0.5s forwards;
}

/* Кнопки */
.hero-section__btn {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
    letter-spacing: 0.01em;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}

.hero-section__btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.hero-section__btn:hover::after {
    left: 130%;
}

.hero-section__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.25);
}

.hero-section__btn:active {
    transform: translateY(1px) scale(0.99);
}

.hero-section__btn--primary,
.hero-section__btn--primary.btn-primary {
    background-color: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
    box-shadow: var(--shadow-btn);
}

.hero-section__btn--primary:hover,
.hero-section__btn--primary:focus {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.hero-section__btn--outline,
.hero-section__btn--outline.btn-outline-primary {
    color: var(--brand) !important;
    border: 2px solid var(--brand) !important;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
}

.hero-section__btn--outline:hover,
.hero-section__btn--outline:focus {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(52, 72, 141, 0.4);
}

/* Бейджи */
.hero-section__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    animation: hero-fade-up 0.8s ease-out 0.7s forwards;
}

.hero-section__feature {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand);
    background: rgba(52, 72, 141, 0.07);
    border: 1px solid rgba(52, 72, 141, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-section__feature::before {
    content: "";
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--brand);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.5L2.5 7.5l1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z' fill='%23fff'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.5L2.5 7.5l1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z' fill='%23fff'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.hero-section__feature:hover {
    transform: translateY(-2px);
    background: rgba(52, 72, 141, 0.12);
    border-color: rgba(52, 72, 141, 0.22);
    box-shadow: 0 6px 16px -6px rgba(52, 72, 141, 0.3);
}

/* ============================================================
   2. CONTACTS SECTION
   ============================================================ */

.contacts-section {
    position: relative;
}

.contacts-section__info {
    position: relative;
    height: 100%;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 6px 16px rgba(16, 24, 40, 0.05), 0 24px 48px -12px rgba(52, 72, 141, 0.10);
}

.contacts-section__title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
    text-wrap: balance;
}

.contacts-section__row {
    padding: 0.625rem 0.75rem;
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contacts-section__row:hover {
    background-color: rgba(52, 72, 141, 0.04);
}

.contacts-section__row>i {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: rgba(52, 72, 141, 0.08);
    color: var(--brand) !important;
    font-size: 1rem !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.contacts-section__row:hover>i {
    background: var(--brand);
    color: #fff !important;
}

.contacts-section__row .text-muted {
    color: var(--muted-light) !important;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.125rem;
}

.contacts-section__row a,
.contacts-section__row>div>div {
    color: var(--text);
    font-weight: 600;
    font-size: 0.975rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.contacts-section__row a:hover,
.contacts-section__row a:focus-visible {
    color: var(--brand);
    text-decoration: none;
}

.contacts-section__row a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 72, 141, 0.2);
    border-radius: 6px;
}

/* Форма */
.contacts-section__form {
    position: relative;
    height: 100%;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    background-image: linear-gradient(180deg, rgba(249, 115, 22, 0.06) 0%, #ffffff 35%, #ffffff 65%, rgba(56, 189, 248, 0.06) 100%);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 6px 16px rgba(16, 24, 40, 0.05), 0 24px 48px -12px rgba(52, 72, 141, 0.10);
}

.contacts-section__form .form-control {
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background-color: #f9fafb;
    color: var(--text);
    font-size: 0.975rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contacts-section__form .form-control:focus {
    border-color: var(--brand);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.15);
}

.contacts-section__form .form-control::placeholder {
    color: transparent;
}

.contacts-section__form .form-floating>label {
    color: var(--muted-light);
    font-size: 0.95rem;
    padding-left: 1rem;
}

.contacts-section__form .form-floating>.form-control:focus~label,
.contacts-section__form .form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--brand);
    font-weight: 500;
}

.contacts-section__form textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.contacts-section__form .btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    background-color: var(--brand);
    border: 1px solid var(--brand);
    color: #fff;
    box-shadow: var(--shadow-btn);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.contacts-section__form .btn-primary:hover,
.contacts-section__form .btn-primary:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.contacts-section__form .btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.25), 0 12px 24px -8px rgba(52, 72, 141, 0.35);
}

.contacts-section__form .btn-primary:active {
    transform: translateY(1px) scale(0.99);
}

.contacts-section__form .text-danger {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ============================================================
   3. MAP SECTION
   ============================================================ */

.map-section {
    position: relative;
}

.map-section__header {
    position: relative;
    z-index: 1;
}

.map-section__title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
    text-wrap: balance;
    margin-bottom: 0.5rem;
}

.map-section__map {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 6px 16px rgba(16, 24, 40, 0.05), 0 24px 48px -12px rgba(52, 72, 141, 0.10);
    isolation: isolate;
}

.map-section__map::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(52, 72, 141, 0.08);
    pointer-events: none;
    z-index: 1;
}

.map-section__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
    filter: saturate(0.95);
    transition: filter 0.3s ease;
}

.map-section__map:hover iframe {
    filter: saturate(1.05);
}

/* ============================================================
   4. PAGE HEADER
   ============================================================ */

.page-header {
    position: relative;
}

.page-header--default::before {
    content: none;
    display: none;
}

.page-header__title {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
    text-wrap: balance;
    opacity: 0;
    animation: page-title-drop 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

@keyframes page-title-drop {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(8px) scale(1);
    }

    80% {
        transform: translateY(-4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.page-header__lead {
    color: var(--muted);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
    font-weight: 400;
    line-height: 1.6;
    max-width: 72ch;
    margin-bottom: 0;
    opacity: 0;
    animation: page-fade-up 0.8s ease-out 0.3s forwards;
}

@keyframes page-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   5. BREADCRUMBS
   ============================================================ */

nav[aria-label="breadcrumb"] {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--muted-light);
    --bs-breadcrumb-item-active-color: var(--text);
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.breadcrumb-item>a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.breadcrumb-item>a:hover,
.breadcrumb-item>a:focus-visible {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb-item>a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 72, 141, 0.2);
    border-radius: 4px;
}

.breadcrumb-item.active {
    color: var(--muted-light);
    font-weight: 400;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, "/");
    color: #9ca3af;
    padding: 0 0.5rem;
    float: none;
}

/* ============================================================
   6. NAVBAR
   ============================================================ */

.navbar {
    background-color: transparent !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.custom-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.custom-logo-link:hover .custom-logo {
    opacity: 0.8;
}

.navbar-nav .nav-link {
    position: relative;
    color: var(--text);
    font-weight: 500;
    font-size: 0.975rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
    color: var(--brand);
    background-color: rgba(52, 72, 141, 0.05);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
    color: var(--brand);
    font-weight: 600;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.25rem;
    height: 2px;
    border-radius: 2px;
    background-color: var(--brand);
    animation: nav-underline-in 0.3s ease-out forwards;
}

@keyframes nav-underline-in {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@media (min-width: 992px) {
    .navbar-nav .nav-item+.nav-item {
        margin-left: 0.25rem;
    }
}

.navbar .btn-primary {
    background-color: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.navbar .btn-primary:hover,
.navbar .btn-primary:focus {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 72, 141, 0.25);
}

.navbar .btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.navbar .bi-lock {
    color: var(--muted-light);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.navbar .bi-lock:hover {
    color: var(--brand);
}

.navbar-toggler {
    padding: 0.5rem;
    color: var(--brand);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    background-color: rgba(52, 72, 141, 0.08);
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%2334488D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Мобильное меню */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        border-radius: var(--radius-sm);
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 8px 24px -8px rgba(16, 24, 40, 0.15);
        border: 1px solid rgba(52, 72, 141, 0.06);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .navbar-nav .nav-link.active::after,
    .navbar-nav .nav-link[aria-current="page"]::after {
        left: 1rem;
        right: 1rem;
        bottom: 0.25rem;
    }

    .navbar-collapse .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
        text-align: center;
    }

    .navbar>.container>.btn-primary {
        width: auto;
        margin-top: 0;
        margin-right: 0.5rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Выпадающее меню */
.navbar-nav .dropdown-menu {
    --bs-dropdown-link-active-bg: rgba(52, 72, 141, 0.08);
    --bs-dropdown-link-active-color: var(--brand);
    border: 1px solid rgba(52, 72, 141, 0.1);
    border-radius: 16px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04), 0 12px 32px -8px rgba(52, 72, 141, 0.15);
    animation: nav-dropdown-in 0.2s ease-out;
}

@keyframes nav-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .dropdown-item {
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    color: var(--text);
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: rgba(52, 72, 141, 0.06);
    color: var(--brand);
    padding-left: 1.25rem;
}

.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active {
    background-color: var(--brand) !important;
    color: #ffffff !important;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.4em;
    vertical-align: 0.15em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
    color: currentColor;
}

/* ============================================================
   7. SITE FOOTER
   ============================================================ */

.site-footer {
    background-color: #ffffff !important;
    color: var(--text);
    font-size: 0.9375rem;
    border-top: 1px solid rgba(52, 72, 141, 0.08);
    position: relative;
}

.footer-heading {
    color: var(--text);
    font-size: 1rem !important;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 1rem !important;
}

.site-footer .custom-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) opacity(0.7);
    transition: filter 0.3s ease;
}

.site-footer .custom-logo-link:hover .custom-logo {
    filter: grayscale(0) opacity(1);
}

.footer-branding {
    margin-bottom: 1.25rem;
}

.site-footer p.text-secondary {
    color: var(--muted-light) !important;
    line-height: 1.6;
    max-width: 30ch;
}

.site-footer ul {
    padding-left: 0;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--brand);
    transform: translateX(3px);
}

.site-footer a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 72, 141, 0.2);
    border-radius: 4px;
}

.site-footer .link-dark {
    color: var(--text) !important;
    font-weight: 500;
}

.site-footer .link-dark:hover {
    color: var(--brand) !important;
}

.site-footer .bi {
    color: var(--brand);
    margin-right: 0.5rem;
}

.footer-bottom {
    background-color: #f9fafb !important;
    border-top: 1px solid rgba(52, 72, 141, 0.06) !important;
}

.footer-bottom .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.copyright,
.privacy-link {
    color: var(--muted-light) !important;
    font-size: 0.8125rem;
}

.privacy-link a {
    color: var(--muted-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-link a:hover {
    color: var(--brand);
}

/* ============================================================
   8. SERVICES SECTION (HUB)
   ============================================================ */

.services-section {
    position: relative;
}

.services-section__header {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.services-section__title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    text-wrap: balance;
    margin-bottom: 1rem;
}

.services-section__lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
    line-height: 1.6;
    max-width: 72ch;
    margin-inline: auto;
}

.services-section__grid {
    position: relative;
    z-index: 1;
}

.services-section__item {
    display: flex;
    animation: serv-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.services-section__item:nth-child(1) {
    animation-delay: 0.1s;
}

.services-section__item:nth-child(2) {
    animation-delay: 0.15s;
}

.services-section__item:nth-child(3) {
    animation-delay: 0.2s;
}

.services-section__item:nth-child(4) {
    animation-delay: 0.25s;
}

.services-section__item:nth-child(5) {
    animation-delay: 0.3s;
}

.services-section__item:nth-child(6) {
    animation-delay: 0.35s;
}

.services-section__item:nth-child(7) {
    animation-delay: 0.4s;
}

.services-section__item:nth-child(8) {
    animation-delay: 0.45s;
}

@keyframes serv-card-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-section__card {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    background-color: #ffffff !important;
    background-image: linear-gradient(180deg, rgba(249, 115, 22, 0.10) 0%, rgba(251, 146, 60, 0.04) 25%, #ffffff 50%, rgba(56, 189, 248, 0.04) 75%, rgba(14, 165, 233, 0.10) 100%) !important;
    border: 1px solid rgba(52, 72, 141, 0.08) !important;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.services-section__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.services-section__card:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 72, 141, 0.2) !important;
    box-shadow: var(--shadow-hover);
}

.services-section__card:hover::before {
    transform: scaleX(1);
}

.services-section__card-body {
    padding: 2rem 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.services-section__card-title {
    font-weight: 700;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    min-height: 2.6em;
}

.services-section__card-text {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    min-height: 3.2em;
}

.services-section__features {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.5rem auto;
    display: inline-block;
    text-align: left;
}

.services-section__feature {
    position: relative;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.services-section__feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background-color: var(--brand);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.5L2.5 7.5l1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z' fill='%23fff'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.5L2.5 7.5l1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z' fill='%23fff'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.services-section__action {
    margin-top: auto;
    padding-top: 0.5rem;
}

.services-section__action .btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    background-color: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
    box-shadow: var(--shadow-btn);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}

.services-section__action .btn-primary::before {
    content: "";
    width: 1.1em;
    height: 1.1em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: transform 0.3s ease;
}

.services-section__action .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.services-section__action .btn-primary:hover {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.services-section__action .btn-primary:hover::after {
    left: 130%;
}

.services-section__action .btn-primary:hover::before {
    transform: translateX(3px);
}

.services-section__action .btn-primary:active {
    transform: translateY(1px) scale(0.99);
}

.services-section__action .btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.25), 0 12px 24px -8px rgba(52, 72, 141, 0.35);
}

/* ============================================================
   9. STEPS SECTION
   ============================================================ */

.steps-section {
    position: relative;
}

.steps-section__header {
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
}

.steps-section__title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    text-wrap: balance;
    margin-bottom: 1rem;
}

.steps-section__lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
    line-height: 1.6;
    max-width: 72ch;
    margin-inline: auto;
}

.steps-section__grid {
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .steps-section__grid::before {
        content: "";
        position: absolute;
        top: 2rem;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, rgba(52, 72, 141, 0.15) 15%, rgba(52, 72, 141, 0.15) 85%, transparent 100%);
        z-index: 0;
        pointer-events: none;
    }
}

.steps-section__item {
    position: relative;
    z-index: 1;
    display: flex;
    animation: steps-item-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.steps-section__item:nth-child(1) {
    animation-delay: 0.1s;
}

.steps-section__item:nth-child(2) {
    animation-delay: 0.2s;
}

.steps-section__item:nth-child(3) {
    animation-delay: 0.3s;
}

.steps-section__item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes steps-item-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.steps-section__item-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1.5rem 1rem;
    background: transparent;
    transition: transform 0.3s ease;
}

.steps-section__item:hover .steps-section__item-inner {
    transform: translateY(-4px);
}

.steps-section__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--brand) !important;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(52, 72, 141, 0.2);
    box-shadow: 0 4px 10px rgba(52, 72, 141, 0.08), 0 0 0 6px #ffffff;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.steps-section__item:hover .steps-section__number {
    background-color: var(--brand);
    color: #ffffff !important;
    border-color: var(--brand);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(52, 72, 141, 0.25), 0 0 0 6px #ffffff;
}

.steps-section__item-title {
    font-weight: 700;
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.steps-section__item-text {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   10. FEATURES SECTION
   ============================================================ */

.features-section {
    --feat-grad-1: linear-gradient(135deg, #34488D 0%, #5a6fb5 100%);
    --feat-grad-2: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --feat-grad-3: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    --feat-grad-4: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    position: relative;
}

.features-section__header {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.features-section__title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    text-wrap: balance;
    margin-bottom: 1rem;
}

.features-section__lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
    line-height: 1.6;
    max-width: 72ch;
    margin-inline: auto;
}

.features-section__grid {
    position: relative;
    z-index: 1;
}

.features-section__item {
    display: flex;
    animation: feat-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.features-section__item:nth-child(1) {
    animation-delay: 0.1s;
}

.features-section__item:nth-child(2) {
    animation-delay: 0.2s;
}

.features-section__item:nth-child(3) {
    animation-delay: 0.3s;
}

.features-section__item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes feat-card-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features-section__card {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    background-color: #ffffff !important;
    background-image: linear-gradient(180deg, rgba(249, 115, 22, 0.12) 0%, rgba(251, 146, 60, 0.05) 25%, #ffffff 50%, rgba(56, 189, 248, 0.05) 75%, rgba(14, 165, 233, 0.12) 100%) !important;
    border: 1px solid rgba(52, 72, 141, 0.08) !important;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.features-section__card:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 72, 141, 0.2) !important;
    box-shadow: var(--shadow-hover);
}

.features-section__card-body {
    padding: 2rem 1.5rem;
}

.features-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-section__icon i {
    font-size: 1.75rem;
    color: #ffffff;
    line-height: 1;
    transition: transform 0.3s ease;
}

.features-section__item:nth-child(1) .features-section__icon {
    background: var(--feat-grad-1);
    box-shadow: 0 8px 16px -4px rgba(52, 72, 141, 0.3);
}

.features-section__item:nth-child(2) .features-section__icon {
    background: var(--feat-grad-2);
    box-shadow: 0 8px 16px -4px rgba(249, 115, 22, 0.3);
}

.features-section__item:nth-child(3) .features-section__icon {
    background: var(--feat-grad-3);
    box-shadow: 0 8px 16px -4px rgba(14, 165, 233, 0.3);
}

.features-section__item:nth-child(4) .features-section__icon {
    background: var(--feat-grad-4);
    box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.3);
}

.features-section__card:hover .features-section__icon {
    transform: scale(1.05) rotate(-3deg);
}

.features-section__card-title {
    font-weight: 700;
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.features-section__card-text {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   11. TEXT SECTION (О компании)
   ============================================================ */

.text-section {
    position: relative;
}

.text-section__title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    text-wrap: balance;
}

.text-section__lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
    line-height: 1.6;
    max-width: 62ch;
}

.text-section__blocks {
    margin-top: 1.5rem;
}

.text-section__block {
    margin-bottom: 1rem;
}

.text-section__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.text-section__list li {
    position: relative;
    padding-left: 2rem;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
}

.text-section__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: rgba(52, 72, 141, 0.08);
    border: 1px solid rgba(52, 72, 141, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.5L2.5 7.5l1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z' fill='%2334488D'/%3E%3C/svg%3E");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.text-section__list li:hover::before {
    background-color: rgba(52, 72, 141, 0.15);
    border-color: rgba(52, 72, 141, 0.3);
}

.text-section__media {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 6px 16px rgba(16, 24, 40, 0.05), 0 24px 48px -12px rgba(52, 72, 141, 0.10);
    background: #ffffff;
    background-image: linear-gradient(180deg, rgba(249, 115, 22, 0.05) 0%, #ffffff 50%, rgba(56, 189, 248, 0.05) 100%);
    border: 1px solid rgba(52, 72, 141, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16 / 9;
}

.text-section__media:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04), 0 12px 24px -4px rgba(16, 24, 40, 0.06), 0 32px 64px -16px rgba(52, 72, 141, 0.15);
}

.text-section__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    background-color: #f8f9fc;
}

.text-section__video:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(52, 72, 141, 0.3);
}

/* ============================================================
   12. FAQ SECTION
   ============================================================ */

.faq-section {
    position: relative;
}

.faq-section__header {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.faq-section__title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    text-wrap: balance;
    margin-bottom: 1rem;
}

.faq-section__lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
    line-height: 1.6;
    max-width: 72ch;
    margin-inline: auto;
}

.faq-section__accordion {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-section__item {
    border: 1px solid rgba(52, 72, 141, 0.08) !important;
    border-radius: var(--radius-md) !important;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.02), 0 8px 16px -4px rgba(52, 72, 141, 0.04);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-section__item:hover {
    border-color: rgba(52, 72, 141, 0.15) !important;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04), 0 12px 24px -8px rgba(52, 72, 141, 0.12);
}

.faq-section__question-btn {
    position: relative;
    padding: 1.25rem 3rem 1.25rem 1.5rem !important;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--text);
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-section__question-btn::after {
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--brand);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'%3E%3C/polyline%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'%3E%3C/polyline%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-section__question-btn:not(.collapsed) {
    color: var(--brand);
    background-color: rgba(52, 72, 141, 0.02) !important;
}

.faq-section__question-btn:not(.collapsed)::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-section__question-btn:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(52, 72, 141, 0.2) !important;
}

.faq-section__answer-body {
    padding: 0 1.5rem 1.5rem !important;
    color: var(--muted);
    font-size: 0.975rem;
    line-height: 1.6;
}

.faq-section__answer {
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-section__answer.show {
    border-left-color: var(--brand);
}

/* ============================================================
   13. CTA SECTION
   ============================================================ */

.cta-section {
    position: relative;
}

.cta-section--bg-light .cta-section__inner {
    position: relative;
    border-radius: var(--radius-lg);
    background-color: #ffffff !important;
    background-image: var(--gradient-hero) !important;
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.02), 0 12px 24px -8px rgba(52, 72, 141, 0.08), 0 32px 64px -16px rgba(52, 72, 141, 0.12);
    border: 1px solid rgba(52, 72, 141, 0.06);
    overflow: hidden;
    isolation: isolate;
}

.cta-section__title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    text-wrap: balance;
}

.cta-section__lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
    line-height: 1.6;
    max-width: 60ch;
    margin-inline: auto;
}

.cta-section__actions {
    --bs-gap: 0.75rem;
    margin-top: 1.5rem;
}

.cta-section__btn.btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    background-color: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
    box-shadow: var(--shadow-btn);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}

.cta-section__btn.btn-primary::before {
    content: "";
    width: 1.1em;
    height: 1.1em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: transform 0.3s ease;
}

.cta-section__btn.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.cta-section__btn.btn-primary:hover {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn-hover);
}

.cta-section__btn.btn-primary:hover::after {
    left: 130%;
}

.cta-section__btn.btn-primary:hover::before {
    transform: translateX(3px);
}

.cta-section__btn.btn-primary:active {
    transform: translateY(1px) scale(0.99);
}

.cta-section__btn.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.25), 0 12px 24px -8px rgba(52, 72, 141, 0.35);
}

/* CTA Form */
.cta-section__text {
    color: var(--muted);
    font-size: 0.975rem;
    line-height: 1.6;
    max-width: 60ch;
    margin-inline: auto;
}

.cta-section__list-wrap {
    margin-top: 1rem;
}

.cta-section__list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cta-section__list li {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background-color: rgba(52, 72, 141, 0.08);
    color: var(--brand);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-section__list li:hover {
    background-color: rgba(52, 72, 141, 0.15);
    transform: translateY(-2px);
}

.cta-section__form {
    position: relative;
    z-index: 1;
}

.cta-section__form .form-control {
    border-radius: 12px;
    border: 1.5px solid rgba(52, 72, 141, 0.15);
    background-color: #ffffff;
    font-size: 0.975rem;
    color: var(--text);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-section__form .form-control:focus {
    border-color: var(--brand);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.15);
}

.cta-section__form .form-floating>label {
    color: var(--muted-light);
    font-size: 0.95rem;
    padding-left: 1rem;
}

.cta-section__form .form-floating>.form-control:focus~label,
.cta-section__form .form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--brand);
    font-weight: 500;
}

.cta-section__form textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.cta-section__form .form-check {
    padding-left: 1.75rem;
}

.cta-section__form .form-check-input {
    border-radius: 4px;
    border: 1.5px solid rgba(52, 72, 141, 0.3);
    width: 1.15rem;
    height: 1.15rem;
    margin-left: -1.75rem;
    margin-top: 0.15rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-section__form .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.cta-section__form .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(52, 72, 141, 0.2);
    border-color: var(--brand);
}

.cta-section__form .form-check-label {
    color: var(--muted-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

.cta-section__form .form-check-label a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cta-section__form .form-check-label a:hover {
    color: var(--brand-dark);
}

.cta-section__form .btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.75rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    background-color: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
    box-shadow: var(--shadow-btn);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease;
    will-change: transform;
}

.cta-section__form .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.cta-section__form .btn-primary:hover {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.cta-section__form .btn-primary:hover::after {
    left: 130%;
}

.cta-section__form .btn-primary:active {
    transform: translateY(1px) scale(0.99);
}

.cta-section__form .btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.25), 0 12px 24px -8px rgba(52, 72, 141, 0.35);
}

/* ============================================================
   14. SHOP / CATALOG
   ============================================================ */

/* Поиск */
.woocommerce-product-search {
    margin-bottom: 2rem;
    position: relative;
}

.woocommerce-product-search .form-control {
    border-radius: 14px;
    border: 1.5px solid rgba(52, 72, 141, 0.15);
    background-color: #f8f9fc;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    height: auto;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-product-search .form-control:focus {
    border-color: var(--brand);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.15);
}

.woocommerce-product-search .form-floating>label {
    color: var(--muted);
    padding-left: 1.25rem;
}

.ajax-search-results {
    border-radius: 16px;
    border: 1px solid rgba(52, 72, 141, 0.1);
    box-shadow: 0 12px 32px -8px rgba(52, 72, 141, 0.15) !important;
    background: #fff;
    margin-top: 8px;
    padding: 0.5rem;
    animation: search-dropdown-in 0.25s ease-out;
}

@keyframes search-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ajax-search-results .list-group-item {
    border: none;
    border-radius: 10px !important;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ajax-search-results .list-group-item+.list-group-item {
    margin-top: 0.25rem;
}

.ajax-search-results .list-group-item:hover {
    background-color: rgba(52, 72, 141, 0.06);
    color: var(--brand);
}

.ajax-search-results .list-group-item.text-center {
    font-weight: 700;
    color: var(--brand);
    background-color: rgba(52, 72, 141, 0.03);
    margin-top: 0.5rem;
}

.ajax-search-results .list-group-item.text-center:hover {
    background-color: rgba(52, 72, 141, 0.08);
}

.ajax-search-results .fw-bold {
    color: var(--brand);
    font-weight: 700 !important;
}

/* Карточки товаров */
.card.product {
    position: relative;
    border-radius: var(--radius-md);
    background: #ffffff;
    background-image: var(--gradient-card);
    border: 1px solid rgba(52, 72, 141, 0.08);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: visible;
    animation: product-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.card.product:nth-child(1) {
    animation-delay: 0.05s;
}

.card.product:nth-child(2) {
    animation-delay: 0.1s;
}

.card.product:nth-child(3) {
    animation-delay: 0.15s;
}

.card.product:nth-child(4) {
    animation-delay: 0.2s;
}

.card.product:nth-child(5) {
    animation-delay: 0.25s;
}

.card.product:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes product-card-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card.product:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 72, 141, 0.2);
    box-shadow: var(--shadow-hover);
}

.card.product>a:first-of-type {
    display: block;
    margin: 2rem 2rem 1rem 2rem;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f8f9fc;
    box-shadow: 0 8px 20px -6px rgba(52, 72, 141, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card.product:hover>a:first-of-type {
    box-shadow: 0 12px 28px -8px rgba(52, 72, 141, 0.2);
    transform: translateY(-2px);
}

.card.product .card-img-top {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: auto !important;
    border-radius: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card.product:hover .card-img-top {
    transform: scale(1.04);
}

.card.product .card-body {
    text-align: center;
    align-items: center;
    padding: 1.25rem 1.25rem 1.5rem;
}

.card.product .card-title {
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
}

.card.product .card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card.product .card-title a:hover {
    color: var(--brand);
}

.card.product .mb-3 {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem !important;
}

.card.product .woocommerce-Price-amount {
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 800;
    display: inline-block;
}

.card.product .card-footer {
    width: 100%;
    padding-top: 0;
    border-top: none;
    background: transparent;
    margin-top: auto;
}

.card.product .card-footer .btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.675rem;
    padding: 0.5rem 1rem;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}

.card.product .btn-primary,
.card.product .ajax_add_to_cart {
    background-color: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(52, 72, 141, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card.product .btn-primary:hover,
.card.product .ajax_add_to_cart:hover {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(52, 72, 141, 0.25), 0 12px 24px -8px rgba(52, 72, 141, 0.35);
}

.card.product .btn-outline-primary {
    color: var(--brand) !important;
    border: 1.5px solid var(--brand) !important;
    background-color: #fff;
}

.card.product .btn-outline-primary:hover {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(52, 72, 141, 0.25);
}

.card.product .btn:active {
    transform: translateY(1px) scale(0.98);
}

.card.product .btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.25);
}

/* Пагинация */
.pagination {
    margin-top: 2.5rem;
    gap: 0.5rem;
}

.pagination .page-link {
    border-radius: 12px !important;
    border: 1px solid rgba(52, 72, 141, 0.12);
    color: var(--text);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    background: #fff;
}

.pagination .page-link:hover {
    background-color: rgba(52, 72, 141, 0.06);
    color: var(--brand);
    border-color: rgba(52, 72, 141, 0.2);
}

.pagination .page-item.active .page-link {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(52, 72, 141, 0.25);
}

.pagination .page-item.disabled .page-link {
    color: var(--muted);
    background-color: transparent;
    border-color: transparent;
}

/* Уведомления */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
    border-radius: 14px;
    background-color: #fff;
    border-top: 3px solid var(--brand);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.05);
    color: var(--text);
}

/* Сайдбар каталога */
aside h2.h4 {
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem !important;
}

#productCategoriesAccordion {
    margin-bottom: 1rem;
}

#productCategoriesAccordion .accordion-item {
    border: 1px solid rgba(52, 72, 141, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.02);
}

#productCategoriesAccordion .accordion-button {
    font-weight: 600;
    color: var(--text);
    background-color: #f8f9fc;
    padding: 1rem 1.25rem;
    box-shadow: none !important;
}

#productCategoriesAccordion .accordion-button:not(.collapsed) {
    color: var(--brand);
    background-color: rgba(52, 72, 141, 0.04);
}

#productCategoriesAccordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2334488D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 1rem;
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

aside .list-group {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.02), 0 12px 24px -8px rgba(52, 72, 141, 0.06);
    background: #fff;
}

aside .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(52, 72, 141, 0.06);
    padding: 0.875rem 1.25rem;
    background-color: transparent;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

aside .list-group-item:last-child {
    border-bottom: none;
}

aside .list-group-item:hover {
    background-color: rgba(52, 72, 141, 0.04);
    padding-left: 1.5rem;
}

aside .list-group-item a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: block;
}

aside .list-group-item:hover a {
    color: var(--brand);
}

aside .badge.bg-secondary {
    background-color: rgba(52, 72, 141, 0.08) !important;
    color: var(--brand) !important;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

aside .list-group-item:hover .badge.bg-secondary {
    background-color: var(--brand) !important;
    color: #fff !important;
}

#productCategoriesAccordion .accordion-body .list-group {
    border-radius: 0;
    box-shadow: none;
}

#productCategoriesAccordion .accordion-body .list-group-item {
    padding-left: 1.5rem;
}

/* Активное состояние категорий */
aside .list-group-item.active,
aside .list-group-item-action.active,
aside .list-group-item:active,
aside .list-group-item a.active,
aside .list-group-item.current-cat {
    background-color: rgba(52, 72, 141, 0.08) !important;
    color: var(--brand) !important;
    border-color: rgba(52, 72, 141, 0.15) !important;
    font-weight: 700;
    border-left: 3px solid var(--brand) !important;
}

aside .list-group-item.active a,
aside .list-group-item-action.active a,
aside .list-group-item:active a,
aside .list-group-item.current-cat a {
    color: var(--brand) !important;
}

aside .list-group-item.active .badge,
aside .list-group-item-action.active .badge,
aside .list-group-item:active .badge,
aside .list-group-item.current-cat .badge {
    background-color: var(--brand) !important;
    color: #fff !important;
}

/* ============================================================
   15. SINGLE PRODUCT
   ============================================================ */

article.card.product:has(form.cart) {
    border-radius: var(--radius-md);
    background: #ffffff;
    background-image: var(--gradient-card-light);
    border: 1px solid rgba(52, 72, 141, 0.08);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

article.card.product:has(form.cart):hover {
    border-color: rgba(52, 72, 141, 0.15);
    box-shadow: var(--shadow-hover);
}

article.card.product:has(form.cart) .card-body {
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

article.card.product:has(form.cart) .mb-4 {
    text-align: center;
    width: 100%;
}

article.card.product:has(form.cart) .mb-4 img {
    border-radius: 16px;
    box-shadow: 0 8px 24px -6px rgba(52, 72, 141, 0.12);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
    margin-inline: auto;
}

article.card.product:has(form.cart):hover .mb-4 img {
    transform: scale(1.02);
}

article.card.product:has(form.cart) h2 {
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    text-align: center;
    width: 100%;
}

article.card.product:has(form.cart) .fs-4 {
    color: var(--brand);
    font-weight: 800;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem) !important;
    text-align: center;
    width: 100%;
}

article.card.product:has(form.cart) .woocommerce-Price-amount {
    display: inline-block;
}

article.card.product:has(form.cart) form.cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    width: 100%;
}

article.card.product:has(form.cart) .quantity {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(52, 72, 141, 0.15);
    border-radius: 12px;
    background-color: #f8f9fc;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

article.card.product:has(form.cart) .quantity:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.15);
    background-color: #fff;
}

article.card.product:has(form.cart) .quantity .qty {
    width: 80px;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    -moz-appearance: textfield;
}

article.card.product:has(form.cart) .quantity .qty::-webkit-outer-spin-button,
article.card.product:has(form.cart) .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

article.card.product:has(form.cart) .single_add_to_cart_button {
    position: relative;
    overflow: hidden;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    background-color: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease;
    will-change: transform;
}

article.card.product:has(form.cart) .single_add_to_cart_button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

article.card.product:has(form.cart) .single_add_to_cart_button:hover {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

article.card.product:has(form.cart) .single_add_to_cart_button:hover::after {
    left: 130%;
}

article.card.product:has(form.cart) .single_add_to_cart_button:active {
    transform: translateY(1px) scale(0.99);
}

article.card.product:has(form.cart) .single_add_to_cart_button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.25), 0 12px 24px -8px rgba(52, 72, 141, 0.35);
}

article.card.product:has(form.cart) .mt-4.pt-3.border-top {
    border-top-color: rgba(52, 72, 141, 0.08) !important;
    text-align: center;
    width: 100%;
}

article.card.product:has(form.cart) .text-muted.small {
    color: var(--muted-light) !important;
    font-size: 0.85rem;
}

article.card.product:has(form.cart) .text-muted.small a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

article.card.product:has(form.cart) .text-muted.small a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Описание */
article.card.product:has(form.cart) .product-description {
    text-align: left;
    width: 100%;
}

article.card.product:has(form.cart) .product-description h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

article.card.product:has(form.cart) .product-description h3:first-child {
    margin-top: 0;
}

article.card.product:has(form.cart) .product-description p {
    color: var(--muted);
    font-size: 0.975rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

article.card.product:has(form.cart) .product-description ul,
article.card.product:has(form.cart) .product-description ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

article.card.product:has(form.cart) .product-description li {
    color: var(--muted);
    font-size: 0.975rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

article.card.product:has(form.cart) .product-description strong {
    color: var(--text);
    font-weight: 700;
}

article.card.product:has(form.cart) .product-description a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

article.card.product:has(form.cart) .product-description a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============================================================
   16. FLOATING BUTTON
   ============================================================ */

.floating-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(52, 72, 141, 0.25), 0 12px 24px -8px rgba(52, 72, 141, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

.floating-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.floating-btn:hover {
    background-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(52, 72, 141, 0.3), 0 18px 32px -10px rgba(52, 72, 141, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.floating-btn:hover::after {
    left: 130%;
}

.floating-btn:active {
    transform: translateY(1px) scale(0.95);
}

.floating-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.3), 0 12px 24px -8px rgba(52, 72, 141, 0.45);
}

.floating-btn__icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 1.5rem;
}

.floating-btn__icon--cart {
    opacity: 1;
    transform: scale(1);
}

.floating-btn__icon--arrow {
    opacity: 0;
    transform: scale(0.6);
}

.floating-btn.is-at-bottom {
    background-color: var(--text);
}

.floating-btn.is-at-bottom:hover {
    background-color: #0f1317;
}

.floating-btn.is-at-bottom .floating-btn__icon--cart {
    opacity: 0;
    transform: scale(0.6);
}

.floating-btn.is-at-bottom .floating-btn__icon--arrow {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   17. SERVICES TEXT SECTION (изолированная)
   ============================================================ */

.services .text-section__row {
    align-items: center;
}

.services .text-section__title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    text-wrap: balance;
    margin-bottom: 1.25rem;
}

.services .text-section__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.services .text-section__list li {
    position: relative;
    padding-left: 2rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.975rem;
    line-height: 1.5;
}

.services .text-section__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background-color: rgba(52, 72, 141, 0.08);
    border: 1px solid rgba(52, 72, 141, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.5L2.5 7.5l1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z' fill='%2334488D'/%3E%3C/svg%3E");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.services .text-section__list li:hover::before {
    background-color: rgba(52, 72, 141, 0.15);
    border-color: rgba(52, 72, 141, 0.3);
}

.services .text-section__list li strong {
    display: block;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.15rem;
    font-size: 1rem;
}

.services .text-section__list li em {
    display: block;
    font-style: normal;
    color: var(--muted-light);
    font-size: 0.875rem;
    line-height: 1.4;
}

.services .text-section__media {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 6px 16px rgba(16, 24, 40, 0.05), 0 24px 48px -12px rgba(52, 72, 141, 0.10);
    background: #ffffff;
    background-image: linear-gradient(180deg, rgba(249, 115, 22, 0.05) 0%, #ffffff 50%, rgba(56, 189, 248, 0.05) 100%);
    border: 1px solid rgba(52, 72, 141, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services .text-section__media:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.services .text-section__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
    object-fit: cover;
}

/* ============================================================
   18. PRICING SECTION
   ============================================================ */

.pricing-section {
    position: relative;
}

.pricing-section__header {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.pricing-section__title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    text-wrap: balance;
    margin-bottom: 1rem;
}

.pricing-section__grid {
    position: relative;
    z-index: 1;
}

.pricing-section__item {
    display: flex;
    animation: pricing-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.pricing-section__item:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-section__item:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-section__item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes pricing-card-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-section__card {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    background: #ffffff !important;
    background-image: linear-gradient(180deg, rgba(249, 115, 22, 0.08) 0%, rgba(251, 146, 60, 0.03) 25%, #ffffff 50%, rgba(56, 189, 248, 0.03) 75%, rgba(14, 165, 233, 0.08) 100%) !important;
    border: 1px solid rgba(52, 72, 141, 0.08) !important;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.pricing-section__card:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 72, 141, 0.2) !important;
    box-shadow: var(--shadow-hover);
}

.pricing-section__card-body {
    padding: 2.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-section__card-title {
    font-weight: 600;
    color: var(--muted);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.pricing-section__price {
    font-weight: 800;
    color: var(--brand);
    font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem) !important;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.pricing-section__price span {
    font-size: 0.6em;
    font-weight: 600;
    vertical-align: super;
    margin-left: 0.2em;
}

.pricing-section__note {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.pricing-section__note-text {
    color: var(--muted) !important;
    font-size: 0.9375rem !important;
    background: rgba(52, 72, 141, 0.04);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

/* ============================================================
   19. SERVICES CARDS (сетка услуг 2 колонки)
   ============================================================ */

.row.g-4>.col-12.col-lg-6>.card {
    position: relative;
    border-radius: var(--radius-md);
    background: #ffffff;
    background-image: var(--gradient-card-light);
    border: 1px solid rgba(52, 72, 141, 0.08);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.row.g-4>.col-12.col-lg-6>.card:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 72, 141, 0.2);
    box-shadow: var(--shadow-hover);
}

.row.g-4>.col-12.col-lg-6>.card .col-md-4.col-lg-3 {
    padding: 1.5rem 0 1.5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.row.g-4>.col-12.col-lg-6>.card .col-md-4.col-lg-3>a {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f8f9fc;
    box-shadow: 0 8px 20px -6px rgba(52, 72, 141, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
    min-height: 120px;
}

.row.g-4>.col-12.col-lg-6>.card:hover .col-md-4.col-lg-3>a {
    box-shadow: 0 12px 28px -8px rgba(52, 72, 141, 0.2);
    transform: translateY(-2px);
}

.row.g-4>.col-12.col-lg-6>.card .col-md-4.col-lg-3 img {
    display: block;
    width: 100%;
    height: 142px !important;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.row.g-4>.col-12.col-lg-6>.card:hover .col-md-4.col-lg-3 img {
    transform: scale(1.04);
}

.row.g-4>.col-12.col-lg-6>.card .card-body {
    padding: 1.5rem;
    text-align: left;
}

.row.g-4>.col-12.col-lg-6>.card .card-title a {
    color: var(--text);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.row.g-4>.col-12.col-lg-6>.card .card-title a:hover {
    color: var(--brand);
}

.row.g-4>.col-12.col-lg-6>.card .text-end .fw-bold {
    color: var(--brand);
    font-size: 1.05rem;
    font-weight: 800;
}

.row.g-4>.col-12.col-lg-6>.card .btn-outline-primary {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    color: var(--brand) !important;
    border: 1.5px solid var(--brand) !important;
    background-color: #fff;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.row.g-4>.col-12.col-lg-6>.card .btn-outline-primary:hover {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(52, 72, 141, 0.25);
}

.row.g-4>.col-12.col-lg-6>.card .btn-outline-primary:active {
    transform: translateY(1px) scale(0.98);
}

/* ============================================================
   20. WOOCOMMERCE CART
   ============================================================ */

.woocommerce-cart .card {
    border-radius: var(--radius-md);
    background: #ffffff;
    background-image: var(--gradient-card-light);
    border: 1px solid rgba(52, 72, 141, 0.08);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.woocommerce-cart .card-body {
    padding: 0;
}

.woocommerce-cart .cart-item {
    border-color: rgba(52, 72, 141, 0.06) !important;
    padding: 1.25rem !important;
    transition: background-color 0.2s ease;
}

.woocommerce-cart .cart-item:hover {
    background-color: rgba(52, 72, 141, 0.02);
}

.woocommerce-cart .cart-item img {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.woocommerce-cart .product-name a {
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.woocommerce-cart .product-name a:hover {
    color: var(--brand);
}

.woocommerce-cart .product-price {
    color: var(--muted-light) !important;
    font-size: 0.9rem !important;
}

.woocommerce-cart .product-price .amount {
    color: var(--muted-light);
}

.woocommerce-cart .product-subtotal .amount {
    color: var(--brand);
    font-weight: 800;
    font-size: 1.05rem;
}

.woocommerce-cart .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    color: #dc2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.2) !important;
    background-color: transparent;
    transition: all 0.2s ease;
}

.woocommerce-cart .remove:hover {
    background-color: #dc2626 !important;
    color: #fff !important;
    transform: scale(1.05);
}

.woocommerce-cart .quantity .qty {
    width: 70px;
    text-align: center;
    border-radius: 10px;
    border: 1.5px solid rgba(52, 72, 141, 0.15);
    padding: 0.375rem 0.5rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-cart .quantity .qty:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(52, 72, 141, 0.15);
    outline: none;
}

.woocommerce-cart .cart-actions {
    border-top: 1px solid rgba(52, 72, 141, 0.06);
}

.woocommerce-cart .cart-actions .btn-primary {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    background-color: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
    box-shadow: var(--shadow-btn);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease;
}

.woocommerce-cart .cart-actions .btn-primary:hover {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.woocommerce-cart .cart_totals {
    border-radius: var(--radius-md);
    background: #ffffff;
    background-image: linear-gradient(180deg, rgba(249, 115, 22, 0.04) 0%, #ffffff 50%, rgba(56, 189, 248, 0.04) 100%);
    border: 1px solid rgba(52, 72, 141, 0.08);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.woocommerce-cart .cart_totals .card-body {
    padding: 1.75rem;
}

.woocommerce-cart .cart_totals .card-title {
    font-weight: 800;
    color: var(--text);
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.woocommerce-cart .cart-totals-list {
    margin-bottom: 0.5rem;
}

.woocommerce-cart .cart-subtotal {
    color: var(--muted-light);
    border-color: rgba(52, 72, 141, 0.06) !important;
}

.woocommerce-cart .cart-subtotal .amount {
    color: var(--text);
    font-weight: 600;
}

.woocommerce-cart .order-total .amount {
    color: var(--brand);
    font-weight: 800;
    font-size: 1.5rem;
}

.woocommerce-cart .checkout-button {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.875rem 1.5rem;
    background-color: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
    box-shadow: var(--shadow-btn);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease;
    will-change: transform;
}

.woocommerce-cart .checkout-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.woocommerce-cart .checkout-button:hover {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

.woocommerce-cart .checkout-button:hover::after {
    left: 130%;
}

.woocommerce-cart .checkout-button:active {
    transform: translateY(1px) scale(0.99);
}

.woocommerce-cart .checkout-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.25), 0 12px 24px -8px rgba(52, 72, 141, 0.35);
}

/* ============================================================
   21. WOOCOMMERCE CHECKOUT
   ============================================================ */

.woocommerce-checkout .card {
    border-radius: var(--radius-md);
    background: #ffffff;
    background-image: var(--gradient-card-light);
    border: 1px solid rgba(52, 72, 141, 0.08);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.woocommerce-checkout .card-body {
    padding: 1.75rem;
}

.woocommerce-checkout h3 {
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.woocommerce-checkout h3.h6.text-uppercase {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--muted-light) !important;
}

.woocommerce-checkout .form-control,
.woocommerce-checkout .form-select {
    border-radius: 12px;
    border: 1.5px solid rgba(52, 72, 141, 0.15);
    background-color: #f8f9fc;
    font-size: 0.975rem;
    color: var(--text);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-checkout .form-control:focus,
.woocommerce-checkout .form-select:focus {
    border-color: var(--brand);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.15);
}

.woocommerce-checkout .form-floating>label {
    color: var(--muted-light);
    font-size: 0.95rem;
    padding-left: 1rem;
}

.woocommerce-checkout .form-floating>.form-control:focus~label,
.woocommerce-checkout .form-floating>.form-select:focus~label,
.woocommerce-checkout .form-floating>.form-control:not(:placeholder-shown)~label,
.woocommerce-checkout .form-floating>.form-select:not(:placeholder-shown)~label {
    color: var(--brand);
    font-weight: 500;
}

.woocommerce-checkout textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Исправленная сетка полей */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.woocommerce-checkout .form-row {
    padding: 0 0.5rem;
    margin-bottom: 1rem !important;
    width: 100%;
}

@media (min-width: 768px) {

    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 50%;
    }
}

.woocommerce-checkout .form-row:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-checkout .shop_table .cart_item {
    border-color: rgba(52, 72, 141, 0.06) !important;
}

.woocommerce-checkout .shop_table .product-name {
    color: var(--text);
    font-size: 0.95rem;
}

.woocommerce-checkout .shop_table .product-quantity {
    font-size: 0.85rem;
}

.woocommerce-checkout .shop_table .product-total .amount {
    color: var(--text);
    font-weight: 700;
}

.woocommerce-checkout .shop_table .cart-subtotal {
    color: var(--muted-light);
    border-color: rgba(52, 72, 141, 0.06) !important;
}

.woocommerce-checkout .shop_table .cart-subtotal .amount {
    color: var(--text);
    font-weight: 600;
}

.woocommerce-checkout .shop_table .order-total .amount {
    color: var(--brand);
    font-weight: 800;
    font-size: 1.5rem;
}

.woocommerce-checkout .wc_payment_method {
    padding: 1rem;
    border-radius: 12px;
    border: 1.5px solid rgba(52, 72, 141, 0.1);
    background-color: #f8f9fc;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.woocommerce-checkout .wc_payment_method:hover,
.woocommerce-checkout .wc_payment_method:focus-within {
    border-color: rgba(52, 72, 141, 0.3);
    background-color: #fff;
}

.woocommerce-checkout .wc_payment_method input[type="radio"]:checked~label {
    color: var(--brand);
    font-weight: 600;
}

.woocommerce-checkout .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.woocommerce-checkout .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(52, 72, 141, 0.2);
    border-color: var(--brand);
}

.woocommerce-checkout .payment_box {
    color: var(--muted-light);
    font-size: 0.875rem;
    line-height: 1.5;
    background-color: transparent !important;
    padding: 0.5rem 0 0 0 !important;
    border: none !important;
}

.woocommerce-checkout .payment_box::before {
    display: none;
}

.woocommerce-checkout .woocommerce-privacy-policy-text p {
    color: var(--muted-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

.woocommerce-checkout .woocommerce-privacy-policy-link {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.woocommerce-checkout #place_order {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    background-color: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
    box-shadow: var(--shadow-btn);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease;
    will-change: transform;
    cursor: pointer;
}

.woocommerce-checkout #place_order::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.woocommerce-checkout #place_order:hover {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn-hover);
}

.woocommerce-checkout #place_order:hover::after {
    left: 130%;
}

.woocommerce-checkout #place_order:active {
    transform: translateY(1px) scale(0.99);
}

.woocommerce-checkout #place_order:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.25), 0 12px 24px -8px rgba(52, 72, 141, 0.35);
}

/* ============================================================
   22. АДАПТИВ (СВОДНЫЙ)
   ============================================================ */

@media (max-width: 991.98px) {

    .contacts-section__info,
    .contacts-section__form,
    .map-section__map,
    .text-section__media,
    .services-section__card,
    .features-section__card,
    .pricing-section__card,
    .row.g-4>.col-12.col-lg-6>.card,
    .woocommerce-cart .card,
    .woocommerce-cart .cart_totals,
    .woocommerce-checkout .card,
    article.card.product:has(form.cart) {
        border-radius: 20px;
    }

    .services-section__card-body {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .services-section__card-title {
        font-size: 1.15rem;
        min-height: 2.4em;
    }

    .features-section__card-body {
        padding: 1.5rem 1.25rem;
    }

    .features-section__icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .features-section__icon i {
        font-size: 1.5rem;
    }

    .text-section__media-col {
        margin-top: 2rem;
    }

    .row.g-4>.col-12.col-lg-6>.card .col-md-4.col-lg-3 {
        padding: 1.25rem 0 1.25rem 1.25rem;
    }

    .services .text-section__media-col {
        margin-top: 2rem;
    }

    .pricing-section__card-body {
        padding: 2rem 1.25rem;
    }

    .cta-section--bg-light .cta-section__inner {
        border-radius: 22px;
    }
}

@media (max-width: 767.98px) {
    .map-section__map {
        border-radius: 18px;
    }

    .map-section__title {
        font-size: 1.3rem;
    }

    .faq-section__item {
        border-radius: 16px !important;
    }

    .faq-section__question-btn {
        padding: 1rem 2.5rem 1rem 1.25rem !important;
        font-size: 1rem;
    }

    .faq-section__question-btn::after {
        right: 1rem;
        width: 1.1rem;
        height: 1.1rem;
    }

    .faq-section__answer-body {
        padding: 0 1.25rem 1.25rem !important;
        font-size: 0.9375rem;
    }

    .site-footer {
        font-size: 0.875rem;
    }

    .footer-heading {
        margin-top: 1rem;
        margin-bottom: 0.75rem !important;
    }

    .site-footer p.text-secondary {
        max-width: 100%;
    }

    .footer-bottom .d-flex {
        text-align: center;
        justify-content: center !important;
    }

    .steps-section__grid::before {
        display: none;
    }

    .steps-section__item-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: #f8f9fc;
        border-radius: 16px;
        padding: 2rem 1.25rem;
        border: 1px solid rgba(52, 72, 141, 0.08);
        box-shadow: 0 2px 8px rgba(16, 24, 40, 0.02);
        gap: 0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .steps-section__item:hover .steps-section__item-inner {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px -8px rgba(52, 72, 141, 0.15);
    }

    .steps-section__number {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
        margin-bottom: 1rem;
        box-shadow: none;
    }

    .steps-section__item:hover .steps-section__number {
        box-shadow: none;
    }

    .steps-section__item-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        margin-top: 0;
    }

    .steps-section__item-text {
        font-size: 0.9rem;
        line-height: 1.5;
        max-width: 90%;
        margin-inline: auto;
    }

    .woocommerce-cart .cart-item {
        padding: 1rem !important;
    }

    .woocommerce-cart .cart_totals .card-body {
        padding: 1.25rem;
    }

    .woocommerce-cart .checkout-button {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }

    .row.g-4>.col-12.col-lg-6>.card .col-md-4.col-lg-3 {
        padding: 1.25rem 1.25rem 0 1.25rem;
    }

    .row.g-4>.col-12.col-lg-6>.card .col-md-4.col-lg-3>a {
        min-height: 200px;
    }

    .row.g-4>.col-12.col-lg-6>.card .card-body {
        padding-top: 0.5rem;
    }

    .woocommerce-checkout .card-body {
        padding: 1.25rem;
    }

    .woocommerce-checkout .shop_table .order-total .amount {
        font-size: 1.25rem;
    }

    .woocommerce-checkout #place_order {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100%;
    }

    article.card.product:has(form.cart) {
        border-radius: 18px;
    }

    article.card.product:has(form.cart) .card-body {
        padding: 1.5rem 1.25rem;
    }

    article.card.product:has(form.cart) form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    article.card.product:has(form.cart) .quantity {
        justify-content: center;
        width: 100%;
    }

    article.card.product:has(form.cart) .quantity .qty {
        width: 100%;
    }

    article.card.product:has(form.cart) .single_add_to_cart_button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .hero-section--card .hero-section__bg-card {
        border-radius: 22px;
    }

    .hero-section__btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.25rem;
    }

    .hero-section__actions {
        flex-direction: column;
    }

    .hero-section__features {
        gap: 0.5rem;
    }

    .hero-section__feature {
        font-size: 0.8125rem;
        padding: 0.4rem 0.8rem 0.4rem 0.7rem;
    }

    @keyframes hero-title-drop {
        0% {
            opacity: 0;
            transform: translateY(-30px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .contacts-section__info,
    .contacts-section__form {
        padding: 1.25rem 1rem;
        border-radius: 18px;
    }

    .contacts-section__row {
        padding: 0.5rem 0.5rem;
    }

    .contacts-section__row>i {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem !important;
    }

    .contacts-section__title {
        font-size: 1.3rem;
    }

    .page-header__title {
        font-size: 1.5rem;
    }

    nav[aria-label="breadcrumb"] {
        padding-top: 1rem;
        padding-bottom: 0.25rem;
    }

    .breadcrumb {
        font-size: 0.8125rem;
    }

    .site-footer {
        font-size: 0.875rem;
    }

    .services-section__title,
    .steps-section__title,
    .features-section__title,
    .faq-section__title,
    .cta-section__title,
    .pricing-section__title,
    .text-section__title {
        font-size: 1.5rem;
    }

    .services-section__card {
        border-radius: 18px;
    }

    .services-section__card-text,
    .services-section__feature {
        font-size: 0.875rem;
    }

    .services-section__action .btn-primary {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .features-section__card {
        border-radius: 18px;
    }

    .features-section__card-text {
        font-size: 0.875rem;
    }

    .text-section__list li {
        font-size: 0.9375rem;
    }

    .text-section__media {
        border-radius: 16px;
    }

    .card.product {
        border-radius: 16px;
    }

    .card.product>a:first-of-type {
        margin: 1.25rem 1.25rem 0.5rem 1.25rem;
        border-radius: 12px;
    }

    .card.product .card-title a {
        font-size: 1rem;
    }

    .card.product .woocommerce-Price-amount {
        font-size: 1.15rem;
    }

    .card.product .card-footer .btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.875rem;
    }

    .pagination .page-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }

    .pricing-section__card {
        border-radius: 18px;
    }

    .pricing-section__card-title {
        font-size: 1rem;
    }

    .pricing-section__price {
        font-size: 2.5rem !important;
    }

    .pricing-section__note-text {
        font-size: 0.875rem !important;
    }

    .cta-section__list li {
        font-size: 0.9375rem;
        padding: 0.4rem 1rem;
    }

    .cta-section__form {
        padding-inline: 0.5rem;
    }

    .cta-section__btn.btn-primary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .woocommerce-cart .card,
    .woocommerce-cart .cart_totals {
        border-radius: 16px;
    }

    .woocommerce-cart .product-name a {
        font-size: 0.9375rem;
    }

    .woocommerce-cart .quantity .qty {
        width: 60px;
        font-size: 0.875rem;
    }

    .woocommerce-cart .cart-actions .btn-primary {
        width: 100%;
        padding: 0.5rem 1rem;
        font-size: 0.9375rem;
    }

    .woocommerce-checkout .card {
        border-radius: 16px;
    }

    .woocommerce-checkout .form-control,
    .woocommerce-checkout .form-select {
        font-size: 0.9375rem;
    }

    .services .text-section__title {
        font-size: 1.5rem;
    }

    .services .text-section__list li {
        font-size: 0.9375rem;
    }

    .services .text-section__list li strong {
        font-size: 1rem;
    }

    .services .text-section__list li em {
        font-size: 0.875rem;
    }

    .services .text-section__media {
        border-radius: 16px;
    }

    .floating-btn {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }

    .floating-btn__icon {
        font-size: 1.25rem;
    }
}

/* ============================================================
   23. КОРЗИНА (МОБИЛЬНАЯ ПЕРЕСТРОЙКА)
   ============================================================ */

@media (max-width: 767.98px) {
    .woocommerce-cart .cart-item {
        padding: 1rem !important;
        position: relative;
    }

    .woocommerce-cart .cart-item .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0.75rem;
    }

    .woocommerce-cart .cart-item .row>div {
        padding: 0;
    }

    .woocommerce-cart .cart-item .col-auto:first-child {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 2;
    }

    .woocommerce-cart .cart-item .col-auto:nth-child(2) {
        width: 80px;
        flex-shrink: 0;
    }

    .woocommerce-cart .cart-item .col-auto:nth-child(2) img {
        max-width: 80px !important;
        height: auto;
    }

    .woocommerce-cart .cart-item .col-12.col-sm {
        width: calc(100% - 80px - 1rem);
        margin-left: 1rem;
        padding-right: 2rem;
    }

    .woocommerce-cart .product-name a {
        font-size: 0.9375rem;
        line-height: 1.3;
        display: block;
    }

    .woocommerce-cart .cart-item .product-price {
        display: none;
    }

    .woocommerce-cart .cart-item .col-6.col-sm-auto:nth-child(5) {
        width: auto;
        margin-top: 0.25rem;
    }

    .woocommerce-cart .quantity .qty {
        width: 64px;
        padding: 0.35rem 0.5rem;
        font-size: 0.875rem;
    }

    .woocommerce-cart .cart-item .col-12.col-sm-auto.text-sm-end:last-child {
        width: auto;
        margin-left: auto;
        margin-top: -2.25rem;
        text-align: right;
    }

    .woocommerce-cart .product-subtotal .amount {
        font-size: 1rem;
        font-weight: 800;
    }

    .woocommerce-cart .cart-actions {
        flex-direction: column;
        align-items: stretch !important;
    }

    .woocommerce-cart .cart-actions .btn-primary {
        width: 100%;
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
    }

    .woocommerce-cart .cart_totals .card-body {
        padding: 1.25rem;
    }

    .woocommerce-cart .order-total .amount {
        font-size: 1.25rem;
    }

    .woocommerce-cart .checkout-button {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
}

/* ============================================================
   24. ДОСТУПНОСТЬ (ПРЕДПОЧТЕНИЕ УМЕНЬШЕННОГО ДВИЖЕНИЯ)
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   Portfolio Section — BEM, бренд #34488D
   ============================================================ */

.portfolio-section {
    --port-brand: #34488D;
    --port-text: #1e2530;
    --port-muted: #374151;
    --port-radius: 24px;
    position: relative;
}

/* ---------- Заголовок ---------- */
.portfolio-section__header {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.portfolio-section__title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--port-text);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    text-wrap: balance;
    margin-bottom: 1rem;
}

/* ---------- Сетка ---------- */
.portfolio-section__grid {
    position: relative;
    z-index: 1;
}

.portfolio-section__item {
    display: flex;
    animation: port-card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

/* Каскадное появление */
.portfolio-section__item:nth-child(1) {
    animation-delay: 0.1s;
}

.portfolio-section__item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-section__item:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes port-card-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Карточка проекта ---------- */
.portfolio-section__card {
    position: relative;
    width: 100%;
    border-radius: var(--port-radius);

    /* Фон как в hero: оранжевый -> белый -> голубой */
    background-color: #ffffff !important;
    background-image: linear-gradient(180deg,
            rgba(249, 115, 22, 0.06) 0%,
            rgba(251, 146, 60, 0.02) 25%,
            #ffffff 50%,
            rgba(56, 189, 248, 0.02) 75%,
            rgba(14, 165, 233, 0.06) 100%) !important;

    border: 1px solid rgba(52, 72, 141, 0.08) !important;
    box-shadow:
        0 2px 4px rgba(16, 24, 40, 0.02),
        0 12px 24px -8px rgba(52, 72, 141, 0.08);
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    overflow: hidden;
}

/* Ховер на карточку */
.portfolio-section__card:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 72, 141, 0.2) !important;
    box-shadow:
        0 4px 12px rgba(16, 24, 40, 0.04),
        0 24px 48px -12px rgba(52, 72, 141, 0.15);
}

/* ---------- Изображение ---------- */
.portfolio-section__thumb {
    display: block;
    width: 100%;
    height: 220px !important;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-section__card:hover .portfolio-section__thumb {
    transform: scale(1.04);
}

/* ---------- Тело карточки ---------- */
.portfolio-section__card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Центрируем контент */
    text-align: center;
}

/* ---------- Заголовок карточки ---------- */
.portfolio-section__card-title {
    font-weight: 700;
    color: var(--port-text);
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

/* ---------- Текст карточки ---------- */
.portfolio-section__card-text {
    color: var(--port-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 991.98px) {
    .portfolio-section__card {
        border-radius: 20px;
    }

    .portfolio-section__card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .portfolio-section__title {
        font-size: 1.5rem;
    }

    .portfolio-section__card {
        border-radius: 18px;
    }

    .portfolio-section__card-text {
        font-size: 0.875rem;
    }

    .portfolio-section__thumb {
        height: 200px !important;
    }
}

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {
    .portfolio-section__item {
        animation: none;
        opacity: 1;
    }

    .portfolio-section__card,
    .portfolio-section__thumb {
        transition: none;
    }
}

/* ============================================================
   Blog Posts (Card) — Брендовая стилизация
   ============================================================ */

/* ---------- Карточка записи ---------- */
.card.post {
    position: relative;
    border-radius: 24px;
    background: #ffffff;
    background-image: linear-gradient(180deg,
            rgba(52, 72, 141, 0.03) 0%,
            #ffffff 50%,
            rgba(52, 72, 141, 0.01) 100%);
    border: 1px solid rgba(52, 72, 141, 0.08);
    box-shadow:
        0 2px 4px rgba(16, 24, 40, 0.02),
        0 12px 24px -8px rgba(52, 72, 141, 0.08);
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    overflow: hidden;
    animation: blog-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

/* Каскадное появление */
.card.post:nth-child(1) {
    animation-delay: 0.05s;
}

.card.post:nth-child(2) {
    animation-delay: 0.1s;
}

.card.post:nth-child(3) {
    animation-delay: 0.15s;
}

.card.post:nth-child(4) {
    animation-delay: 0.2s;
}

.card.post:nth-child(5) {
    animation-delay: 0.25s;
}

.card.post:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes blog-card-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ховер на карточку */
.card.post:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 72, 141, 0.2);
    box-shadow:
        0 4px 12px rgba(16, 24, 40, 0.04),
        0 24px 48px -12px rgba(52, 72, 141, 0.15);
}

/* ---------- Тело карточки ---------- */
.card.post .card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

/* ---------- Заголовок ---------- */
.card.post .card-title {
    font-size: 1.125rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    min-height: 4.6em;
    /* Выравниваем заголовки по высоте (2 строки) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card.post .card-title a {
    color: #1e2530;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card.post .card-title a:hover {
    color: #34488D;
}

/* ---------- Дата ---------- */
.card.post .card-text.text-muted.small {
    color: #6b7280 !important;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Иконка календаря перед датой (через CSS) */
.card.post .card-text.text-muted.small::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    opacity: 0.7;
}

/* ---------- Отрывок текста ---------- */
.card.post .card-text:not(.text-muted) {
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Ограничиваем 3 строками для ровной сетки */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Кнопка "Читать далее" ---------- */
.card.post .btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 1.25rem;
    background-color: #34488D !important;
    border: 1px solid #34488D !important;
    color: #fff !important;
    box-shadow:
        0 4px 10px rgba(52, 72, 141, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition:
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
    will-change: transform;
}

/* Блик на кнопке */
.card.post .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.card.post .btn-primary:hover {
    background-color: #2a3a75 !important;
    border-color: #2a3a75 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow:
        0 6px 14px rgba(52, 72, 141, 0.25),
        0 12px 24px -8px rgba(52, 72, 141, 0.35);
}

.card.post .btn-primary:hover::after {
    left: 130%;
}

.card.post .btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.card.post .btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 72, 141, 0.25);
}

/* ---------- Адаптив ---------- */
@media (max-width: 767.98px) {
    .card.post {
        border-radius: 20px;
    }

    .card.post .card-body {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .card.post {
        border-radius: 16px;
    }

    .card.post .card-title {
        font-size: 1rem;
    }

    .card.post .card-title a {
        -webkit-line-clamp: 3;
        /* На мобильных разрешаем 3 строки */
    }

    .card.post .card-text:not(.text-muted) {
        font-size: 0.875rem;
    }
}

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {

    .card.post,
    .card.post .btn-primary,
    .card.post .btn-primary::after {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* По умолчанию скрываем все иконки */
.floating-btn__icon {
    display: none;
}

/* Показываем нужную по классу на кнопке */
.floating-btn--cart .floating-btn__icon--cart,
.floating-btn--catalog .floating-btn__icon--catalog,
.floating-btn--arrow .floating-btn__icon--arrow {
    display: inline-flex;
}

/* Опционально: плавное появление при смене состояния */
.floating-btn.is-at-bottom {
    /* например, другой цвет или лёгкий сдвиг */
}

/* Toast согласия на cookie */
.cookie-toast {
    max-width: 420px;
    width: 100%;
    background: #fff;
    border-radius: .75rem;
}

.cookie-toast .toast-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    padding: .75rem 1rem;
}

.cookie-toast .toast-body {
    padding: 1rem;
}

/* Тёмная тема, если сайт использует dark mode */
@media (prefers-color-scheme: dark) {
    .cookie-toast {
        background: #1f1f1f;
        color: #f1f1f1;
    }

    .cookie-toast .toast-header {
        border-bottom-color: rgba(255, 255, 255, .1);
    }

    .cookie-toast .text-body-secondary {
        color: #adb5bd !important;
    }
}

/* Убираем анимацию при reduce-motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-toast {
        transition: none;
    }
}

/* ============================================================
   Cookie Toast — Брендовая стилизация
   ============================================================ */

.cookie-toast {
    --cookie-brand: #34488D;
    --cookie-brand-dark: #2a3a75;
    --cookie-text: #1e2530;
    --cookie-muted: #6b7280;

    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    background-color: #ffffff;

    /* Легкий градиент как в hero */
    background-image: linear-gradient(180deg,
            rgba(249, 115, 22, 0.04) 0%,
            #ffffff 50%,
            rgba(56, 189, 248, 0.04) 100%);

    /* Мягкая брендовая тень */
    box-shadow:
        0 4px 12px rgba(16, 24, 40, 0.06),
        0 24px 48px -12px rgba(52, 72, 141, 0.15) !important;

    border: 1px solid rgba(52, 72, 141, 0.08) !important;
    overflow: hidden;
    animation: cookie-toast-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cookie-toast-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- Шапка (Заголовок и крестик) ---------- */
.cookie-toast .toast-header {
    background-color: rgba(52, 72, 141, 0.03) !important;
    border-bottom: 1px solid rgba(52, 72, 141, 0.06);
    padding: 1rem 1.25rem;
    color: var(--cookie-text);
}

.cookie-toast .toast-header i {
    font-size: 1.25rem;
    color: var(--cookie-brand) !important;
}

.cookie-toast .toast-header strong {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

/* Кнопка закрытия (крестик) */
.cookie-toast .btn-close {
    opacity: 0.4;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-toast .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.cookie-toast .btn-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 72, 141, 0.2);
    border-radius: 4px;
}

/* ---------- Тело уведомления ---------- */
.cookie-toast .toast-body {
    padding: 1.25rem;
}

.cookie-toast .toast-body p {
    color: var(--cookie-muted) !important;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.cookie-toast .toast-body p a {
    color: var(--cookie-brand);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.cookie-toast .toast-body p a:hover {
    color: var(--cookie-brand-dark);
}

/* ---------- Кнопки ---------- */
.cookie-toast .btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* Кнопка "Принять" */
.cookie-toast .btn-primary {
    background-color: var(--cookie-brand) !important;
    border: 1px solid var(--cookie-brand) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(52, 72, 141, 0.15);
}

.cookie-toast .btn-primary:hover,
.cookie-toast .btn-primary:focus {
    background-color: var(--cookie-brand-dark) !important;
    border-color: var(--cookie-brand-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(52, 72, 141, 0.25);
}

.cookie-toast .btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

/* Кнопка "Отклонить" */
.cookie-toast .btn-outline-secondary {
    color: var(--cookie-muted) !important;
    border: 1.5px solid rgba(52, 72, 141, 0.2) !important;
    background-color: transparent;
}

.cookie-toast .btn-outline-secondary:hover,
.cookie-toast .btn-outline-secondary:focus {
    background-color: rgba(52, 72, 141, 0.05) !important;
    color: var(--cookie-brand) !important;
    border-color: var(--cookie-brand) !important;
    transform: translateY(-2px);
}

.cookie-toast .btn-outline-secondary:active {
    transform: translateY(1px) scale(0.98);
}

/* ---------- Адаптив ---------- */
@media (max-width: 575.98px) {
    .cookie-toast {
        max-width: 100%;
        border-radius: 16px;
        margin-inline: 1rem;
    }

    .cookie-toast .toast-header {
        padding: 0.875rem 1rem;
    }

    .cookie-toast .toast-body {
        padding: 1rem;
    }

    .cookie-toast .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {
    .cookie-toast {
        animation: none;
        opacity: 1;
    }

    .cookie-toast .btn,
    .cookie-toast .btn-close {
        transition: none;
    }
}
/* ============================================================
   Inline Text List (для списка в строку)
   ============================================================ */

.text-section__list.text-section__list--inline {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 1rem 1.5rem; /* Отступы между элементами: 1rem по вертикали, 1.5rem по горизонтали */
  padding-left: 0;
  margin-bottom: 0;
}

/* Убираем маркеры и галочки у элементов этого списка */
.text-section__list.text-section__list--inline .list-inline-item {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

/* Убираем псевдоэлемент ::before (галочку), если он наследуется от .text-section__list li */
.text-section__list.text-section__list--inline .list-inline-item::before {
  display: none !important;
  content: none !important;
}

/* Опционально: можно добавить брендовый разделитель (точку) между элементами */
.text-section__list.text-section__list--inline .list-inline-item:not(:last-child)::after {
  content: "•";
  color: #34488D; /* Брендовый цвет */
  margin-left: 1.5rem;
  opacity: 0.5;
}

/* На мобильных делаем текст чуть меньше, чтобы лучше влезал */
@media (max-width: 575.98px) {
  .text-section__list.text-section__list--inline {
    gap: 0.5rem 1rem;
  }
  .text-section__list.text-section__list--inline .list-inline-item:not(:last-child)::after {
    margin-left: 1rem;
  }
}