/* Подключение локального шрифта */
@font-face {
    font-family: 'Makan Hati Cyrillic';
    src: url('./fonts/MakanHatiCyrillic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Цвета из дизайна */
    --cream: #FFF5E4;
    --orange: #F89950;
    --orange-light: #FBBB6E;
    --orange-bg: #F3BA77;
    --teal: #6FAAA9;
    --teal-light: #AAD5C1;
    --teal-bg: #B7DBCA;
    --purple: #CE9CFF;
    --purple-bg: #C28AFA;
    --brown: #673C28;
    --brown-dark: #783E19;
    --brown-light: #517C68;
    --brown-medium: #5A1E9C;
    --brown-accent: #9A4E1D;
    --white: #FFFFFF;
    
    /* Шрифты */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Makan Hati Cyrillic', 'Unbounded', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-primary);
    background-color: var(--cream);
    color: var(--brown);
    line-height: 1.4;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Header */
.header {
    padding: 20px 0;
    background-color: var(--cream);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    position: relative;
}

.logo {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    color: #BE4B0F;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1001;
}

/* Мобильное меню-гамбургер */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--brown);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Навигация */

/* Навбар под иконки */
.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--brown);
    font-weight: 600;
    font-size: 18px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover { color: var(--orange); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.2s ease;
}

.nav-link:hover::after { width: 100%; }

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--cream);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.header-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.header-icon img {
    max-width: 26px;
    max-height: 26px;
}

/* Варианты отображения телеги в хедере для адаптива */
.header-icon--telegram-mobile { display: none; }
.header-icon--telegram-desktop { display: inline-flex; }

/* Темная версия яблока через фильтр */
.apple-icon {
    filter: brightness(0) saturate(100%);
}

/* Компактные CTA в навигации */
.nav-cta {
    padding: 10px 16px;
    min-width: auto;
    height: auto;
    font-size: 16px;
    border-radius: 10px;
}

/* Десктоп: объединяем навбар в один блок */
@media (min-width: 769px) {
    .nav { justify-content: flex-end; margin-left: auto; }
    .nav-links { gap: 32px; }
    .header-icons { gap: 16px; }
}

/* Hero Section - Легко общаться честно говорить */
.hero-section {
    padding: 120px 0;
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cream);
}

.hero-content {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 80px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Главный заголовок */
.hero-main-title {
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 400;
    color: var(--brown);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Когда заголовок заменен на SVG-изображение */
.hero-title-image {
    display: block;
    width: min(100%, 1065px);
    height: auto;
    margin: 0 auto;
}

/* Скрытие текста для скринридеров при использовании графического логотипа/слогана */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; /* prevent line breaks */
}

.title-line {
    display: block;
    margin-bottom: 10px;
}

.title-accent {
    color: var(--orange);
}

/* Описание в рамке */
.hero-description-box {
    background-color: var(--cream);
    border: 2px solid var(--brown);
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 500px;
    margin: 0 auto 20px;
    position: relative;
}

.hero-description-box::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--brown);
}

.hero-description {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--brown);
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

.hero-cta {
    margin-top: 20px;
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 20px 40px;
    border: none;
    border-radius: 14px;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover,
.btn:focus,
.btn:active {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--cream);
    min-width: 378px;
    height: 67px;
}

.btn-primary:hover {
    background-color: #e0833d;
    transform: translateY(-2px);
}

/* Вариант обводки для вторичных CTA в навигации/хиро */
.btn-outline {
    background-color: transparent;
    color: var(--brown);
    border: 2px solid var(--brown);
}

.btn-outline:hover {
    background-color: var(--orange);
    color: var(--cream);
}



/* Фоновые декоративные элементы */
.hero-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.flower-decoration {
    position: absolute;
    width: 101px;
    height: 100px;
    background: linear-gradient(135deg, var(--teal) 0%, transparent 70%);
    border-radius: 50% 0 50% 50%;
    opacity: 0.8;
}

.flower-1 {
    top: 20%;
    right: 48%;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--orange) 0%, transparent 70%);
}

.flower-2 {
    bottom: 25%;
    left: 39%;
    transform: rotate(-30deg);
    background: linear-gradient(135deg, var(--teal) 0%, transparent 70%);
}

.arrow-decoration {
    position: absolute;
    width: 72px;
    height: 71px;
    opacity: 0.8;
}

.arrow-1 {
    top: 35%;
    right: 38%;
    background: linear-gradient(135deg, var(--orange) 50%, transparent 50%);
    transform: rotate(45deg);
}

.arrow-2 {
    bottom: 30%;
    left: 49%;
    background: linear-gradient(135deg, var(--purple) 50%, transparent 50%);
    transform: rotate(-45deg);
}

/* SVG фоновые элементы */
.svg-background {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

.svg-flowers {
    top: 0;
    left: 0;
    width: 649px;
    height: 924px;
    background-image: url('./img/flowers-bg.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top left;
}

.svg-arrow {
    top: 20%;
    right: 5%;
    width: 565px;
    height: 652px;
    background-image: url('./img/arrow-rounded.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: rotate(15deg);
}

/* Section Titles */
.section-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 400;
    text-align: center;
    color: var(--brown);
    margin-bottom: 80px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Якорные секции с офсетом под фиксированный хедер */
.section-anchor {
    scroll-margin-top: 120px;
}

#app-store-buttons {
    scroll-margin-top: 120px;
}

/* CTA секции для App Store и Telegram */
.cta-section {
    padding: 60px 0 20px;
    background-color: var(--cream);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.appstore-badge img {
    width: 180px;
    height: auto;
}

/* Brand Idea Section */
.brand-idea-section {
    background-color: var(--cream);
}

.brand-cards-container {
    max-width: 1400px;
    margin: 0 auto;
    
    /* display: grid;
    grid-template-columns: repeat(4, 1fr); */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.brand-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 30px;
}

.brand-card:hover,
.brand-card.active {
    transform: translateY(-10px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
}

.card-inner {
    position: relative;
    background-color: var(--cream);
    border-radius: 30px;
    height: 494px;
    width: 351px;
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25);
}

.card-border {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    bottom: 10px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-border svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-image {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    height: 300px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.brand-card[data-card="2"] .card-image,
.brand-card[data-card="3"] .card-image,

.brand-card[data-card="4"] .card-image {
    top: -10px;
    left: 50px;
}
.card-content {
    position: relative;
    z-index: 2;
    padding: 40px 30px;
    text-align: center;
    margin-top: 180px;
}

.card-content p {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.brand-card[data-card="1"] .card-content p {
    color: var(--brown-dark);
}

.brand-card[data-card="4"] .card-content p {
    color: var(--brown-medium);
}

.brand-card[data-card="2"] .card-content p,
.brand-card[data-card="3"] .card-content p {
    color: var(--brown-light);
}



/* Openness Levels */
.openness-levels {
    padding: 120px 0;
    text-align: center;
    background-color: var(--cream);
}

/* Новый горизонтальный ряд баннеров */
.levels-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto 40px auto;
    padding: 0 80px;
}

.level-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
}

.level-banner {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.15));
    transform-origin: center center;
}

/* Индивидуальные наклоны и перекрытия */

/* Порядок наложения: 1 внизу, 2 поверх 1, 3 поверх 2 */
.level-item--1 { z-index: 1; }
.level-item--2 { z-index: 2; margin-left: -60px; margin-right: -60px; }
.level-item--3 { z-index: 3; margin-left: -30px; }

.level-item--1 .level-banner { transform: rotate(0.8deg) translateY(0px); }
.level-item--2 .level-banner { transform: rotate(4deg) translateY(100px); }
.level-item--3 .level-banner { transform: rotate(-6deg) translateY(40px); }

.level-text {
    max-width: 300px;
    font-size: 16px;
    font-weight: 500;
    color: var(--brown);
    line-height: 1.4;
    transform-origin: center top;
}

/* Наклон подписи под карточкой только на десктопе */
.level-item--1 .level-text { transform: rotate(0.5deg) translateY(-90px) translateX(30px); }
.level-item--2 .level-text { transform: rotate(17deg); }
.level-item--3 .level-text { transform: rotate(-18.5deg) translateY(-20px) translateX(70px)}

.level-title {
    font-family: var(--font-display);
    font-size: 54px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s ease;
}

.level-acquaintance .level-title {
    color: var(--brown-light);
}

.level-closeness .level-title {
    color: var(--brown-accent);
}

.level-openness .level-title {
    color: var(--brown-medium);
}

.game-box-container {
    margin-top: 60px;
}

.game-box {
    max-width: 600px;
    height: auto;
}

/* Start Communication */
.start-communication {
    min-height: 1000px;
    padding: 10px 0;
    background-color: var(--cream);
    position: relative;
    overflow: hidden;
}

/* Декоративный фон линии (rounded-line.svg) для блока Начать общение */
.start-communication::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('./img/lets-communication-block/rounded-line.svg');
    background-repeat: no-repeat;
    /* Десктоп: фиксируем предсказуемые размеры и сдвиг вниз, чтобы было видно */
    background-size: 2000px auto;
    background-position: center var(--sc-bg-y, -500px);
}

.communication-background {
    position: absolute;
    top: -400px;
    left: -100%;
    width: 300%;
    height: auto;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

/* Отключаем старую встраиваемую картинку, используем псевдо-элемент */
.start-communication .communication-background { display: none; }

.rounded-line {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    object-fit: contain;
}

.communication-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* оба блока ровно по нижней линии */
    gap: 80px;
    margin: 20px auto;
    padding: 0 80px;
    position: relative;
    z-index: 1;
}

.product-section {
    flex: 1;
    text-align: center;
    position: relative;
}

.product-cards-image,
.product-app-image {
    margin-bottom: 40px;
    position: relative;
    display: flex;
    align-items: flex-end; /* выравниваем визуально снизу */
    justify-content: center;
    overflow: hidden; /* на всякий случай ограничим выход изображений за контейнер на всех брейкпоинтах */
}

.cards-image {
    width: 1400px;
    height: auto;
    object-fit: contain;
    transform: scale(1.2);
}

.phone-mockup {
    width: 1500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transform: scale(1.2);
}

/* чтобы низ изображений оставался на одной линии при scale */
.cards-image,
.phone-mockup {
    transform-origin: center bottom;
    max-width: 100%;
    height: auto;
}

.product-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    color: var(--brown);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.product-description {
    margin-bottom: 30px;
}

.product-description p {
    font-size: 16px;
    font-weight: 500;
    color: var(--brown);
    margin-bottom: 5px;
}

.product-btn {
    background-color: var(--cream);
    border: 2px solid var(--brown-dark);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--brown);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.product-btn:hover {
    background-color: var(--orange);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0px 12px 15px rgba(0, 0, 0, 0.15);
}

/* Let's Chat Section - Давай поболтаем */
.lets-chat-section {
    padding: 10px 0;
    background-color: var(--cream);
    position: relative;
    overflow: hidden;
    min-height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-content {
    position: relative;
    max-width: 1400px;
    width: 100%;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
}

/* Левая часть - стрелка и коробка */
.chat-left-part {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.chat-background-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.arrow-background {
    max-width: 1200px;
    height: auto;
    opacity: 0.9;
}

.chat-game-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.game-box-image {
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

/* Правая часть - рамка с текстом и кнопка */
.chat-right-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-left: 50px;
}

.curved-text-container {
    position: absolute;
    top: -25%;
    left: 20%;
    transform: translateX(-50%);
    z-index: 5;
}

.curved-text {
    max-width: 600px;
    height: auto;
}

.chat-description-box {
    background-color: var(--cream);
    border: 2px solid var(--brown);
    border-radius: 20px;
    padding: 25px 35px;
    max-width: 450px;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.chat-description-box::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--brown);
}

.chat-description {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    color: var(--brown);
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

.chat-cta {
    text-decoration: none;
}

/* Team Section */
.team-section {
    padding: 10px 0;
    text-align: center;
    background-color: var(--cream);
    /* Добавляем отступ сверху для мобильных карточек */
}

.team-grid {
    position: relative;
    /* left: -80px; */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 0px auto;
    padding: 0 20px; /* Добавляем отступы по бокам */
    /* Фиксируем высоту чтобы избежать скачков */
    min-height: 650px; /* Увеличиваем минимальную высоту */
    align-items: start;
    justify-items: center; /* Центрируем элементы внутри grid */
    width: 100%; /* Убеждаемся, что блок занимает всю доступную ширину */
}

.team-member {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px; /* Ограничиваем максимальную ширину для правильного центрирования */
    justify-self: center; /* Центрируем каждую карточку */
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member.active {
    transform: translateY(-15px);
}

.team-member.active .member-card {
    box-shadow: 0px 15px 35px rgba(243, 186, 119, 0.4);
}

.member-card {
    position: relative;
    background-color: var(--cream);
    border-radius: 30px;
    padding: 12px;
    height: 430px; /* Уменьшаем высоту, так как role теперь снаружи */
    box-shadow: 0px 4px 15px rgba(243, 186, 119, 1);
    overflow: visible;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-image {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.member-frame {
    position: relative;
    width: 280px;
    height: 405px;
    overflow: hidden;
}

.member-frame svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.member-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    clip-path: url(#team-member-clip);
}

/* Контейнер для рамки со специализацией */
.member-role-container {
    position: relative;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-border {
    width: 161px;
    height: 81px;
}

.member-role {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--brown);
    text-transform: lowercase;
    text-align: center;
    margin: 0;
    z-index: 1;
}

.member-description {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px; /* Отступ от карточки */
    background-color: var(--cream);
    border-radius: 20px;
    padding: 20px 25px;
    min-width: 300px;
    max-width: 350px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    /* Создаем тень как на картинке */
    box-shadow: 0px 15px 40px rgba(103, 60, 40, 0.15);
    border: 1px solid rgba(243, 186, 119, 0.3);
}

.member-description.visible {
    opacity: 1;
    visibility: visible;
    margin-top: 25px;
}

.member-description p {
    font-size: 14px;
    font-weight: 500;
    color: var(--brown);
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

.hidden {
    display: none !important;
}



/* Color Palette */
.color-palette {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px;
    padding: 0 80px;
}

.color-card {
    background-color: var(--cream);
    border-radius: 30px;
    padding: 20px;
    width: 244px;
    height: 344px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.color-sample {
    width: 227px;
    height: 329px;
    border-radius: 22px;
    margin-bottom: 20px;
}

.color-orange .color-sample {
    background-color: var(--orange);
}

.color-teal .color-sample {
    background-color: var(--teal);
}

.color-purple .color-sample {
    background-color: var(--purple);
}

.color-brown .color-sample {
    background-color: var(--brown);
}

.color-code {
    font-size: 16px;
    font-weight: 500;
    color: var(--cream);
    background-color: var(--orange);
    padding: 5px 15px;
    border-radius: 10px;
    position: relative;
    top: -50px;
}

/* Typography Section */
.typography-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    margin-top: 80px;
    padding: 0 80px;
}

.typography-display {
    flex: 1;
    text-align: center;
}

.font-sample {
    margin-bottom: 40px;
}

.font-name {
    display: block;
    font-size: 50px;
    font-weight: 500;
    color: var(--brown);
    margin-bottom: 20px;
}

.font-demo {
    font-size: 160px;
    opacity: 0.1;
    color: var(--brown);
}

.font-display .font-name {
    font-family: var(--font-display);
    font-size: 76px;
}

.font-display .font-demo {
    font-family: var(--font-display);
    font-size: 203px;
}

.font-body .font-demo {
    font-family: var(--font-primary);
    font-size: 159px;
}

.macbook-mockup {
    flex: 1;
}

.macbook-mockup img {
    max-width: 100%;
    height: auto;
}

/* Newsletter */
.newsletter {
    background-color: var(--cream);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    color: var(--brown);
    text-transform: uppercase;
}

.newsletter-description {
    font-size: 16px;
    font-weight: 500;
    color: var(--brown);
    margin-bottom: 40px;
    line-height: 1.4;
}

.newsletter-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--brown);
    margin-bottom: 5px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--brown);
    border-radius: 5px;
    background-color: var(--cream);
    color: var(--brown);
    font-size: 16px;
}

.btn-secondary {
    background-color: #F69950;
    color: var(--cream);
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 600;
    width: 169px;
    height: 35px;
}

.btn-secondary:hover {
    background-color: #e0833d;
}

.contact-info {
    font-size: 14px;
    font-weight: 400;
    color: var(--brown);
    line-height: 1.4;
}

.contact-info strong {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    display: block;
    margin-top: 10px;
}

/* Footer */
.footer {
    padding: 60px 80px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    font-size: 32px;
    font-weight: 500;
    color: var(--brown);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    text-decoration: none;
    color: var(--brown);
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--orange);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-link {
    display: block;
    width: 33px;
    height: 33px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--brown);
    padding-top: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.designer-credit p {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--brown);
    margin-bottom: 10px;
}

.designer-credit p:first-child {
    font-size: 24px;
    color: #E1642A;
}

.designer-credit p:nth-child(2) {
    font-size: 16px;
    color: var(--brown-dark);
}

/* Мобильная адаптация */
@media (max-width: 1200px) {
    .brand-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        min-height: 500px;
        justify-items: center; /* Центрируем элементы в grid для планшетов */
    }
    
    .color-palette {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .levels-row { flex-direction: column; gap: 30px; padding: 0 40px; justify-content: center; align-items: center;}
    .level-item { margin: 0; }
    .level-item--2 { margin: 0; }
    .level-item--3 { margin: 0; }
    .level-item--1 .level-banner { transform: rotate(0deg)  }
    .level-item--2 .level-banner { transform: rotate(0deg); }
    .level-item--3 .level-banner { transform: rotate(0deg); }
    .level-item--1 .level-text,
    .level-item--2 .level-text,
    .level-item--3 .level-text { transform: none; }
    .level-item--1 .level-text { transform: rotate(0deg) translateY(-70px) translateX(20px); }
    .level-item--2 .level-text { transform: rotate(0deg) translateY(-50px) translateX(20px); }
    .level-item--3 .level-text { transform: rotate(0deg) translateY(-20px) translateX(20px); }

    .communication-content {
        flex-direction: column;
        gap: 0px;
        padding: 0 20px;
    }

    .product-section {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .product-cards-image,
    .product-app-image {
        margin-bottom: 30px;
        height: auto;
        overflow: hidden;
    }

    .cards-image {
        width: 100%;
        height: auto;
        max-width: 500px;
        transform: none; /* убираем desktop scale на планшетах/мобилках */
    }

    .phone-mockup {
        width: 100%;
        height: auto;
        max-width: 500px;
        transform: none; /* убираем desktop scale на планшетах/мобилках */
    }

    .product-btn {
        width: 100%;
        max-width: 300px;
        height: 70px;
    }

    .communication-background {
        top: -100px;
        left: -50%;
        width: 100%;
        height: auto;
        transform: rotate(-10deg);
    }

    /* Тюнинг фона линии для планшетов */
    .start-communication::before {
        background-size: 1500px auto;
        background-position: center -200px;
    }
    
    /* Chat section для планшетов */
    .lets-chat-section {
        min-height: 700px;
    }
    
    .chat-content {
        gap: 60px;
        padding: 0 30px;
    }
    
    .chat-right-part {
        padding-left: 30px;
    }
    
    .game-box-image {
        max-width: 500px;
    }
    
    .arrow-background {
        width: 650px;
    }
    
    .curved-text-container {
        top: -8%;
        left: 25%;
    }
    
    .curved-text {
        max-width: 500px;
    }
    
    .chat-description-box {
        max-width: 400px;
    }

    /* Горизонтальные слайдеры для планшетов (включая 1024px) */
    .brand-cards-container.mobile-slider,
    .team-grid.mobile-slider {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        gap: 20px;
        padding-top: 30px;
        padding-left: 20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 20px;
        scroll-padding-right: 20px;
        scroll-snap-stop: always;
        grid-template-columns: none;
        margin-bottom: 0;
    }

    .brand-cards-container.mobile-slider {
        padding-bottom: 20px;
        padding-left: 0;
        padding-right: 0;
    }

    .team-grid.mobile-slider {
        padding-bottom: 100px;
    }

    /* Элементы-слайды и привязка */
    .brand-cards-container.mobile-slider .brand-card,
    .team-grid.mobile-slider .team-member {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .team-section {
        max-height: none;
        overflow: visible;
    }
    
    /* Header */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }
    .header-icon--telegram-mobile {
        display: inline-flex;
        order: 1;
    }
    .header-icon--telegram-desktop {
        display: none; /* прячем телегу в меню на мобильном хедере, она останется внутри off-canvas */
    }
    
    .logo {
        font-size: 20px;
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--cream);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
        order: 3;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
        touch-action: none;
    }

    .nav.active { left: 0; }

    .nav-links { display: flex; flex-direction: column; gap: 30px; align-items: center; }
    .header-icons { display: flex; flex-direction: column; gap: 20px; }

    .header-icons { gap: 24px; }
    
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Hero */
    .hero-section {
        padding: 40px 0 60px;
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 0 20px;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 1.2;
        letter-spacing: 1px;
    }
    
    .hero-description-box {
        padding: 20px 25px;
        max-width: 90%;
        border-radius: 15px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .btn-primary {
        text-decoration: none;
        min-width: 280px;
        font-size: 18px;
        padding: 18px 35px;
    }
    .btn-outline {
        padding: 16px 30px;
        font-size: 18px;
    }
    
    .flower-decoration,
    .arrow-decoration {
        display: none;
    }
    
    .svg-flowers {
        width: 300px;
        height: 430px;
        top: -50px;
        left: -50px;
        opacity: 0.3;
    }
    
    .svg-arrow {
        width: 250px;
        height: 290px;
        top: 40%;
        right: -30px;
        opacity: 0.4;
        transform: rotate(25deg);
    }
    
    /* Section titles */
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .cta-section {
        padding: 40px 0 10px;
    }
    .appstore-badge img {
        width: 160px;
    }
    
    /* Brand cards */
    .brand-idea-section,
    .openness-levels,
    .start-communication,
    .lets-chat-section {
        padding: 20px 0;
    }

    /* Убираем вертикальный скролл всплеск в блоке ИДЕЯ БРЕНДА на первом рендере */
    .brand-idea-section {
        overflow: hidden;
    }

    /* Тюнинг фона линии для мобильных */
    .start-communication::before {
        background-size: 1100px auto;
        background-position: center -180px;
    }

    /* Контейнеры изображений на мобильных: режем выход, но сами изображения могут смещаться внутри */
    .product-cards-image,
    .product-app-image {
        overflow: hidden;
    }

    /* Доп. страховка: ограничиваем вертикальный параллакс на мобилках */
    .cards-image[data-parallax],
    .phone-mockup[data-parallax],
    .game-box-image[data-parallax],
    .curved-text[data-parallax] {
        transform: none !important; /* сбрасываем rAF-смещения */
    }
    
    .team-section {
        padding: 80px 0 40px 0; /* Уменьшаем отступ снизу, так как увеличили padding слайдера */
    }
    
    .brand-cards-container,
    .levels-container,
    .levels-row,
    .communication-content,
    .team-grid,
    .chat-content,
    .team-description,
    .color-palette,
    .typography-section {
        padding: 0 20px;
    }
    
    /* Мобильные слайдеры */
    .brand-cards-container.mobile-slider,
    .team-grid.mobile-slider {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden; /* не допускаем вертикального «вылазания» на мобилках */
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        gap: 20px;
        padding-top: 30px; /* Добавляем отступ сверху для анимации */
        padding-left: 20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        /* Выровнять начальную привязку первой карточки с учетом внутреннего отступа */
        scroll-padding-left: 20px;
        scroll-padding-right: 20px;
        scroll-snap-stop: always;
        grid-template-columns: none;
        margin-bottom: 0; /* Убираем дополнительный margin */
    }

    /* Отступ снизу для блока идей бренда - меньше */
    .brand-cards-container.mobile-slider {
        padding-bottom: 20px;
    }

    /* Отступ снизу для блока команды - больше для описаний */
    .team-grid.mobile-slider {
        padding-bottom: 100px;
    }


    
    .brand-cards-container.mobile-slider .brand-card,
    .team-grid.mobile-slider .team-member {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
    
    .brand-card .card-inner {
        width: 280px;
        height: 400px;
    }
    
    .member-card {
        height: 360px; /* Уменьшаем для мобильных */
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .member-image {
        height: 100%;
        flex-shrink: 0;
    }
    
    .member-frame {
        width: 240px;
        height: 347px;
    }
    
    .member-role-container {
        margin-top: 15px;
    }
    
    .work-border {
        width: 140px;
        height: 69px;
    }
    
    .member-role {
        font-size: 18px;
    }
    
    .member-description {
        min-width: 240px;
        max-width: 280px;
        padding: 15px 18px;
        margin-top: 15px;
        box-shadow: 0px 10px 25px rgba(103, 60, 40, 0.15);
    }
    
    .member-description.visible {
        margin-top: 18px;
    }
    
    .member-description p {
        font-size: 13px;
        line-height: 1.3;
    }
    
    /* Уменьшаем анимацию подъема для мобильных */
    .team-member:hover {
        transform: translateY(-8px);
    }
    
    .team-member.active {
        transform: translateY(-12px);
    }
    
    .team-member.active .member-card {
        box-shadow: 0px 12px 25px rgba(243, 186, 119, 0.4);
    }
    
    /* Levels */
    .levels-container {
        flex-direction: column;
        gap: 40px;
    }

    .levels-row { flex-direction: column; gap: 24px; padding: 0 20px; }
    .level-text { text-align: center; font-size: 14px; }
    .level-item--1 .level-text,
    .level-item--2 .level-text,
    .level-item--3 .level-text { transform: none; }
    
    .level-item--1 .level-text { transform: rotate(0deg) translateY(-50px) }
    .level-item--2 .level-text { transform: rotate(0deg) translateY(-30px) }
    .level-item--3 .level-text { transform: rotate(0deg) translateY(-10px) }

    .level-icon {
        width: 200px;
        height: 200px;
    }
    
    .level-title {
        font-size: 36px;
    }
    
    /* Color palette */
    .color-palette {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .color-card {
        width: 200px;
        height: 280px;
    }
    
    .color-sample {
        width: 160px;
        height: 200px;
    }
    
    /* Typography */
    .typography-section {
        flex-direction: column;
        gap: 40px;
    }
    
    .font-name {
        font-size: 32px;
    }
    
    .font-demo {
        font-size: 80px;
    }
    
    .font-display .font-name {
        font-size: 48px;
    }
    
    .font-display .font-demo {
        font-size: 100px;
    }
    
    /* Newsletter */
    .newsletter {
        padding: 40px 20px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 24px;
    }
    
    /* Chat section */
    .lets-chat-section {
        min-height: 0;
    }
    
    .chat-content {
        margin-top: 20px;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .curved-text-container {
        top:-2%;
        left: 50%;
    }
    
    .curved-text {
        max-width: 350px;
    }
    
    .chat-left-part {
        min-height: 380px;
        order: 1;
    }
    
    .chat-right-part {
        order: 2;
        padding-left: 0;
        align-items: center;
        width: 100%;
    }
    
    .chat-description-box {
        max-width: 100%;
    }
    
    .chat-description-box::before {
        display: none;
    }
    
    .chat-description {
        font-size: 14px;
        line-height: 1.3;
        text-align: center;
    }
    
    .game-box-image {
        max-width: 500px;
    }
    
    .arrow-background {
        width: 400px;
    }
    
    .chat-cta {
        margin-left: 0;
    }
}

/* Улучшенная типографика для мобильных устройств */
@media (max-width: 768px) {
    /* Улучшаем читабельность текста */
    body {
        font-size: 16px;
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Оптимизация шрифтов для мобильных */
    .hero-description,
    .chat-description,
    .newsletter-description,
    .contact-info {
        line-height: 1.4;
        word-spacing: 0.1em;
    }
    
    /* Улучшаем контрастность кнопок */
    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #d67529;
        box-shadow: 0 4px 12px rgba(248, 153, 80, 0.3);
    }
    
    .product-btn:hover,
    .product-btn:focus {
        background-color: var(--orange);
        color: var(--cream);
        box-shadow: 0 4px 12px rgba(248, 153, 80, 0.3);
    }
}

/* Дополнительные стили для скролла слайдеров */
.mobile-slider::-webkit-scrollbar {
    height: 8px;
}

.mobile-slider::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 10px;
}

.mobile-slider::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 10px;
}

.mobile-slider::-webkit-scrollbar-thumb:hover {
    background: #e0833d;
}

/* Десктоп: сдвиг блока команды влево на 80px */
@media (min-width: 1201px) {
    .team-grid {
        left: -80px;
    }
}

/* Анимации */
.brand-card,
.member-card,
.level-card,
.color-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover,
.member-card:hover,
.level-card:hover,
.color-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
}

/* Переопределяем hover для блоков уровней: иконка анимируется, карточка не двигается */
.openness-levels .level-card:hover {
    transform: none;
    box-shadow: none;
}

/* Эффект только на иконку при наведении на карточку уровня */
.openness-levels .level-card:hover .level-icon {
    transform: translateY(-6px) scale(1.04);
}

/* Заголовок слегка увеличивается при наведении */
.openness-levels .level-card:hover .level-title {
    transform: scale(1.03);
}

.brand-card.active {
    transform: translateY(-15px) !important;
    box-shadow: 0px 12px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Дополнительные градиенты для фона секций */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(248, 153, 80, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.openness-levels::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(111, 170, 169, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.lets-chat-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 80%, rgba(206, 156, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Оптимизация производительности */
*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    /* Оптимизация для мобильных устройств */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Оптимизация изображений для мобильных */
@media (max-width: 768px) {
    /* SVG фоновые элементы - уменьшаем для экономии памяти */
    .svg-flowers,
    .svg-arrow {
        will-change: transform;
        transform: translateZ(0);
    }
    
    /* Оптимизация изображений карточек */
    .card-image img {
        width: auto;
        max-height: 250px;
        object-fit: contain;
    }
    
    /* Оптимизация изображений команды */
    .member-frame img {
        object-fit: cover;
        object-position: center top;
    }
    .card-content p {
        font-size: 18px;
    }
    /* Оптимизация мокапов */
    .phone-mockup img,
    .game-box-image {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Улучшение доступности */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Адаптация для очень маленьких экранов (320px-480px) */
@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .hero-section {
        padding: 60px 0px;
    }
    
    .hero-content {
        padding: 0 15px;
        gap: 25px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.1;
    }
    
    .hero-description-box {
        padding: 15px 20px;
        max-width: 95%;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .btn-primary {
        min-width: 250px;
        font-size: 16px;
        padding: 15px 30px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .appstore-badge img {
        width: 150px;
    }
    
    .brand-idea-section,
    .openness-levels,
    .start-communication,
    .lets-chat-section {
        padding: 20px 0;
    }

    /* Тюнинг фона линии для самых маленьких экранов */
    .start-communication::before {
        background-size: 900px auto;
        background-position: center -160px;
    }
    
    .team-section {
        padding: 60px 0 20px 0; /* Уменьшаем отступ снизу для маленьких экранов */
    }
    
    .brand-cards-container,
    .levels-container,
    .communication-content,
    .team-grid,
    .chat-content {
        padding: 0 15px;
    }
    
    .chat-context {
        height: 400px;
        padding: 0 10px;
    }

    .brand-cards-container.mobile-slider .brand-card {
        flex: 0 0 260px;
        scroll-snap-align: start;
    }
    
    .brand-card .card-inner {
        width: 260px;
        height: 380px;
    }
    
    .card-content {
        margin-top: 160px;
        padding: 30px 20px;
    }
    
    .card-content p {
        font-size: 16px;
    }
    
    .level-icon {
        width: 180px;
        height: 180px;
    }
    
    .level-title {
        font-size: 28px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-description p {
        font-size: 14px;
    }
    
    .product-btn {
        font-size: 14px;
        padding: 12px 25px;
        width: 100%;
        max-width: 260px;
        height: 60px;
    }
    
    .phone-mockup {
        width: 900px;
    }

    .cards-image {
        width: 800px;
    }

    .communication-background {
        top: -100px;
        left: -100%;
        width: 300%;
        transform: rotate(-15deg);
    }
    
    .curved-text {
        max-width: 280px;
    }
    
    .chat-description {
        font-size: 13px;
    }
    
    .game-box-image {
        max-width: 400px;
    }
    
    .team-grid.mobile-slider .team-member {
        flex: 0 0 240px;
        scroll-snap-align: start;
    }
    
    .member-description {
        min-width: 200px;
        max-width: 240px;
        padding: 12px 15px;
        margin-top: 12px;
        box-shadow: 0px 8px 20px rgba(103, 60, 40, 0.15);
    }
    
    .member-description.visible {
        margin-top: 15px;
    }
    
    .member-description p {
        font-size: 11px;
        line-height: 1.2;
    }
    
    /* Уменьшаем анимацию подъема для очень маленьких экранов */
    .team-member:hover {
        transform: translateY(-5px);
    }
    
    .team-member.active {
        transform: translateY(-8px);
    }
    
    .team-member.active .member-card {
        box-shadow: 0px 10px 20px rgba(243, 186, 119, 0.4);
    }
    
    .member-card {
        height: 330px; /* Еще меньше для маленьких экранов */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .member-frame {
        width: 200px;
        height: 290px;
    }
    
    .member-image {
        height: 100%;
        flex-shrink: 0;
    }
    
    .member-role-container {
        margin-top: 12px;
    }
    
    .work-border {
        width: 120px;
        height: 59px;
    }
    
    .member-role {
        font-size: 22px;
    }
    
    .newsletter {
        padding: 30px 15px;
    }
    
    .newsletter-title {
        font-size: 28px;
    }
    
    .footer {
        padding: 30px 15px;
    }
    
    .footer-section h3 {
        font-size: 20px;
    }
    
    .footer-section a {
        font-size: 14px;
    }
    
    .svg-flowers {
        width: 250px;
        height: 360px;
        opacity: 0.2;
    }
    
    .svg-arrow {
        width: 200px;
        height: 230px;
        opacity: 0.3;
    }
}

/* Оптимизация для touch-устройств */
@media (pointer: coarse) {
    .btn,
    .nav-link,
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .brand-card,
    .member-card {
        cursor: default;
    }
}

/* Reveal on scroll (анимация появления) */
.reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Подсказка браузеру для плавности параллакса */
[data-parallax] {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    [data-parallax] {
        will-change: auto;
    }
}