@font-face {
  font-family: "Russo One";
  src: url("/fonts/RussoOne.ttf") format("truetype");
  font-display: swap;
}

:root {
  --navy: #0E1A3A;
  --navy-2: #16264f;
  --orange: #FF6A13;
  --orange-2: #ff8a45;
  --wa: #1fa855;
  --ink: #0E1A3A;
  --muted: #5b6785;
  --bg: #f6f7fb;
  --card: #ffffff;
  --line: #e3e7f1;
  --radius: 20px;
  --head: "Russo One", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--body); overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* --- кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 12px 20px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(31,168,85,.7); }
.btn-wa:hover { background: #1b964b; box-shadow: 0 14px 30px -10px rgba(31,168,85,.8); }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light svg { color: var(--wa); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* --- шапка --- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 12px max(16px, calc((100% - 1160px) / 2));
  background: rgba(246,247,251,.82); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--head); font-size: 20px; letter-spacing: .02em; }
.brand b { font-weight: 400; color: var(--orange); }
.nav { display: none; gap: 24px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .top .btn { margin-left: 8px; } }

/* --- первый экран --- */
.hero { position: relative; padding: 28px 0 56px; overflow: hidden; }
.hero-bg i {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
  animation: float 14s ease-in-out infinite alternate;
}
.hero-bg i:nth-child(1) { width: 420px; height: 420px; background: #ffd2b5; top: -120px; right: -80px; }
.hero-bg i:nth-child(2) { width: 360px; height: 360px; background: #c9d6ff; bottom: -140px; left: -120px; animation-delay: -5s; }
.hero-bg i:nth-child(3) { width: 220px; height: 220px; background: #bff0d2; top: 40%; right: 30%; animation-delay: -9s; opacity: .35; }
@keyframes float { to { transform: translate(30px, 24px) scale(1.08); } }

.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } .hero { padding: 56px 0 88px; } }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange); background: #fff1e8; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
h1 { font-size: clamp(32px, 7.4vw, 60px); }
h1 span { display: block; color: var(--orange); margin-top: .18em; }
.lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); margin-top: 20px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .cta .btn { flex: 0 0 auto; } }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.facts li { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.facts b { display: block; font-family: var(--head); font-weight: 400; font-size: 22px; color: var(--navy); }
.facts span { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; }

/* --- телефон с перепиской --- */
.phone {
  margin: 0 auto; width: min(380px, 100%); background: #efe7dd; border-radius: 32px;
  border: 10px solid var(--navy); box-shadow: 0 40px 80px -40px rgba(14,26,58,.6); overflow: hidden;
  transform: rotate(1.5deg);
}
.phone-head { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 10px 14px 12px; }
.phone-head svg { width: 36px; height: 36px; background: #fff; border-radius: 50%; padding: 4px; color: var(--navy); }
.phone-head b { display: block; font-size: 15px; }
.phone-head small { opacity: .7; font-size: 12px; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 16px; min-height: 380px; }
.msg {
  max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0,0,0,.08); opacity: 0; transform: translateY(8px);
  animation: pop .45s ease forwards; animation-delay: calc(var(--d) * 1.1s + .3s);
}
.msg.out { align-self: flex-end; background: #d9fdd3; border-bottom-right-radius: 4px; }
.msg.in { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
@keyframes pop { to { opacity: 1; transform: none; } }
.typing { display: flex; gap: 4px; padding: 12px 14px; animation: pop .3s ease forwards, gone .3s ease forwards; animation-delay: 1.4s, 2.5s; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa3b8; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }
@keyframes gone { to { opacity: 0; height: 0; padding: 0; margin: -4px 0; } }
.estimate { width: 88%; }
.estimate ul { list-style: none; padding: 0; margin: 6px 0; }
.estimate li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.estimate li span:last-child { color: var(--muted); text-align: right; }
.total { margin-top: 6px; }
.total b { color: var(--orange); }
.estimate small { color: var(--muted); font-size: 12px; }
.opts { display: flex; flex-direction: column; gap: 2px; }
.opts b { color: var(--orange); }
.phone figcaption { font-size: 12px; color: var(--muted); background: #fff; padding: 8px 14px; text-align: center; }

/* --- секции --- */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section h2 { font-size: clamp(28px, 5vw, 44px); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 18px;
  background: var(--navy); color: #fff; font-family: var(--head); font-size: 20px;
}
.steps li:nth-child(2) .num { background: var(--orange); }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--muted); }
.services { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.services span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; }

.why { padding-top: 0; }
.why-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card {
  background: linear-gradient(160deg, #fff, #fff 60%, #fff4ec); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); }

.business { background: var(--navy); color: #fff; }
.business .lead { color: #c3cbe0; }
.business .eyebrow { background: rgba(255,106,19,.15); }
.business-grid { display: grid; gap: 32px; align-items: center; }
.business .btn { margin-top: 28px; }
@media (min-width: 900px) { .business-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li {
  position: relative; padding: 16px 16px 16px 52px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.checks li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.masters-box {
  display: grid; gap: 24px; align-items: center; padding: 32px 24px; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, var(--orange-2), var(--orange) 55%, #e2550a);
}
.masters-box p { margin-top: 10px; opacity: .92; max-width: 36em; }
@media (min-width: 820px) { .masters-box { grid-template-columns: 1fr auto; padding: 48px; } }

/* --- подвал --- */
.foot { padding: 40px 0 120px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; gap: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.foot .brand { margin-bottom: 8px; }
@media (min-width: 820px) { .foot { padding-bottom: 40px; } .foot-grid { grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; } }

/* --- кнопка внизу экрана на телефоне --- */
.sticky {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
  padding: 15px; font-size: 16px; transform: translateY(140%); transition: transform .3s ease;
}
.sticky.show { transform: none; }
@media (min-width: 820px) { .sticky { display: none; } }

/* --- появление при прокрутке --- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* --- простые страницы (условия, политика, 404) --- */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 20px; }
.doc p { color: var(--muted); margin-top: 12px; }
.doc .btn { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .msg { opacity: 1; transform: none; }
  .typing { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
