/* ===== Шрифты (локально, без Google Fonts) ===== */
@font-face{font-family:'Onest';src:url('../fonts/onest.woff') format('woff');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Caveat';src:url('../fonts/caveat.woff') format('woff');font-weight:400 700;font-style:normal;font-display:swap}

/* ===== Токены ===== */
:root{
  --ink:#16151A; --ink-2:#3A3740; --muted:#5E5A66; --line:#DDD7CB;
  --bg:#F0F0F0; --surface:#FFFFFF; --soft:#F6F4EF; --dark:#16151A; --dark-2:#2A2830;
  --accent:#726CF8; --good:#7EE2A8;
  --radius:28px; --pad:64px; --max:1312px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Onest',system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{margin:0;letter-spacing:-.03em;line-height:1.08}
p{margin:0}
.wrap{max-width:calc(var(--max) + var(--pad)*2);margin:0 auto;padding:0 var(--pad)}
.dot{color:var(--accent)}
.bullet{flex:none;width:10px;height:10px;border-radius:50%;background:var(--accent)}
.eyebrow{font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.section{padding:72px 0;scroll-margin-top:40px}
.section--white{background:var(--surface)}
.section--soft{background:var(--soft)}
.section--dark{background:var(--dark);color:#fff}
.h2{font-size:clamp(34px,4.2vw,52px);font-weight:700}
.lead{font-size:clamp(17px,1.5vw,20px);color:var(--ink-2);max-width:760px}
.lead--wide{max-width:none}
.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:16px;z-index:100;background:#fff;padding:8px 12px;border-radius:8px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* ===== Кнопки ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:0 28px;border-radius:14px;font:inherit;font-size:17px;font-weight:600;text-decoration:none;cursor:pointer;border:1.5px solid var(--ink);transition:transform .15s,background .15s,color .15s}
.btn:hover{transform:translateY(-1px)}
.btn--dark{background:var(--ink);color:#fff}
.btn--dark:hover{background:#2C2A33}
.btn--ghost{background:transparent;color:var(--ink)}
.btn--ghost:hover{background:var(--ink);color:#fff}
.btn--accent{background:var(--accent);border-color:var(--accent);color:var(--ink)}
.btn--start{align-self:flex-start}
.btn--sm{min-height:48px;padding:0 20px;font-size:16px;border-radius:12px}

/* ===== Шапка ===== */
.header{position:sticky;top:0;z-index:50;padding:16px 0;background:linear-gradient(var(--bg) 70%,rgba(240,240,240,0))}
.header__bar{background:var(--surface);border-radius:24px;padding:16px 20px 16px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.logo{display:flex;align-items:center}
.logo img{width:96px;height:auto}
.nav{display:flex;gap:56px;font-size:18px;font-weight:500}
.nav a{text-decoration:none}
.nav a:hover{color:var(--accent)}

/* ===== Первый экран ===== */
.hero{padding:40px 0 96px}
.hero__grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);gap:48px;align-items:stretch}
.hero__text{display:flex;flex-direction:column;justify-content:space-between;gap:48px;position:relative}
.hero h1{font-size:clamp(38px,4.3vw,64px);font-weight:700;letter-spacing:-.035em;line-height:1.08}
.hero__who b{display:block;font-size:clamp(24px,2.4vw,34px);font-weight:700;letter-spacing:-.02em;margin-bottom:6px}
.hero__who span{font-size:clamp(17px,1.6vw,22px);color:var(--ink-2)}
.hero__actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px}
.hero__actions .btn{min-width:240px;min-height:64px;font-size:clamp(17px,1.6vw,22px)}
.hero__photo{position:relative;border-radius:var(--radius);overflow:hidden;min-height:540px;background:#DAD6CE}
.hero__photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.note{font-family:'Caveat',cursive;font-weight:600;font-size:clamp(20px,1.7vw,26px);color:var(--accent);display:inline-flex;align-items:center;gap:6px;line-height:1.1;white-space:nowrap}
.note svg{flex:none}
.note--h1{margin-top:10px;padding-left:4px}
.note--photo{position:absolute;right:-8px;top:50%;flex-direction:column;align-items:flex-end;gap:2px;transform:rotate(-6deg)}
.note--photo svg{margin-right:-6px}
.btn-wrap{position:relative;display:flex}
.note--btn{position:absolute;left:48px;bottom:calc(100% + 4px)}

/* ===== Слайдер «Мои ошибки» ===== */
.mistakes__head{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:24px}
.mistakes__head .lead{margin-top:12px;max-width:820px}
.counter{font-size:15px;font-weight:600;color:var(--muted);white-space:nowrap}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.tab{font:inherit;font-size:15px;font-weight:600;min-height:44px;padding:0 16px;border-radius:999px;cursor:pointer;background:var(--surface);color:var(--muted);border:1px solid var(--line)}
.tab.is-done{color:var(--ink);border-color:var(--ink)}
.tab[aria-selected="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.slides{background:var(--soft);border-radius:var(--radius);padding:28px 40px;touch-action:pan-y}
.slide{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:48px;align-items:center}
.slide[hidden]{display:none}
.slide__media{position:relative;height:clamp(260px,calc(100vh - 470px),400px)}
.slide__text{display:flex;flex-direction:column;gap:16px}
.slide__label{font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.slide__thought{font-size:clamp(22px,2vw,28px);font-weight:700;line-height:1.2;letter-spacing:-.02em}
.slide__body{font-size:clamp(17px,1.4vw,20px);color:var(--ink-2)}
.slide__result{display:flex;align-items:baseline;gap:12px;font-size:clamp(17px,1.4vw,20px);font-weight:600;line-height:1.4}
.slide__result .bullet{transform:translateY(-2px)}
.slides__nav{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:16px}
.progress{flex:1;max-width:520px;height:4px;background:#E2DED6;border-radius:999px;overflow:hidden}
.progress span{display:block;width:14%;height:100%;background:var(--accent);border-radius:999px;transition:width .3s}
.arrows{display:flex;gap:12px}
.arrow{width:52px;height:52px;border-radius:50%;border:0;display:flex;align-items:center;justify-content:center;background:var(--ink);color:#fff;cursor:pointer}
.arrow:disabled{background:#E2DED6;color:#9A96A3;cursor:default}
/* медиа-раскладки */
.browser{position:absolute;width:76%;height:76%;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 10px 30px rgba(22,21,26,.12)}
.browser::before{content:'';display:block;height:26px;background:radial-gradient(circle at 16px 13px,#CFC9BD 4.5px,transparent 5px),#EDEAE3}
.browser::after{content:'';position:absolute;top:8.5px;left:30px;width:9px;height:9px;border-radius:50%;background:#CFC9BD;box-shadow:15px 0 0 #CFC9BD}
.browser img{width:100%;height:calc(100% - 26px);object-fit:cover;object-position:top}
.browser:nth-child(1){left:0;top:0}.browser:nth-child(2){left:8%;top:8%}.browser:nth-child(3){left:16%;top:16%}.browser:nth-child(4){left:24%;top:24%}
.pair{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;gap:6%}
.pair img{height:92%;max-width:46%;object-fit:cover;border-radius:20px;box-shadow:0 10px 30px rgba(22,21,26,.12)}
.pair img:first-child{transform:rotate(-2deg)}.pair img:last-child{transform:rotate(2deg)}
.pair--tall img{aspect-ratio:9/16}
.price{position:absolute;inset:0;background:#fff;border-radius:20px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;text-align:center;padding:24px}
.price__old{font-size:clamp(32px,4.4vw,64px);font-weight:700;color:#9A96A3;text-decoration:line-through;text-decoration-color:var(--accent);text-decoration-thickness:6px}
.price__new{font-size:clamp(36px,5vw,72px);font-weight:700}
.price__quote{font-size:18px;color:var(--muted)}
.collage{position:absolute;inset:0;overflow:hidden}
.collage img{position:absolute;object-fit:cover;border-radius:20px}
.collage img:nth-child(1){left:0;top:0;width:58%;height:100%}
.collage img:nth-child(2){right:0;top:0;width:calc(42% - 14px);height:calc(50% - 7px)}
.collage img:nth-child(3){right:0;bottom:0;width:calc(42% - 14px);height:calc(50% - 7px)}
.final{position:absolute;inset:0;background:var(--dark);border-radius:20px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:32px;padding:32px}
.final__chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:560px}
.final__chips span{padding:8px 16px;border-radius:999px;border:1px solid #45424D;color:#8F8A99;font-size:16px;text-decoration:line-through}
.final__word{font-size:clamp(44px,5vw,72px);font-weight:700;color:#fff;letter-spacing:-.03em}

/* ===== Как я работаю ===== */
.how__head{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:36px}
.how__head .h2{margin-top:14px;max-width:820px}
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.step{background:var(--soft);border-radius:24px;padding:28px;display:flex;flex-direction:column;gap:20px;min-height:260px}
.step__top{display:flex;justify-content:space-between;align-items:center}
.step__num{font-size:48px;font-weight:700;letter-spacing:-.04em;line-height:1;color:#CFC9BD}
.step__body{margin-top:auto;display:flex;flex-direction:column;gap:10px}
.step h3{font-size:22px;font-weight:700;letter-spacing:-.02em}
.step p{font-size:16px;color:var(--ink-2)}
.step--white{background:#fff}
.step--dark{background:var(--dark);color:#fff}
.step--dark .step__num{color:var(--accent)}
.step--dark p{color:#D6D2DC}
.callout{display:flex;align-items:center;gap:16px;padding:22px 28px;border:1.5px solid var(--ink);border-radius:20px;margin-top:20px;font-size:19px}
.callout .bullet{width:12px;height:12px}

/* ===== Услуги ===== */
.services__head{margin-bottom:28px;max-width:1200px;display:flex;flex-direction:column;gap:12px}
.outputs{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:16px}
.output{border:1.5px solid var(--line);border-radius:18px;padding:12px 16px 12px 22px;display:flex;align-items:center;gap:16px}
.output h3{flex:none;width:210px;font-size:18px;font-weight:700;letter-spacing:-.01em;display:flex;align-items:center;gap:10px}
.output--dark{background:var(--dark);color:#fff;border-color:var(--dark)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{padding:6px 12px;border-radius:999px;background:var(--soft);font-size:14px;display:inline-flex;align-items:center;gap:8px}
.output--dark .chip{background:var(--dark-2)}
.chip .bullet{width:8px;height:8px}
.cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cat{background:var(--soft);border-radius:20px;padding:20px 24px;display:flex;flex-direction:column;gap:10px}
.cat__head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.cat h3{font-size:20px;font-weight:700;letter-spacing:-.01em}
.cat__price{font-size:15px;color:var(--muted);white-space:nowrap}
.cat ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.4}
.cat li{display:flex;align-items:center;gap:8px}
.cat li .bullet{width:8px;height:8px}
.cat__note{margin-top:auto;font-size:14px;color:var(--muted)}
.legend{display:none}
.cats{margin-bottom:16px}
.legend .bullet{width:8px;height:8px}
.cta-band{background:var(--dark);color:#fff;border-radius:24px;padding:24px 32px;display:flex;justify-content:space-between;align-items:center;gap:32px}
.cta-band h3{font-size:clamp(22px,2vw,26px);font-weight:700;letter-spacing:-.02em}
.cta-band__sub{display:flex;align-items:center;gap:10px;font-size:16px;color:#D6D2DC;margin-top:10px}
.cta-band__sub .bullet{background:var(--good)}

/* ===== Обо мне ===== */
.about{display:grid;grid-template-columns:auto minmax(0,1fr);gap:64px;align-items:center}
.about__photo img{height:min(640px,calc(100vh - 200px));min-height:420px;width:auto;aspect-ratio:3/4;object-fit:cover;border-radius:var(--radius)}
.about__text{display:flex;flex-direction:column;gap:40px}
.about__intro{display:flex;flex-direction:column;gap:14px}
.principles{display:flex;flex-direction:column}
.principles .eyebrow{margin-bottom:8px}
.principle{display:flex;gap:24px;align-items:baseline;padding:20px 0;border-top:1.5px solid var(--ink)}
.principle+.principle{border-top:1px solid var(--line)}
.principle__num{flex:none;font-size:18px;font-weight:700;color:var(--accent);width:28px}
.principle h3{font-size:clamp(22px,2vw,28px);font-weight:700;letter-spacing:-.02em;margin-bottom:6px}
.principle p{font-size:17px;color:var(--ink-2);max-width:560px}

/* ===== FAQ ===== */
.faq{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:48px;align-items:start}
.faq__head{display:flex;flex-direction:column;gap:14px;position:sticky;top:120px}
.faq__list{border-top:1.5px solid var(--ink)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:26px 0;display:flex;justify-content:space-between;align-items:center;gap:24px;font-size:clamp(18px,1.6vw,22px);font-weight:600}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';flex:none;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:400;background:var(--soft);transition:transform .2s,background .2s,color .2s}
.faq details[open] summary::after{background:var(--accent);color:#fff;transform:rotate(45deg)}
.faq details p{padding:0 0 26px;font-size:18px;color:var(--ink-2);max-width:720px}

/* ===== Аудит и форма ===== */
.audit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;align-items:center}
.audit__text{display:flex;flex-direction:column;gap:28px}
.audit__text .eyebrow{color:#A9A4B2}
.audit__text .h2{font-size:clamp(36px,4.4vw,56px)}
.audit__text .lead{color:#D6D2DC}
.audit__list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:14px;font-size:18px}
.audit__list li{display:flex;align-items:baseline;gap:12px}
.audit__list .bullet{width:8px;height:8px;transform:translateY(-2px)}
.audit__promo{display:flex;align-items:center;gap:10px;font-size:16px;color:#D6D2DC}
.audit__promo .bullet{background:var(--good)}
.form{background:#fff;color:var(--ink);border-radius:var(--radius);padding:40px;display:flex;flex-direction:column;gap:20px}
.form h3{font-size:26px;font-weight:700;letter-spacing:-.02em}
.field{display:flex;flex-direction:column;gap:8px;font-size:15px;font-weight:600}
.field small{font-weight:400;color:var(--muted);font-size:15px}
.field input,.field textarea{font:inherit;font-size:17px;font-weight:400;padding:15px 16px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);resize:vertical}
.field input:focus,.field textarea:focus{border-color:var(--ink);outline:none}
.messengers{margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:10px}
.messengers legend{font-size:15px;font-weight:600;padding:0;margin-bottom:10px}
.messengers__row{display:flex;gap:12px}
.messenger{flex:1;display:flex;align-items:center;gap:10px;padding:14px 16px;border:1.5px solid var(--line);border-radius:12px;font-size:16px;font-weight:600;cursor:pointer}
.messenger:has(input:checked){border-color:var(--ink)}
.messenger input{accent-color:var(--ink);width:18px;height:18px;margin:0}
.form__note{font-size:14px;color:var(--muted)}
.form__error{font-size:14px;color:#B3261E;min-height:1em}

/* ===== Подвал ===== */
.footer{background:var(--dark);color:#A9A4B2;padding:0 0 40px;font-size:15px}
.footer__bar{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-top:28px;border-top:1px solid #2E2C34;flex-wrap:wrap}
.footer__brand{display:flex;align-items:center;gap:20px}
.footer__brand img{width:72px}
.footer nav{display:flex;gap:28px;flex-wrap:wrap}
.footer a{text-decoration:none;color:#D6D2DC}
.footer a:hover{color:#fff}

/* ===== Тост ===== */
.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,16px);max-width:min(480px,calc(100% - 32px));background:var(--ink);color:#fff;font-size:15px;border-radius:14px;padding:14px 18px;opacity:0;pointer-events:none;transition:.25s;z-index:200;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ===== Адаптив ===== */
@media (max-width:1180px){
  :root{--pad:40px}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .outputs{grid-template-columns:1fr}
  .nav{gap:32px}
}
@media (max-width:960px){
  .section{padding:80px 0}
  .hero__grid,.about,.faq,.audit{grid-template-columns:1fr}
  .about{gap:40px}
  .about__photo img{height:auto;width:100%;max-width:520px;min-height:0}
  .hero__photo{min-height:0;aspect-ratio:4/5;max-height:640px}
  .note--photo{display:none}
  .slide{grid-template-columns:1fr;gap:20px}
  .slide__media{height:clamp(240px,48vw,380px)}
  .slides{padding:24px}

  .faq__head{position:static}
  .mistakes__head,.how__head{flex-direction:column;align-items:flex-start}
  .cta-band{flex-direction:column;align-items:flex-start}
}
@media (max-width:760px){
  :root{--pad:16px;--radius:22px}
  .nav{display:none}
  .header__bar{padding:12px 12px 12px 18px;border-radius:18px}
  .logo img{width:76px}
  .hero{padding:24px 0 64px}
  .hero__text{gap:32px}
  .hero__actions{flex-direction:column;gap:40px}
  .hero__actions .btn,.btn-wrap{min-width:0;width:100%}
  .btn-wrap .btn{flex:1}
  .tabs{flex-wrap:nowrap;overflow-x:auto;margin-left:calc(var(--pad)*-1);margin-right:calc(var(--pad)*-1);padding:0 var(--pad) 4px;scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}
  .tab{flex:none}
  .section{padding:64px 0}
  .slides{padding:14px 14px 18px}
  .slide__media{height:auto;aspect-ratio:4/3}
  .slide__text{gap:10px}
  .slide__thought{font-size:20px}
  .slide__body,.slide__result{font-size:16px}
  .mistakes__head .lead{font-size:16px}
  .collage img{border-radius:14px}
  .collage img:nth-child(2),.collage img:nth-child(3){width:calc(42% - 8px);height:calc(50% - 4px)}
  .pair img{border-radius:14px}
  .browser{border-radius:10px}
  .how__head{margin-bottom:24px}
  .how__head .btn{display:none}
  .steps{grid-template-columns:1fr;gap:10px}
  .step{min-height:0;padding:18px 20px;display:grid;grid-template-columns:44px minmax(0,1fr);gap:4px 12px}
  .step__top{display:contents}
  .step__top svg{display:none}
  .step__num{font-size:24px;grid-row:span 2}
  .step__body{margin:0;gap:4px}
  .step h3{font-size:19px}
  .step p{font-size:15px}
  .output{flex-direction:column;align-items:flex-start;gap:10px;padding:16px 18px}
  .output h3{width:auto}
  .output .chip{padding:5px 10px;font-size:13px}
  .chips{gap:6px}
  .counter{display:none}
  .mistakes__head{margin-bottom:16px}
  .cats{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin:0 calc(var(--pad)*-1);padding:0 var(--pad) 6px;scrollbar-width:none}
  .cats::-webkit-scrollbar{display:none}
  .cat{flex:0 0 78%;scroll-snap-align:start}
  .principle{gap:16px;padding:16px 0}
  .principle p{font-size:16px}
  .form{padding:24px}
  .messengers__row{flex-direction:column}
  .cta-band{padding:28px 24px}
  .callout{font-size:16px;padding:16px 18px;margin-top:12px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ===== Текстовые страницы (политика) ===== */
.page-text{padding:56px 0 112px}
.prose{max-width:820px;margin:0 auto;background:var(--surface);border-radius:var(--radius);padding:56px}
.prose h1{font-size:clamp(32px,4vw,48px);font-weight:700;margin:14px 0 12px}
.prose__lead{font-size:20px;color:var(--ink-2)}
.prose h2{font-size:22px;font-weight:700;margin:40px 0 12px;letter-spacing:-.02em}
.prose p+p{margin-top:12px}
.prose ul{margin:0;padding-left:22px;display:grid;gap:8px}
.prose li::marker{color:var(--accent)}
.prose__date{margin-top:40px!important;font-size:14px;color:var(--muted)}
@media (max-width:760px){ .page-text{padding:24px 0 72px} .prose{padding:28px 20px} }
