/* SugarGlass — стекло как в приложении: полупрозрачные поверхности поверх цветного свечения
   в цветах иконки (синий → мятный). Светлая и тёмная тема — по системной настройке. */

:root {
  --bg: #eef3f7;
  --ink: #0d1b16;
  --ink-2: #3f4d47;
  --ink-3: #6a7771;
  --accent: #2448e0;
  --accent-ink: #ffffff;
  --green: #1a7847;
  --green-soft: rgba(26, 120, 71, 0.12);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-sheen: rgba(255, 255, 255, 0.9);
  --hairline: rgba(13, 27, 22, 0.09);
  --shadow: 0 24px 60px -24px rgba(22, 52, 96, 0.28), 0 2px 8px -2px rgba(22, 52, 96, 0.08);
  --glow-blue: rgba(37, 99, 255, 0.42);
  --glow-mint: rgba(47, 215, 154, 0.42);
  --glow-green: rgba(26, 160, 90, 0.26);
  --frame: #0b0b0f;
  --radius: 28px;
  --radius-sm: 18px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05080c;
    --ink: #f1f5f3;
    --ink-2: #b9c5c0;
    --ink-3: #8a9791;
    --accent: #4f6bff;
    --green: #3ddc84;
    --green-soft: rgba(61, 220, 132, 0.14);
    --glass: rgba(30, 36, 44, 0.55);
    --glass-strong: rgba(34, 40, 50, 0.78);
    --glass-edge: rgba(255, 255, 255, 0.12);
    --glass-sheen: rgba(255, 255, 255, 0.18);
    --hairline: rgba(255, 255, 255, 0.08);
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
    --glow-blue: rgba(37, 99, 255, 0.34);
    --glow-mint: rgba(47, 215, 154, 0.24);
    --glow-green: rgba(26, 160, 90, 0.18);
    --frame: #2b2c31;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Цветное свечение под стеклом */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px);
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 58vmax; height: 58vmax; left: -18vmax; top: -22vmax; background: var(--glow-blue); }
.aurora span:nth-child(2) { width: 50vmax; height: 50vmax; right: -20vmax; top: 18vh; background: var(--glow-mint); animation-duration: 32s; }
.aurora span:nth-child(3) { width: 44vmax; height: 44vmax; left: 10vw; bottom: -26vmax; background: var(--glow-green); animation-duration: 38s; }
@keyframes drift { to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); } }

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

/* Стекло */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-sheen), var(--shadow);
}
.glass::before {
  /* Блик по верхней кромке — как у Liquid Glass */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, var(--glass-sheen) 0%, transparent 38%);
  opacity: 0.35;
}

/* Шапка — плавающая капсула */
.site-header { position: sticky; top: 12px; z-index: 50; padding: 0 16px; }
.nav {
  display: flex; align-items: center; gap: 8px;
  width: min(100%, var(--wrap)); margin: 0 auto;
  padding: 8px 8px 8px 14px; border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px;
}
.nav__links a:hover { background: var(--hairline); color: var(--ink); text-decoration: none; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hairline); margin-left: 6px; }
.lang a, .lang button {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 6px 10px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
}
.lang a:hover { text-decoration: none; color: var(--ink); }
.lang [aria-current="true"], .lang [aria-pressed="true"] { background: var(--glass-strong); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  color: var(--accent-ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white) 0%, var(--accent) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn--glass { color: var(--ink); background: var(--glass-strong); border-color: var(--glass-edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 var(--glass-sheen), 0 8px 24px -12px rgba(0,0,0,.25); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* Первый экран */
.hero { padding: 64px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--green);
  background: var(--green-soft);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--green-soft); margin-left: 4px; }
h1 {
  margin: 20px 0 16px; font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
}
h1 .grad {
  background: linear-gradient(100deg, #2563ff 0%, #1fb8a8 55%, #2fd79a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-3); font-size: 15px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips svg { width: 18px; height: 18px; color: var(--green); }

/* Телефоны */
.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 1320 / 2868;
  padding: 3.4%; border-radius: 15% / 7%; background: var(--frame);
  box-shadow: 0 40px 80px -30px rgba(10, 30, 60, .45), inset 0 0 0 1.5px rgba(255,255,255,.12);
}
.phone img, .phone picture { width: 100%; height: 100%; border-radius: 12.5% / 5.8%; object-fit: cover; }
.hero__visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.hero__visual .phone--back { position: absolute; width: 64%; max-width: 270px; top: 40px; right: 2%; transform: rotate(7deg); opacity: .96; }
.hero__visual .phone--front { width: 70%; max-width: 300px; margin-right: 22%; transform: rotate(-3deg); z-index: 1; }
.float-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 20px; font-size: 14px; color: var(--ink-2); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip b { display: block; font-size: 20px; line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; }
.float-chip .dot { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-chip .dot svg { width: 18px; height: 18px; }
.float-chip--a { left: -4%; top: 22%; }
.float-chip--b { right: -2%; bottom: 20%; animation-delay: -2s; }
.float-chip--c { left: 6%; bottom: 4%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Секции */
section { padding: 56px 0; }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-head h2, h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 19px; margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding: 28px; }
.value h3 { margin: 16px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.value p { margin: 0; color: var(--ink-2); }
.icon-tile {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px -10px rgba(0,0,0,.35);
}
.icon-tile svg { width: 26px; height: 26px; }
.tile-blue { background: linear-gradient(160deg, #4f7bff, #2448e0); }
.tile-mint { background: linear-gradient(160deg, #3fe0a8, #19a978); }
.tile-green { background: linear-gradient(160deg, #36c46f, #1a7847); }
.tile-violet { background: linear-gradient(160deg, #b36bff, #7a3ee6); }
.tile-orange { background: linear-gradient(160deg, #ffb340, #f08a00); }
.tile-pink { background: linear-gradient(160deg, #ff6b9a, #e8336b); }

/* Возможности: строки «текст + телефон» */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 40px; margin-bottom: 22px;
}
.feature:nth-of-type(even) .feature__text { order: 2; }
.feature__text h3 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -0.025em; margin: 16px 0 12px; }
.feature__text > p { color: var(--ink-2); margin: 0 0 18px; font-size: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231a7847' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.feature__visual { display: flex; justify-content: center; }
.feature__visual .phone { max-width: 280px; }

/* Лента экранов */
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 10px 16px 30px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 auto; width: 240px; scroll-snap-align: center; text-align: center; }
.gallery .phone { max-width: none; }
.gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-3); font-weight: 500; }

/* Приватность */
.privacy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; padding: 44px; align-items: center; }
.privacy h2 { margin-top: 18px; }
.privacy p { color: var(--ink-2); font-size: 18px; }
.privacy .ticks { gap: 14px; }

/* Сахарное стекло */
.story { padding: 36px 40px; display: flex; gap: 28px; align-items: center; }
.story img { width: 112px; height: 112px; border-radius: 26px; flex: none; box-shadow: 0 18px 40px -16px rgba(20, 60, 120, .5); }
.story h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.02em; }
.story p { margin: 0; color: var(--ink-2); }

/* Вопросы */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0; border-radius: var(--radius-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 18px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 24px 22px; color: var(--ink-2); }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin: 0; }

/* Финальный призыв */
.cta { text-align: center; padding: 56px 32px; }
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 18px 40px -16px rgba(20, 60, 120, .5); }
.cta p { color: var(--ink-2); font-size: 18px; max-width: 36em; margin: 0 auto 26px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Подвал */
.site-footer { padding: 40px 0 56px; color: var(--ink-3); font-size: 15px; }
.foot { display: grid; gap: 18px; }
.foot__top { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--ink-2); }
.foot small { display: block; font-size: 13px; line-height: 1.5; max-width: 60em; }

/* Документы */
.doc { padding: 40px 0 64px; }
.doc__card { max-width: 860px; margin: 0 auto; padding: 44px 48px; }
.doc__card h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.doc__meta { color: var(--ink-3); margin: 0 0 28px; font-size: 15px; }
.doc__card h2 { font-size: 22px; letter-spacing: -0.015em; margin: 34px 0 10px; }
.doc__card h3 { font-size: 18px; margin: 22px 0 8px; }
.doc__card p, .doc__card li { color: var(--ink-2); }
.doc__card ul { padding-left: 22px; }
.doc__card li { margin: 4px 0; }
.doc__note { padding: 18px 22px; border-radius: var(--radius-sm); background: var(--green-soft); color: var(--ink); margin: 0 0 24px; }
.doc__note p { margin: 0; color: var(--ink); }
.doc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 860px; margin: 0 auto 16px; }
[data-doc-lang][hidden] { display: none; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .float-chip { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Планшеты */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__text { text-align: center; }
  .lead { margin-inline: auto; }
  .hero__cta, .chips { justify-content: center; }
  .hero__visual { min-height: 0; margin-top: 12px; }
  .values { grid-template-columns: 1fr; }
  .feature, .privacy { grid-template-columns: 1fr; padding: 32px 24px; }
  .feature:nth-of-type(even) .feature__text { order: 0; }
  .feature__visual .phone { max-width: 250px; }
}

/* Телефоны */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .lang { margin-left: auto; }
  .nav .btn { display: none; }
  .hero { padding-top: 36px; }
  .hero__visual .phone--front { width: 62%; margin-right: 18%; }
  .hero__visual .phone--back { width: 52%; top: 30px; }
  .float-chip { padding: 9px 12px; font-size: 12px; border-radius: 16px; }
  .float-chip b { font-size: 16px; }
  .float-chip .dot { width: 28px; height: 28px; border-radius: 10px; }
  .float-chip--a { left: 0; top: 16%; }
  .float-chip--b { right: 0; bottom: 24%; }
  .float-chip--c { display: none; }
  section { padding: 40px 0; }
  .section-head p { font-size: 17px; }
  .story { flex-direction: column; text-align: center; padding: 28px 22px; }
  .doc__card { padding: 28px 20px; }
  .gallery figure { width: 200px; }
}
