/* ============ Палитра, типографика, флюидные размеры ============ */
:root {
    --header-h: 96px;
    /* Мягкий фон-градиент: розовый свет + лёгкое золото */
    --bg-gradient-soft: radial-gradient(
            120% 120% at 100% 0%,
            rgba(230, 183, 210, 0.28) 0%,
            rgba(255, 255, 255, 0.92) 40%,
            #ffffff 70%
        ),
        linear-gradient(
            180deg,
            rgba(200, 167, 92, 0.12) 0%,
            rgba(255, 255, 255, 0) 100%
        );

    /* Бренд */
    --color-gold: #c8a75c;
    --color-rose: #e6b7d2;
    --color-pink-glow: #f7d6eb;
    --color-white: #ffffff;
    --color-black: #1a1a1a;

    /* Доп. оттенки */
    --color-gold-dark: #a9863e;
    --color-rose-dark: #c18aa8;
    --color-bg-light: #faf7f4;
    --color-gray: #777777;

    /* UI */
    --color-btn-primary: var(--color-rose);
    --color-btn-primary-hover: var(--color-rose-dark);
    --color-btn-secondary: var(--color-gold);
    --color-btn-secondary-hover: var(--color-gold-dark);
    --color-header-bg: var(--color-white);
    --color-navbar-text: var(--color-black);
    --color-form-bg: var(--color-bg-light);
    --color-form-border: var(--color-rose);
    --color-form-focus: var(--color-gold);

    /* Эффекты */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 3px 20px #c8a75c;
    --shadow-gold-sm: 0 0 5px #c8a75c;
    --shadow-pink: 0 3px 20px #e6b7d2;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
    --radius-circle: 30%;

    /* Флюидная типографика */
    --fs-base: clamp(14px, 0.9rem + 0.2vw, 18px);
    --fs-h1: clamp(28px, 1.6rem + 2.2vw, 56px);
    --fs-h2: clamp(24px, 1.4rem + 1.6vw, 44px);
    --fs-h3: clamp(20px, 1.2rem + 1vw, 34px);
    --fs-h4: clamp(18px, 1.05rem + 0.6vw, 26px);
    --fs-p: calc(var(--fs-base) * 1);
    --fs-small: calc(var(--fs-base) * 0.9);
    --fs-lead: calc(var(--fs-base) * 1.15);

    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-relaxed: 1.7;

    /* Контейнер */
    --container: 1200px;
    --gutter: 2rem;
}

/* База */
* {
    box-sizing: border-box;
}
html,
body {
    scroll-behavior: smooth;
    max-width: 100vw;
    /* overflow-x: hidden; */
}

body {
    margin: 0;
    color: var(--color-black);
    font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
        sans-serif;
    font-size: var(--fs-p);
    line-height: var(--lh-normal);

    /* фон по умолчанию */
    background-color: #fff;
    background-image: url("../images/gallery/bg-img.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;

    /* плавная смена */
    transition: background-image 0.35s ease, background-color 0.35s ease;
    position: relative; /* нужен для слоя поверх */
    z-index: 0;
}
/* второй фон при скролле */
body.scrolled-bg {
    background-color: #faf7f4;
    background-image: url("../images/gallery/bottom-bg.png");
    background-position: bottom;
    background-size: cover;
    background-attachment: fixed;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        rgba(230, 183, 210, 0.4),
        /* rose */ rgba(148, 148, 148, 0.55) /* silver/gray */
    );
    transition: opacity 0.35s ease;
    z-index: 0; /* поверх фон-картинки body */
}
body.scrolled-bg::before {
    opacity: 1;
}
/* iOS fallback: fixed плохо работает — отключим */
@supports (-webkit-touch-callout: none) {
    body,
    body.scrolled-bg {
        background-attachment: scroll;
    }
}

main {
    position: relative;
    display: block;
    min-height: 50%;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
}
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--gutter);
}
.container-alt {
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--gutter);
    margin-bottom: 3rem;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Заголовки */
h1,
h2,
h3,
.section__title,
.hero__title {
    font-family: "Heebo", serif;
    font-weight: 600;
    color: var(--color-gold-dark);
}

h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-tight);
    margin: 0 0 0.5rem;
    text-align: center;
}
h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-tight);
    margin: 0 0 0.5rem;
    text-align: center;
}
h3 {
    font-size: var(--fs-h3);
    line-height: var(--lh-tight);
    margin: 0 0 0.4rem;
    text-align: center;
}
h4 {
    font-size: var(--fs-h4);
    line-height: var(--lh-tight);
    margin: 0 0 0.3rem;
}
p {
    font-size: var(--fs-p);
    line-height: var(--lh-normal);
    margin: 0 0 0.7rem;
}
.lead {
    font-size: var(--fs-lead);
    line-height: var(--lh-relaxed);
}
.site-wrapper {
    position: relative;
}

/* Header (как у Weblium) */
.site-header {
    position: sticky;
    position: -webkit-sticky; /* Safari */
    display: flex;
    justify-content: center;
    width: 100%;
    top: 0;
    height: 6rem;
    z-index: 1000;
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-gold);
}
.header-wrap {
    display: flex;
    width: 100%;
    max-width: var(--container);
    align-items: center;
    justify-content: space-between;
    padding-block: 0.6rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-navbar-text);
}
.brand__logo {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    padding: 4px;
    object-fit: contain;
    border: 1px solid var(--color-gold);
    box-shadow: var(--shadow-gold-sm);
}

.nav {
    display: block;
}
.nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav__list a {
    text-decoration: none;
    color: var(--color-navbar-text);
    font-weight: 500;
}
.nav__list a:hover {
    color: var(--color-gold-dark);
}
.nav__cta {
    /* background: var(--color-gold); */
    border: 2px solid var(--color-gold);
    padding: 0.5rem 0.9rem;
    border-radius: 14px;
    box-shadow: var(--shadow-gold-sm);
}

.main {
    position: relative;
    z-index: 3;
}
/* HERO (Full-height split) */
.hero {
    min-height: 82vh;
    position: relative;
    padding-block: 2rem;
    display: flex;
    align-items: center;
    background: none;
    /* background: radial-gradient(
            60% 60% at 20% 30%,
            rgba(247, 214, 235, 0.7),
            transparent 60%
        ),
        linear-gradient(180deg, #fff 0%, var(--color-bg-light) 100%); */
}
.hero::before {
    position: relative;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(230, 183, 210, 0.4),
        /* rose */ rgba(26, 26, 26, 0.55) /* black */
    );
    z-index: 1;
}
.hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    background-color: #ffffffcf;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.hero .container span {
    color: var(--color-gold);
}

.hero__wrap {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.hero__content {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    order: 2;
    text-align: center;
}
.hero__media {
    width: 400px;
    height: 250px;
    overflow: hidden;
    border-radius: 1rem;
    /* background-color: var(--color-white); */
    border: 2px solid var(--color-gold);
    box-shadow: var(--shadow-gold);
}
.hero__media img {
    border-radius: 1rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__subtitle {
    color: #333;
    margin-bottom: 1rem;
}
.hero__cta {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.4rem;
    width: 100%;
}

.hero__cta .btn {
    flex: 1 1 100%;
    max-width: 40%;
}

.hero__bullets {
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: #444;
}
.hero__bullets li::before {
    content: "• ";
    color: var(--color-gold);
}

/* Кнопки */
.btn {
    --bg: #eee;
    --bg-h: #ddd;
    --color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: transform 0.05s ease, background 0.2s ease;
}
.btn:active {
    transform: translateY(1px);
}
.btn--primary {
    --bg: var(--color-btn-primary);
    --bg-h: var(--color-btn-primary-hover);
    --color: #3a2a32;
    background: var(--bg);
    color: var(--color);
}
.btn--secondary {
    --bg: var(--color-btn-secondary);
    --bg-h: var(--color-btn-secondary-hover);
    --color: #251e0f;
    background: var(--bg);
    color: var(--color);
}
.btn--primary:hover,
.btn--secondary:hover {
    background: var(--bg-h);
}

/* Секции */
.section {
    padding-block: clamp(1.6rem, 4.5vw, 3.6rem);
}
.section--alt {
    background: var(--color-bg-light);
}
.section--alt2 {
    background: var(--color-pink-glow);
}

.section__header {
    text-align: center;
    margin-bottom: 1.4rem;
}
.section__header--start {
    text-align: start;
}

/* ===== Nails section ===== */
.nails {
    position: relative;
    z-index: 50;
    background: var(--bg-gradient-soft);
    box-shadow: var(--shadow-md);
    padding: clamp(1.25rem, 2.5vw, 2rem);
    width: 100%;
}
.nails__inner {
    display: flex;
    /* RTL: כדי שהתמונה תהיה בשמאל בדסקטופ — נשמור סדר לוגי אך נהפוך כיוון */
    flex-direction: row-reverse;
    gap: clamp(1rem, 2vw, 2rem);
    align-items: stretch; /* שומר גובה שווה */
}
.nails__media,
.nails__content {
    flex: 1;
    min-width: 0;
}

/* תמונה: גובה מלא, חיתוך נקי */
.nails__media {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    background: var(--color-bg-light);
    display: flex;
}
/* дефолт (десктоп): картинка тянется по высоте блока */
.nails__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nails__cta {
    display: flex;
    gap: 1rem;
    width: 100%;
}
.nails__cta .btn,
.nails__cta .btn--ghost {
    width: 100%;
}

/* תוכן */
.nails__content {
    background: var(--color-white);
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* כפתורים נדבקים לתחתית כשצריך */
}
.nails .section__title {
    font-size: var(--fs-h2);
    line-height: var(--lh-tight);
    margin: 0 0 0.5rem 0;
    color: var(--color-gold-dark);
}
.nails .lead {
    color: var(--color-gray);
}

.nails__bullets {
    margin: 0.75rem 0 1.25rem 0;
    padding: 0 1rem 0 0;
    list-style: none;
}
.nails__bullets li {
    position: relative;
    padding-inline-start: 1.25rem;
    margin: 0.35rem 0;
}
.nails__bullets li::before {
    content: "★";
    position: absolute;
    inset-inline-start: 0;
    top: 0.1rem;
    font-size: 0.95em;
    color: var(--color-gold);
    text-shadow: 0 0 6px rgba(200, 167, 92, 0.45);
}

/* כפתורים */
.btn {
    display: inline-block;
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        background 0.18s ease, color 0.18s ease;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.btn--primary {
    background: linear-gradient(120deg, var(--color-rose), var(--color-gold));
    color: #111;
}
.btn--ghost {
    background: #fff;
    color: var(--color-black);
    border: 1px solid rgba(200, 167, 92, 0.45);
}

/* ABOUT (изображение слева, текст справа) */
.about {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.about__media {
    flex: 1 1 400px;
    min-width: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.about__media img {
    max-height: 400px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block; /* чтобы убрать лишние пробелы */
}

.about__text {
    flex: 1 1 420px;
    min-width: 260px;
}
.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.checklist li {
    position: relative;
    padding-inline-start: 1.2rem;
}
.checklist li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--color-gold);
}

/* SERVICES (flex cards по 3–4 в ряд) */
#services .container-alt {
    text-align: center;
    background-color: #ffffffc8;
    box-shadow: none;
}
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}
.card {
    flex: 1 1 260px;
    max-width: 360px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.card__media {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}
.card__body {
    padding: 1rem;
}
.card__title {
    margin: 0 0 0.4rem;
    font-size: var(--fs-h4);
    line-height: var(--lh-tight);
    color: var(--color-rose-dark);
}

/* GALLERY (лента/сетка) */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-start;
}
.gallery__item {
    flex: 1 1 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: calc(33.333% - 0.8rem);
    aspect-ratio: 4/3;
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* TESTIMONIALS */
.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}
.testimonials-slider {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-md);
}

/* Базовое состояние */
.tcard {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%); /* ждёт за правым краем */
    transition: transform 0.6s ease, opacity 0.6s ease;
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

/* Активная на экране */
.tcard.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

/* Уходит влево */
.tcard.leave-left {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}

/* Вариант для RTL-направления (заезд слева, уход вправо) */
.tcard.enter-from-left {
    transform: translateX(-100%);
}
.tcard.leave-right {
    transform: translateX(100%);
}

/* Звёзды */
.stars {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin: 0.5rem 0 0.8rem 0;
    letter-spacing: 2px;
    text-align: center;
}
.tcard p {
    margin: 0 0 0.6rem;
    color: #333;
}

/* PRICING */
.pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 24px; /* поддерживается всеми современными браузерами */
    justify-content: center; /* выравниваем по центру */
}

/* Карточка */
.pcard {
    display: flex;
    flex-direction: column;
    width: clamp(260px, 28vw, 320px);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 16px 16px 20px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Зона под изображение сверху */
.pcard__media {
    height: 160px; /* единая высота */
    margin: -16px -16px 16px; /* растянуть на всю ширину карточки */
    border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px)
        var(--radius-md) var(--radius-md);
    background: linear-gradient(
        180deg,
        var(--color-pink-glow),
        var(--color-bg-light)
    );
    position: relative;
    overflow: hidden;
}
.pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Заголовки/подзаголовки */
.pcard__title {
    font-family: "Playfair Display", serif;
    font-size: var(--fs-h3);
    line-height: var(--lh-tight);
    margin: 0 0 4px;
    color: var(--color-black);
}
.pcard__subtitle {
    margin: 0 0 12px;
    justify-self: center;
    align-self: center;
    color: var(--color-rose-dark);
    font-weight: 500;
}

/* Цена */
.pcard__price {
    justify-self: center;
    align-self: center;
    margin: 0 0 12px;
    color: var(--color-gold-dark);
    font-size: clamp(18px, 1rem + 0.6vw, 22px);
}
.pcard__price strong {
    font-size: clamp(26px, 1.2rem + 1vw, 34px);
    font-weight: 700;
}

/* Список */
.pcard__list {
    margin: 0 0 20px;
    padding: 0 1rem;
    list-style: none;
}
.pcard__list li {
    position: relative;
    margin: 0 0 8px;
    color: var(--color-black);
}
.pcard__list li::before {
    content: "•";
    color: var(--color-gold);
    margin-inline-start: 0.5ch;
    margin-inline-end: 0.5ch;
}

/* Кнопка по центру и прижата вниз */
.pcard__cta {
    align-self: center; /* центр по горизонтали */
    margin-top: auto; /* уводим к низу карточки */
    min-width: 60%;
    text-align: center;
    border-radius: var(--radius-md);
}
/* CONTACT (форма слева, инфо/карта справа) */
.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: flex-start;
}
.section__lead {
    align-self: center;
    text-align: center;
    margin-bottom: 1.4rem;
}
#contact .container-alt {
    text-align: center;
    background-color: #ffffffc8;
    box-shadow: none;
}

.contact__form {
    flex: 1 1 520px;
    min-width: 300px;
}
.form {
    background: var(--color-form-bg);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.form__row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}
.form__label {
    font-weight: 600;
}
.form__input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 2px solid var(--color-gold);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form__input:focus {
    border-color: var(--color-form-focus);
    box-shadow: 0 0 0 4px
        color-mix(in oklab, var(--color-form-focus) 22%, transparent);
}
.form__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}
.form__actions .btn {
    max-width: 100%;
    background: var(--color-gold);
}
.form__actions .btn:hover {
    max-width: 100%;
    background: var(--color-gold-dark);
}

.contact__info {
    flex: 1 1 420px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.info-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}
.map-placeholder img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 3;
    background: #111;
    color: #eee;
}
.footer__inner {
    padding: 1.2rem;
    text-align: center;
}
.site-footer {
    background: var(--color-header-bg);
    border-top: 1px solid var(--color-rose-dark);
    padding: 2rem 0 1.2rem;
}
.footer__inner {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
    text-align: center;
    color: var(--color-gray);
}
.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    justify-content: center;
}
.footer__links a {
    color: var(--color-navbar-text);
}
.footer__links a:hover {
    color: var(--color-gold-dark);
}
.footer__credit {
    font-size: var(--fs-small);
}
.footer__credit a {
    color: var(--color-gold-dark);
    font-weight: 600;
}
.footer__credit a:hover {
    text-decoration: underline;
}
/* ===== Contact Form (LAKMI) ===== */
.form-card {
    background: var(--color-white);
    border: 1px solid #f1e3ec;
    border-radius: var(--radius-lg, 30px);
    box-shadow: var(--shadow-md, 0 8px 20px rgba(0, 0, 0, 0.12));
    padding: clamp(1rem, 2vw, 2rem);
    margin: 1.4rem auto 2rem;
    max-width: var(--container, 1100px);
}
.form-card__title {
    margin: 0 0 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.2rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.form-group--full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
}
.req {
    color: var(--color-rose-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--color-form-bg, #faf7f4);
    border: 1.5px solid var(--color-form-border, #e6b7d2);
    border-radius: var(--radius-md, 16px);
    padding: 0.75rem 0.9rem;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b5a9b2;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-form-focus, var(--color-gold));
    box-shadow: 0 0 0 3px rgba(200, 167, 92, 0.2);
    background: #fff;
}

.form-group input:invalid[required],
.form-group textarea:invalid[required] {
    border-color: #e99a9a;
}

.hint {
    font-size: var(--fs-small, 0.9rem);
    color: var(--color-gray, #777);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

/* Buttons reuse brand styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}
.btn--primary {
    background: var(--color-btn-primary, var(--color-rose));
    padding: 0.7rem 1.1rem;
    border-radius: 14px;
    box-shadow: var(--shadow-sm, 0 4px 10px rgba(0, 0, 0, 0.08));
}
.btn--primary:hover {
    background: var(--color-btn-primary-hover, var(--color-rose-dark));
    transform: translateY(-1px);
}
.btn--ghost {
    background: transparent;
    border: 1px solid #e7e0e0;
    padding: 0.7rem 1.1rem;
    border-radius: 14px;
}

/* Side card with contact info */
.form-sidecard {
    background: #fff;
    border: 1px solid #f1e3ec;
    border-radius: var(--radius-lg, 30px);
    box-shadow: var(--shadow-sm, 0 4px 10px rgba(0, 0, 0, 0.08));
    padding: 1.2rem 1.4rem;
    max-width: var(--container, 1100px);
    margin: 0 auto 2rem;
}
.form-sidecard h3 {
    margin-top: 0;
}
.form-sidecard ul {
    margin: 0.2rem 0 0;
    padding: 0 1rem 0 0;
}

.recaptcha {
    margin-top: 0.6rem;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.form__checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    inline-size: 1.1rem;
    block-size: 1.1rem;
}
.form__checkbox a {
    text-decoration: underline;
}

/* Контейнер и фон c использованием ваших переменных */
.faq {
    background: var(--bg-gradient-soft);
    padding: clamp(2rem, 4vw, 4rem) var(--gutter);

    box-shadow: var(--shadow-md);
}
.faq__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
}
.faq__title {
    font-size: var(--fs-h2);
    line-height: var(--lh-tight);
    /* background: linear-gradient(120deg, var(--color-rose), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    color: #a9863e;
    margin: 0 0 0.5rem 0;
}
.faq__lead {
    font-size: var(--fs-lead);
    color: var(--color-gray);
    margin: 0 0 1.5rem 0;
}

.faq__list {
    display: grid;
    gap: 0.75rem;
    margin-right: -2rem;
}

.faq__item {
    background: var(--color-white);
    border: 1px solid rgba(200, 167, 92, 0.25);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    text-align: right;
    padding: 1rem 3rem 1rem 1rem;
    font-size: var(--fs-h4);
    line-height: var(--lh-normal);
    background: linear-gradient(
        180deg,
        rgba(246, 229, 238, 0.35) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    border: 0;
    cursor: pointer;
    position: relative;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}
.faq__question:hover,
.faq__question:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 167, 92, 0.25);
}

.faq__icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
}
.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    background: var(--color-gold);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq__icon::before {
    inset: 50% 0 0 0;
    height: 2px;
    transform: translateY(-50%);
}
.faq__icon::after {
    inset: 0 0 0 50%;
    width: 2px;
    transform: translateX(-380%);
}
/* Состояние открыто */
.faq__question[aria-expanded="true"] .faq__icon::after {
    opacity: 0;
    transform: translateX(-50%) rotate(90deg);
}

/* Плавное открытие блока ответа через max-height */
.faq__answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    will-change: max-height;
    background: radial-gradient(
        120% 120% at 100% 0%,
        rgba(230, 183, 210, 0.12) 0%,
        rgba(255, 255, 255, 1) 70%
    );
    border-top: 1px dashed rgba(200, 167, 92, 0.35);
}
.faq__answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    font-size: var(--fs-p);
    color: var(--color-black);
}
/* Гамбургер */
.site-header .nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    width: 44px;
    height: 36px;
    margin-inline-start: auto;
}
.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
    transition: 0.25s;
    box-shadow: 0 0 5px #c8a75c;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(-45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(45deg);
}
.map-container iframe {
    box-shadow: 0 0 5px #c8a75c;
}
/* SOCIAL */
.social {
    display: flex;
    justify-self: center;
    width: 40%;
    gap: 1rem;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0.5rem 1rem;
    margin: 1rem;
    text-decoration: none;
    color: var(--color-link);
    font-weight: bold;
    cursor: pointer;
    background: var(--button-gradient-background);
}
.email-button img {
    background-color: #f44336;
    border-radius: 50%;
}
.facebok-button img {
    background-color: #1976d2;
    border-radius: 50%;
}

#phone-fixed {
    position: fixed;
    bottom: 200px;
    left: 100px;
    z-index: 50;
    display: none;
}

#phone-fixed img {
    width: 50px;
    height: 50px;
    box-shadow: 0 0 6px var(--color-primary-dark);
}

#whatsApp-fixed {
    position: fixed;
    bottom: 200px;
    right: 100px;
    z-index: 50;
    display: none;
}
#whatsApp-fixed img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 6px var(--color-primary-dark);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#phone-fixed,
#whatsApp-fixed {
    position: fixed;
    bottom: 100px;
    z-index: 50;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.call-button img {
    padding: 2px;
    background-color: rgb(108, 220, 45);
    border-radius: 50%;
}

.social img:hover {
    transform: scale(1.2);
    color: #000303;
    transition: all 0.3s ease, color 0.3s ease;
    border: #000000 2px solid;
}
/* Стрелка вверх */
.scroll-to-top {
    position: fixed;
    bottom: 20%;
    left: 5px;
    /* background-color: #ffffff; */
    color: var(--color-black);
    font-size: 30px;
    text-decoration: none;
    border: 1px solid var(--color-accent);
    padding: 1px 18px;
    border-radius: 50%;
    opacity: 0.8;
    transition: 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 0 5px var(--color-black);
}

.scroll-to-top:hover,
.scroll-to-top.active {
    opacity: 1;
    scale: 1.2;
    color: var(--color-gold);
    border: 1px solid var(--color-accent);
    background-color: var(--color-black);
}

.scroll-to-top::before {
    content: "↑";
    font-size: 1.5rem;
    line-height: 1;
}
/* ============== Lang switch ============== */
.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-inline-start: 0.75rem; /* рядом с меню */
}

.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font: inherit;
    color: var(--color-navbar-text);
    transition: transform 0.15s ease, box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.lang-switch__btn:hover {
    box-shadow: var(--shadow-md);
}
.lang-switch__btn:active {
    transform: translateY(1px);
}
.lang-switch__btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.lang-switch__label {
    font-size: var(--fs-small);
    color: var(--color-gray);
}
.lang-switch__current {
    font-weight: 700;
    letter-spacing: 0.02em;
}
.lang-switch__chev {
    transition: transform 0.2s ease;
    opacity: 0.9;
}

/* выпадающее меню */
.lang-menu {
    position: absolute;
    inset-inline-end: 0; /* у правого края блока */
    top: calc(100% + 0.5rem);
    min-width: 220px;
    background: var(--bg-gradient-soft), var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md), var(--shadow-gold-sm);
    padding: 0.4rem;
    display: grid;
    gap: 0.25rem;
    z-index: 1001;
    transform-origin: top right;
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

/* элементы меню */
.lang-menu__item {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-navbar-text);
    line-height: 1.2;
}
.lang-menu__item:hover {
    background: rgba(200, 167, 92, 0.08);
}
.lang-menu__item:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* открытое состояние (ставится на .lang-switch) */
.lang-switch.is-open .lang-menu {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.lang-switch.is-open .lang-switch__chev {
    transform: rotate(180deg);
}

/* статичный фолбек без JS */
.lang-menu--static {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0.5rem;
}
/* Мобильные */
@media (max-width: 900px) {
    .brand__logo {
        height: 60px;
        width: 60px;
    }
    .nav__list {
        gap: 0.7rem;
        flex-wrap: wrap;
    }
    .hero__cta .btn {
        max-width: 100%;
    }
    .card,
    .tcard,
    .pcard {
        max-width: 100%;
    }
    .container {
        max-width: 90%;
    }

    .container-alt {
        max-width: 90%;
    }

    .hero {
        min-height: 60vh;
        padding-block: 1.2rem;
    }
    .hero__content {
        order: 2;
        flex: 1 1 100%;
        min-width: 100%;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    .hero-wrap {
        display: flex;
        flex-direction: column;
        gap: 1.4rem;
        text-align: center;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero__media {
        height: 150px;
        width: 250px;
        padding: none;
    }

    .hero__content {
        text-align: center;
    }

    .nails__inner {
        flex-direction: column-reverse;
    }
    .nails__media,
    .nails__content {
        align-self: center;
        /* flex: 1 1; */
    }
    .nails .container-alt {
        width: none;
        max-width: none;
    }
    .nails__media {
        width: 100%;
        height: 100px;
        aspect-ratio: 16 / 10; /* контейнер держит высоту */
    }

    .nails__media img {
        width: 100%;
        height: 100%; /* теперь у контейнера есть aspect-ratio */
        object-fit: cover;
    }
    #about .container-alt {
        display: flex;
        flex-direction: column-reverse;
    }

    .form__actions {
        flex-direction: column;

        justify-content: center;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-actions {
        flex-wrap: wrap;
    }
    .faq {
        box-shadow: var(--shadow-sm);
    }
    .faq__item {
        background: #fffdfb;
    }
    .nav--desktop {
        display: none;
    }
    .site-header .nav-toggle {
        display: inline-flex;
    }

    /* Панель меню */
    .nav-mobile {
        position: fixed;
        top: var(--header-h, 80px); /* меню открывается ПОД хедером */
        left: 0;
        right: 0;
        height: fit-content;
        transform: translateY(-110%);
        transition: transform 0.35s ease;
        z-index: 1001;
        background: linear-gradient(
            180deg,
            rgba(230, 183, 210, 0.6) 0%,
            rgba(200, 167, 92, 0.5) 100%
        );
        color: var(--color-black);
        border-bottom: 1px solid rgba(200, 167, 92, 0.35);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
        backdrop-filter: saturate(1.05) blur(2px);
    }
    .nav-mobile.is-open {
        transform: translateY(0);
    }

    .nav-mobile__list {
        list-style: none;
        margin: 0;
        padding: 1rem var(--gutter);
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }
    .nav-mobile__list a {
        display: block;
        padding: 0.95rem 1rem;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.9);
        color: var(--color-black);
        font-size: var(--fs-h4);
        text-decoration: none;
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
        transition: 0.2s;
    }
    .nav-mobile__list a:hover {
        background: #fff;
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
    .nav-mobile__list .nav__cta {
        background: linear-gradient(
            120deg,
            var(--color-rose),
            var(--color-gold)
        );
        color: #111;
        font-weight: 600;
    }

    /* Оверлей */
    .nav-overlay {
        position: fixed;
        top: var(--header-h, 80px);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(1px);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.25s ease;
    }
    .nav-overlay.is-open {
        opacity: 1;
    }
    .site-header .nav-toggle {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .nav-toggle__bar {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 3px;
        background: var(--color-gold);
        border-radius: 2px;
        transition: 0.25s;
        box-shadow: 0 0 5px #c8a75c;
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
        transform: translateY(8px) rotate(-45deg);
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
        transform: translateY(-8px) rotate(45deg);
    }
    #phone-fixed {
        display: flex;
        position: fixed;
        bottom: 50px;
        left: 10px;
        z-index: 50;
    }
    #whatsApp-fixed {
        display: flex;
        position: fixed;
        bottom: 50px;
        right: 10px;
        z-index: 50;
    }
    /* .lang-switch {
        position: static;
    }
    .lang-menu {
        position: fixed;
        inset: 0;
        top: var(--header-h);
        min-width: 0;
        border-radius: 0;
        border: 0;
        padding: 1rem;
        backdrop-filter: blur(2px);
        transform: translateY(-10px);
        overflow: auto;
    }
    .lang-menu__item {
        padding: 1rem 1.1rem;
        font-size: 1.05em;
        border: 1px solid rgba(0, 0, 0, 0.06);
        background: var(--color-white);
    } */
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Лайтбокс — скрыт по умолчанию */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    padding: 2rem;
}
.lightbox.is-open {
    display: flex;
    animation: lb-fade 0.2s ease;
}
@keyframes lb-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.lightbox__img {
    max-width: min(95vw, 1400px);
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    outline: 2px solid rgba(255, 255, 255, 0.15);
}
.lightbox__close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: var(--color-white);
    color: var(--color-black);
    border: 0;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 72px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-black);
    font-size: 2rem;
    line-height: 72px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}
.lightbox__prev {
    left: 0.75rem;
}
.lightbox__next {
    right: 0.75rem;
}
.lightbox__nav:hover {
    background: #fff;
}
body.lb-open {
    overflow: hidden;
}

/* Блокируем прокрутку боди при открытом лайтбоксе (через класс на body) */
body.lb-open {
    overflow: hidden;
}
