/* Dainbol — сайт. Только светлая тема, фирменный синий из приложения
   (colors.dart: primary 500 #1C8FFD, градиент кнопки #49A5FD → #1672CA). */

/* Inter (переменный, 100–900), лицензия OFL — assets/fonts/OFL.txt. Решение владельца 19.10. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand-300: #49a5fd;
  --brand-500: #1c8ffd;
  --brand-600: #1672ca;
  --brand-50: #eef6ff;
  --grad: linear-gradient(135deg, #49a5fd 0%, #1c8ffd 45%, #1672ca 100%);
  --ink: #0d1726;
  --muted: #5d6b7e;
  --line: #e6edf5;
  --surface: #f5f9fe;
  --card: #e9f0f8; /* карточки тарифов и предметов: темнее фона, чтобы не сливались с белым */
  --white: #ffffff;
  --radius-l: 36px;
  --radius-m: 24px;
  --radius-s: 14px;
  --shadow-phone: 0 40px 80px -30px rgba(13, 40, 80, .45), 0 18px 36px -18px rgba(13, 40, 80, .35);
  --wrap: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.header .wrap { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(13, 40, 80, .35); }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* кнопки сторов: логотип + подпись; ссылок пока нет */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px 0 18px; border-radius: 16px;
  background: var(--ink); color: #fff; min-width: 184px;
}
.store-ic { width: 26px; height: 26px; flex: none; }
.store-t { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; opacity: .75; font-weight: 600; letter-spacing: .02em; }
.store b { font-size: 19px; letter-spacing: -.01em; }
.stores.light .store { background: #fff; color: var(--ink); }

/* ---------- телефон ---------- */
.phone {
  --w: 280px;
  position: relative; width: var(--w); aspect-ratio: 393 / 852; flex: none;
  padding: calc(var(--w) * .032); border-radius: calc(var(--w) * .15);
  background: #0b0f16; box-shadow: var(--shadow-phone);
}
/* без «острова»: снимки экранов сняты без строки состояния, остров закрыл бы шапку */
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--w) * .12); background: #fff; }

/* ---------- 3D-иллюстрации ---------- */
.ill { position: absolute; z-index: 3; width: 120px; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(13, 40, 80, .22)); animation: float 7s ease-in-out infinite; }
.ill.d1 { animation-delay: -2s; }
.ill.d2 { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .ill { animation: none; } html { scroll-behavior: auto; } }

/* ---------- заголовки ---------- */
.h1 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; margin: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); margin: 0; max-width: 34ch; }

section { padding: 56px 0; }

/* ---------- первый экран ---------- */
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; min-height: 640px; }
.hero-text { display: grid; gap: 28px; }
.hero-art { position: relative; height: 640px; }
.hero-blob { position: absolute; inset: 70px 30px 20px 60px; border-radius: 56px; background: var(--grad); overflow: hidden; }
.hero-blob::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .35), transparent 45%); }
.hero-art .phone { position: absolute; }
.hero-art .front { --w: 280px; top: 0; right: 9%; z-index: 2; }
.hero-art .back { --w: 250px; top: 90px; left: 10%; transform: rotate(-8deg); }
.hero-art .i-rocket { top: 10px; left: 0; width: 132px; }
.hero-art .i-medal { bottom: 70px; left: 6px; width: 128px; }
.hero-art .i-star { top: 210px; right: -6px; width: 96px; }
.hero-art .i-fire { bottom: 10px; right: 30px; width: 104px; }

/* ---------- путь: тёмно-синяя панель с тремя телефонами ---------- */
.path-panel { position: relative; border-radius: var(--radius-l); background: var(--grad); padding: 72px 40px 0; overflow: hidden; text-align: center; color: #fff; }
.path-panel::before, .path-panel::after { content: ""; position: absolute; left: 50%; top: -260px; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.path-panel::before { width: 720px; height: 720px; }
.path-panel::after { width: 1040px; height: 1040px; }
.path-panel .h2 { position: relative; }
.path-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.path-card { background: #fff; color: var(--ink); border-radius: var(--radius-m) var(--radius-m) 0 0; padding: 32px 20px 0; display: grid; justify-items: center; gap: 28px; overflow: hidden; }
.path-card h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.path-card .phone { --w: 236px; border-radius: calc(var(--w) * .15) calc(var(--w) * .15) 0 0; padding-bottom: 0; aspect-ratio: 393 / 560; box-shadow: none; }
.path-card .phone img { border-radius: calc(var(--w) * .12) calc(var(--w) * .12) 0 0; }

/* ---------- тарифы ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { position: relative; background: var(--card); border-radius: var(--radius-m); padding: 28px 30px; min-height: 240px; overflow: hidden; display: flex; flex-direction: column; }
.plan img { position: absolute; top: 16px; right: 16px; width: 92px; filter: drop-shadow(0 12px 16px rgba(13, 40, 80, .2)); }
.plan h3 { margin: 0; font-size: 18px; color: var(--muted); }
.plan .price { margin: 6px 0 auto; font-size: 40px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.plan li::before { content: "✓"; color: var(--brand-500); margin-right: 8px; }
.plan.best { background: var(--grad); color: #fff; }
.plan.best h3, .plan.best .price small { color: rgba(255, 255, 255, .8); }
.plan.best li::before { color: #fff; }
.plan-tag { margin-left: 8px; vertical-align: 2px; color: #fff; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 700; }

/* ---------- предметы: 12 отдельных карточек в том же объёме блока ---------- */
.subjects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.subject { border-radius: var(--radius-s); background: var(--card); padding: 18px 14px 16px; display: grid; gap: 12px; justify-items: center; align-content: space-between; text-align: center; min-height: 168px; }
.subject img { width: 84px; filter: drop-shadow(0 10px 14px rgba(13, 40, 80, .2)); }
.subject h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; line-height: 1.25; }

/* ---------- статистика и вершина ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.split-art { position: relative; height: 620px; border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.split-art .phone { position: absolute; --w: 260px; }
.split-art .p1 { left: 9%; top: 60px; transform: rotate(-6deg); }
.split-art .p2 { right: 9%; top: 110px; transform: rotate(6deg); }
.split-art .i-cal { left: 40%; bottom: 20px; width: 120px; }
.split-art .i-trophy { right: 4%; top: 22px; width: 104px; }
.split-text { display: grid; gap: 22px; }

/* ---------- скоро в сторах ---------- */
.cta { position: relative; border-radius: var(--radius-l); background: var(--grad); color: #fff; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 520px; padding: 0 64px; }
.cta-rings { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); width: 680px; height: 680px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 0 0 90px rgba(255, 255, 255, .05), 0 0 0 180px rgba(255, 255, 255, .03); }
.cta-text { position: relative; display: grid; gap: 28px; }
.cta .h2 { font-size: clamp(30px, 3.4vw, 46px); }
.cta-art { position: relative; height: 520px; }
.cta-art .phone { position: absolute; --w: 228px; }
.cta-art .c1 { left: 4%; top: 110px; transform: rotate(-7deg); }
.cta-art .c2 { right: 4%; top: 60px; transform: rotate(7deg); z-index: 2; }
.cta-art .i-comet { left: -4%; top: 20px; width: 110px; }
.cta-art .i-sat { left: 38%; bottom: 14px; width: 110px; z-index: 3; }

/* ---------- подвал ---------- */
.footer { margin-top: 56px; background: var(--surface); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.footer h4 { margin: 0 0 14px; font-size: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer .copy { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* ---------- внутренние страницы ---------- */
.page-hero { padding: 64px 0 24px; }
.page-hero .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.page-hero img { width: 170px; filter: drop-shadow(0 18px 24px rgba(13, 40, 80, .2)); }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.empty { text-align: center; padding: 72px 0 40px; display: grid; justify-items: center; gap: 18px; }
.empty img { width: 220px; filter: drop-shadow(0 22px 30px rgba(13, 40, 80, .2)); }
.empty p { color: var(--muted); margin: 0; }

.spec { display: grid; gap: 16px; padding-bottom: 24px; }
.spec-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px 32px; }
.spec-card h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.02em; }
.spec-card p { margin: 0 0 10px; }
.spec-card p:last-child { margin-bottom: 0; }
.spec-card ul, .spec-card ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.spec-card code { font-size: 14px; background: var(--surface); border-radius: 6px; padding: 1px 6px; }
.spec-card.accent { background: var(--brand-50); border-color: transparent; }
.spec-card.warn { background: #fff8eb; border-color: #f6e2b8; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec-grid .spec-card { padding: 24px; }
.spec-grid h2 { font-size: 18px; }
.muted { color: var(--muted); }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .hero .wrap, .split, .cta { grid-template-columns: 1fr; }
  .hero .wrap { min-height: 0; padding-top: 24px; }
  .hero-art { height: 600px; }
  .path-cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 0; }
  .subjects { grid-template-columns: repeat(4, 1fr); }
  .cta { padding: 56px 28px 0; text-align: center; }
  .cta .stores { justify-content: center; }
  .cta-text .lead { margin-inline: auto; }
  .cta-art { height: 460px; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .brand-col { grid-column: 1 / -1; }
  .spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header .wrap { gap: 18px; height: 64px; }
  .nav { gap: 16px; }
  section { padding: 40px 0; }
  .hero-art { height: 500px; }
  .hero-blob { inset: 60px 0 10px 0; border-radius: 40px; }
  .hero-art .front { --w: 200px; right: 4%; }
  .hero-art .back { --w: 178px; left: 4%; top: 80px; }
  .hero-art .ill { width: 84px; }
  .path-panel { padding: 48px 16px 0; border-radius: 28px; }
  .subjects { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .subject { min-height: 0; padding: 14px 8px 12px; gap: 8px; }
  .subject img { width: 60px; }
  .subject h3 { font-size: 13px; }
  .plan { padding: 22px 22px; }
  .plan img { width: 72px; }
  .plan .price { font-size: 34px; }
  .split-art { height: 500px; }
  .split-art .phone { --w: 190px; }
  .split-art .p1 { left: 2%; }
  .split-art .p2 { right: 2%; }
  .cta { border-radius: 28px; padding: 44px 16px 0; }
  .cta-art { height: 420px; }
  .cta-art .phone { --w: 160px; }
  .cta-art .c1 { left: 2%; top: 80px; }
  .cta-art .c2 { right: 2%; top: 40px; }
  .cta-art .ill { width: 76px; }
  .stores .store { min-width: 0; flex: 1; padding: 0 12px; gap: 9px; }
  .store-ic { width: 22px; height: 22px; }
  .store b { font-size: 16px; }
  .store small { font-size: 10px; }
  .page-hero img { width: 110px; }
  .spec-card { padding: 22px 20px; }
}
