/* БилдСайт — общие стили. Варианты первого экрана: .hero--light (A) и .hero--dark (B) */
:root {
  --focus-light: #fff;
  --focus-dark: #152238;
  --tone-1: #dbe7ff;
  --tone-2: #fff;
  --tone-3: #214da9;
  --tone-4: rgba(255, 255, 255, .6);
  --tone-5: #171d27;
  --tone-6: rgba(255, 255, 255, .14);
  --tone-7: rgba(0, 0, 0, .55);
  --tone-8: #f3f5f8;
  --tone-9: #d6dbe3;
  --tone-10: rgba(255, 255, 255, .08);
  --tone-11: #0b0b0d;
  --tone-12: rgba(255, 255, 255, 0);
  --tone-13: rgba(120, 160, 230, .22);
  --tone-14: rgba(120, 160, 230, .12);
  --tone-15: #f7f9fc;
  --tone-16: #eef3f9;
  --tone-17: #0e0e10;
  --tone-18: rgba(15, 27, 45, .55);
  --tone-19: rgba(255, 255, 255, .55);
  --tone-20: #a7b0bd;
  --tone-21: rgba(255, 255, 255, .16);
  --tone-22: #0c0d10;
  --tone-23: rgba(12, 13, 16, 0);
  --tone-24: rgba(12, 13, 16, .7);
  --tone-25: rgba(255, 255, 255, .06);
  --tone-26: rgba(255, 255, 255, .12);
  --tone-27: #c4cfdd;
  --tone-28: #eaf0ff;
  --tone-29: #0f1b2d;
  --tone-30: #c3cad5;
  --tone-31: rgba(12, 13, 16, 1);
  --tone-32: rgba(15, 27, 45, .5);
  --tone-33: #527ee0;
  --tone-34: #295ac6;
  --tone-35: #556783;
  --tone-36: #e9efff;
  --tone-37: #24334e;

  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #0f1b2d;         /* тёмно-синий вместо чёрного */
  --muted: #586579;
  --line: #dde4ee;
  --accent: #295ac6;
  --font: "Inter", system-ui, sans-serif;
  --wrap: 1240px;
  --gut: 56px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 1023px) { :root { --gut: 40px; } }
@media (max-width: 639px)  { :root { --gut: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--tone-1); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 28px; border-radius: 14px;
  font: 600 16px/1 var(--font); white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: var(--tone-2); }
.btn--accent:hover { background: var(--tone-3); }
.btn--ghost { border-color: var(--line); background: var(--tone-4); }
.btn--ghost:hover { background: var(--tone-2); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 12px; }

/* ---------- шапка (на той же сетке, что и первый экран) ---------- */
/* шапка: отдельная плашка, закреплена сверху и видна на тёмных и светлых блоках */
.header { position: fixed; inset: 16px 0 auto; z-index: 50; pointer-events: none; }
.header__bar { pointer-events: auto; display: flex; align-items: center; gap: 32px; height: 68px; width: calc(100% - 32px); max-width: calc(var(--wrap) + 24px); padding: 0 10px 0 22px;
  background: var(--tone-5); border: 1px solid var(--tone-6); border-radius: 18px; box-shadow: 0 20px 40px -24px var(--tone-7); color: var(--tone-8); }
.header__nav { display: flex; gap: 4px; margin-left: auto; }
.header__links { display: contents; }
.header__toggle { display: none; }
.header__nav a { padding: 10px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--tone-9); transition: background .2s, color .2s; }
.header__nav a:hover { background: var(--tone-10); color: var(--tone-2); }
.header__contacts { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header__phone { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 14px; font-weight: 600; }
.header__telegram { display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 10px; }
.header__contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header__telegram:hover { background: var(--tone-10); }
.header .btn--sm { height: 48px; }
html { scroll-padding-top: 100px; scroll-behavior: smooth; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 600 19px/1 var(--font); letter-spacing: -0.02em; }
.logo__mark { width: 26px; height: 26px; }

/* ---------- первый экран: общее ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 64px; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero__title { margin: 0; font-weight: 600; font-size: clamp(38px, 4.7vw, 68px); line-height: 1.02; letter-spacing: -0.045em; max-width: 11ch; text-wrap: balance; }
.hero__lead { margin: 24px 0 0; max-width: 38ch; font-size: 18px; line-height: 1.6; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts li { display: grid; gap: 2px; }
.facts b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.facts span { font-size: 14px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- экран ноутбука: сайт ложится по углам (site.js) ---------- */
.shot { position: relative; overflow: hidden; }
.shot__img { display: block; width: 100%; height: 100%; }
.shot__screen { position: absolute; left: 0; top: 0; width: 1280px; height: 918px; transform-origin: 0 0; overflow: hidden; background: var(--tone-2); visibility: hidden; }
.shot__screen.is-ready { visibility: visible; }
.shot__screen iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 918px; border: 0; pointer-events: none; }
.shot__notch { position: absolute; left: 50%; top: 0; width: 170px; height: 30px; margin-left: -85px; background: var(--tone-11); border-radius: 0 0 14px 14px; }
.shot__glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, var(--tone-6) 0%, var(--tone-12) 34%); }

/* ===================== A: светлый ===================== */
.hero--light { background:
    radial-gradient(900px 600px at 85% 15%, var(--tone-13), transparent 65%),
    radial-gradient(700px 500px at 70% 95%, var(--tone-14), transparent 65%),
    linear-gradient(180deg, var(--tone-15) 0%, var(--tone-16) 100%); }
.hero--light .shot { aspect-ratio: 3 / 2; border-radius: 32px; background: var(--tone-17);
  box-shadow: 0 50px 100px -50px var(--tone-18), 0 0 0 10px var(--tone-19); }
.hero--light .shot__img { object-fit: cover; }

/* ===================== B: тёмный, фото на весь экран ===================== */
.hero--dark { --ink: var(--tone-8); --muted: var(--tone-20); --line: var(--tone-21); background: var(--tone-22); color: var(--ink); }
.hero--dark .shot { position: absolute; top: 0; bottom: 0; right: 0; left: 36%; z-index: 0; }
.hero--dark .shot__img { object-fit: cover; object-position: 62% 55%; }
.hero--dark .shot::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--tone-22) 0%, var(--tone-23) 28%),
              linear-gradient(0deg, var(--tone-24) 0%, var(--tone-23) 22%); }
.hero--dark .hero__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.hero--dark .btn--ghost { background: var(--tone-25); color: var(--ink); }
.hero--dark .btn--ghost:hover { background: var(--tone-26); }

/* ===================== Разделы на светлом фоне ===================== */
.section { padding: 120px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 64px; flex-wrap: wrap; margin-bottom: 56px; }
.section__head h2 { margin: 0; font-weight: 800; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -0.035em; }
.section__head p { margin: 0; max-width: 44ch; font-size: 17px; color: var(--muted); }

.btn--line { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--line:hover { border-color: var(--tone-27); }

/* ---------- галочки ---------- */
.ticks { display: grid; gap: 10px; margin: 20px 0 28px; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.ticks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  background: var(--tone-28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='%23295ac6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* ---------- примеры работ ---------- */
.works { display: grid; gap: 96px; }
.work { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.work--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.work--flip .work__frame { order: 2; }
.work__frame { display: block; cursor: ns-resize; border-radius: 22px; overflow: hidden; background: var(--tone-2); border: 1px solid var(--line);
   transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.work__frame:hover { transform: translateY(-4px); }

@media (min-width: 1101px) {
  .work__frame {
    --preview-yaw: 10deg;
    --preview-roll: 1deg;
    --preview-lift: 0px;
    transform: perspective(1400px) translateY(var(--preview-lift)) rotateX(4deg) rotateY(var(--preview-yaw)) rotateZ(var(--preview-roll)) scale(.96);
    box-shadow: 0 30px 46px -26px var(--tone-18);
  }
  .work--flip .work__frame {
    --preview-yaw: -10deg;
    --preview-roll: -1deg;
  }
  .work__frame:hover { --preview-lift: -5px; }
}

@media (prefers-reduced-motion: reduce) {
  .work__frame:hover { --preview-lift: 0px; }
}
.work__view { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.work__view iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; pointer-events: none; transform-origin: 0 0; transform: scale(var(--s, .5)); }
.work__tag { color: var(--muted); font-size: 14px; font-weight: 600; }
.work h3 { margin: 18px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.work__info p { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.work .ticks { margin: 24px 0 32px; }

/* ---------- цены ---------- */
.section--white { background: var(--tone-2); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; border: 1px solid var(--line); border-radius: 26px; background: var(--bg); }
.plan--main { background: var(--tone-29); border-color: var(--tone-29); color: var(--tone-8); }
.plan--main .plan__for, .plan--main .ticks li { color: var(--tone-30); }
.plan h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.plan__for { margin: 10px 0 0; color: var(--muted); font-size: 15px; min-height: 48px; }
.plan__price { margin: 22px 0 0; font-size: 36px; font-weight: 800; letter-spacing: -0.035em; }
.plan .ticks { margin: 26px 0 32px; }
.plan .btn { margin-top: auto; width: 100%; }
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); }
.addon h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.addon p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.addon__price { flex: none; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .work, .work--flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .work--flip .work__frame { order: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 32px; }
  .addons { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 639px) {
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 36px; }
  .section__head p { font-size: 16px; }
  .works { gap: 64px; }
  .work h3 { font-size: 28px; }
  .work .btn { width: 100%; }
  .plan { padding: 30px 22px 24px; }
  .addon { flex-direction: column; align-items: flex-start; padding: 22px; }
}
@media (max-width: 1023px) {
  .hero { align-items: flex-start; padding-top: 112px; }
  .hero__inner, .hero--dark .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* B на узких: текст сверху, фото ноутбука под ним */
  .hero--dark { flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .hero--dark .shot { order: 2; position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; margin-top: 40px; }
  .hero--dark .shot::after { background: linear-gradient(180deg, var(--tone-31) 0%, var(--tone-23) 25%); }
  .hero--dark .shot__img { object-position: 72% 50%; }
}
@media (max-width: 639px) {
  .header { inset: 10px 0 auto; }
  .header__bar { width: calc(100% - 20px); padding-inline: 10px; }
  .header__contacts { gap: 8px; }
  .header__phone { font-size: 12px; }
  .hide-sm { display: none; }
  .header .btn--sm { margin-left: auto; height: 44px; padding: 0 14px; font-size: 13px; }
  .hero__lead { font-size: 16px; }
  .facts { gap: 20px; }
  .facts b { font-size: 18px; }
  .hero__actions .btn { width: 100%; }
  .hero--light .shot { border-radius: 22px; box-shadow: 0 30px 60px -30px var(--tone-32), 0 0 0 6px var(--tone-19); }
}


.hero--dark { --accent: var(--tone-33); }
.hero--dark .btn--accent { background: var(--tone-34); }
.hero--dark .btn--accent:hover { background: var(--tone-3); }
.hero__actions .btn { border-radius: 9px; }
.header .btn--accent { background: transparent; border-color: var(--tone-35); color: var(--tone-36); }
.header .btn--accent:hover { background: var(--tone-37); }
@media (max-width: 639px) {
  .hero__actions .btn { width: auto; }
  .hero__title { max-width: 12ch; }
}

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 80px); }
.faq h2 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 4px; font-size: clamp(17px, 2vw, 21px); font-weight: 650; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin: 0 0 20px; padding-inline: 4px; max-width: 65ch; color: var(--muted); }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }
.process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); }
.process h2 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.process p { color: var(--muted); }
.process .btn { margin-top: 8px; }
.process__steps { margin: 0; padding: 0; list-style: none; }
.process__steps li { padding: 18px 0; border-top: 1px solid var(--line); }
.process__steps h3 { margin: 0; font-size: 19px; }
.process__steps p { margin: 4px 0 0; }
@media (max-width: 700px) { .process { grid-template-columns: 1fr; } }
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 8px 0 0; color: var(--muted); }
.site-footer p a { text-decoration: underline; text-underline-offset: .2em; }
.booking { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: clamp(18px, 5vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); }
.booking::backdrop { background: var(--focus-dark); opacity: .65; }
.booking h2 { margin: 0; padding-right: 40px; }
.booking p { color: var(--muted); }
.booking__close { position: absolute; top: 12px; right: 12px; }
.booking__close button { width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 24px; cursor: pointer; }
.booking__form { display: grid; gap: 16px; }
.booking__form label { display: grid; gap: 6px; font-weight: 600; }
.booking__form label[hidden] { display: none; }
.booking__form :is(select, textarea, input:not([type="checkbox"])) { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
.booking__form a { text-decoration: underline; }
.booking__form button:disabled { opacity: .65; cursor: wait; }

.header__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }
.guide-intro h1 { max-width: 24ch; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-bottom: 48px; }
.guide-item { display: block; padding: 24px 12px 24px 0; border-top: 1px solid var(--line); }
.guide-item h2 { margin: 0 0 8px; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.18; text-decoration: underline; text-underline-offset: .18em; }
.guide-item p { margin: 0; color: var(--muted); }
.guide-item:hover h2 { color: var(--accent); }
.guide-grid--photo { gap: clamp(16px, 3vw, 32px); }
.guide-grid--photo .guide-item { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: clip; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.guide-grid--photo img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.guide-item__copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(16px, 2.5vw, 28px); }
.guide-item__copy h2 { text-decoration: none; }
.guide-grid--photo .guide-item:hover h2 { text-decoration: underline; }
.guide-item__copy span { margin-top: auto; padding-top: 16px; font-weight: 650; }
.guide-intro--editorial h1 { max-width: 17ch; }
.guide-intro--editorial h1 span { color: #284ebd; }
.guide-grid--editorial { align-items: start; }
.guide-grid--editorial .guide-item { border-radius: 8px; transition: box-shadow .2s ease; }
.guide-grid--editorial .guide-item:hover { box-shadow: 0 12px 28px rgb(21 37 65 / .12); }
.guide-grid--editorial .guide-item__copy { position: relative; padding-right: clamp(48px, 6vw, 82px); }
.guide-grid--editorial .guide-item__copy::after { content: "↗" / ""; display: grid; place-items: center; position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(16px, 2.5vw, 28px); width: 32px; height: 32px; border: 1px solid currentColor; border-radius: 50%; }
@media (min-width: 761px) {
  .guide-grid--editorial { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 24px); }
  .guide-grid--editorial .guide-item { grid-column: span 5; }
  .guide-grid--editorial .guide-item:nth-child(4n + 1),
  .guide-grid--editorial .guide-item:nth-child(4n) { grid-column: span 7; }
  .guide-grid--editorial .guide-item:nth-child(even) { margin-top: 30px; }
}
.guide-estimate, .guide-preview { position: relative; width: 100%; aspect-ratio: 2; overflow: hidden; container-type: inline-size; background: var(--ink); }
.guide-estimate__photo { position: absolute; top: 50%; width: 100%; aspect-ratio: 3 / 2; transform: translateY(-50%); }
.guide-estimate__photo img { width: 100%; height: 100%; aspect-ratio: auto; }
.guide-estimate__screen { position: absolute; inset: 20% 18% 31% 35%; display: grid; align-content: center; gap: .8cqw; padding: 2.5cqw; background: var(--bg); color: var(--ink); font-size: 2.15cqw; line-height: 1.2; }
.guide-estimate__screen strong { font-size: 2.8cqw; }
.guide-estimate__screen dl, .guide-estimate__screen dd { margin: 0; }
.guide-estimate__screen dl div { display: flex; justify-content: space-between; gap: 4px; padding-block: .65cqw; border-top: 1px solid var(--line); }
.guide-estimate__screen dd { white-space: nowrap; font-weight: 650; }
.guide-preview iframe { position: absolute; inset: 0; width: 1280px; height: 800px; border: 0; pointer-events: none; transform: scale(var(--preview-scale, .4)); transform-origin: top left; }
.guide-grid--photo .guide-industry { position: relative; }
.guide-industry h2 a::after { content: ""; position: absolute; inset: 0; }
.guide-industry:focus-within { outline: 2px solid var(--focus-dark); outline-offset: 3px; }
.guide-grid--industries .guide-preview { aspect-ratio: 16 / 10; }
.guide-grid--industries .guide-item__copy { position: static; }
.guide-grid--industries .guide-item__copy::after { color: var(--accent); pointer-events: none; }
.guide-question { border-top: 1px solid var(--line); padding: 16px 0; }
.guide-question summary { cursor: pointer; font-weight: 650; }
.guide-question p { margin-top: 8px; }

@media (max-width: 1000px) {
  .header__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; height: auto; gap: 4px 8px; padding-block: 6px; }
  .header__contacts { grid-area: 1 / 2; margin-left: 0; }
  .header__bar .header__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; margin: 0; padding-top: 3px; border-top: 1px solid var(--tone-6); }
  .header__nav a { display: grid; place-items: center; min-height: 44px; padding: 5px 4px; font-size: 13px; line-height: 1.2; text-align: center; }
  .hero { padding-top: 124px; }
  .seo-page { padding-top: max(124px, 11vw); }
  html { scroll-padding-top: 112px; }
}
@media (max-width: 380px) {
  .header__bar .logo { gap: 5px; font-size: 16px; }
  .header__bar .logo__mark { flex: none; width: 22px; height: 22px; }
  .header__contacts { gap: 5px; }
}
@media (max-width: 639px) {
  .header { position: relative; inset: auto; padding-top: 10px; }
  .header__bar { border-radius: 14px; gap: 0 6px; }
  .header__bar:has(.header__toggle) { grid-template-columns: minmax(0, 1fr) auto auto; }
  .header__bar .header__nav:has(.header__toggle) { display: contents; }
  .header__toggle {
    display: grid;
    grid-area: 1 / 3;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 5px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  .header__toggle::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -5px currentColor, 0 5px currentColor;
  }
  .header__toggle + .header__links {
    display: grid;
    grid-area: 2 / 1 / auto / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 6px;
    border-top: 1px solid var(--tone-6);
  }
  .header__toggle[aria-expanded="false"] + .header__links { display: none; }
  .hero, .seo-page { padding-top: 24px; }
  html { scroll-padding-top: 16px; }
}
@media (max-width: 360px) {
  .header__bar:has(.header__toggle) { padding-inline: 6px; column-gap: 4px; }
}
@media (max-width: 639px) {
  html:has(main > .hero--dark) { background: var(--tone-22); }
  body:has(main > .hero--dark) > .header { background: var(--tone-22); }
  .hero--dark { min-height: 0; padding-top: 30px; }
  .hero--dark .hero__title { font-size: clamp(34px, 9vw, 48px); max-width: 15ch; }
  .hero--dark .hero__lead { margin-top: 14px; line-height: 1.45; }
  .hero--dark .facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .hero--dark .facts b { font-size: clamp(13px, 3.9vw, 17px); }
  .hero--dark .facts span { font-size: 12px; line-height: 1.3; }
  .hero--dark .hero__actions { margin-top: 20px; }
  .hero--dark .hero__actions .btn { min-height: 48px; height: auto; padding: 10px 18px; }
  .hero--dark .shot { margin-top: 10px; aspect-ratio: 3 / 2; }
  .hero--dark .shot::after { background: linear-gradient(180deg, var(--tone-31), var(--tone-23) 18%); }
}
@media (max-width: 640px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } }

.seo-link, .seo-home, .seo-content li a { text-decoration: underline; text-underline-offset: .2em; }
.seo-guides { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.seo-page { padding: clamp(100px, 11vw, 160px) 0 80px; }
.seo-home { display: inline-block; margin-bottom: 28px; color: var(--muted); }
.seo-intro { display: grid; align-items: center; gap: 32px; margin-bottom: 48px; }
.seo-intro--photo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.seo-intro h1 { max-width: 20ch; margin: 0; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.04em; }
.seo-intro p { max-width: 54ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); }
.seo-intro img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.seo-content { max-width: 72ch; }
.seo-content section { padding: 24px 0; border-top: 1px solid var(--line); }
.seo-content h2 { margin: 0 0 10px; line-height: 1.2; font-size: clamp(21px, 2.4vw, 29px); }
.seo-content p { margin: 0; color: var(--muted); }
.seo-content .btn { margin: 10px 0 34px; }
.seo-content li { margin: 8px 0; }
.seo-examples { margin-bottom: clamp(48px, 7vw, 96px); padding: clamp(16px, 4vw, 48px); border-radius: 20px; background: var(--focus-dark); color: var(--focus-light); }
.seo-examples__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.seo-examples__head h2 { margin: 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.1; letter-spacing: -.035em; }
.seo-examples__head p, .seo-sample__text p { margin: 0; }
.seo-sample { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 48px); align-items: center; }
.seo-sample .work__frame { min-width: 0; border-radius: 12px; transform: none; box-shadow: none; }
.seo-sample .work__view { aspect-ratio: 16 / 10; }
.seo-sample__text { display: grid; gap: 8px; }
.seo-sample__text h3 { margin: 0; font-size: clamp(24px, 3vw, 40px); line-height: 1.05; }
.seo-sample__price { padding-top: 8px; font-weight: 700; }
.case-preview { width: min(100%, 1000px); margin: 0 auto clamp(48px, 7vw, 96px); scroll-margin-top: 108px; }
.case-preview__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 28px; margin-bottom: 18px; }
.case-preview__head h2 { margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.04em; }
.case-preview__head p { max-width: 53ch; margin: 0; }
.case-preview__head .case-preview__hint { max-width: 26ch; color: #4c6078; font-size: .875rem; }
.case-preview .work__frame { border: 1px solid #cbd6e3; border-radius: 14px; background: #fff; transform: none; box-shadow: 0 12px 32px rgb(23 45 78 / .09); }
.case-preview__cta { margin-top: 18px; }
.price-examples { padding: 0; background: transparent; color: var(--ink); }
.price-examples .seo-sample { background: var(--surface); border: 1px solid var(--line); padding: clamp(14px, 2vw, 24px); border-radius: 14px; align-self: stretch; grid-template-rows: auto auto 1fr auto; }
.price-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.price-card__actions > a:first-child, .price-breakdown a { color: var(--accent); font-weight: 650; }
.price-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 4vw, 56px); padding: clamp(20px, 4vw, 48px); background: #e7eefb; border-radius: 14px; margin-bottom: 48px; }
.price-breakdown h2, .price-breakdown dl { margin: 0; }
.price-breakdown dl div + div { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.price-breakdown dt { font-weight: 700; }
.price-breakdown dd { margin: 4px 0 0; }
.landing-results dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); align-items: start; gap: 14px 24px; }
.landing-results dl div + div { border: 0; margin: 0; padding: 0; }
.landing-results dt { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.04em; color: #284ebd; }
.case-journey { margin-top: 24px; padding: clamp(16px, 3vw, 32px); background: #e7eefb; border-radius: 14px; }
.case-journey h3 { margin: 0 0 14px; font-size: clamp(20px, 3vw, 30px); }
.case-journey ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; padding-left: 22px; }
.case-journey li span { display: block; margin-top: 4px; }
@media (max-width: 760px) {
  .price-breakdown, .case-journey ol { grid-template-columns: minmax(0, 1fr); }
}
.first-site { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: clamp(20px, 4vw, 40px); margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #172438; }
.first-site h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; }
.first-site p { max-width: 63ch; margin: 8px 0 0; }
.seo-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); }
.seo-samples--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seo-samples .seo-sample { grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.format-intro { max-width: 76ch; margin: 0 0 32px; }
.format-summary { display: grid; align-content: start; gap: 10px; }
.format-summary h3 { margin: 0; font-size: clamp(20px, 1.7vw, 28px); line-height: 1.15; }
.format-summary p { margin: 0; }
.format-map { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; }
.format-map span { padding: 5px 8px; }
.format-map--single { width: fit-content; padding: 3px; border: 1px solid currentColor; border-radius: 6px; }
.format-map--pages span, .format-map--flow span:not([aria-hidden]) { border: 1px solid currentColor; border-radius: 6px; }
@media (min-width: 761px) {
  .seo-examples--comparison .seo-sample { grid-row: span 3; grid-template-rows: subgrid; }
}
@media (max-width: 760px) {
  .seo-sample, .seo-samples { grid-template-columns: minmax(0, 1fr); }
  .seo-samples { gap: 32px; }
}
@media (max-width: 760px) { .seo-intro--photo { grid-template-columns: minmax(0, 1fr); } }
.booking__form .btn, .site-footer .btn { white-space: normal; height: auto; min-height: 48px; padding: 12px 18px; text-align: center; }

@media (max-width: 760px) {
  .btn {
    max-inline-size: 100%;
    height: auto;
    min-height: 48px;
    padding: 12px 18px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }
  .btn svg { flex: none; }
}

html, body { overflow-x: clip; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--focus-dark); outline-offset: 3px; box-shadow: 0 0 0 7px var(--focus-light); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

:is(.header, .hero--dark, .plan--main) :focus-visible { outline-color: var(--focus-light); box-shadow: 0 0 0 7px var(--focus-dark); }
