/* style.css */

/* ================= ШРИФТЫ ================= */
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/subset-CormorantGaramond-Bold.woff2?v=2.0') format('woff2'); font-weight: bold; font-style: normal; font-display: block; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/subset-CormorantGaramond-SemiBold.woff2?v=2.0') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/subset-CormorantGaramond-SemiBoldItalic.woff2?v=2.0') format('woff2'); font-weight: 600 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('fonts/subset-IBMPlexSans-Regular.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('fonts/subset-IBMPlexSans-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('fonts/subset-IBMPlexSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/subset-IBMPlexMono-Regular.woff2') format('woff2'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/subset-IBMPlexMono-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* ================= ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ ================= */
:root { --section-space: clamp(48px, 8vw, 88px); --ink: #1B2430; --ink-2: #232E3D; --paper: #F6F3EC; --paper-2: #EFEAE0; --charcoal: #2B2B2B; --slate: #565E6B; --brass: #A9884A; --brass-light: #C9A968; --mischka: #A9B1BE; --line: rgba(27,36,48,0.12); --line-strong: rgba(27,36,48,0.28); --line-light: rgba(246,243,236,0.16); --surface: #FFFDF8; }
* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-y: scroll; overscroll-behavior-y: none; }
body { background: var(--paper); color: var(--charcoal); font-family: 'IBM Plex Sans', sans-serif; font-variant-numeric: lining-nums; line-height: 1.6; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(169,136,74,0.3); }
img { max-width: 100%; display: block; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap.no-padding { padding: 0; }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .wrap.no-padding { padding: 0; }
}

/* ================= ШАПКА ================= */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(246,243,236,0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 20px 32px; max-width: 1120px; margin: 0 auto; gap: 12px; transition: padding .2s, gap .2s; min-height: 88px; }
.logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo-svg { height: clamp(38px, 38px + (100vw - 981px) * 4 / 79, 42px); width: auto; display: block; transition: max-height 0.2s ease, width 0.2s ease; }
.nav-links { display: flex; gap: clamp(15px, 3.7vw - 21px, 28px); font-size: clamp(15px, 15px + (100vw - 981px) / 79, 16px); align-items: center; transition: gap .2s, font-size .2s; }
.nav-links a { position: relative; color: var(--charcoal); transition: color .2s; line-height: 1.2; text-align: center; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--brass); transition: width .25s ease; }
.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; transition: gap .2s; }
.nav-cta { font-size: clamp(15px, 15px + (100vw - 981px) / 79, 16px); font-weight: 500; padding: clamp(8px, 8px + (100vw - 981px) * 2 / 79, 10px) clamp(16px, 16px + (100vw - 981px) * 4 / 79, 20px); border: 1px solid var(--ink); border-radius: 2px; white-space: nowrap; transition: background-color 0.2s, color 0.2s, opacity 0.2s, visibility 0.2s; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.burger { display: none; position: relative; flex-shrink: 0; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: none; cursor: pointer; color: var(--ink); }
.burger span { position: absolute; left: 10px; width: 24px; height: 1.5px; border-radius: 1px; background: currentColor; transition: top .25s ease, transform .25s ease, opacity .2s ease; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu-container { display: none; flex-direction: column; align-items: center; padding: 12px 32px 28px; background: var(--paper); border-top: 1px solid var(--line); }
.mobile-menu-container.is-open { display: flex; animation: menuIn .25s ease; }
.mobile-menu-container > a:not(.nav-cta-mobile) { position: relative; padding: 11px 0; font-size: 17px; line-height: 1.2; text-align: center; color: var(--charcoal); transition: color .2s; }
.mobile-menu-container > a:not(.nav-cta-mobile)::after { content: ''; position: absolute; left: 0; bottom: 5px; width: 0; height: 1px; background: var(--brass); transition: width .25s ease; }
#mobileMenu .nav-cta-mobile { width: 100%; max-width: 320px; margin-top: 16px; padding: 15px 20px; font-size: 15.5px; background: var(--ink); color: var(--paper); }
.mobile-menu-icons { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.mobile-menu-icons a { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--ink); transition: color .2s; }
.mobile-menu-icons svg { width: 24px; height: 24px; }

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* 980px — то же значение в main.js */
@media (max-width: 980px) {
  .nav { gap: 16px; }
  .logo { flex-shrink: 1; min-width: 120px; }
  .logo-svg { width: 100%; height: auto; max-height: 42px; }
  .nav-links { display: none; }
  header:has(.mobile-menu-container.is-open) .nav-actions .nav-cta { opacity: 0; visibility: hidden; }
  .burger { display: block; }
  .nav-actions { gap: 12px; }
  .mobile-menu-container { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
}

@media (min-width: 451px) and (max-width: 980px) {
  .mobile-menu-container { position: absolute; top: 100%; right: 0; width: 322px; max-height: calc(100dvh - 100%); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0 0 0 4px; box-shadow: 0 2px 6px rgba(27,36,48,0.06), 0 18px 40px -16px rgba(27,36,48,0.4); }
}

@media (max-width: 640px) {
  .nav { padding: 16px 20px; gap: 12px; }
  .mobile-menu-container { padding: 8px 20px 24px; }
  .nav-actions .nav-cta { display: none; }
}

@media (max-width: 450px) {
  header { display: flex; flex-direction: column; max-height: 100dvh; }
  .mobile-menu-container { min-height: 0; }
}

@media (max-width: 430px) {
  .logo-svg { width: 100%; height: auto; max-height: 32px; }
}

/* ================= ОБЩИЕ ЭЛЕМЕНТЫ ================= */
main { flex: 1; }
section { padding: var(--section-space) 0; scroll-margin-top: 88px; }
.section-title-large { margin-bottom: 26px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; }
.full-width { grid-column: 1 / -1; }

/* Блоки скрываются, только если скрипт в <head> поставил js-animating: без JS контент виден */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.js-animating .reveal:not(.in) { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; }

/* Страница скрыта, пока при перезагрузке возвращается позиция прокрутки: класс ставит скрипт в <head>, снимает main.js */
.scroll-restoring body { opacity: 0; }

.btn-primary { background: var(--ink); color: var(--paper); padding: 17px 34px; border-radius: 2px; font-size: 15.5px; font-weight: 500; transition: background .2s, transform .2s, box-shadow .2s; border: 1px solid var(--ink); display: inline-block; text-align: center; }
.btn-secondary { padding: 17px 34px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 15.5px; font-weight: 500; color: var(--charcoal); transition: border-color .2s, color .2s; display: inline-block; text-align: center; }
.btn-margin-top { margin-top: 28px; }
.btn-small { padding: 6px 0; margin-bottom: 18px; border-color: transparent; font-size: 13.5px; font-weight: 400; color: var(--slate); }

/* ================= ГЛАВНАЯ: ПЕРВЫЙ ЭКРАН ================= */
.hero { position: relative; padding: 128px 0 38px; overflow: hidden; background: radial-gradient(ellipse at 82% 8%, rgba(169,136,74,0.14), transparent 55%), radial-gradient(ellipse at 4% 95%, rgba(27,36,48,0.05), transparent 50%), var(--paper); }
.hero .wrap { position: relative; z-index: 2; max-width: 1120px; }
.eyebrow { font-size: 12.5px; color: var(--brass); margin-bottom: 26px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.eyebrow::before { content: ''; align-self: flex-start; width: 32px; height: 1px; margin-top: calc(0.8em - 0.5px); background: var(--brass); }
.hero h1 { font-size: clamp(32px, 6.4vw, 80px); line-height: 1.18; margin-bottom: 30px; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero p.lead { font-size: 19px; color: var(--slate); max-width: 560px; margin-bottom: 28px; }
.hero.services-hero p.lead { max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero.services-hero .hero-ctas { margin-bottom: 0; }

.hero-facts { display: flex; gap: clamp(16px, 3vw, 48px); flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts div { flex: 1; min-width: 175px; border-left: 1px solid var(--line); padding-left: clamp(12px, 2vw, 20px); }
.hero-facts div:first-child { border-left: none; padding-left: 0; }
.hero-facts .num { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 700; font-feature-settings: 'case'; color: var(--ink); display: block; }
.hero-facts .lbl { font-size: 16px; line-height: 1.5; color: var(--slate); display: inline-block; margin-top: 4px; }

@media (max-width: 400px) {
  .hero-facts .lbl { font-size: 14.5px; }
}

.hero-home .wrap { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 26vw, 340px); column-gap: clamp(32px, 4.5vw, 56px); grid-template-areas: "eyebrow ." "title photo" "lead photo" "ctas ." "facts facts"; }
.hero-home .eyebrow { grid-area: eyebrow; }
.hero-home { --title-size: clamp(32px, 5.6vw, 72px); }
.hero-home h1 { grid-area: title; font-size: var(--title-size); }
.hero-home .lead { grid-area: lead; }
.hero-home .hero-ctas { grid-area: ctas; }
.hero-home .hero-ctas, .services-hero .hero-ctas { align-items: flex-start; column-gap: 32px; }
.hero-price { width: 0; min-width: 100%; margin-top: 10px; font-size: 13.5px; color: var(--slate); text-align: center; }
.hero-phone { padding: 18px 0; font-size: 15.5px; color: var(--slate); white-space: nowrap; }
.hero-phone span { color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; transition: color .2s; }
.hero-home .hero-facts { grid-area: facts; }
.hero-portrait { grid-area: photo; align-self: center; position: relative; display: block; background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, #2E3A4C 100%); border-radius: 2px; }
.hero-portrait::before { content: ''; position: absolute; inset: 18px 18px -18px -18px; border: 1px solid var(--brass); border-radius: 2px; opacity: .85; }
.hero-portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }

@media (min-width: 861px) {
  .hero-portrait { align-self: stretch; margin: calc(var(--title-size) * 0.28) 0 -60.8px; }
  .hero-portrait img { position: absolute; inset: 0; }
}

.services-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto auto 1fr; column-gap: clamp(40px, 5vw, 72px); align-items: start; }
.services-hero .eyebrow, .services-hero h1 { grid-column: 1 / -1; }
.services-hero .lead, .services-hero .hero-ctas { grid-column: 1; }
.hero-aside { grid-column: 2; grid-row: 3 / span 2; }
.hero-prices { border-top: 1px solid var(--line); }
.hero-prices a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.35; color: var(--slate); transition: color .2s; }
.hero-prices b { flex-shrink: 0; font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hero-prices-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 16px; }
.hero-prices-links a { font-size: 14.5px; color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; transition: color .2s; }

@media (max-width: 1150px) {
  .services-hero .wrap { grid-template-columns: minmax(0, 1fr) 290px; }
}

/* ================= ГЛАВНАЯ: ОБО МНЕ ================= */
.about { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "head head" "text aside"; column-gap: 64px; align-items: start; }
.about-head { grid-area: head; }
.about-text { grid-area: text; }
.about-aside { grid-area: aside; }
.about-text p { color: var(--slate); margin-bottom: 18px; font-size: 16px; max-width: 58ch; }
.about-text p strong { color: var(--charcoal); font-weight: 600; }
.creds { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cred-item { border-top: 1px solid var(--line); padding-top: 14px; }
.cred-item .k { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--brass); text-transform: uppercase; letter-spacing: 0.06em; }
.cred-item .v { font-size: 14.5px; margin-top: 4px; color: var(--charcoal); line-height: 1.4; }

@media (max-width: 1024px) {
  .about .wrap { grid-template-columns: minmax(0, 1fr) 220px; column-gap: 40px; }
}
@media (max-width: 700px) {
  .about .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "text" "aside"; }
  .creds { grid-template-columns: 1fr 1fr; margin-top: 14px; }
}

/* ================= НАПРАВЛЕНИЯ ПРАКТИКИ ================= */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.p-card { position: relative; display: flex; flex-direction: column; background: var(--paper); padding: 34px 28px; transition: background .25s; text-decoration: none; color: inherit; }
.p-card h3 { font-size: 22px; line-height: 1.25; min-height: 2.5em; margin: 0 0 10px; }
.p-card p { font-size: 14.5px; color: var(--slate); margin: 0; }
.p-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }

.p-card:focus-visible { outline: none; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--brass); }
.practice-footer { text-align: center; max-width: 760px; margin: 48px auto 0; padding: 0 20px; }
.practice-footer-text { color: var(--slate); font-size: 15px; margin-bottom: 24px; }

/* ================= ГЛАВНАЯ: КАК Я РАБОТАЮ ================= */
.process { background: var(--ink); color: var(--paper); }
.process .section-head h2 { color: var(--paper); }
.process .section-head p { color: #AEB6C2; margin-top: 14px; max-width: 520px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 0; margin-top: 20px; position: relative; }
.step { padding: 26px 22px 26px 0; border-left: 1px solid var(--line-light); padding-left: 22px; position: relative; }
a.step-clickable { display: block; text-decoration: none; color: inherit; transition: background .25s; }
.step .n { display: block; font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--brass-light); font-weight: 700; line-height: 1; margin-bottom: 14px; }
.step-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 12px; }
.step h3 { font-family: 'Cormorant Garamond', serif; font-size: 19px; color: var(--paper); font-weight: 600; margin: 0; line-height: 1.2; }
.step-icon { object-fit: contain; opacity: 0.85; flex-shrink: 0; margin-top: -2px; }
.step p { font-size: 13.5px; color: #A9B1BE; margin: 0; }

/* ================= ГЛАВНАЯ: ДЕЛА ================= */
.results .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 0; }
.case { border-top: 1px solid var(--line); padding: 26px 0; display: flex; flex-direction: column; }
.case .meta { display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--brass); text-transform: uppercase; margin-bottom: 10px; }
.case h3 { font-family: 'IBM Plex Sans', sans-serif; font-weight: bold; letter-spacing: normal; color: var(--charcoal); font-size: clamp(14px, 4.4vw, 20px); margin-bottom: 8px; }
.case p:not(.case-result) { color: var(--slate); font-size: 15px; margin-bottom: 16px; }
.case p.case-result { margin-top: auto; margin-bottom: 0; padding: 12px 16px; background: rgba(169, 136, 74, 0.08); border-left: 2px solid var(--brass); color: var(--ink); font-size: 14.5px; }
.case p.case-result strong { font-weight: 600; }
.case-footer { padding-top: 16px; display: flex; gap: 20px; flex-wrap: wrap; }
.dl-btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brass); transition: opacity .2s; }
.dl-btn svg { width: 14px; height: 14px; fill: none; }
.dl-btn-disabled { cursor: default; color: var(--slate); }

/* ================= КОНТАКТЫ И ФОРМА ================= */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: 56px; row-gap: 0; }
.form-anchor { position: absolute; top: 0; grid-column: 2; grid-row: 1; scroll-margin-top: 113px; }
.contact-phone-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-icons { display: inline-flex; align-items: center; gap: 12px; }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); transition: color 0.2s ease; }
.contact-icon svg { width: 22px; height: 22px; fill: currentColor; }
.contact-info .row { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .row .k { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; color: var(--brass); width: 90px; flex-shrink: 0; padding-top: 3px; letter-spacing: 0.05em; line-height: 26px; }
.contact-info .row .v { font-size: 16px; line-height: 26px; }

form { display: flex; flex-direction: column; gap: 18px; }
#contactForm { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 2px 6px rgba(27,36,48,0.04), 0 22px 44px -22px rgba(27,36,48,0.28); }
#contactForm::before { content: ''; position: absolute; left: -12px; top: 44px; width: 22px; height: 22px; background: var(--surface); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label:not(.file-upload-btn) { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); font-family: 'IBM Plex Mono', monospace; }
.field input, .field textarea { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px; font-family: 'IBM Plex Sans', sans-serif; font-size: 16px; color: var(--charcoal); transition: border-color .2s; }
.field input:focus, .field textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 1px var(--brass); }
.field textarea { resize: vertical; min-height: 120px; max-height: 480px; }
.submit-btn { align-self: flex-start; background: var(--ink); color: var(--paper); padding: 17px 34px; border: none; border-radius: 2px; font-size: 15.5px; font-weight: 500; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; font-family: 'IBM Plex Sans', sans-serif; }
.submit-btn:disabled { background: var(--slate); opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.form-success { display: none; font-size: 14.5px; color: var(--brass); margin-top: 6px; font-weight: 500; }
.form-error { display: none; font-size: 14.5px; color: #b32d2d; margin-top: 6px; font-weight: 500; }

.field-checkbox { display: flex; align-items: flex-start; gap: 12px; margin-top: -6px; margin-bottom: 4px; }
.custom-checkbox { position: relative; cursor: pointer; user-select: none; flex-shrink: 0; }
.custom-checkbox input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; }
.checkmark { display: block; position: relative; top: 2px; width: 20px; height: 20px; background-color: var(--paper); border: 1px solid var(--line); border-radius: 2px; transition: background-color 0.2s, border-color 0.2s; }
.custom-checkbox:hover input ~ .checkmark { border-color: var(--brass); }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--brass); border-color: var(--brass); }
.custom-checkbox input:focus-visible ~ .checkmark { outline: 2px solid var(--brass); outline-offset: 3px; }

.checkmark:after { content: ''; position: absolute; display: none; width: 5px; height: 10px; border: solid var(--paper); border-width: 0 2px 2px 0; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); margin-top: -1px; }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.checkbox-text { font-size: 12.5px; color: var(--slate); line-height: 1.45; }
.checkbox-text a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.checkbox-text a:hover { color: var(--ink); }
.form-note { font-size: 12.5px; color: var(--slate); line-height: 1.45; margin-top: -6px; }
.file-list:empty { margin-top: -6px; }

/* ================= ПОДВАЛ ================= */
footer { background: var(--ink); color: #8D96A3; padding: 24px 0; font-size: 13.5px; line-height: 22px; margin-top: auto; }
footer .wrap { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.footer-info, .footer-legal { display: flex; flex-direction: column; gap: 2px; }
.footer-links { display: flex; align-items: center; column-gap: 10px; row-gap: 2px; flex-wrap: wrap; }

.footer-info .footer-links:first-child, .footer-legal .footer-links { margin-bottom: 2px; }
.footer-info .footer-links { flex-wrap: nowrap; }
.footer-links a { text-decoration: underline; text-decoration-skip-ink: auto; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color .2s; }

@media (min-width: 861px) {
  footer .wrap { flex-direction: row; justify-content: space-between; }
  .footer-legal { align-items: flex-end; text-align: right; }
  .footer-legal .footer-links { justify-content: flex-end; }
}

@media (max-width: 1024px) {
  .footer-legal .footer-links { flex-direction: column; align-items: flex-end; gap: 2px; }
  .footer-legal .footer-links .sep { display: none; }
}

@media (max-width: 860px) {
  .footer-legal .footer-links { align-items: flex-start; }
}

/* ================= СТРАНИЦА ЦЕН ================= */
.tariffs-section { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.base-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
a.price-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); padding: 32px 24px; border-radius: 2px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
a.price-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 12px; line-height: 1.2; }
a.price-card .price { margin-top: auto; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1; }
.personal-guarantee { margin-top: 48px; padding: 24px 32px; background: var(--paper); border: 1px solid var(--line); border-left: 2px solid var(--brass); border-radius: 2px; }
.personal-guarantee p { font-size: 16px; color: var(--slate); margin: 0; }
.personal-guarantee strong { color: var(--charcoal); font-weight: 600; }
.personal-guarantee a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; font-weight: normal; }
.category-block { margin-bottom: clamp(48px, 6vw, 72px); scroll-margin-top: calc(88px + clamp(24px, 3vw, 40px)); }
.category-block:last-child { margin-bottom: 0; }
.category-title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--brass); display: flex; align-items: baseline; gap: 16px; }
.category-title span.num { font-family: 'IBM Plex Mono', monospace; font-size: 16px; color: var(--brass); font-weight: 500; }
.service-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
a.service-item { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: baseline; padding: 22px 48px 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
a.service-item h3 { font-family: 'IBM Plex Sans', sans-serif; letter-spacing: normal; font-size: 16.5px; font-weight: 600; line-height: 1.45; color: var(--ink); transition: color .2s; }
a.service-item p { font-size: 15px; line-height: 1.55; color: var(--slate); margin: 0; }
a.service-item::after { content: ''; position: absolute; right: 6px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9884A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s; }

@media (hover: none) {
  a.service-item::after { opacity: .6; transform: none; }
}
@media (max-width: 700px) {
  a.service-item { grid-template-columns: minmax(0, 1fr); row-gap: 6px; padding: 18px 36px 18px 0; }
}

/* ================= ВОПРОСЫ И ОТВЕТЫ ================= */
.faq-simple-wrap { width: 100%; border-top: none; }
.faq-simple-item { border-bottom: 1px solid var(--line); }
.faq-simple-summary { padding: 16px 0; font-family: 'IBM Plex Sans', sans-serif; font-size: 16px; font-weight: 400; color: var(--ink); cursor: pointer; user-select: none; transition: color 0.2s ease; list-style: none; display: flex; align-items: flex-start; gap: 16px; }
.faq-simple-summary::-webkit-details-marker { display: none; }

.faq-simple-summary::before { content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; background: linear-gradient(var(--brass), var(--brass)) center / 1.5px 14px no-repeat, linear-gradient(var(--brass), var(--brass)) center / 14px 1.5px no-repeat; transition: background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-simple-item[open] .faq-simple-summary::before { background-size: 1.5px 14px, 0px 1.5px; transform: rotate(90deg); }
.faq-simple-text { font-size: 15px; color: var(--slate); margin: -4px 0 0 36px; padding-bottom: 18px; line-height: 1.55; animation: fadeIn 0.4s ease forwards; }

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

@media (hover: hover) {
  .faq-simple-summary:hover { color: var(--brass); }
}

@media (max-width: 640px) {
  .faq-simple-summary { padding: 14px 0; font-size: 15px; gap: 12px; }
  .faq-simple-text { font-size: 14.5px; margin-left: 32px; }
}

/* ================= ДОКУМЕНТЫ (ПОЛИТИКА, СОГЛАСИЕ) ================= */
.document-section { padding: 126px 0 38px; }
.document-content { max-width: 1120px; margin: 0 auto; }
.document-content h1 { font-size: 32px; margin-bottom: 30px; line-height: 1.2; }
.document-content h3 { font-size: 20px; margin: 30px 0 15px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; }
.document-content p { margin-bottom: 15px; color: var(--charcoal); font-size: 16px; line-height: 1.7; }
.document-content p[id] { scroll-margin-top: 88px; }
.document-content p a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.document-content p a:hover { color: var(--ink); }
.btn-close-tab { display: inline-flex; align-items: baseline; gap: 0.34em; padding: 8px 18px; font-size: 14px; }
.btn-close-tab svg { width: 0.7em; height: 0.7em; overflow: visible; }

/* ================= АДАПТИВ ================= */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 0; }
}

@media (max-width: 860px) {
  .hero-facts { gap: 24px 0; }
  .hero-facts div { min-width: 45%; }
  .hero-facts div:nth-child(odd) { border-left: none; padding-left: 0; }
  .hero-facts div:nth-child(even) { border-left: 1px solid var(--line); padding-left: clamp(12px, 2vw, 20px); }
  .hero-home .wrap { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; grid-template-areas: "photo eyebrow" "title title" "lead lead" "ctas ctas" "facts facts"; }
  .hero-home .eyebrow::before { display: none; }
  .hero-portrait { width: 56px; height: 56px; margin-bottom: 26px; padding: 2px; border: 1px solid var(--brass); border-radius: 50%; background: none; }
  .hero-portrait::before { display: none; }
  .hero-portrait img { border-radius: 50%; }
  .services-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-aside { grid-column: 1; grid-row: auto; margin-top: 40px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .results .wrap { grid-template-columns: 1fr; }
  .results .section-head { margin-bottom: 24px; }
  .process .section-head { margin-bottom: 28px; }
  .steps { margin-top: 0; }
  .contact .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact { padding-bottom: 0; }
  .form-anchor { grid-column: 1; grid-row: 2; scroll-margin-top: 88px; }
  #contactForm::before { display: none; }
  #contactForm { margin: 0 -32px; padding: 28px 32px; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: none; }
}

@media (max-width: 640px) {
  .personal-guarantee { padding: 20px; }
  #contactForm { margin: 0 -20px; padding: 24px 20px; }
}

@media (max-width: 560px) {
  .practice-grid { grid-template-columns: 1fr; }
  .p-card h3 { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 450px) {
  .hero-ctas > a { flex: 1 1 auto; text-align: center; }
  .hero-cta-main { flex: 1 1 100%; }
  .hero-cta-main .btn-primary { display: block; }
  .hero-phone { padding: 4px 0; }
}

/* ================= НАВЕДЕНИЕ МЫШЬЮ ================= */
@media (hover: hover) {
  .nav-links a:hover { color: var(--brass); }
  .nav-links a:hover::after { width: 100%; }
  .nav-cta:hover { background: var(--ink); color: var(--paper); }
  .mobile-menu-container > a:not(.nav-cta-mobile):hover { color: var(--brass); }
  .mobile-menu-container > a:not(.nav-cta-mobile):hover::after { width: 100%; }
  #mobileMenu .nav-cta-mobile:hover { background: var(--ink-2); }
  .mobile-menu-icons a:hover { color: var(--brass); }
  .burger:hover { color: var(--brass); }
  .btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(27,36,48,0.45); }
  .btn-secondary:hover { border-color: var(--brass); color: var(--brass); }
  .btn-small:hover { border-color: transparent; }
  .hero-phone:hover span { color: var(--brass); }
  .quick-bar-link:hover { color: var(--brass); }
  .quick-bar-cta:hover { background: var(--ink-2); }
  .hero-prices a:hover, .hero-prices-links a:hover { color: var(--brass); }
  .p-card:hover { background: var(--paper-2); }
  .p-card:hover::before { transform: scaleX(1); }
  a.step-clickable:hover { background: rgba(246,243,236,0.03); }
  a.step-clickable.no-hover-bg:hover { background: transparent; }
  a.dl-btn:hover { opacity: 0.7; }
  a.dl-btn-disabled:hover { opacity: 1; }
  .contact-icon:hover { color: var(--brass); }
  .contact-info .row .v a:not(.contact-icon):hover { color: var(--brass); }
  .submit-btn:hover:not(:disabled) { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(27,36,48,0.45); }
  .footer-links a:hover { color: var(--paper); }
  a.price-card:hover { border-color: var(--brass); box-shadow: 0 8px 24px -12px rgba(27,36,48,0.15); transform: translateY(-2px); }
  .personal-guarantee a:hover { color: var(--ink); }
  a.service-item:hover h3 { color: var(--brass); }
  a.service-item:hover::after { opacity: 1; transform: none; }
}

/* ================= ПРОКРУТКА ================= */
html, body { overflow-anchor: none !important; }

/* ================= НИЖНЯЯ СТРОКА БЫСТРОЙ СВЯЗИ (ТЕЛЕФОНЫ) ================= */
/* Атрибут hidden в HTML прячет строку, пока не загружен этот CSS; is-visible ставит main.js */
.quick-bar { display: none; }

@media (max-width: 640px) {
  .quick-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 2px 6px rgba(27,36,48,0.06), 0 18px 40px -16px rgba(27,36,48,0.4); opacity: 0; visibility: hidden; transform: translateY(calc(100% + 24px)); transition: transform .35s ease, opacity .25s ease, visibility 0s linear .35s; }
  .quick-bar.is-visible { opacity: 1; visibility: visible; transform: none; transition: transform .35s ease .1s, opacity .25s ease .1s, visibility 0s; }
  body:has(.cookie-banner.show) .quick-bar.is-visible,
  body:has(.mobile-menu-container.is-open) .quick-bar.is-visible { opacity: 0; visibility: hidden; transform: translateY(calc(100% + 24px)); transition: transform .35s ease, opacity .25s ease, visibility 0s linear .35s; }
  .quick-bar-link { display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 12px; font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: color .2s, opacity .2s; }
  .quick-bar-link + .quick-bar-link { border-left: 1px solid var(--line); }
  .quick-bar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
  .quick-bar-tg svg { width: 20px; height: 20px; }
  .quick-bar-cta { display: flex; align-items: center; justify-content: center; height: 44px; margin-left: 6px; padding: 0 12px; border-radius: 2px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .2s, opacity .2s; }
  .quick-bar a:active { opacity: .7; }
}

@media (max-width: 384px) {
  .quick-bar-link { width: 52px; padding: 0; }
  .quick-bar-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .quick-bar-link svg { width: 20px; height: 20px; }
  .quick-bar-tg svg { width: 22px; height: 22px; }
}

/* ================= QR-КОД И «СОХРАНИТЬ КОНТАКТ» ================= */
.qr-code-img { width: 182px; height: auto; border-radius: 2px; display: block; }
.vcf-mobile-link { display: none !important; }

@media (max-width: 860px) {
  .qr-code-img { display: none !important; }
  .vcf-mobile-link { display: inline-flex !important; }

  .contact-info { margin-bottom: -6px; }
}

/* ================= БАННЕР COOKIE ================= */
.cookie-banner { position: fixed; bottom: -1000px; right: 32px; max-width: 440px; width: calc(100% - 48px); background: rgba(27, 36, 48, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--paper); z-index: 1000; padding: 16px 20px; border-radius: 4px; border: 1px solid rgba(246, 243, 236, 0.15); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3); visibility: hidden; transition: bottom .5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.5s; font-size: 12.5px; }
.cookie-banner.show { bottom: 24px; visibility: visible; }
.cookie-content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cookie-content p { margin: 0; line-height: 1.45; color: var(--mischka); }
.cookie-content a { text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }

@media (hover: hover) {
  .cookie-content a:hover { color: var(--paper); }
}

.cookie-buttons { display: flex; gap: 12px; align-self: flex-end; }
.btn-cookie { padding: 7px 18px; min-width: 110px; text-align: center; font-size: 12.5px; font-family: inherit; font-weight: 500; white-space: nowrap; background: transparent; color: var(--mischka); border: 1px solid var(--mischka); border-radius: 2px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease; }

@media (hover: hover) {
  .btn-cookie:hover { background: transparent; color: var(--paper); border: 1px solid var(--paper); }
}

#acceptCookie { background-color: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 600; }

@media (hover: hover) {
  #acceptCookie:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.85); }
}

@media (max-width: 576px) {
  .cookie-banner { right: 12px; left: 12px; width: auto; max-width: none; padding: 14px 16px; font-size: 12px; }
  .cookie-banner.show { bottom: max(12px, env(safe-area-inset-bottom)); }
  .cookie-content { gap: 12px; }
  .cookie-buttons { width: 100%; gap: 10px; }
  .btn-cookie { flex: 1 1 0; min-width: 0; padding: 9px 12px; }
}

/* ================= ПРИКРЕПЛЕНИЕ ФАЙЛОВ ================= */
.field input.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; background: transparent; }
.file-upload-row { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.file-upload-btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; width: fit-content; font-size: 14.5px; font-weight: 400; color: var(--slate); margin-bottom: 0; }
.file-upload-wrapper input:focus-visible + .file-upload-row .file-upload-btn { outline: 2px solid var(--brass); outline-offset: 3px; }
.file-upload-hint { font-size: 13.5px; color: var(--slate); }
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; min-width: 0; }
.file-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: var(--paper); padding: 10px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; color: var(--charcoal); gap: 12px; box-sizing: border-box; }
.file-info { display: flex; align-items: center; gap: 6px; min-width: 0; }
.file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.file-size { color: var(--slate); font-size: 12.5px; white-space: nowrap; flex: 0 0 auto; }

.file-item-remove { color: var(--brass); cursor: pointer; line-height: 0; transition: opacity .2s; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; margin: -4px -6px -4px 0; background: none; border: 0; }

.file-item-remove svg { display: block; pointer-events: none; }
.file-item-remove:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

@media (hover: hover) {
  .file-item-remove:hover { opacity: 0.6; }
}

/* ================= МЕНЬШЕ 320px: СИЛЬНОЕ УВЕЛИЧЕНИЕ МАСШТАБА ================= */
@media (max-width: 319px) {
  body { overflow-wrap: break-word; }
  .logo { min-width: 110px; }
  .btn-close-tab { gap: 0; padding: 9px; font-size: 0; align-items: center; }
  .btn-close-tab svg { width: 10px; height: 10px; }
  .mobile-menu-icons { gap: 0; }
  .mobile-menu-icons a { width: 44px; }
  .hero-facts div { min-width: 100%; }
  .hero-facts div:nth-child(even) { border-left: none; padding-left: 0; }
  .hero-phone { white-space: normal; }
  .hero-phone span { white-space: nowrap; }
  .hero-prices a { flex-direction: column; align-items: stretch; gap: 2px; }
  .hero-prices b { align-self: flex-end; }
  .practice-grid, .steps, .results .wrap, .creds, .base-prices { grid-template-columns: minmax(0, 1fr); }
  .step-title-row h3 { min-width: 0; }
  .category-title { flex-direction: column; align-items: stretch; gap: 6px; }
  .contact-info .row { flex-direction: column; gap: 0; }
  .contact-info .row .k { width: auto; padding-top: 0; }
  .footer-info .footer-links { flex-wrap: wrap; }
  .quick-bar { left: 8px; right: 8px; }
  .quick-bar-link { width: 44px; }
  .quick-bar-cta { padding: 0 8px; }
  .cookie-buttons { flex-wrap: wrap; }
  .btn-cookie { min-width: auto; }
}

@media (max-width: 229px) {
  .hero-home .wrap { grid-template-areas: "photo photo" "eyebrow eyebrow" "title title" "lead lead" "ctas ctas" "facts facts"; }
  .hero-portrait { margin-bottom: 16px; }
  .mobile-menu-container { padding-left: 8px; padding-right: 8px; }
  .mobile-menu-icons { flex-wrap: wrap; }
  .mobile-menu-icons a { width: 36px; }
  .quick-bar { grid-template-columns: auto minmax(0, 1fr); }
  .quick-bar-tg { display: none; }
}

/* ================= ПЕЧАТЬ ================= */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  header { position: static; }
  .hero { padding-top: 40px; }
  .quick-bar, .cookie-banner, .burger, .mobile-menu-container, #contactForm { display: none !important; }
  .process { background: none; color: var(--ink); }
  .process .section-head h2, .step h3 { color: var(--ink); }
  .process .section-head p, .step p { color: var(--slate); }
  .step .n { color: var(--brass); }
  .step { border-left-color: var(--line); }
  .btn-primary { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
