/* Сайт seller-agent.ru — по макету docs/design/Site-maket.html (голубая палитра).
   Без встроенных стилей и чужих шрифтов: строгая политика CSP, шрифт Inter — свой файл. */
@font-face {
  font-family: Inter;
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #F5FAFF;
  --card: #FFFFFF;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #475569;
  --faint: #64748B;
  --line: #E2ECF5;
  --line-2: #BAE6FD;
  --sky: #0EA5E9;
  --blue: #0369A1;  /* белый текст на нём — контраст 5,9:1 (WCAG AA) */
  --link: #0369A1;
  --link-hover: #075985;
  --pale: #E0F2FE;
  --red-bg: #FEF2F2;
  --red: #B91C1C;
  --green: #16A34A;
  --footer: #0F172A;
  --footer-text: #CBD5E1;
  --footer-link: #7DD3FC;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* шапка */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.logo { width: 36px; height: 36px; border-radius: 10px; background: var(--sky); display: flex; align-items: center; justify-content: center; flex: none; }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--link); }

/* кнопки */
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 12px; text-align: center; }
.btn-main { background: var(--blue); color: #FFFFFF; }
.btn-main:hover { background: var(--link-hover); color: #FFFFFF; }
.btn-soft { background: var(--pale); color: var(--link); }
.btn-line { background: var(--card); color: var(--link); border: 1px solid var(--line-2); }
.btn-sm { font-size: 15px; padding: 12px 20px; }
.btn-lg { font-size: 17px; padding: 16px 28px; border-radius: 14px; }

/* первый экран */
.hero { background: linear-gradient(180deg, var(--pale) 0%, var(--bg) 100%); }
.hero .wrap { padding-top: 72px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; background: var(--card); color: var(--link); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); }
.hero h1 { font-size: 54px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.lead { font-size: 20px; line-height: 1.55; color: var(--text-2); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--text-2); padding: 0; margin: 0; list-style: none; }
.facts li::before { content: "✓ "; color: var(--blue); font-weight: 700; }
.hero-demo { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.phone { width: 380px; max-width: 100%; background: var(--card); border-radius: 28px; box-shadow: 0 24px 60px rgba(2, 132, 199, 0.18); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.phone-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #EEF2F7; }
.dot { width: 36px; height: 36px; border-radius: 50%; background: var(--sky); flex: none; }
.phone-head span { display: block; }
.phone-head .name { font-weight: 700; font-size: 15px; }
.phone-head .time { font-size: 12px; color: var(--faint); }
.msg { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; }
.msg b { color: var(--link); }
.msg span { color: var(--text-2); }
.msg.urgent { background: var(--red-bg); }
.msg.urgent b { color: var(--red); }
.phone-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.phone-buttons span { border-radius: 12px; padding: 12px; font-weight: 600; font-size: 15px; min-height: 44px; text-align: center; }
.ok { background: var(--green); color: #FFFFFF; }
.open { background: var(--pale); color: var(--link); }

/* разделы */
.section { padding: 88px 0; }
.section.white { background: var(--card); }
.section.blue { background: var(--bg); }
.section .wrap { display: flex; flex-direction: column; gap: 40px; }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.head p { font-size: 18px; line-height: 1.55; color: var(--muted); }
.grid { display: grid; gap: 20px; }
.g340 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.g300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.g240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.card { border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card.soft { background: var(--bg); }
.card.plain { background: var(--card); border: 1px solid var(--line); }
.card.sm { padding: 24px; gap: 8px; }
.card h3 { font-size: 20px; font-weight: 700; }
.card.sm h3, .modes h3 { font-size: 17px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.duo { display: flex; flex-wrap: wrap; gap: 20px; }
.duo > div { flex: 1 1 480px; min-width: 0; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.duo h3 { font-size: 24px; font-weight: 800; }
.duo p { font-size: 16px; line-height: 1.6; }
.whole { background: var(--blue); color: #FFFFFF; }
.whole p { color: var(--pale); }
.photo { background: var(--pale); }
.photo p { color: var(--text-2); }
.steps { list-style: none; margin: 0; padding: 0; }
.num { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #FFFFFF; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 19px; }
.modes { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-wrap: wrap; gap: 24px; }
.modes > div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.modes p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* тарифы */
.plans { align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.plan.best { border: 2px solid var(--blue); box-shadow: 0 16px 40px rgba(2, 132, 199, 0.15); }
.plan h3 { font-size: 22px; font-weight: 700; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge { font-size: 13px; font-weight: 600; color: #FFFFFF; background: var(--blue); border-radius: 999px; padding: 6px 12px; }
.price { font-size: 38px; font-weight: 800; }
.price small { font-size: 16px; font-weight: 500; color: var(--faint); }
.plan ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.plan .btn { margin-top: auto; padding: 14px; }
.note { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Ози */
.ozi-section .wrap { flex-direction: row; flex-wrap: wrap; align-items: center; padding-top: 0; }
.ozi-pic { flex: 0 1 320px; min-width: 0; display: flex; justify-content: center; }
.ozi-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ozi-text p { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.asks { display: flex; flex-wrap: wrap; gap: 10px; }
.ask { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--text-2); cursor: pointer; }
.ask:hover { border-color: var(--line-2); color: var(--link); }
/* анимация Ози: «дыхание» и прыжок по нажатию (docs/design/ozi/ozi-mascot-anim.html) */
.ozi-big { position: relative; display: block; width: 300px; max-width: 100%; aspect-ratio: 1; border: 0; border-radius: 32%; padding: 0; background: transparent; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ozi-big:focus-visible { outline: 3px solid #7757c9; outline-offset: 3px; }
.ozi-shadow { position: absolute; inset: 79% 24% 15%; border-radius: 50%; background: #38245e; opacity: .2; filter: blur(9px); }
.ozi-motion, .ozi-turn, .ozi-img { position: relative; display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.ozi-motion, .ozi-img { transform-origin: 50% 81%; }
.ozi-turn { transform: perspective(650px) rotateX(var(--tip, 0deg)) rotateY(var(--turn, 0deg)); transition: transform .24s ease-out; }
.ozi-img { animation: ozi-breathe 4s ease-in-out infinite; }
@keyframes ozi-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.986, 1.016); } }
@media (prefers-reduced-motion: reduce) { .ozi-turn { transform: none; transition: none; } .ozi-img { animation: none; } }

/* вопросы */
.faq .wrap { max-width: 880px; gap: 28px; }
.qa { display: flex; flex-direction: column; gap: 14px; }
.qa details { background: var(--bg); border-radius: 16px; padding: 22px; }
.qa summary { font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; }
.qa details[open] summary::after { content: "−"; }
.qa p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* подвал */
.foot { background: var(--footer); color: var(--footer-text); }
.foot .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot .col { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot .col.wide { flex-basis: 320px; gap: 12px; }
.foot b { color: #FFFFFF; }
.foot .name { font-size: 20px; font-weight: 800; }
.foot p { line-height: 1.6; }
.foot a { color: var(--footer-link); }
.foot a:hover { color: #FFFFFF; }

/* страницы документов */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 820px; display: flex; flex-direction: column; gap: 20px; }
.doc h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.doc p { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.doc .box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .hero h1 { font-size: clamp(28px, 9vw, 34px); }
  .lead { font-size: 17px; }
  h2 { font-size: 30px; }
  .section { padding: 56px 0; }
  .card, .duo > div, .plan, .modes { padding: 22px; }
  .price { font-size: 32px; }
  .nav { gap: 6px 16px; font-size: 14px; }
  .top .btn-sm { padding: 10px 14px; font-size: 14px; }
  .doc h1 { font-size: 28px; }
}
