/* ============================================
   ОТ ЛЮДМИЛЫ · Эпоксидная мастерская
   ============================================ */

:root {
    /* Палитра */
    --deep:      #0d3b3e;   /* глубокий смоляной тил */
    --deep-dark: #082628;
    --walnut:    #6b4226;   /* американский орех */
    --walnut-l:  #8b5a3c;
    --amber:     #d4a574;   /* золотистый янтарь, акцент */
    --amber-br:  #e8c896;
    --cream:     #faf7f2;   /* тёплый фон */
    --cream-2:   #f2ede3;
    --graphite:  #1a1a1a;
    --muted:     #6b6862;

    --shadow-sm: 0 2px 8px rgba(13, 59, 62, 0.06);
    --shadow-md: 0 12px 32px rgba(13, 59, 62, 0.1);
    --shadow-lg: 0 24px 60px rgba(13, 59, 62, 0.18);

    /* Типографика */
    --ff-display: 'Fraunces', Georgia, serif;
    --ff-body:    'Manrope', -apple-system, sans-serif;

    /* Контейнер */
    --max: 1320px;
    --pad: clamp(20px, 5vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--graphite);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Зернистая текстура поверх всего */
.grain {
    position: fixed; inset: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; }
em { font-style: italic; font-weight: 400; }

/* ============================================
   НАВИГАЦИЯ
   ============================================ */

.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s ease;
}
.nav.scrolled {
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0;
    box-shadow: 0 1px 0 rgba(13, 59, 62, 0.08);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.logo-mark {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--deep);
    color: var(--amber);
    border-radius: 50%;
    font-family: var(--ff-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    font-style: italic;
}
.logo-text { font-family: var(--ff-display); font-size: 19px; font-weight: 500; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-menu a {
    font-size: 14.5px;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}
.nav-menu a:not(.nav-cta):hover { color: var(--deep); }
.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 1px;
    background: var(--deep);
    transition: width 0.3s ease;
}
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    padding: 10px 20px;
    background: var(--deep);
    color: var(--cream);
    border-radius: 100px;
    transition: all 0.3s;
}
.nav-cta:hover {
    background: var(--graphite);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px; height: 32px;
    align-items: center; justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--graphite);
    transition: all 0.3s ease;
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: 140px 0 80px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg {
    position: absolute; inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Жидкие пятна — имитация растекающейся смолы */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blob-float 22s ease-in-out infinite;
}
.hero-blob-1 {
    top: -10%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
    animation-delay: 0s;
}
.hero-blob-2 {
    bottom: -20%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--deep) 0%, transparent 70%);
    opacity: 0.25;
    animation-delay: -8s;
}
.hero-blob-3 {
    top: 40%; left: 40%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--walnut-l) 0%, transparent 70%);
    opacity: 0.2;
    animation-delay: -15s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px,-30px) scale(1.08); }
    66%      { transform: translate(-30px,40px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--deep);
    animation: fade-up 1s 0.1s both;
}
.eyebrow-line {
    display: block;
    width: 48px; height: 1px;
    background: var(--deep);
}

.hero-title {
    font-family: var(--ff-display);
    font-size: clamp(54px, 11vw, 180px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: 48px;
    color: var(--graphite);
}
.hero-title-line {
    display: block;
    overflow: hidden;
}
.hero-title-line:nth-child(1) { animation: fade-up 1.1s 0.2s both; }
.hero-title-line:nth-child(2) { animation: fade-up 1.1s 0.3s both; padding-left: clamp(40px, 10vw, 140px); }
.hero-title-line:nth-child(3) { animation: fade-up 1.1s 0.4s both; }
.hero-title-line:nth-child(4) { animation: fade-up 1.1s 0.5s both; padding-left: clamp(30px, 8vw, 100px); }

.title-accent {
    color: var(--walnut);
    font-style: italic;
    font-weight: 500;
    position: relative;
    display: inline-block;
}
.title-accent::after {
    content: '';
    position: absolute;
    bottom: 0.08em;
    left: -0.05em;
    right: -0.05em;
    height: 0.12em;
    background: var(--amber);
    opacity: 0.7;
    z-index: -1;
    border-radius: 2px;
}

.hero-title em {
    color: var(--deep);
    font-weight: 500;
}

.hero-lead {
    max-width: 540px;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.55;
    color: var(--muted);
    margin-bottom: 48px;
    animation: fade-up 1.1s 0.6s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 80px;
    animation: fade-up 1.1s 0.7s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.btn-primary {
    background: var(--deep);
    color: var(--cream);
    box-shadow: 0 8px 24px rgba(13, 59, 62, 0.25);
}
.btn-primary:hover {
    background: var(--graphite);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(13, 59, 62, 0.35);
}
.btn-primary svg { transition: transform 0.35s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
    background: transparent;
    color: var(--graphite);
    border: 1px solid rgba(13, 59, 62, 0.2);
}
.btn-ghost:hover {
    background: var(--graphite);
    color: var(--cream);
    border-color: var(--graphite);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    flex-wrap: wrap;
    animation: fade-up 1.1s 0.8s both;
}
.meta-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.meta-num {
    font-family: var(--ff-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    color: var(--deep);
    letter-spacing: -0.03em;
    line-height: 1;
}
.meta-label {
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.meta-divider {
    width: 1px; height: 40px;
    background: rgba(13, 59, 62, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    animation: fade-up 1s 1.1s both;
}
.scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, var(--deep), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5) translateY(-12px); }
    50%      { opacity: 1; transform: scaleY(1) translateY(0); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ОБЩИЕ ЭЛЕМЕНТЫ СЕКЦИЙ
   ============================================ */

.about-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 32px;
}
.section-num {
    font-family: var(--ff-display);
    font-size: 15px;
    font-weight: 400;
    color: var(--amber);
    padding: 4px 10px;
    border: 1px solid var(--amber);
    border-radius: 100px;
    letter-spacing: 0.05em;
}
.about-label-light { color: rgba(250, 247, 242, 0.7); }
.about-label-light .section-num {
    color: var(--amber);
    border-color: var(--amber);
}

.section-title {
    font-family: var(--ff-display);
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--graphite);
}
.section-title em {
    color: var(--walnut);
    font-weight: 500;
}
.section-title .accent {
    color: var(--deep);
    font-style: italic;
    font-weight: 500;
}

/* ============================================
   VIDEO SECTION
   ============================================ */

.video-section {
    padding: clamp(80px, 10vw, 140px) 0;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}
.video-section::before {
    content: '';
    position: absolute;
    top: -5%; left: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
    opacity: 0.12;
    filter: blur(80px);
    pointer-events: none;
}
.video-section::after {
    content: '';
    position: absolute;
    bottom: -10%; right: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--deep) 0%, transparent 70%);
    opacity: 0.08;
    filter: blur(100px);
    pointer-events: none;
}

.video-head {
    max-width: 900px;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}
.video-head .section-num {
    color: var(--walnut);
    border-color: var(--walnut);
    padding: 4px 12px;
    font-size: 13px;
}
.video-title {
    margin-top: 8px;
}
.video-title em {
    color: var(--walnut);
}

.video-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Сцена с видео по центру */
.video-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 48px);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream-2) 0%, #ede6d7 100%);
    box-shadow: 0 20px 60px -20px rgba(13, 59, 62, 0.2);
}

/* Тёплый градиент-фон сцены */
.video-stage-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 165, 116, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(107, 66, 38, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Вертикальная рамка для видео 9:16 */
.video-frame {
    position: relative;
    aspect-ratio: 9 / 16;
    width: clamp(280px, 40vw, 420px);
    border-radius: 20px;
    overflow: hidden;
    background: var(--deep-dark);
    box-shadow:
        0 30px 60px -15px rgba(13, 59, 62, 0.45),
        0 0 0 1px rgba(13, 59, 62, 0.1),
        inset 0 0 0 3px rgba(250, 247, 242, 0.08);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
.video-frame:hover {
    transform: translateY(-4px);
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--deep-dark);
}

/* Плейсхолдер (до первого клика Play) */
.video-poster {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.5s ease;
}
.video-poster.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-poster-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(212, 165, 116, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(107, 66, 38, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, #0d3b3e 0%, #082628 100%);
}
.video-poster-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.08;
    mix-blend-mode: overlay;
}

.video-play {
    position: relative;
    z-index: 2;
    width: clamp(64px, 12vw, 88px);
    height: clamp(64px, 12vw, 88px);
    padding: 0;
    color: var(--amber);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-play svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.3));
}
.video-play:hover {
    transform: scale(1.08);
}
.video-play:hover svg circle:last-of-type {
    animation: play-pulse 1.2s ease-in-out infinite;
}
@keyframes play-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.85; }
}

.video-poster-text {
    position: absolute;
    bottom: 24px; left: 20px; right: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--cream);
    text-align: left;
}
.video-duration {
    font-family: var(--ff-display);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 500;
    color: var(--amber);
    letter-spacing: -0.01em;
}
.video-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(250, 247, 242, 0.7);
    font-weight: 500;
}

.video-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    font-size: 13.5px;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.video-caption-num {
    color: var(--amber);
    font-size: 11px;
}

/* Адаптив видео-секции */
@media (max-width: 900px) {
    .video-stage {
        padding: 24px 16px;
    }
    .video-frame {
        width: min(360px, 75vw);
    }
}

@media (max-width: 480px) {
    .video-frame {
        width: min(320px, 85vw);
        border-radius: 16px;
    }
    .video-stage {
        border-radius: 20px;
        padding: 20px 12px;
    }
}

.about {
    padding: clamp(80px, 12vw, 160px) 0;
    background: var(--cream);
    position: relative;
}
.about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(13, 59, 62, 0.15), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.about-content .about-text {
    margin-top: 40px;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--graphite);
}
.about-text strong {
    color: var(--deep);
    font-weight: 600;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
    padding: clamp(80px, 12vw, 160px) 0;
    background: var(--cream-2);
    position: relative;
    overflow: hidden;
}
.services::before {
    content: '';
    position: absolute;
    top: 10%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--amber) 0%, transparent 60%);
    opacity: 0.15;
    filter: blur(60px);
    pointer-events: none;
}

.services-head {
    max-width: 900px;
    margin-bottom: 80px;
}
.services-title { margin-top: 8px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--cream);
    border: 1px solid rgba(13, 59, 62, 0.08);
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--deep), var(--amber));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.service-icon {
    width: 80px; height: 80px;
    color: var(--deep);
    transition: transform 0.5s ease;
}
.service-card:hover .service-icon {
    transform: rotate(-5deg) scale(1.05);
    color: var(--walnut);
}
.service-num {
    font-family: var(--ff-display);
    font-size: 44px;
    font-weight: 300;
    color: var(--amber);
    opacity: 0.4;
    letter-spacing: 0.05em;
}

.service-body { flex: 1; }
.service-title {
    font-family: var(--ff-display);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--graphite);
}
.service-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 24px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.service-tags li {
    padding: 6px 14px;
    font-size: 12.5px;
    background: var(--cream-2);
    border-radius: 100px;
    color: var(--deep);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ============================================
   PROCESS
   ============================================ */

.process {
    padding: clamp(80px, 12vw, 160px) 0;
    background: var(--cream);
}

.process-head {
    max-width: 900px;
    margin-bottom: 80px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 28px; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(13, 59, 62, 0.2) 10%,
        rgba(13, 59, 62, 0.2) 90%,
        transparent);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: var(--cream);
    border: 1px solid rgba(13, 59, 62, 0.2);
    border-radius: 50%;
    font-family: var(--ff-display);
    font-size: 16px;
    color: var(--deep);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}
.process-step:hover .step-num {
    background: var(--deep);
    color: var(--amber);
    border-color: var(--deep);
    transform: scale(1.08);
}
.step-title {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--graphite);
}
.step-desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--muted);
}

/* ============================================
   CONTACTS
   ============================================ */

.contacts {
    padding: clamp(80px, 12vw, 160px) 0;
    background: var(--deep);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}
.contacts::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--amber) 0%, transparent 60%);
    opacity: 0.12;
    filter: blur(80px);
    pointer-events: none;
}
.contacts::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--walnut-l) 0%, transparent 60%);
    opacity: 0.15;
    filter: blur(80px);
    pointer-events: none;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
    position: relative;
    z-index: 1;
}

.contacts-title {
    color: var(--cream);
    margin-top: 8px;
    margin-bottom: 24px;
}
.contacts-title em { color: var(--amber); }

.contacts-lead {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(250, 247, 242, 0.75);
    margin-bottom: 40px;
    max-width: 440px;
}

.contacts-company {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 165, 116, 0.3);
    max-width: 300px;
}
.contacts-company strong {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--amber);
    letter-spacing: -0.01em;
}
.contacts-company span {
    font-size: 13px;
    color: rgba(250, 247, 242, 0.6);
    letter-spacing: 0.05em;
}
.contacts-site {
    font-family: var(--ff-display);
    font-style: italic;
    color: var(--amber) !important;
    font-size: 14px !important;
    margin-top: 4px;
}

.contacts-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(250, 247, 242, 0.05);
    border: 1px solid rgba(250, 247, 242, 0.1);
    border-radius: 16px;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
}
.contact-card:hover {
    background: rgba(250, 247, 242, 0.09);
    border-color: rgba(212, 165, 116, 0.5);
    transform: translateX(6px);
}
.contact-flag {
    font-size: 28px;
    line-height: 1;
    filter: saturate(0.9);
}
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250, 247, 242, 0.55);
    font-weight: 500;
}
.contact-value {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--cream);
    letter-spacing: -0.01em;
}
.contact-arrow {
    color: var(--amber);
    transition: transform 0.35s ease;
}
.contact-card:hover .contact-arrow {
    transform: translateX(4px);
}

.contact-messengers {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.messenger-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--amber);
    color: var(--deep-dark);
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}
.messenger-btn:hover {
    background: var(--amber-br);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.3);
}
.messenger-btn-ig {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: #fff;
}
.messenger-btn-ig:hover {
    background: linear-gradient(135deg, #9c46d4 0%, #ff2d2d 50%, #ffc055 100%);
    box-shadow: 0 8px 24px rgba(253, 29, 29, 0.35);
}

.contact-map {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-br) 100%);
    border: 1px solid rgba(212, 165, 116, 0.6);
    border-radius: 16px;
    color: var(--deep-dark);
    transition: all 0.35s ease;
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.18);
}
.contact-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 165, 116, 0.35);
}
.contact-map-icon {
    flex-shrink: 0;
    color: var(--deep-dark);
    line-height: 0;
}
.contact-map-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-map-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(36, 27, 22, 0.7);
    font-weight: 600;
}
.contact-map-value {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--deep-dark);
    letter-spacing: -0.01em;
}
.contact-map-arrow {
    color: var(--deep-dark);
    transition: transform 0.35s ease;
}
.contact-map:hover .contact-map-arrow {
    transform: translateX(4px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--deep-dark);
    color: rgba(250, 247, 242, 0.6);
    padding: 32px 0;
    font-size: 13.5px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.footer .logo-mark {
    width: 32px; height: 32px;
    font-size: 13px;
}
.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.footer-legal a {
    color: rgba(250, 247, 242, 0.7);
    transition: color 0.25s ease;
    position: relative;
}
.footer-legal a:hover {
    color: var(--amber);
}
.footer-legal a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 1px;
    background: var(--amber);
    transition: width 0.3s ease;
}
.footer-legal a:hover::after { width: 100%; }
.footer-dot {
    color: rgba(250, 247, 242, 0.3);
    user-select: none;
}
.footer-copy {
    color: rgba(250, 247, 242, 0.45);
    font-size: 13px;
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 32px;
    }
    .process-steps::before { display: none; }
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    /* Индикатор скролла не нужен на touch-устройствах */
    .hero-scroll { display: none; }
    /* Добавляем нижний отступ hero, чтобы ничего не упиралось в край */
    .hero { padding-bottom: 100px; }

    /* Метрики в 3 колонки на планшете, без разделителей */
    .hero-meta {
        display: grid;
        grid-template-columns: repeat(3, auto);
        gap: 28px;
        justify-content: start;
    }
    .meta-divider { display: none; }
    .meta-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0; right: 0;
        width: min(100%, 360px);
        height: 100vh;
        height: 100svh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 80px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu a {
        font-family: var(--ff-display);
        font-size: 28px;
        font-weight: 400;
        letter-spacing: -0.02em;
    }
    .nav-menu .nav-cta {
        align-self: flex-start;
        font-family: var(--ff-body);
        font-size: 15px;
    }

    .hero { padding: 120px 0 60px; }
    .hero-title-line:nth-child(2) { padding-left: 20px; }
    .hero-title-line:nth-child(4) { padding-left: 10px; }

    .hero-actions .btn { flex: 1; justify-content: center; }

    .hero-meta {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .meta-num { font-size: 28px; }

    .process-steps { grid-template-columns: 1fr; gap: 32px; }

    .contact-card { padding: 18px 20px; }
    .contact-value { font-size: 19px; }
    .contact-messengers { flex-direction: column; }
    .contact-map { padding: 18px 20px; }
    .contact-map-value { font-size: 19px; }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
    }
    .footer-legal {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(44px, 13vw, 72px);
    }
    .btn { padding: 14px 22px; font-size: 14px; }
    .service-card { padding: 32px 24px; }

    /* Логотип компактнее, но текст виден */
    .nav-logo { gap: 8px; }
    .logo-mark { width: 34px; height: 34px; font-size: 13px; }
    .logo-text { font-size: 17px; }
}

/* ============================================
   ОТКЛЮЧИТЬ АНИМАЦИИ ПРИ ЖЕЛАНИИ ПОЛЬЗОВАТЕЛЯ
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   REVEAL ON SCROLL (подключается через JS)
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LEGAL / PRIVACY PAGES
   ============================================ */

.legal {
    padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 10vw, 140px);
    background: var(--cream);
    position: relative;
    overflow: hidden;
}
.legal::before {
    content: '';
    position: absolute;
    top: 5%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--amber) 0%, transparent 60%);
    opacity: 0.1;
    filter: blur(80px);
    pointer-events: none;
}

.legal-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--pad);
    position: relative;
    z-index: 1;
}

.legal-head {
    margin-bottom: clamp(40px, 6vw, 72px);
}
.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 20px;
}
.legal-title {
    font-family: var(--ff-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--graphite);
    margin-bottom: 14px;
}
.legal-title em {
    color: var(--walnut);
    font-style: italic;
    font-weight: 500;
}
.legal-lead {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 640px;
}

.legal-section {
    margin-bottom: clamp(32px, 5vw, 56px);
}
.legal-section h2 {
    font-family: var(--ff-display);
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--graphite);
    margin-bottom: 20px;
    line-height: 1.25;
}
.legal-section h3 {
    font-family: var(--ff-display);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--deep);
    margin-top: 24px;
    margin-bottom: 12px;
}
.legal-section p {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--graphite);
    margin-bottom: 16px;
}
.legal-section p strong { color: var(--deep); font-weight: 600; }
.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}
.legal-section ul li {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--graphite);
    padding-left: 24px;
    position: relative;
    margin-bottom: 10px;
}
.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 6px; top: 0.7em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--amber);
}
.legal-section a {
    color: var(--deep);
    text-decoration: underline;
    text-decoration-color: rgba(13, 59, 62, 0.3);
    text-underline-offset: 3px;
    transition: all 0.25s ease;
    word-break: break-word;
}
.legal-section a:hover {
    color: var(--walnut);
    text-decoration-color: var(--walnut);
}

.legal-card {
    background: var(--cream-2);
    border: 1px solid rgba(13, 59, 62, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 16px;
}
.legal-card p {
    margin-bottom: 8px;
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-card-brand {
    font-family: var(--ff-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--deep);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    display: block;
}

.legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 20px;
}
.legal-right {
    background: var(--cream-2);
    border: 1px solid rgba(13, 59, 62, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
}
.legal-right h4 {
    font-family: var(--ff-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--graphite);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.legal-right p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
    margin-bottom: 0;
}

.legal-cta {
    background: var(--deep);
    color: var(--cream);
    border-radius: 20px;
    padding: clamp(28px, 4vw, 40px);
    margin-top: clamp(32px, 5vw, 56px);
    position: relative;
    overflow: hidden;
}
.legal-cta::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(60px);
    pointer-events: none;
}
.legal-cta h2 {
    color: var(--cream);
    margin-bottom: 12px;
    position: relative;
}
.legal-cta p {
    color: rgba(250, 247, 242, 0.8);
    margin-bottom: 20px;
    position: relative;
}
.legal-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}
.legal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 14.5px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.legal-cta-btn-primary {
    background: var(--amber);
    color: var(--deep-dark);
}
.legal-cta-btn-primary:hover {
    background: var(--amber-br);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.3);
}
.legal-cta-btn-ghost {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(250, 247, 242, 0.3);
}
.legal-cta-btn-ghost:hover {
    background: rgba(250, 247, 242, 0.08);
    border-color: rgba(250, 247, 242, 0.6);
}

@media (max-width: 640px) {
    .legal-rights-grid { grid-template-columns: 1fr; }
    .legal-cta-actions { flex-direction: column; }
    .legal-cta-btn { justify-content: center; }
}
