/* ===== Переменные ===== */
:root {
    --cream: #EDE6DA;
    --paper: #F5EFE5;
    --paper-dark: #E2D9C8;
    --ink: #0E0E0E;
    --burgundy: #6B1D2A;
    --burgundy-dark: #4A0F17;
    --burgundy-light: #8A2A3A;
    --muted: #7A7066;
    --line: rgba(14, 14, 14, 0.14);
    --line-light: rgba(237, 230, 218, 0.18);
    
    --font-display: 'Fraunces', 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Сброс ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container { width: min(1360px, 92%); margin-inline: auto; }

/* ===== Утилиты ===== */
.label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--burgundy);
}

.label--light { color: rgba(237, 230, 218, 0.6); }

/* ===== Типографика ===== */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
}

em {
    font-style: italic;
    color: var(--burgundy);
    font-weight: 400;
}

/* ===== Шапка ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(237, 230, 218, 0.85);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.logo span { color: var(--burgundy); }

.header__center {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.header__phone {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}
.header__phone:hover { color: var(--burgundy); }

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 26px;
}
.burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
    width: clamp(420px, 46vw, 760px);
    opacity: 0.55; /* Увеличили с 0.16 до 0.55, чтобы было видно детали */
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero__bg svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Анимация выполняется через requestAnimationFrame в script.js */
.scales-beam,
.scales-pan-left,
.scales-pan-right {
    will-change: transform;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

.hero__top {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.hero__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.hero__title {
    font-size: clamp(3rem, 9vw, 8rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    font-weight: 400;
    padding: 1rem 0;
}

.hero__line {
    display: block;
    overflow: hidden;
}
.hero__line > span {
    display: block;
    transform: translateY(105%);
    animation: lineReveal 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.hero__line:nth-child(1) > span { animation-delay: 0.1s; }
.hero__line:nth-child(2) > span { animation-delay: 0.25s; }
.hero__line:nth-child(3) > span { animation-delay: 0.4s; }

.hero__line--accent > span {
    color: var(--burgundy);
    font-style: italic;
    font-weight: 500;
}

@keyframes lineReveal {
    to { transform: translateY(0); }
}

.hero__bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: end;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.hero__desc {
    max-width: 520px;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 2px solid var(--ink);
    transition: var(--transition);
    white-space: nowrap;
}
.hero__cta:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
    padding-right: 0.5rem;
}
.hero__cta-arrow {
    font-size: 1.3rem;
    transition: transform var(--transition);
}
.hero__cta:hover .hero__cta-arrow {
    transform: translate(3px, -3px);
}

/* ===== MARQUEE ===== */
.marquee {
    background: var(--ink);
    color: var(--cream);
    overflow: hidden;
    padding: 1.5rem 0;
    white-space: nowrap;
    border-top: 1px solid var(--ink);
}

.marquee__track {
    display: inline-flex;
    gap: 3rem;
    animation: marquee 50s linear infinite;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.marquee__track span { white-space: nowrap; }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== NUMBERS ===== */
.numbers {
    padding: 6rem 0;
    border-bottom: 1px solid var(--line);
}

.numbers__head {
    margin-bottom: 3rem;
}

.numbers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.number-item {
    padding: 2.5rem 2rem 0 0;
    border-right: 1px solid var(--line);
}
.number-item:last-child { border-right: none; }
.number-item:not(:first-child) { padding-left: 2rem; }

.number-item__value {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
}
.number-item__value small {
    font-size: 0.35em;
    color: var(--burgundy);
    margin-left: 0.15em;
    font-weight: 400;
}

.number-item__label {
    margin-top: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* ===== SERVICES ===== */
.services {
    padding: 8rem 0;
}

.services__head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 4rem;
}

.services__title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.services__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.service {
    display: grid;
    grid-template-columns: 80px 1.5fr 2fr 60px;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--line);
    transition: var(--transition);
    position: relative;
}

.service:hover {
    padding-left: 1.5rem;
    background: var(--paper);
}

.service__num {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.service__name {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    transition: color var(--transition);
}
.service:hover .service__name { color: var(--burgundy); }

.service__desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 500px;
}

.service__arrow {
    font-size: 1.4rem;
    color: var(--muted);
    transition: var(--transition);
    text-align: right;
}
.service:hover .service__arrow {
    color: var(--burgundy);
    transform: translate(4px, -4px);
}

/* ===== QUOTE ===== */
.quote {
    padding: 8rem 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.quote .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quote__text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 1100px;
    color: var(--ink);
}

.quote__text em {
    color: var(--burgundy);
    font-weight: 500;
}

.quote__author {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
}

/* ===== PROCESS ===== */
.process {
    padding: 8rem 0;
}

.process__head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 4rem;
}

.process__title {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.process__list {
    list-style: none;
    border-top: 1px solid var(--line);
}

.process__item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
    padding: 3rem 0;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.process__item.visible {
    opacity: 1;
    transform: translateY(0);
}
.process__item:nth-child(1) { transition-delay: 0s; }
.process__item:nth-child(2) { transition-delay: 0.1s; }
.process__item:nth-child(3) { transition-delay: 0.2s; }
.process__item:nth-child(4) { transition-delay: 0.3s; }

.process__numeral {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
    color: var(--burgundy);
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-style: italic;
}

.process__content h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--ink);
}

.process__content p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 600px;
}

/* ===== CONTACT ===== */
.contact {
    padding: 8rem 0;
    background: var(--burgundy);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: 'L·ID';
    position: absolute;
    bottom: -20%;
    right: -4%;
    font-family: var(--font-display);
    font-size: clamp(20rem, 40vw, 45rem);
    font-weight: 300;
    line-height: 0.8;
    color: var(--cream);
    opacity: 0.05;
    letter-spacing: -0.08em;
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 1.5rem 0 3rem;
    color: var(--cream);
}
.contact__title em {
    color: rgba(237, 230, 218, 0.7);
    font-style: italic;
}

.contact__phone {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--cream);
    margin-bottom: 4rem;
    transition: color var(--transition);
    border-bottom: 1px solid var(--line-light);
    padding-bottom: 3rem;
}
.contact__phone:hover {
    color: #fff;
}

.contact__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line-light);
    margin-bottom: 2rem;
}

.contact__meta-block { display: flex; flex-direction: column; gap: 0.5rem; }

.contact__meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(237, 230, 218, 0.5);
}

.contact__meta-value {
    font-size: 1rem;
    color: var(--cream);
    font-weight: 500;
}

.contact__messengers {
    display: flex;
    gap: 1.5rem;
}

.contact__messengers a {
    color: var(--cream);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    padding-bottom: 2px;
}
.contact__messengers a:hover {
    border-color: var(--cream);
}

.contact__note {
    font-size: 0.85rem;
    color: rgba(237, 230, 218, 0.6);
    max-width: 600px;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--ink);
    color: var(--cream);
    padding: 2rem 0;
    font-size: 0.8rem;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer__brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}
.footer__brand span { color: var(--burgundy-light); }

.footer__mid {
    color: rgba(237, 230, 218, 0.5);
    text-align: center;
}

.footer__links a {
    color: rgba(237, 230, 218, 0.6);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.footer__links a:hover {
    color: var(--cream);
    border-color: var(--cream);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 95%);
    background: var(--ink);
    color: var(--cream);
    padding: 1.2rem 1.8rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 3000;
}
.cookie-banner.show { display: flex; }
.cookie-banner p {
    font-size: 0.8rem;
    color: rgba(237, 230, 218, 0.8);
    margin: 0;
}
.cookie-banner a {
    color: var(--cream);
    text-decoration: underline;
}
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-banner__btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: var(--transition);
}
.cookie-banner__btn--ghost {
    color: rgba(237, 230, 218, 0.7);
    border: 1px solid rgba(237, 230, 218, 0.2);
}
.cookie-banner__btn--ghost:hover {
    color: var(--cream);
    border-color: var(--cream);
}
.cookie-banner__btn--primary {
    background: var(--burgundy-light);
    color: var(--cream);
}
.cookie-banner__btn--primary:hover {
    background: var(--burgundy);
}

/* ===== Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
    .hero__bg { width: 76vw; right: -16%; opacity: 0.12; }
    .hero__bottom { grid-template-columns: 1fr; gap: 2rem; }
    
    .numbers__grid { grid-template-columns: repeat(2, 1fr); }
    .number-item { padding: 2rem 1.5rem 0 0; border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
    .number-item:nth-child(2) { border-right: none; }
    .number-item:not(:first-child) { padding-left: 1.5rem; }
    
    .services__head, .process__head { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
    
    .service { grid-template-columns: 60px 1fr 40px; gap: 1.5rem; padding: 2rem 0; }
    .service__desc { grid-column: 2 / 4; padding-top: 0.5rem; }
    
    .process__item { grid-template-columns: 120px 1fr; gap: 2rem; padding: 2rem 0; }
    
    .contact__meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header { padding: 1rem 0; }
    .header__center, .header__phone { display: none; }
    
    .burger { display: flex; z-index: 1001; }
    .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger.active span:nth-child(2) { transform: rotate(-45deg) translate(5px, -5px); }
    
    .header__inner { justify-content: space-between; }
    
    .hero { padding: 7rem 0 3rem; min-height: auto; }
    .hero__bg { display: none; }
    .hero__title { font-size: clamp(2.5rem, 12vw, 4rem); }
    .hero__top { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
    .hero__desc { font-size: 0.95rem; }
    
    .marquee { padding: 1rem 0; }
    .marquee__track { font-size: 1.1rem; gap: 2rem; }
    
    .numbers { padding: 4rem 0; }
    .numbers__grid { grid-template-columns: 1fr; }
    .number-item { padding: 1.5rem 0; border-right: none; }
    .number-item:not(:first-child) { padding-left: 0; }
    .number-item__value { font-size: 3rem; }
    
    .services, .process, .contact { padding: 4rem 0; }
    
    .service { grid-template-columns: 40px 1fr 30px; gap: 1rem; padding: 1.5rem 0; }
    .service__desc { display: none; }
    
    .quote { padding: 4rem 0; }
    .quote__text { font-size: 1.5rem; }
    
    .process__item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
    .process__numeral { font-size: 2.5rem; }
    
    .contact__title { font-size: 2.2rem; }
    .contact__phone { font-size: 2rem; padding-bottom: 2rem; margin-bottom: 2rem; }
    .contact__meta { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2rem; margin-bottom: 2rem; }
    
    .footer__inner { flex-direction: column; text-align: center; gap: 1rem; }
    
    .cookie-banner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem; }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__btn { flex: 1; text-align: center; }
}