/* =========================================================
   Ногтевая студия «Ева» — курсы маникюра
   Визуальная тема: «Фарфор и шампань» (нежный премиум)
   Настроение по референсу Milou Jewelry:
   тонкая дидон-типографика, волосяные линии, искра ✦,
   арки и круги, много воздуха, благородное золото.
   ========================================================= */

:root {
    /* --- Фоны: тёплые пастельные --- */
    --porcelain:   #FCFAF7;   /* фарфор — основной фон */
    --shell:       #F6F0E9;   /* раковина — тёплая полоса */
    --blush:       #F3E7E2;   /* пудра — розовая полоса */
    --blush-deep:  #EBD9D2;
    --mocha:       #3E362F;   /* тёмный акцент (форма, подвал) */
    --mocha-soft:  #4B423A;

    /* --- Золото --- */
    --gold:        #B79B6E;
    --gold-light:  #D8C4A0;
    --gold-deep:   #8E7448;

    /* --- Текст --- */
    --ink:         #2E2723;
    --ink-soft:    #7A6E64;
    --ink-faint:   #A79B90;
    --on-dark:     #F2EBE3;

    /* --- Линии и тени --- */
    --line:        rgba(46, 39, 35, 0.13);
    --line-soft:   rgba(46, 39, 35, 0.07);
    --line-gold:   rgba(183, 155, 110, 0.42);
    --shadow-soft: 0 24px 60px -32px rgba(62, 54, 47, 0.28);
    --shadow-lift: 0 34px 70px -30px rgba(62, 54, 47, 0.34);

    /* --- Типографика --- */
    --display: "Lora", Georgia, serif;
    --mark:    "Lora", Georgia, serif;
    --body:    "Onest", "Segoe UI", sans-serif;

    /* --- Ритм --- */
    --gutter: clamp(20px, 5vw, 48px);
    --pad-y:  clamp(76px, 11vw, 148px);

    /* --- Искра ✦ --- */
    --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 6.6 17.4 12 24 12 17.4 12 12 17.4 12 24 12 17.4 6.6 12 0 12 6.6 12 12 6.6 12 0Z' fill='%23B79B6E'/%3E%3C/svg%3E");
    --spark-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12 6.6 17.4 12 24 12 17.4 12 12 17.4 12 24 12 17.4 6.6 12 0 12 6.6 12 12 6.6 12 0Z' fill='%23D8C4A0'/%3E%3C/svg%3E");
}

/* ===== БАЗА ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    counter-reset: sec;
    font-family: var(--body);
    font-weight: 300;
    font-size: clamp(17px, 1.25vw, 19px);
    line-height: 1.75;
    color: var(--ink);
    background: var(--porcelain);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Зерно — едва заметная фактура бумаги поверх всей страницы */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: .038;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold-light); color: var(--ink); }

:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 4px;
}

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

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ===== КНОПКИ ===== */
.btn {
    --btn-bg: var(--mocha);
    --btn-fg: var(--on-dark);
    --btn-bd: var(--mocha);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 19px 40px;
    border: 1px solid var(--btn-bd);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--body);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .17em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: color .5s ease, border-color .5s ease, transform .5s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    z-index: -1;
}

.btn::after {
    content: "→";
    font-size: 15px;
    letter-spacing: 0;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.btn:hover::before { transform: scaleX(1); }
.btn:hover::after  { transform: translateX(6px); }
.btn:hover { color: var(--porcelain); border-color: var(--gold); }
.btn:active { transform: translateY(1px); }

/* текст кнопки поверх заливки */
.btn { isolation: isolate; }

.btn-outline {
    --btn-bg: transparent;
    --btn-fg: var(--gold-deep);
    --btn-bd: var(--line-gold);
}

/* ===== СЕКЦИИ ===== */
.section {
    counter-increment: sec;
    position: relative;
    padding: var(--pad-y) 0;
    background: var(--porcelain);
    scroll-margin-top: 40px;
}

.section-pearl { background: var(--shell); }
.section-white { background: var(--blush); }

/* Тонкая золотая нить между секциями */
.section + .section::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: min(1180px, 100% - var(--gutter) * 2);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--line-gold) 22%, var(--line-gold) 78%, transparent);
}

/* ===== ЗАГОЛОВОК СЕКЦИИ =====
   Порядок в вёрстке: текст + .title-accent.
   column-reverse ставит наверх номер (::after), затем надпись, затем крупный заголовок. */
.section-title {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 18px;
    max-width: 20ch;
    margin: 0 auto clamp(52px, 7vw, 88px);
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.95rem, 3.5vw, 3rem);
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.section-title::after {
    content: counter(sec, decimal-leading-zero);
    font-family: var(--mark);
    font-size: 14px;
    letter-spacing: .2em;
    color: var(--gold);
    opacity: .75;
}

.title-accent {
    position: relative;
    display: inline-block;
    padding: 0 34px;
    font-family: var(--body);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.title-accent::before,
.title-accent::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 22px;
    height: 1px;
    background: var(--line-gold);
}
.title-accent::before { left: 0; }
.title-accent::after  { right: 0; }

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: clamp(64px, 9vw, 104px) 0 clamp(80px, 10vw, 128px);
    background:
        radial-gradient(58% 62% at 88% 8%,  rgba(243, 231, 226, .95) 0%, rgba(243, 231, 226, 0) 68%),
        radial-gradient(52% 55% at 4% 92%,  rgba(216, 196, 160, .34) 0%, rgba(216, 196, 160, 0) 70%),
        linear-gradient(175deg, #FEFCFA 0%, #FAF5EF 52%, #F5EDE6 100%);
    overflow: hidden;
}

/* Огромная тонкая окружность на фоне — «ювелирный» след */
.hero::before {
    content: "";
    position: absolute;
    top: -18vw; right: -14vw;
    width: 54vw; height: 54vw;
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    opacity: .5;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 8%; left: -6vw;
    width: 22vw; height: 22vw;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.hero-badge::before {
    content: "";
    width: 11px; height: 11px;
    background: var(--spark) center / contain no-repeat;
    animation: twinkle 5s ease-in-out infinite;
}

.hero-badge::after {
    content: "";
    width: clamp(40px, 7vw, 96px);
    height: 1px;
    background: linear-gradient(90deg, var(--line-gold), transparent);
}

.hero-title {
    margin: 26px 0 34px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.15rem, 3.9vw, 3.45rem);
    line-height: 1.14;
    letter-spacing: -0.022em;
    color: var(--ink);
    text-wrap: balance;
}

.hero-title .accent {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-deep);
}

.hero-points {
    list-style: none;
    max-width: 30rem;
    margin: 0 0 40px;
    border-top: 1px solid var(--line-soft);
}

.hero-points li {
    position: relative;
    padding: 13px 0 13px 30px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.02rem;
    font-weight: 300;
    letter-spacing: 0;
    color: var(--ink-soft);
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 2px; top: 21px;
    width: 9px; height: 9px;
    background: var(--spark) center / contain no-repeat;
    opacity: .85;
}

/* --- Фото в арке --- */
.hero-photo { position: relative; }

.hero-photo-frame {
    position: relative;
    display: grid;
    aspect-ratio: 3 / 3.9;
    border-radius: 999px 999px 6px 6px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* золотая нить-контур со смещением */
.hero-photo::before {
    content: "";
    position: absolute;
    inset: -20px;
    border: 1px solid var(--line-gold);
    border-radius: 999px 999px 8px 8px;
    pointer-events: none;
}

.hero-photo-frame img,
.trust-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-frame img { object-position: 42% 20%; }
.trust-photo img      { object-position: center 22%; }

.hero-photo-placeholder,
.trust-photo-placeholder,
.trust-certificate,
.gallery-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    background:
        radial-gradient(120% 80% at 50% 0%, #FBF3EF 0%, transparent 60%),
        linear-gradient(160deg, var(--blush) 0%, var(--blush-deep) 100%);
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-align: center;
}

/* ===== КАРТОЧКИ ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: clamp(2px, 0.4vw, 6px);
}

.card {
    position: relative;
    padding: clamp(34px, 3.4vw, 48px) clamp(26px, 2.6vw, 38px) clamp(38px, 3.6vw, 52px);
    background: rgba(255, 255, 255, 0);
    border-top: 1px solid var(--line);
    transition: background .6s ease, transform .6s cubic-bezier(.4, 0, .2, 1);
}

/* растущая золотая линия сверху */
.card::before {
    content: "";
    position: absolute;
    top: -1px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width .7s cubic-bezier(.4, 0, .2, 1);
}

.card:hover::before { width: 100%; }
.card:hover {
    background: rgba(255, 255, 255, .55);
    transform: translateY(-4px);
}

.card h3 {
    margin-bottom: 14px;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.22rem, 1.55vw, 1.45rem);
    line-height: 1.32;
    letter-spacing: -0.012em;
    color: var(--ink);
}

.card p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--ink-soft);
}

/* Порядковые номера карточек — как ценники в референсе */
#komu .cards, #polza .cards { counter-reset: card; }
#komu .card, #polza .card { counter-increment: card; }

#komu .card::after, #polza .card::after {
    content: counter(card, decimal-leading-zero);
    position: absolute;
    top: calc(clamp(34px, 3.4vw, 48px) - 4px);
    right: clamp(26px, 2.6vw, 38px);
    font-family: var(--mark);
    font-size: 13.5px;
    letter-spacing: .12em;
    color: var(--gold);
    opacity: .55;
    transition: opacity .6s ease;
}

#komu .card:hover::after, #polza .card:hover::after { opacity: 1; }

#komu .card h3, #polza .card h3 { padding-right: 42px; }

/* ===== ДОВЕРИЕ ===== */
.trust-block {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: clamp(36px, 5vw, 80px);
    align-items: start;
}

.trust-photo {
    position: relative;
    display: grid;
    /* квадрат вместо арки — так спокойнее и строже */
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.trust-text {
    padding-top: 8px;
    font-size: clamp(1.05rem, 1.3vw, 1.15rem);
    font-weight: 300;
    line-height: 1.85;
    color: var(--ink-soft);
}

.trust-text p { margin-bottom: 20px; }

.trust-text p:first-child {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.35rem, 2vw, 1.78rem);
    line-height: 1.45;
    color: var(--ink);
}

.trust-text strong {
    font-weight: 500;
    color: var(--gold-deep);
}

.trust-certificate {
    height: auto;
    max-width: 360px;
    margin-top: 34px;
    padding: 14px;
    border: 1px solid var(--line-gold);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.trust-certificate img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

/* --- Галерея работ: арки со ступенчатым смещением --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.8vw, 26px);
    margin-top: clamp(56px, 7vw, 96px);
}

.gallery-placeholder,
.gallery-item {
    height: auto;
    margin: 0;
    /* квадрат — под пропорции реальных фото, чтобы не срезать ногти по бокам */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    /* пологая арка вместо полукруга: меньше съедает углы */
    border-radius: 50% 50% 5px 5px / 18% 18% 5px 5px;
    box-shadow: var(--shadow-soft);
    transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s cubic-bezier(.4, 0, .2, 1);
}

.gallery-item:hover img { transform: scale(1.06); }

/* Каждое фото кадрируем отдельно — чтобы ногти были в центре арки */
.gallery-item:nth-child(1) img { object-position: 38% 58%; }
.gallery-item:nth-child(2) img { object-position: center 42%; }
.gallery-item:nth-child(3) img { object-position: 52% 48%; }
.gallery-item:nth-child(4) img { object-position: 46% 50%; }

.gallery-placeholder:nth-child(even),
.gallery-item:nth-child(even) { transform: translateY(clamp(18px, 3vw, 40px)); }

.gallery-placeholder:hover,
.gallery-item:hover { transform: translateY(-6px); }

.gallery-placeholder:nth-child(even):hover,
.gallery-item:nth-child(even):hover { transform: translateY(clamp(10px, 2.4vw, 32px)); }

/* ===== ЧЕК-ЛИСТ ===== */
.checklist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0 clamp(32px, 5vw, 72px);
    max-width: 940px;
    margin: 0 auto;
}

.checklist li {
    position: relative;
    padding: 20px 0 20px 38px;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.12rem, 1.45vw, 1.3rem);
    line-height: 1.45;
    color: var(--ink);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 4px; top: 50%;
    width: 12px; height: 12px;
    margin-top: -6px;
    background: var(--spark) center / contain no-repeat;
    opacity: .8;
    transition: transform .6s ease;
}

.checklist li:hover::before { transform: rotate(90deg) scale(1.15); }

.note {
    max-width: 640px;
    margin: clamp(48px, 6vw, 72px) auto 0;
    padding-top: 34px;
    border-top: 1px solid var(--line-gold);
    font-family: var(--display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.15rem, 1.75vw, 1.5rem);
    line-height: 1.6;
    text-align: center;
    color: var(--gold-deep);
}

/* ===== ОТЗЫВЫ ===== */
.card.review { padding-top: clamp(46px, 4.4vw, 62px); }

.card.review::after {
    content: "\201C";
    position: absolute;
    top: 6px; right: 20px;
    font-family: var(--display);
    font-size: 8rem;
    line-height: 1;
    color: var(--gold-light);
    opacity: .5;
    pointer-events: none;
}

.stars {
    display: block;
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: .42em;
    color: var(--gold);
}

.card.review h3 {
    margin-bottom: 18px;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-family: var(--body);
    font-weight: 400;
    color: var(--gold-deep);
}

.card.review p {
    font-size: 1rem;
    line-height: 1.85;
}

/* ===== ЦЕНЫ ===== */
.price-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(18px, 2.4vw, 34px);
    max-width: 940px;
    margin: 0 auto;
    align-items: stretch;
}

.card.price {
    display: flex;
    flex-direction: column;
    padding: clamp(38px, 3.6vw, 54px) clamp(28px, 3vw, 44px);
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--line);
    border-radius: 3px;
}

.card.price:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .92); }

.card.price h3 {
    min-height: 2.5em;
    font-size: clamp(1.28rem, 1.7vw, 1.55rem);
}

.card p.price-note {
    margin: 4px 0 30px;
    font-size: .98rem;
    line-height: 2;
    color: var(--ink-soft);
}

.price-value {
    margin-top: auto;
    padding: 22px 0 28px;
    border-top: 1px solid var(--line-gold);
    font-family: var(--display) !important;
    font-weight: 500;
    font-size: clamp(2.2rem, 3.6vw, 2.95rem) !important;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink) !important;
}

.card.price .btn { align-self: flex-start; }

.card.price-featured {
    position: relative;
    background: linear-gradient(165deg, #FBF2ED 0%, var(--blush) 100%);
    border-color: var(--line-gold);
    box-shadow: var(--shadow-soft);
}

.card.price-featured::after {
    content: "";
    position: absolute;
    top: 22px; right: 24px;
    width: 15px; height: 15px;
    background: var(--spark) center / contain no-repeat;
    animation: twinkle 5s ease-in-out infinite;
}

.card.price-featured .price-value { color: var(--gold-deep) !important; }

.installment {
    max-width: 620px;
    margin: clamp(48px, 6vw, 72px) auto 30px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.18rem, 1.8vw, 1.52rem);
    line-height: 1.55;
    text-align: center;
    color: var(--ink);
}

#ceny .container > .btn-outline {
    display: inline-flex;
    margin: 0 auto;
}

#ceny .container { text-align: center; }
#ceny .cards, #ceny .card { text-align: left; }

/* ===== БОНУС ===== */
.bonus-block {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(46px, 5.5vw, 76px) clamp(30px, 5vw, 72px);
    background: linear-gradient(165deg, #FDF8F5 0%, var(--blush) 100%);
    border: 1px solid var(--line-gold);
    border-radius: 3px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.bonus-block::before,
.bonus-block::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    background: var(--spark) center / contain no-repeat;
    animation: twinkle 6s ease-in-out infinite;
}
.bonus-block::before { top: 20px; left: 22px; }
.bonus-block::after  { bottom: 20px; right: 22px; animation-delay: 2s; }

.bonus-block p {
    font-weight: 300;
    color: var(--ink-soft);
}

.bonus-block p:first-child {
    margin-bottom: 24px;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.2vw, 1.95rem);
    line-height: 1.42;
    color: var(--ink);
}

/* ===== FAQ ===== */
.faq {
    max-width: 860px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(24px, 2.6vw, 32px) 54px clamp(24px, 2.6vw, 32px) 0;
    list-style: none;
    cursor: pointer;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.12rem, 1.5vw, 1.35rem);
    line-height: 1.45;
    color: var(--ink);
    transition: color .4s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-deep); }

/* знак «плюс» из двух линий */
.faq-item summary::before,
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 6px;
    background: var(--gold);
    transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .45s ease;
}
.faq-item summary::before { top: 50%; width: 15px; height: 1px; margin-top: -.5px; }
.faq-item summary::after  { top: 50%; right: 13px; width: 1px; height: 15px; margin-top: -7.5px; }

.faq-item[open] summary { color: var(--gold-deep); }
.faq-item[open] summary::after { transform: rotate(90deg); opacity: 0; }

.faq-item p {
    max-width: 62ch;
    padding: 0 54px 30px 0;
    font-size: 1.02rem;
    font-weight: 300;
    color: var(--ink-soft);
    animation: unfold .5s ease both;
}

/* ===== ФОРМА — тёмный благородный акцент ===== */
.section-lux {
    background:
        radial-gradient(60% 70% at 82% 6%, rgba(183, 155, 110, .17) 0%, transparent 62%),
        radial-gradient(50% 60% at 8% 96%, rgba(183, 155, 110, .11) 0%, transparent 66%),
        linear-gradient(168deg, var(--mocha-soft) 0%, var(--mocha) 100%);
    color: var(--on-dark);
}

.section-lux::before { display: none; }

.section-lux .section-title { color: var(--on-dark); }
.section-lux .section-title::after { color: var(--gold-light); }
.section-lux .title-accent { color: var(--gold-light); }
.section-lux .title-accent::before,
.section-lux .title-accent::after { background: rgba(216, 196, 160, .45); }

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

.form label {
    display: block;
    margin-bottom: 30px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.form input,
.form textarea {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px 2px;
    border: none;
    border-bottom: 1px solid rgba(216, 196, 160, .34);
    background: transparent;
    font-family: var(--body);
    font-weight: 300;
    font-size: 1.15rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--on-dark);
    transition: border-color .45s ease;
}

.form textarea { resize: vertical; line-height: 1.55; }

.form input::placeholder,
.form textarea::placeholder {
    color: rgba(242, 235, 227, .34);
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-bottom-color: var(--gold-light);
}

/* Поле просит дописать номер — мягкая подсветка, без красной тревоги */
.form input.pole-oshibka,
.form input.pole-oshibka:focus {
    border-bottom-color: #E8B4A8;
    background: rgba(232, 180, 168, .06);
}

.section-lux .btn {
    --btn-bg: var(--gold);
    --btn-fg: var(--mocha);
    --btn-bd: var(--gold);
    margin-top: 8px;
}
.section-lux .btn::before { background: var(--on-dark); }
.section-lux .btn:hover { color: var(--mocha); border-color: var(--on-dark); }

/* Строка ответа формы: «отправляю», «спасибо», «не получилось» */
.form-status {
    margin-top: 20px;
    min-height: 1.6em;
    font-size: 14.5px;
    line-height: 1.6;
    letter-spacing: .01em;
    color: var(--on-dark);
}

.form-status.ok  { color: var(--gold-light); }
.form-status.err { color: #E8B4A8; }

.policy {
    margin-top: 26px;
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: .01em;
    color: rgba(242, 235, 227, .42);
}

/* ===== КОНТАКТЫ ===== */
.contacts {
    max-width: 760px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.contacts p {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.05rem, 1.35vw, 1.22rem);
}

.contacts strong {
    flex: 0 0 auto;
    min-width: 8.5em;
    font-family: var(--body);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.contacts a {
    position: relative;
    color: var(--gold-deep);
    text-decoration: none;
    transition: color .4s ease;
}

.contacts a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -3px;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.contacts a:hover::after { transform: scaleX(1); transform-origin: left; }
.contacts a:hover { color: var(--ink); }

/* --- Кнопки мессенджеров --- */
.chats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contacts .chat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px 9px 10px;
    border: 1px solid var(--line-gold);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    font-family: var(--body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .01em;
    color: var(--ink);
    transition: background .45s ease, border-color .45s ease, transform .45s ease;
}

/* у кнопок своя подача — подчёркивание из .contacts a не нужно */
.contacts .chat::after { display: none; }

.contacts .chat:hover {
    background: var(--blush);
    border-color: var(--gold);
    color: var(--ink);
    transform: translateY(-2px);
}

.chat-ico {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-family: var(--body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.chat-ico svg { width: 15px; height: 15px; fill: currentColor; }

.chat-ico--tg  { background: linear-gradient(180deg, #37BBFE 0%, #007DBB 100%); }
/* официальный логотип MAX — рисуется своим фоном, кружок не нужен */
.chat-ico--max { background: none; }
.chat-ico--max svg { width: 26px; height: 26px; }

.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 4vw, 52px);
    margin-top: clamp(46px, 6vw, 70px);
}

.socials a {
    position: relative;
    padding-left: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color .4s ease;
}

.socials a::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 9px; height: 9px;
    margin-top: -4.5px;
    background: var(--spark) center / contain no-repeat;
    opacity: 0;
    transform: scale(.4) rotate(-90deg);
    transition: opacity .45s ease, transform .45s ease;
}

.socials a:hover { color: var(--gold-deep); }
.socials a:hover::before { opacity: 1; transform: scale(1) rotate(0deg); }

/* ===== ПОДВАЛ ===== */
.footer {
    padding: 46px 0;
    background: var(--mocha);
    color: rgba(242, 235, 227, .5);
    text-align: center;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ===== АНИМАЦИИ ===== */
@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes unfold {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes twinkle {
    0%, 100% { opacity: .35; transform: scale(.82) rotate(0deg); }
    50%      { opacity: 1;   transform: scale(1) rotate(45deg); }
}

/* Появление при скролле — со ступенчатой задержкой у детей */
.reveal { opacity: 0; }

.reveal.visible {
    opacity: 1;
    transition: opacity .1s;
}

.reveal.visible > * { animation: rise .95s cubic-bezier(.2, .7, .3, 1) both; }
.reveal.visible > *:nth-child(1) { animation-delay: .00s; }
.reveal.visible > *:nth-child(2) { animation-delay: .09s; }
.reveal.visible > *:nth-child(3) { animation-delay: .18s; }
.reveal.visible > *:nth-child(4) { animation-delay: .27s; }
.reveal.visible > *:nth-child(5) { animation-delay: .36s; }
.reveal.visible > *:nth-child(6) { animation-delay: .45s; }
.reveal.visible > *:nth-child(7) { animation-delay: .54s; }

/* Загрузка первого экрана */
.hero-badge,
.hero-title,
.hero-points li,
.hero-text .btn,
.hero-photo { animation: rise 1.1s cubic-bezier(.2, .7, .3, 1) both; }

.hero-badge       { animation-delay: .05s; }
.hero-title       { animation-delay: .16s; }
.hero-points li:nth-child(1) { animation-delay: .30s; }
.hero-points li:nth-child(2) { animation-delay: .38s; }
.hero-points li:nth-child(3) { animation-delay: .46s; }
.hero-points li:nth-child(4) { animation-delay: .54s; }
.hero-text .btn   { animation-delay: .66s; }
.hero-photo       { animation-delay: .26s; }

/* ===== АДАПТИВ ===== */
@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: 1fr; gap: 56px; }
    .hero-photo { width: 100%; max-width: 380px; justify-self: center; }
    .hero-points { max-width: none; }
    .trust-block { grid-template-columns: 1fr; }
    .trust-photo { max-width: 340px; }
    .trust-certificate { max-width: none; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .section-title { max-width: 16ch; }
    /* надпись переносится на две строки — боковые чёрточки убираем */
    .title-accent { padding: 0; }
    .title-accent::before,
    .title-accent::after { display: none; }
    .btn { width: 100%; justify-content: center; padding: 18px 26px; }
    .card.price .btn { align-self: stretch; }
    .card.price h3 { min-height: 0; }
    .gallery-placeholder:nth-child(even) { transform: none; }
    .contacts strong { min-width: 0; flex-basis: 100%; }
    .hero::before { width: 92vw; height: 92vw; top: -30vw; right: -34vw; }
}

/* ===== ДОСТУПНОСТЬ ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; }
}

@media print {
    body::after { display: none; }
    .section-lux, .footer { background: #fff; color: #000; }
}
