/* Шрифты загружаются через <link> в HTML для лучшей производительности */

:root {
    /* Цветовая палитра с учетом контрастности WCAG AA */
    --yellow: #f9ce12; /* Желтый - контраст с черным: 7.1:1 (AA), с белым: 1.8:1 (недостаточно для текста) */
    --black: #171717; /* Черный - контраст с белым: 12.6:1 (AAA) */
    --white: #ffffff; /* Белый - контраст с черным: 12.6:1 (AAA) */
    --muted: rgba(23, 23, 23, 0.65); /* Приглушенный - контраст с белым: ~8.2:1 (AAA) */
    --border: rgba(23, 23, 23, 0.12);
    --surface-muted: rgba(249, 206, 18, 0.12);
    --shadow: 0 20px 40px rgba(23, 23, 23, 0.08);
    --shadow-sm: 0 2px 8px rgba(23, 23, 23, 0.04);
    --shadow-md: 0 8px 24px rgba(23, 23, 23, 0.12);
    --shadow-lg: 0 20px 60px rgba(23, 23, 23, 0.15);
    --shadow-xl: 0 30px 80px rgba(23, 23, 23, 0.2);
    --shadow-yellow: 0 8px 32px rgba(249, 206, 18, 0.25);
    --primary: var(--yellow);
    --primary-dark: var(--black);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--black);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Базовые стили для текста */
p {
    margin-bottom: 1.25em;
    line-height: 1.6;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 0.5em;
    margin-top: 0;
    font-weight: 700;
}

/* Списки */
ul, ol {
    line-height: 1.6;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}


a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Доступно для скринридеров */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1240px, 90vw);
    margin: 0 auto;
    padding: 0 20px;
}

/* Расширенные брейкпоинты для лучшей адаптивности */
@media (min-width: 480px) {
    .container {
        padding: 0 22px;
    }
}

@media (min-width: 640px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 28px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

@media (min-width: 1280px) {
    .container {
        padding: 0 40px;
        max-width: 1400px;
    }
}

.top-bar {
    background: var(--black);
    color: var(--white);
    font-size: 0.9rem;
    padding: 10px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-bar__contacts,
.top-bar__socials {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.site-header {
    background: rgba(255, 255, 255, 0.8);
    /* Оптимизация backdrop-filter: уменьшаем blur на мобильных для производительности */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.3s ease;
    /* Изоляция композиции для оптимизации - убираем на мобильных для меню */
    contain: layout style paint;
    overflow: visible !important;
}

/* На мобильных убираем contain, чтобы меню могло выходить за границы хедера */
@media (max-width: 1023px) {
    .site-header {
        contain: none !important;
        overflow: visible !important;
    }
    
    .header-inner {
        overflow: visible !important;
    }
}

/* Оптимизация backdrop-filter на мобильных для лучшей производительности */
@media (max-width: 640px) {
    .site-header {
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
    }
}

/* Добавляем will-change только когда хедер анимируется */
.site-header.hidden,
.site-header.visible {
    will-change: transform;
}

.site-header:not(.hidden):not(.visible) {
    will-change: auto;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.site-header.visible {
    transform: translateY(0);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    position: relative;
}

@media (min-width: 640px) {
    .header-inner {
        padding: 18px 0;
    }
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 1.2rem;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.2;
}

.logo span {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--yellow);
    margin-top: 4px;
    text-align: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* На мобильных переопределяем базовые стили для ul */
@media (max-width: 1023px) {
    .main-nav ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
}

/* На мобильных переопределяем стили для меню */
@media (max-width: 1023px) {
    .main-nav {
        display: block !important;
    }
}

/* Стили для скрытого меню (aria-hidden) - только для больших экранов */
@media (min-width: 1024px) {
    .main-nav[aria-hidden="true"] {
        display: block;
    }
}

.main-nav a {
    font-weight: 600;
    color: rgba(23,23,23,0.7);
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--black);
    border-bottom-color: var(--yellow);
}

/* Скрытые элементы навигации - скрываем только на десктопе */
@media (min-width: 1024px) {
    .nav-item--hidden {
        display: none;
    }
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    border-radius: 999px;
    padding: 10px 24px;
    border: 2px solid transparent;
    font-weight: 600;
    transition: transform 0.2s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn.primary {
    background: linear-gradient(135deg, var(--yellow) 0%, rgba(249, 206, 18, 0.95) 100%);
    color: var(--black);
    box-shadow: 0 4px 16px rgba(249, 206, 18, 0.3),
                0 2px 8px rgba(249, 206, 18, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(249, 206, 18, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.primary:hover::before {
    left: 100%;
}

.btn.secondary {
    border-color: var(--black);
    color: var(--black);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Изоляция для оптимизации */
    contain: layout style paint;
}

/* Оптимизация backdrop-filter на мобильных */
@media (max-width: 640px) {
    .btn.secondary {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

.btn.primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(249, 206, 18, 0.5),
                0 6px 16px rgba(249, 206, 18, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.4),
                0 0 20px rgba(249, 206, 18, 0.3);
    border-color: rgba(249, 206, 18, 0.6);
    animation: none;
}

.btn.primary:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 16px rgba(249, 206, 18, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn.secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* Базовые стили для кнопки мобильного меню */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid rgba(23, 23, 23, 0.2);
    background: transparent;
    color: var(--black);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
}

main {
    padding: 20px 0 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 0;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 70px);
}

@media (min-width: 640px) {
    main {
        padding: 30px 0 80px;
        gap: 40px;
        min-height: calc(100vh - 76px);
    }
}

@media (min-width: 1024px) {
    main {
        padding: 40px 0 100px;
        gap: 50px;
        min-height: calc(100vh - 80px);
    }
}

/* Компенсация для fixed header */
body {
    padding-top: 70px;
}

@media (min-width: 640px) {
    body {
        padding-top: 76px;
    }
}

@media (min-width: 1024px) {
    body {
        padding-top: 80px;
    }
}

section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 24px;
    /* Изоляция для оптимизации */
    contain: layout style;
}

/* Оптимизация backdrop-filter на мобильных */
@media (max-width: 640px) {
    section {
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
    }
}

.service-intro[data-animate].in-view {
    margin-top: 10px !important;
}

@media (min-width: 640px) {
    section {
        padding: 32px;
        scroll-margin-top: 94px;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 40px;
        scroll-margin-top: 100px;
    }
}

.hero {
    background: #1f1f1f;
    color: var(--white);
    border: none;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 90px;
    margin-top: 20px;
    padding: 24px;
    transform-origin: center top;
    border-radius: 16px;
}

@media (min-width: 640px) {
    .hero {
        scroll-margin-top: 94px;
        margin-top: 24px;
        padding: 32px;
    }
}

@media (min-width: 1024px) {
    .hero {
        scroll-margin-top: 100px;
        margin-top: 30px;
        padding: 40px;
    }
}

/* Убеждаемся, что hero не залазит под хедер при анимации */
.hero[data-animate] {
    transform-origin: center top;
}

.hero[data-animate].in-view {
    transform: translateY(0) scale(1) !important;
    margin-top: 30px !important;
}

@media (min-width: 640px) {
    .hero[data-animate].in-view {
        margin-top: 30px !important;
    }
}

@media (min-width: 1024px) {
    .hero[data-animate].in-view {
        margin-top: 30px !important;
    }
}

/* Дополнительный отступ для hero#about при in-view */
#about.hero[data-animate].in-view {
    margin-top: 33px !important;
}

@media (min-width: 640px) {
    #about.hero[data-animate].in-view {
        margin-top: 33px !important;
    }
}

@media (min-width: 1024px) {
    #about.hero[data-animate].in-view {
        margin-top: 33px !important;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 206, 18, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 206, 18, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 1;
}

@media (min-width: 480px) {
    .hero-grid {
        gap: 20px;
    }
}

@media (min-width: 640px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 24px;
        align-items: start;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-grid {
        gap: 28px;
    }
    
    .hero-copy {
        padding-right: 16px;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 24px;
        align-items: stretch;
    }
    
    .hero-copy {
        grid-column: 1;
        grid-row: 1;
    }
    
    .hero-side {
        grid-column: 2;
        grid-row: 1;
        align-self: stretch;
        height: 100%;
    }
}

.hero-copy h1 {
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    margin: 12px 0 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    max-width: 100%;
}

.hero-copy p {
    margin: 0 0 12px;
}

.hero-copy p:not(.lead) {
    font-size: 0.98rem;
    line-height: 1.6;
}

@media (min-width: 480px) {
    .hero-copy h1 {
        font-size: clamp(1.5rem, 2.8vw, 2rem);
    }
}

@media (min-width: 640px) {
    .hero-copy h1 {
        font-size: clamp(1.6rem, 2.7vw, 2.05rem);
    }
}

/* Оптимизация типографики для планшетов */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-copy h1 {
        font-size: clamp(1.75rem, 2.4vw, 2.15rem);
    }
    
    .hero-copy .lead {
        font-size: clamp(1rem, 1.5vw, 1.15rem);
    }
}

.hero-copy p.lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.7;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    gap: 10px;
}

.hero-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-list li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--yellow);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
}

.hero-media {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
    align-self: start;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .hero-side {
        height: 100%;
        justify-content: space-between;
    }
}

.hero-media h3 {
    font-size: 1.05rem;
    line-height: 1.4;
}

.hero-media p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-media__image {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.page-hero-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 16px 0 12px;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.table-wrap {
    overflow-x: auto;
}

.os-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.os-table th,
.os-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 0.95rem;
}

.os-table th {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
}

.os-table tr:last-child td {
    border-bottom: none;
}

.os-table--light {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.os-table--light th,
.os-table--light td {
    color: var(--black);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.os-table--light th {
    background: #f0f0f0;
    color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
    .os-table th,
    .os-table td {
        padding: 12px 12px;
        font-size: 0.9rem;
    }
}

.hero-media:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}


.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.badge {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-badges .badge {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--yellow);
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

@media (min-width: 768px) {
    .hero-stats::before,
    .hero-stats::after {
        content: none;
    }
}
@media (min-width: 1024px) {
    .hero {
        padding: 32px;
    }

    .hero-grid {
        gap: 20px;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hero-copy h1 {
        font-size: clamp(1.7rem, 2.3vw, 2rem);
        margin-bottom: 14px;
    }

    .hero-copy .lead {
        font-size: 1.02rem;
        line-height: 1.6;
    }

    .hero-list {
        margin: 16px 0;
        gap: 8px;
    }

    .hero-media,
    .hero-stats {
        padding: 24px;
    }

    .badge {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

}

@media (min-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    border: none;
    text-align: center;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.stat-card span {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 0.02em;
}

.stat-card p {
    color: var(--yellow);
    margin-top: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 160px;
    margin-left: auto;
    margin-right: auto;
}

/* Карусель brand-strip в стиле Apple TV+ Gallery */
.brand-strip {
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
    contain: none; /* Убираем contain для предотвращения обрезки текста */
}

.brand-strip__container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 24px 60px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    width: 100%;
}

.brand-strip.in-view .brand-strip__container {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: none;
}

.brand-strip__label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--yellow);
    margin-bottom: 20px;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    overflow: visible;
    text-indent: 0;
    box-sizing: border-box;
}

.brand-strip__container:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    border-color: rgba(249, 206, 18, 0.2);
}

.brand-strip__gallery {
    position: relative;
    overflow-x: hidden !important;
    overflow-y: visible;
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: calc(3 * 160px + 2 * 20px); /* Ровно 3 элемента + 2 промежутка */
    padding: 12px 0; /* Убираем боковой паддинг, чтобы не подсвечивался следующий бренд */
    margin: 0 auto; /* Центрируем, если контейнер шире */
    box-sizing: border-box;
}

.brand-strip__track {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
}

.brand-strip__item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    box-sizing: border-box;
}

.brand-strip__item span {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: default;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    color: var(--black);
    box-shadow: 0 2px 8px rgba(249, 206, 18, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.brand-strip__item span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(249, 206, 18, 0.3), 
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-strip__item span:hover::before {
    left: 100%;
}

.brand-strip__item span:hover {
    background: linear-gradient(135deg, rgba(249, 206, 18, 0.25) 0%, rgba(249, 206, 18, 0.18) 100%);
    border-color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 206, 18, 0.25),
                0 2px 6px rgba(249, 206, 18, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: var(--black);
    letter-spacing: 0.05em;
    z-index: 10;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}


/* Кнопки навигации */
.brand-strip__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}

.brand-strip__container:hover .brand-strip__nav {
    opacity: 1 !important;
    pointer-events: auto;
    visibility: visible;
}

.brand-strip__nav--prev {
    left: 8px;
}

.brand-strip__nav--next {
    right: 8px;
}

.brand-strip__nav:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-strip__nav:active {
    transform: translateY(-50%) scale(0.95);
}

.brand-strip__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.brand-strip__nav svg {
    width: 20px;
    height: 20px;
}

/* Точки навигации */
.brand-strip__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 0;
    width: 100%;
}

.brand-strip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.brand-strip__dot:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
}

.brand-strip__dot.active {
    background: var(--yellow);
    width: 24px;
    border-radius: 4px;
}

@media (min-width: 640px) {
    .brand-strip__container {
        padding: 28px 80px;
        gap: 24px;
    }
    
    .brand-strip__label {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    
    .brand-strip__track {
        gap: 20px;
    }
    
    .brand-strip__item {
        width: calc((100% - 40px) / 3); /* 3 элемента с учетом gap (20px * 2 = 40px) */
        max-width: 200px;
    }
    
    .brand-strip__item span {
        font-size: 1.2rem;
        padding: 16px 24px;
    }
    
    .brand-strip__nav {
        width: 48px;
        height: 48px;
    }
    
    .brand-strip__nav--prev {
        left: 12px;
    }
    
    .brand-strip__nav--next {
        right: 12px;
    }
}

@media (min-width: 1024px) {
    .brand-strip__container {
        padding: 32px 100px;
        border-radius: 24px;
        gap: 28px;
    }
    
    .brand-strip__label {
        font-size: 1rem;
        margin-bottom: 28px;
    }
    
    
    .brand-strip__item {
        width: calc((100% - 40px) / 3); /* 3 элемента с учетом gap (20px * 2 = 40px) */
        max-width: 220px;
    }
    
    .brand-strip__item span {
        font-size: 1.3rem;
        padding: 18px 28px;
    }
    
    .brand-strip__nav {
        width: 52px;
        height: 52px;
    }
    
    .brand-strip__nav svg {
        width: 24px;
        height: 24px;
    }
}

/* Скрываем точки на мобильных, показываем только навигацию */
@media (max-width: 639px) {
    .brand-strip__dots {
        display: none;
    }
    
    .brand-strip__container {
        padding: 24px 50px;
        gap: 16px;
    }
    
    .brand-strip__label {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    
    .brand-strip__item {
        width: 120px;
    }
    
    .brand-strip__item span {
        font-size: 1rem;
        padding: 12px 16px;
    }
    
    .brand-strip__nav {
        width: 40px;
        height: 40px;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* На планшетах также показываем кнопки всегда */
@media (min-width: 640px) and (max-width: 1023px) {
    .brand-strip__nav {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .section-heading {
        margin-bottom: 24px;
    }
}

.section-heading p {
    color: var(--muted);
    max-width: 520px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--yellow);
}

.section-heading .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--yellow);
    max-width: none;
}

.auto-grid,
.catalog-preview__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
    align-items: stretch;
}

@media (min-width: 480px) {
    .auto-grid,
    .catalog-preview__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Оптимизация для планшетов (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .auto-grid,
    .catalog-preview__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Улучшенные отступы для планшетов */
    section {
        padding: 32px;
    }
    
    .hero {
        padding: 36px;
    }
}

@media (min-width: 1024px) {
    .auto-grid,
    .catalog-preview__grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .auto-grid,
    .catalog-preview__grid {
        gap: 28px;
    }
    
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1280px) {
    .card-grid {
        gap: 28px;
    }
    
    .auto-grid,
    .catalog-preview__grid {
        gap: 32px;
    }
}

@media (min-width: 1440px) {
    .card-grid {
        gap: 28px;
    }
}

.hidden-block {
    display: none !important;
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 28px;
    /* Изоляция композиции для оптимизации рендеринга */
    contain: layout style paint;
}

/* Оптимизация backdrop-filter на мобильных */
@media (max-width: 640px) {
    .card {
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
    }
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(249, 206, 18, 0.1), 
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    left: 100%;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 0 1px rgba(249, 206, 18, 0.1);
    border-color: rgba(249, 206, 18, 0.2);
}

.card:hover::after {
    opacity: 1;
}

.card h3 {
    margin-top: 0;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Изоляция для оптимизации */
    contain: layout style paint;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Оптимизация backdrop-filter на мобильных */
@media (max-width: 640px) {
    .service-card {
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(249, 206, 18, 0.15), 
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    left: 100%;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 0 1px rgba(249, 206, 18, 0.2);
    border-color: rgba(249, 206, 18, 0.3);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card {
    padding: 32px 28px;
}

/* Полноширинная карточка (например, 9-й пункт) */
@media (min-width: 1024px) {
    .service-card--wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .service-grid .service-card--span-2 {
        grid-column: span 2;
    }
}

.service-card--wide p {
    line-height: 1.7;
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

.service-card span.index {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--muted);
    font-weight: 700;
    display: block;
    margin-bottom: 16px;
    margin-top: 0;
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    padding-right: 8px;
}

.service-card p {
    margin-top: 0;
    margin-bottom: 0;
    padding-right: 4px;
    line-height: 1.6;
    text-align: left;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
    flex: 1 0 auto;
}

.service-card__link {
    display: inline-flex;
    margin-top: auto;
    padding-top: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--black);
    position: relative;
}

.service-card__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card__link:hover::after {
    transform: scaleX(1);
}

@media (min-width: 768px) {
    .service-card p,
    .service-card--wide p {
        text-align: left;
        hyphens: none;
    }
}

#cases .service-card p {
    text-align: left;
    hyphens: none;
}

@media (max-width: 640px) {
    .service-card p,
    .service-card--wide p {
        line-height: 1.7;
    }
}

/* Global mobile polish */
@media (max-width: 640px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }

    h1 {
        font-size: clamp(1.7rem, 5vw, 2.2rem);
    }

    h2 {
        font-size: clamp(1.35rem, 4.5vw, 1.8rem);
    }

    h3 {
        font-size: clamp(1.05rem, 4vw, 1.25rem);
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .top-bar {
        font-size: 0.8rem;
    }

    .section-heading p {
        font-size: 0.95rem;
    }

    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.18em;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .card,
    .service-card,
    .value-card,
    .review-card {
        padding: 20px;
    }

    .form-card {
        max-width: 100%;
    }

    .form-card button[type="submit"] {
        width: 100%;
        text-align: center;
    }

    h1, h2, h3 {
        overflow-wrap: anywhere;
    }
}

/* Mobile fine-tuning for key blocks */
@media (max-width: 640px) {
    .brand-strip__container {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .brand-strip__gallery {
        max-width: 100%;
        padding: 8px 12px;
    }

    .brand-strip__label {
        text-align: center;
        letter-spacing: 0.12em;
    }

    .brand-strip__item {
        width: 110px;
    }

    .brand-strip__nav {
        display: none !important;
    }

    .brand-strip__dots {
        display: flex !important;
    }

    .faq-accordion button {
        padding: 16px;
        font-size: 0.95rem;
    }

    .faq-accordion button + div {
        padding: 12px 16px 16px;
    }

    .contact-info-grid .card,
    .form-card {
        padding: 20px;
    }

    .contact-form button[type="submit"] {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .footer-grid > div:nth-child(3) ul li:first-child,
    .footer-grid > div:nth-child(3) ul li:nth-child(2) {
        white-space: normal;
    }
}

/* Скрываем ссылки "Подробнее" в services-grid */
.services-grid .service-card p a {
    display: none;
}

@media (min-width: 640px) {
    .service-card {
        padding: 36px 32px;
    }
    
    .service-card span.index {
        margin-bottom: 18px;
    }
}

@media (min-width: 1024px) {
    .service-card {
        padding: 40px 36px;
    }
    
    .service-card span.index {
        margin-bottom: 20px;
    }
    
    .service-card h3 {
        margin-bottom: 14px;
    }
}

.catalog-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Изоляция для оптимизации */
    contain: layout style paint;
}

/* Оптимизация backdrop-filter на мобильных */
@media (max-width: 640px) {
    .catalog-card {
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
    }
}

@media (max-width: 640px) {
    .catalog-card {
        padding: 18px;
    }

    .catalog-card .media-placeholder {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 8px;
    }

    .catalog-card footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .catalog-tabs {
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .catalog-tabs::-webkit-scrollbar {
        display: none;
    }

    .catalog-tabs button {
        padding: 10px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .catalog-preview__grid,
    .auto-grid,
    .value-grid,
    .reviews-grid,
    .timeline {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .catalog-preview__grid .catalog-card,
    .auto-grid .catalog-card,
    .value-card,
    .review-card,
    .timeline-step {
        padding: 18px;
    }

    .hero-stats {
        padding: 20px;
        gap: 10px;
    }

    .stat-card span {
        font-size: 1.4rem;
    }

    .hero-media {
        padding: 20px;
    }

    .footer-grid {
        gap: 20px;
    }

    .footer-grid ul {
        gap: 8px;
    }

    .footer-bottom {
        text-align: center;
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .hero-copy h1 {
        font-size: 1.6rem;
    }

    .hero-copy .lead {
        font-size: 0.95rem;
    }
}

.catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(249, 206, 18, 0.1), 
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-card:hover::before {
    left: 100%;
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 0 1px rgba(249, 206, 18, 0.1);
    border-color: rgba(249, 206, 18, 0.2);
}

.catalog-card .media-placeholder {
    border-radius: 16px;
    background: var(--surface-muted);
    padding: 20px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    justify-content: center;
}

.catalog-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    color: var(--muted);
}

.timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (min-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 24px;
    }
}

.service-grid,
.value-grid,
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .service-grid,
    .value-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .service-grid,
    .value-grid,
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 28px;
    }
}

.brand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-chips span {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface-muted);
    font-weight: 600;
    color: var(--primary-dark);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.brand-chips span:hover {
    transform: translateY(-2px);
    background: rgba(249, 206, 18, 0.2);
    box-shadow: var(--shadow-sm);
}

.timeline-step {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 4px solid var(--yellow);
    padding: 24px 24px 24px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(249, 206, 18, 0.1), 
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step:hover::before {
    left: 100%;
}

.timeline-step::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 24px;
    width: 16px;
    height: 16px;
    background: var(--yellow);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--yellow),
                0 4px 12px rgba(249, 206, 18, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step:hover {
    transform: translateX(6px) translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 0 1px rgba(249, 206, 18, 0.2);
    border-left-color: var(--yellow);
}

.timeline-step:hover::after {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px var(--yellow),
                0 6px 16px rgba(249, 206, 18, 0.4);
}

.rental,
.cta-banner {
    background: linear-gradient(135deg, var(--black) 0%, rgba(23, 23, 23, 0.98) 100%);
    color: var(--white);
    border: 1px solid rgba(249, 206, 18, 0.1);
    position: relative;
    overflow: hidden;
}

.rental::before,
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 206, 18, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-banner {
    background: linear-gradient(135deg, var(--black) 0%, rgba(23, 23, 23, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(249, 206, 18, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-banner .btn {
    background: linear-gradient(135deg, var(--yellow) 0%, rgba(249, 206, 18, 0.95) 100%);
    color: var(--black);
    box-shadow: 0 4px 16px rgba(249, 206, 18, 0.3),
                0 2px 8px rgba(249, 206, 18, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.value-card,
.review-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.value-card::before,
.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(249, 206, 18, 0.1), 
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover::before,
.review-card:hover::before {
    left: 100%;
}

.value-card::after,
.review-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--yellow), rgba(249, 206, 18, 0.6));
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover,
.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                0 0 0 1px rgba(249, 206, 18, 0.1);
    border-color: rgba(249, 206, 18, 0.2);
}

.value-card:hover::after,
.review-card:hover::after {
    opacity: 1;
}

.rental .value-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.reviews {
    background: var(--white);
}

.review-card blockquote {
    margin: 0 0 18px;
    color: var(--muted);
    font-style: italic;
}

.review-card cite {
    font-weight: 600;
    color: var(--black);
}

.faq {
    background: var(--white);
}

.faq-accordion {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06),
                0 1px 3px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.faq-accordion button {
    width: 100%;
    text-align: left;
    padding: 20px 28px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(23, 23, 23, 0.08);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.faq-accordion button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(249, 206, 18, 0.08), 
        transparent
    );
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion button:hover::before {
    left: 100%;
}

.faq-accordion button:hover {
    background: rgba(249, 206, 18, 0.05);
    padding-left: 32px;
}

.faq-accordion button[aria-expanded="true"] {
    background: rgba(249, 206, 18, 0.1);
    color: var(--black);
    border-bottom-color: rgba(249, 206, 18, 0.2);
}

.faq-accordion button + div {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
}

.faq-accordion button[aria-expanded="true"] + div {
    max-height: 320px;
    padding: 12px 24px 24px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 480px) {
    .contact-info-grid {
        gap: 20px;
    }
}

@media (min-width: 640px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Оптимизация для планшетов */
@media (min-width: 768px) and (max-width: 1023px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .contact-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (min-width: 1280px) {
    .contact-info-grid {
        gap: 32px;
    }
}

.partners ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.partners a {
    color: var(--yellow);
    font-weight: 600;
}

/* Дополнительный отступ для reviews при in-view */
.reviews[data-animate].in-view {
    margin-top: 10px !important;
}

footer {
    background: linear-gradient(135deg, var(--black) 0%, rgba(23, 23, 23, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: rgba(255, 255, 255, 0.75);
    padding: 40px 0 30px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    footer {
        padding: 50px 0 35px;
    }
}

@media (min-width: 1024px) {
    footer {
        padding: 60px 0 40px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 23px;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        align-items: start;
    }
    
    .footer-grid > div {
        min-width: 0;
        width: 100%;
    }
}

@media (min-width: 1440px) {
    .footer-grid {
        gap: 50px;
    }
}

.footer-grid h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
    margin-top: 0;
    font-weight: 700;
    line-height: 1.2;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-grid > div:first-child .logo {
    margin-bottom: 16px;
    margin-top: 0;
    line-height: 1.2;
    font-size: 1rem;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.footer-grid li {
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 0.95rem;
}

/* Предотвращаем перенос для номеров телефонов в контактах */
.footer-grid > div:nth-child(3) ul li:first-child,
.footer-grid > div:nth-child(3) ul li:nth-child(2) {
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
}

/* Стили для первого блока с информацией о компании */
.footer-grid > div:first-child p {
    display: block;
    box-sizing: border-box;
    margin: 0 0 12px 0;
    width: 100%;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-grid > div:first-child p:last-of-type {
    margin-bottom: 0;
}

.footer-grid p {
    line-height: 1.6;
    margin: 0 0 12px 0;
}

/* Дополнительный отступ для page-title при in-view на странице контактов */
.page-title[data-animate].in-view {
    margin-top: 10px !important;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.footer-grid a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-grid a:hover {
    color: var(--yellow);
    transform: translateX(4px);
}

.footer-grid a:hover::before {
    width: 100%;
}

.footer-grid .logo {
    color: var(--white);
    margin-bottom: 16px;
    display: inline-block;
    white-space: nowrap;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
}

.footer-grid .logo span {
    display: inline;
    margin-left: 8px;
}

.footer-bottom {
    margin-top: 24px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.footer-aliases {
    margin-top: 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

@media (min-width: 640px) {
    .footer-bottom {
        margin-top: 30px;
        font-size: 0.85rem;
        text-align: left;
    }

    .footer-aliases {
        font-size: 0.8rem;
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* will-change добавляется только во время анимации */
    contain: layout style paint;
}

[data-animate]:not(.in-view) {
    will-change: opacity, transform;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Убираем will-change после завершения анимации для оптимизации */
    will-change: auto;
}



/* Якорные секции с правильным scroll-margin */
#services,
#packages {
    scroll-margin-top: 90px;
}

#reviews {
    scroll-margin-top: 115px;
}

#about {
    scroll-margin-top: 110px;
}

@media (min-width: 640px) {
    #services,
    #packages {
        scroll-margin-top: 94px;
    }
    
    #reviews {
        scroll-margin-top: 119px;
    }
    
    #about {
        scroll-margin-top: 114px;
    }
}

@media (min-width: 1024px) {
    #services,
    #packages {
        scroll-margin-top: 100px;
    }
    
    #reviews {
        scroll-margin-top: 125px;
    }
    
    #about {
        scroll-margin-top: 120px;
    }
    
    .hero {
        scroll-margin-top: 100px;
    }
}

/* Дополнительный отступ для page-title при in-view на странице контактов */
.page-title[data-animate].in-view {
    margin-top: 10px !important;
}

/* Мобильное меню overlay (затемнение фона) */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.site-header.open .menu-overlay {
    display: block;
    opacity: 1;
}

/* Стили для мобильного меню */
@media (max-width: 1023px) {
    /* Скрываем обычное меню на мобильных */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        transform: translateX(100%) !important;
        padding: 80px 24px 24px !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        overflow-x: visible !important;
        box-shadow: -4px 0 40px rgba(0, 0, 0, 0.15) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        /* Убеждаемся, что меню вне контекста хедера */
        margin: 0 !important;
    }

    /* Кнопка закрытия меню */
    .menu-close {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        border: 2px solid rgba(23, 23, 23, 0.2) !important;
        background: transparent !important;
        color: var(--black) !important;
        font-size: 2rem !important;
        line-height: 1 !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1001 !important;
        transition: all 0.2s ease !important;
    }

    .menu-close:hover,
    .menu-close:focus {
        background: rgba(249, 206, 18, 0.1) !important;
        border-color: var(--yellow) !important;
        color: var(--yellow) !important;
    }

    /* Открытое состояние меню */
    .site-header.open .main-nav {
        transform: translateX(0) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Стили для элементов меню внутри мобильного меню - используем более специфичные селекторы */
    .main-nav > ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .main-nav > ul > li {
        display: block !important;
        width: 100% !important;
        border-bottom: 2px solid var(--yellow) !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
        z-index: 1 !important;
    }

    /* Скрываем элементы с классом nav-item--hidden */
    .main-nav > ul > li.nav-item--hidden {
        display: none !important;
    }

    .main-nav > ul > li:not(.nav-item--hidden) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .main-nav > ul > li:last-child {
        border-bottom: none;
    }

    .main-nav > ul > li > a {
        display: block !important;
        width: 100% !important;
        padding: 16px 0 !important;
        font-size: 1rem !important;
        border-bottom: none !important;
        color: var(--black) !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 44px !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .main-nav a:hover,
    .main-nav a:focus {
        color: var(--yellow) !important;
        background: rgba(249, 206, 18, 0.05);
    }

    /* Гарантируем видимость элементов при открытом меню */
    .site-header.open .main-nav {
        transform: translateX(0) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .site-header.open .main-nav ul {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .site-header.open .main-nav li:not(.nav-item--hidden) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .site-header.open .main-nav a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .main-nav ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
    }

    .main-nav li {
        border-bottom: none !important;
    }

    .main-nav a {
        display: inline-block !important;
        width: auto !important;
        padding: 0 0 6px 0 !important;
        border-bottom: 2px solid transparent !important;
    }

    /* Скрываем кнопку закрытия на десктопе */
    .menu-close {
        display: none !important;
    }

    /* Скрываем кнопку nav-toggle на десктопе */
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        padding: 12px 0;
        min-height: 52px;
        gap: 12px;
    }

    .header-actions {
        gap: 8px;
    }

    .btn.small {
        padding: 8px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    body {
        padding-top: 64px;
    }
    
    .hero,
    section {
        scroll-margin-top: 84px;
    }
    
    #about,
    #services,
    #reviews,
    #packages {
        scroll-margin-top: 84px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo span {
        font-size: 0.7rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .btn.small {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-heading p {
        max-width: 100%;
    }

    .hero-copy p.lead {
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card span {
        font-size: 1.5rem;
    }

    .brand-strip__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 24px;
    }
    
    .brand-strip__inner span {
        width: 100%;
        text-align: left;
    }
    
    .brand-strip__inner span:first-child {
        margin-bottom: 4px;
    }

    .card {
        padding: 20px;
    }

    .hero-media {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .eyebrow {
        font-size: 0.7rem;
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    h3 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }
}

/* Дополнительные стили для улучшения мобильной версии */
.page-title {
    text-align: center;
    padding: 32px 20px;
}

.page-title h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    margin: 12px 0;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .page-title {
        padding: 40px 24px;
    }
}

.catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.catalog-tabs button {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease;
}

.catalog-tabs button[aria-selected="true"] {
    color: var(--black);
    border-bottom-color: var(--yellow);
}

.catalog-panel[aria-hidden="true"] {
    display: none;
}

.form-card {
    max-width: 600px;
    margin: 0 auto;
}

.form-card form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-card label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
}

.form-card input,
.form-card select,
.form-card textarea {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(23, 23, 23, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 4px 16px rgba(249, 206, 18, 0.2),
                0 0 0 3px rgba(249, 206, 18, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.form-card button[type="submit"] {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--yellow) 0%, rgba(249, 206, 18, 0.95) 100%);
    color: var(--black);
    border: 1px solid rgba(249, 206, 18, 0.3);
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(249, 206, 18, 0.3),
                0 2px 8px rgba(249, 206, 18, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.02em;
}

.form-card button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-card button[type="submit"]:hover::before {
    left: 100%;
}

.form-card button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(249, 206, 18, 0.4),
                0 4px 12px rgba(249, 206, 18, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(249, 206, 18, 0.5);
}

.form-card button[type="submit"]:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 4px 12px rgba(249, 206, 18, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form-card button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(249, 206, 18, 0.3),
                0 0 0 3px rgba(249, 206, 18, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Валидация и ошибки */
.form-card input:invalid:not(:focus):not(:placeholder-shown),
.form-card select:invalid:not(:focus),
.form-card textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.form-card input:valid:not(:placeholder-shown),
.form-card select:valid,
.form-card textarea:valid:not(:placeholder-shown) {
    border-color: #4caf50;
}

.error-message {
    display: none;
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 4px;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.form-card input:invalid ~ .error-message.show,
.form-card select:invalid ~ .error-message.show,
.form-card textarea:invalid ~ .error-message.show {
    display: block;
}

.field-hint {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 400;
}

.form-card label {
    position: relative;
}

.form-card button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form-card button[type="submit"].submitting {
    position: relative;
    color: transparent;
}

.form-card button[type="submit"].submitting::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--black);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-card input.error,
.form-card select.error,
.form-card textarea.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

/* Улучшение читаемости на мобильных */
@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    p {
        line-height: 1.7;
    }

    .card h3,
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .catalog-card h3 {
        font-size: 1.1rem;
    }

    .timeline-step h3 {
        font-size: 1.15rem;
    }
}

/* Улучшение touch-таргетов для мобильных */
@media (max-width: 1023px) {
    /* Показываем кнопку nav-toggle на мобильных устройствах */
    .nav-toggle {
        display: inline-flex;
    }

    .btn,
    .main-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Предотвращение горизонтального скролла */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

img, video {
    height: auto;
    max-width: 100%;
    /* Оптимизация декодирования изображений */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Примечание: loading="lazy" добавляется как HTML атрибут в разметке */

/* Улучшение для очень маленьких экранов */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    body {
        padding-top: 60px;
    }

    section {
        padding: 20px;
        border-radius: 12px;
        scroll-margin-top: 80px;
    }
    
    .hero {
        scroll-margin-top: 80px;
    }
    
    #about,
    #services,
    #reviews,
    #packages {
        scroll-margin-top: 80px;
    }

    .hero-copy h1 {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 0.95rem;
    }
}

/* ============================================
   ОПТИМИЗАЦИЯ ДЛЯ LANDSCAPE ОРИЕНТАЦИИ
   ============================================ */

@media (orientation: landscape) and (max-height: 500px) {
    /* Оптимизация для горизонтальной ориентации на мобильных */
    .hero {
        padding: 20px;
        margin-top: 10px;
    }
    
    .hero-copy h1 {
        font-size: clamp(1.4rem, 3vw, 1.8rem);
        margin: 8px 0 12px;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 12px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    section {
        padding: 24px;
    }
    
    .section-heading {
        margin-bottom: 20px;
    }
}

@media (orientation: landscape) and (min-width: 768px) and (max-width: 1023px) {
    /* Оптимизация для планшетов в landscape */
    .hero-grid {
        gap: 24px;
    }
    
    .hero-copy h1 {
        font-size: clamp(1.9rem, 2.5vw, 2.3rem);
    }
    
    .card-grid {
        gap: 20px;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ТИПОГРАФИКИ
   ============================================ */

/* Адаптивные размеры заголовков с clamp */
h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    line-height: 1.4;
}

/* Оптимизация для планшетов */
@media (min-width: 768px) and (max-width: 1023px) {
    h2 {
        font-size: clamp(1.75rem, 2.5vw, 2.1rem);
    }
    
    h3 {
        font-size: clamp(1.35rem, 2vw, 1.6rem);
    }
    
    p {
        font-size: clamp(0.95rem, 1.2vw, 1.05rem);
        line-height: 1.65;
    }
    
    .lead {
        font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    }
}

/* Оптимизация для больших экранов */

/* Улучшение для планшетов */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-grid {
        gap: 28px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    body {
        padding-top: 78px;
    }
    
    .hero,
    section {
        scroll-margin-top: 98px;
    }
    
    #about,
    #services,
    #reviews,
    #packages {
        scroll-margin-top: 98px;
    }
}

/* Улучшение для больших экранов */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-copy h1 {
        font-size: 3.8rem;
    }
}

/* Плавная прокрутка */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Улучшение доступности для фокуса */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
    box-shadow: 0 0 0 1px var(--black), 0 0 0 4px var(--yellow);
}

/* Улучшенные focus стили для интерактивных элементов */
.btn:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 3px;
    box-shadow: 0 0 0 1px var(--white), 0 0 0 4px var(--black);
}

.btn.secondary:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
    box-shadow: 0 0 0 1px var(--black), 0 0 0 4px var(--yellow);
}

/* nav-toggle focus styles removed */

.main-nav a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
    background: rgba(249, 206, 18, 0.1);
}

/* Focus для табов */
.catalog-tabs button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
    box-shadow: 0 0 0 1px var(--black), 0 0 0 4px var(--yellow);
}

/* Focus для FAQ кнопок */
.faq-accordion button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
    box-shadow: 0 0 0 1px var(--black), 0 0 0 4px var(--yellow);
}


@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Убираем outline только для мыши, оставляем для клавиатуры */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

/* Оптимизация производительности на мобильных */
@media (max-width: 640px) {
    [data-animate] {
        transition-duration: 0.4s;
    }
}
