/* ==========================================================================
   Виктория Белова — психолог, гештальт-терапевт
   Редизайн 2026: тёплый минимализм, шалфейная палитра, крупная типографика
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
    font-family: "Oranienbaum";
    src: url("../fonts/Oranienbaum-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Great Vibes";
    src: url("../fonts/GreatVibes-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
    --bg: #f6f2ea;          /* тёплый крем */
    --bg-soft: #fbf9f4;     /* светлее */
    --surface: #ffffff;
    --sage: #7f8f6d;        /* основной шалфей */
    --sage-600: #6b7a58;
    --sage-700: #55643f;
    --sage-deep: #313a28;   /* тёмная секция */
    --clay: #bd7a52;        /* тёплый акцент */
    --clay-600: #a86840;
    --ink: #2c2c26;         /* основной текст */
    --muted: #6f6e64;       /* вторичный текст */
    --line: #e5ded0;        /* границы */
    --line-soft: #efe9dd;

    --radius: 18px;
    --radius-lg: 30px;
    --radius-pill: 999px;
    --shadow-sm: 0 6px 20px rgba(49, 58, 40, .06);
    --shadow: 0 20px 50px rgba(49, 58, 40, .10);
    --shadow-lg: 0 30px 70px rgba(49, 58, 40, .16);
    --container: 1160px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
picture { display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 {
    font-family: "Oranienbaum", Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .3px;
    margin: 0 0 .5em;
    color: var(--sage-deep);
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }
.eyebrow {
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--sage-600);
    margin: 0 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--sage); display: inline-block; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 50px); }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 15.5px;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
    line-height: 1;
    text-align: center;
}
.btn--primary { background: var(--sage); color: #fff; box-shadow: 0 12px 26px rgba(127, 143, 109, .35); }
.btn--primary:hover { background: var(--sage-700); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(85, 100, 63, .4); }
.btn--ghost { background: transparent; color: var(--sage-deep); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--sage); color: var(--sage-700); transform: translateY(-2px); }
.btn--clay { background: var(--clay); color: #fff; box-shadow: 0 12px 26px rgba(189, 122, 82, .32); }
.btn--clay:hover { background: var(--clay-600); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--sage-deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
    padding: 18px 0;
}
.site-header.scrolled {
    background: rgba(246, 242, 234, .85);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 rgba(49, 58, 40, .07);
    padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nav__logo {
    flex-shrink: 0;
    font-family: "Great Vibes", "Segoe Script", cursive;
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    color: #4a4a4a;
    letter-spacing: 0.01em;
    white-space: nowrap;
    padding-top: 4px;
    -webkit-text-stroke: 0.2px rgba(246, 242, 234, 0.7);
}
.nav__logo:hover { color: var(--sage-700); }
.site-header.scrolled .nav__logo { font-size: 42px; }
.nav__panel { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; justify-content: flex-end; }
.nav__close { display: none; }
.nav__menu { display: flex; align-items: center; gap: 14px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav__menu a {
    font-size: 14px;
    color: var(--ink);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
    transition: color .2s var(--ease);
}
.nav__menu a::after {
    content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
    background: var(--sage); transition: width .3s var(--ease);
}
.nav__menu a:hover { color: var(--sage-700); }
.nav__menu a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: 6px; }
.nav__cta .btn { padding: 12px 20px; font-size: 14px; }
.nav__toggle {
    display: none;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.5);
    border-radius: 12px;
    position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
    background: var(--sage-deep); transform: translate(-50%, -50%); transition: .3s var(--ease); border-radius: 2px;
}
.nav__toggle span::before { transform: translate(-50%, -7px); }
.nav__toggle span::after { transform: translate(-50%, 5px); }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav__toggle span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; top: -20%; right: -10%; width: 55vw; height: 55vw;
    max-width: 720px; max-height: 720px;
    background: radial-gradient(circle at center, rgba(127, 143, 109, .16), transparent 62%);
    z-index: 0;
}
.hero__grid {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
    position: relative; z-index: 1;
}
.hero__title { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; margin-bottom: 22px; }
.hero__title em { font-style: normal; color: var(--clay); }
.hero__lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__badge {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 14px; color: var(--sage-700);
    background: rgba(127, 143, 109, .1);
    border: 1px solid rgba(127, 143, 109, .22);
    padding: 10px 18px; border-radius: var(--radius-pill);
}
.hero__badge svg { flex: none; }
.hero__media { position: relative; }
.hero__media picture { display: block; }
.hero__media img {
    width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3; object-fit: cover; object-position: center center;
}
.hero__media::after {
    content: ""; position: absolute; inset: auto -18px -18px auto; width: 100px; height: 100px;
    border: 1.5px solid var(--sage); border-radius: var(--radius); z-index: -1;
}
.hero__chip {
    position: absolute; left: -16px; bottom: 24px;
    background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 12px; max-width: 230px;
}
.hero__chip .num { font-family: "Oranienbaum", serif; font-size: 30px; color: var(--sage); line-height: 1; }
.hero__chip .lbl { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

/* ---------- Stats ---------- */
.stats { background: var(--sage-deep); color: #f3f1e9; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 12px; }
.stat__num { font-family: "Oranienbaum", serif; font-size: clamp(38px, 5vw, 54px); color: #fff; line-height: 1; margin-bottom: 10px; }
.stat__num span { color: var(--clay); }
.stat__text { font-size: 14px; color: rgba(243, 241, 233, .72); max-width: 210px; margin: 0 auto; }

/* ---------- About you ---------- */
.about-you { background: var(--bg); }
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 40px; }
.pain {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pain:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pain__mark {
    flex: none; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(127, 143, 109, .14); color: var(--sage-700);
    display: grid; place-items: center; margin-top: 2px;
}
.pain p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.pain em { font-style: italic; color: var(--clay); }
.callout {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-700) 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 40px 44px; text-align: center;
    box-shadow: var(--shadow);
}
.callout h3 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.callout p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto; }

/* ---------- About me ---------- */
.about-me { background: var(--sage-deep); color: #eef0e6; }
.about-me h2, .about-me h3 { color: #fff; }
.about-me__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-me__media { position: relative; }
.about-me__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.about-me__eagt {
    position: absolute; right: -14px; bottom: -14px;
    background: var(--clay); color: #fff; border-radius: 16px; padding: 14px 18px;
    font-size: 13px; font-weight: 500; max-width: 190px; box-shadow: var(--shadow);
}
.about-me__eagt strong { display: block; font-size: 15px; }
.about-me__content p { color: rgba(238, 240, 230, .82); }
.about-me__content .lead { font-size: 19px; color: #fff; }
.edu { list-style: none; margin: 22px 0 26px; display: grid; gap: 12px; }
.edu > li { position: relative; padding-left: 30px; font-size: 15px; color: rgba(238, 240, 230, .82); }
.edu > li::before {
    content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px;
    border-radius: 50%; border: 2px solid var(--clay);
}
.edu__spec-title {
    display: block; margin-bottom: 10px;
    color: #fff; font-weight: 500;
}
.edu__spec-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 8px;
}
.edu__spec-list li {
    position: relative; padding-left: 18px;
    font-size: 14px; line-height: 1.45;
    color: rgba(238, 240, 230, .78);
}
.edu__spec-list li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--clay);
}
.more-text { display: none; }
.more-text.open { display: block; }
.more-toggle {
    background: none; border: none; color: var(--clay); font-weight: 500; font-size: 15px;
    padding: 0; display: inline-flex; align-items: center; gap: 8px;
}
.more-toggle .ic { transition: transform .3s var(--ease); }
.more-toggle.open .ic { transform: rotate(45deg); }

/* ---------- How I work ---------- */
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
    padding: 34px 30px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num { font-family: "Oranienbaum", serif; font-size: 60px; color: rgba(127, 143, 109, .25); line-height: 1; margin-bottom: 8px; }
.step h3 { font-size: 23px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
    padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(127,143,109,.4); }
.svc__icon {
    width: 52px; height: 52px; border-radius: 15px; background: rgba(127, 143, 109, .12);
    color: var(--sage-700); display: grid; place-items: center; margin-bottom: 18px;
}
.svc h3 { font-size: 22px; margin-bottom: 6px; }
.svc__desc { color: var(--muted); font-size: 14.5px; flex: 1; margin-bottom: 20px; }
.svc__price { font-family: "Oranienbaum", serif; font-size: 34px; color: var(--sage-deep); margin-bottom: 18px; }
.svc__price--from { font-size: 30px; }
.svc__price span { font-size: 20px; color: var(--clay); }
.svc .btn { margin-top: auto; }

/* ---------- Groups ---------- */
.groups__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: stretch; }
.group-card {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); height: 100%;
    display: flex; flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.group-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(127,143,109,.35); }
.group-card__media {
    position: relative;
    flex: none;
    height: auto;
    aspect-ratio: 1024 / 434;
    overflow: hidden;
    background: var(--bg-soft);
}
.group-card__media picture,
.group-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.group-card__media img {
    object-fit: cover;
    object-position: center center;
}
.group-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.group-card__body h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 8px; }
.group-card__meta {
    color: var(--sage-700); font-size: 14px; line-height: 1.45;
    margin-bottom: 14px; font-weight: 500;
}
.group-card__body p { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 10px; }
.group-card__sub {
    font-family: "Oranienbaum", serif;
    font-size: 20px; color: var(--sage-deep);
    margin: 14px 0 8px; font-weight: 400;
}
.group-card__quotes {
    list-style: none; margin: 0 0 10px; padding: 0;
    display: grid; gap: 8px;
}
.group-card__quotes li {
    margin: 0; padding: 10px 14px;
    background: var(--bg-soft);
    border-left: 2px solid var(--sage);
    color: var(--sage-deep);
    font-family: "Oranienbaum", serif;
    font-size: 16px; line-height: 1.4; font-style: italic;
}
.group-card__facts {
    list-style: none; margin: 0 0 10px; padding: 0;
    display: grid; gap: 6px;
}
.group-card__facts li {
    display: grid; grid-template-columns: 110px 1fr; gap: 8px;
    font-size: 14px; line-height: 1.45; color: var(--muted);
}
.group-card__facts span {
    color: var(--sage-700); font-weight: 500; text-transform: uppercase;
    letter-spacing: .04em; font-size: 12px; padding-top: 2px;
}
.group-card__note {
    color: var(--sage-deep) !important; font-weight: 500; margin-bottom: 18px !important;
}
.group-card__body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Form ---------- */
.form-section { background: var(--sage-deep); color: #fff; }
.form-card {
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg); padding: 46px; max-width: 860px; margin: 0 auto; position: relative;
    backdrop-filter: blur(4px);
}
.form-card h2 { color: #fff; text-align: center; font-size: clamp(28px, 4vw, 42px); }
.form-card .sub { text-align: center; color: rgba(255,255,255,.7); margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label.error-label { color: #ffcdbe; font-size: 12.5px; margin-top: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08); color: #fff; font-family: inherit; font-size: 16px;
    -webkit-appearance: none; appearance: none;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.55); }
.field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { color: #2c2c26; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); background: rgba(255,255,255,.14); }
.field input.error, .field select.error, .field textarea.error { border-color: #e79a7f; }
.form-actions { margin-top: 22px; text-align: center; }
.form-note { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 16px; }
.form-general-error { color: #ffcdbe; text-align: center; margin-bottom: 16px; }
.form-success {
    display: none; text-align: center; padding: 30px 10px;
}
.form-success.active { display: block; animation: fade .4s var(--ease); }
.form-success .ok {
    width: 70px; height: 70px; border-radius: 50%; background: var(--sage); color: #fff;
    display: grid; place-items: center; margin: 0 auto 18px;
}
.form-card.done .send-form { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
    padding: 30px; box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 22px; margin-bottom: 16px; }
.contact-card .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sage-600); margin-bottom: 6px; }
.contact-card a { display: block; color: var(--ink); margin-bottom: 6px; transition: color .2s var(--ease); }
.contact-card a:hover { color: var(--sage-700); }
.contact-card .map { margin-top: 14px; border-radius: 14px; overflow: hidden; line-height: 0; }
.contact-card .map iframe { width: 100%; height: 180px; border: 0; display: block; }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--sage-700); margin: 0;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { background: var(--sage); color: #fff; transform: translateY(-2px); }
.socials a.tg:hover { background: #2aabee; }
.socials a.wa:hover { background: #25d366; }
.contact-card .world { margin-top: 16px; opacity: .9; }

/* ---------- Footer ---------- */
.site-footer { background: #262d20; color: rgba(238,240,230,.75); padding: 50px 0 34px; }
.footer__grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer__connect { margin-right: 33vw; }
.footer__grid h4 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.footer__mess { display: flex; gap: 12px; margin-top: 14px; }
.footer__mess a {
    width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08);
    display: grid; place-items: center; color: #fff; transition: background .2s var(--ease), transform .2s var(--ease);
}
.footer__mess a:hover { transform: translateY(-2px); }
.footer__mess a.tg:hover { background: #2aabee; }
.footer__mess a.wa:hover { background: #25d366; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 22px; font-size: 13px; color: rgba(238,240,230,.5); text-align: center; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
    position: fixed; left: 16px; right: 84px; z-index: 55; display: none;
    bottom: calc(16px + env(safe-area-inset-bottom));
}
.mobile-cta .btn { width: 100%; box-shadow: var(--shadow-lg); padding-left: 16px; padding-right: 16px; }

/* ---------- Floating messengers (вместо GetButton) ---------- */
.fab-contact {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 56;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.fab-contact__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fab-contact__menu[hidden] { display: none !important; }
.fab-contact__item {
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    box-shadow: var(--shadow-lg);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fab-contact__item:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.18); }
.fab-contact__item.tg { background: #2aabee; }
.fab-contact__item.wa { background: #25d366; }
.fab-contact__toggle {
    width: 56px; height: 56px; border-radius: 50%; border: none;
    background: var(--sage); color: #fff; cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: grid; place-items: center;
    transition: transform .2s var(--ease), background .2s var(--ease);
}
.fab-contact__toggle:hover { background: var(--sage-700); transform: translateY(-2px); }
.fab-contact__icon { display: block; }
.fab-contact__icon--close { display: none; }
.fab-contact.is-open .fab-contact__icon--open { display: none; }
.fab-contact.is-open .fab-contact__icon--close { display: block; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__media { max-width: 420px; margin: 0 auto; }
    .about-me__grid { grid-template-columns: 1fr; gap: 40px; }
    .about-me__media { max-width: 420px; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .nav__menu { gap: 12px; }
    .nav__menu a { font-size: 13.5px; }
    .nav__cta .btn { padding: 11px 16px; font-size: 13.5px; }
}
@media (min-width: 821px) and (max-width: 1100px) {
    .nav__menu { gap: 10px; }
    .nav__menu a { font-size: 13px; }
    .nav__cta .btn { padding: 10px 14px; font-size: 13px; }
    .nav__logo { font-size: 40px; }
}
@media (max-width: 820px) {
    .nav__cta .btn { display: none; }
    .nav__toggle { display: block; }
    /* Гамбургер всегда остаётся «тремя полосками», крестик — только внутри панели */
    body.menu-open .nav__toggle span { background: var(--sage-deep); }
    body.menu-open .nav__toggle span::before { transform: translate(-50%, -7px); }
    body.menu-open .nav__toggle span::after { transform: translate(-50%, 5px); }
    /* На мобильных убираем backdrop-filter у шапки */
    .site-header.scrolled {
        backdrop-filter: none; -webkit-backdrop-filter: none;
        background: rgba(246, 242, 234, .98);
    }
    /* Панель полностью скрыта, пока меню закрыто — ничего не торчит в шапке */
    .nav__panel {
        display: none;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(320px, 85vw);
        height: 100dvh;
        background: var(--bg-soft);
        padding: 16px 24px 32px;
        padding-top: calc(12px + env(safe-area-inset-top));
        box-shadow: var(--shadow-lg);
        z-index: 58;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    body.menu-open .nav__panel {
        display: flex;
    }
    .nav__close {
        display: none;
    }
    body.menu-open .nav__close {
        display: flex; align-items: center; justify-content: center;
        align-self: flex-end; flex: none;
        width: 46px; height: 46px; margin-bottom: 8px;
        border: 1px solid var(--line); border-radius: 12px;
        background: var(--surface); color: var(--sage-deep);
    }
    .nav__menu {
        display: flex; flex-direction: column; align-items: stretch;
        gap: 0; width: 100%; margin: 0; padding: 0;
    }
    .nav__menu li { width: 100%; }
    .nav__menu a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
    .nav__menu a::after { display: none; }
    body.menu-open { overflow: hidden; }
    body.menu-open::after {
        content: ""; position: fixed; inset: 0; background: rgba(44,44,38,.4); z-index: 57;
    }
    .steps__grid { grid-template-columns: 1fr; }
    .group-card__body { padding: 22px 20px 26px; }
    .groups__grid { grid-template-columns: 1fr; gap: 22px; }
    .contact__grid { grid-template-columns: 1fr; }
    .mobile-cta { display: block; }
    .fab-contact { bottom: calc(90px + env(safe-area-inset-bottom)); }
    .section { padding: 72px 0; }
    .hero { padding-bottom: 70px; }
    body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .pains { grid-template-columns: 1fr; }
    .services__grid { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 30px 22px; }
    .callout { padding: 30px 24px; }
    .hero__chip { left: 0; }
    .footer__grid { flex-direction: column; }
    .footer__connect { margin-right: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
