/* ===== iPhone 2026 — стили ===== */
:root {
  color-scheme: dark;
  --bg: #05060a;
  --bg2: #0b0d14;
  --card: #10131d;
  --card-hover: #151a27;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9ebf3;
  --muted: #9aa2b8;
  --btn-bg: rgba(255, 255, 255, 0.05);
  --btn-bg-hover: rgba(255, 255, 255, 0.12);
  --btn-border: rgba(255, 255, 255, 0.35);
  --btn-text: #fff;
  --primary-bg: #fff;
  --primary-text: #05060a;
  --shadow: rgba(0, 0, 0, 0.45);
  --section-tint: rgba(255, 255, 255, 0.03);
  --thead-bg: rgba(255, 255, 255, 0.04);
  --row-hover: rgba(255, 255, 255, 0.05);
  --topbar-bg: rgba(5, 6, 10, 0.72);
  --nav-active: #fff;
  --grad-start: #fff;
  --grad-end: #b9c2d6;
  --grad-start: #fff;
  --grad-end: #8fa0c8;
  --orange: #ff9f43;
  --red: #ff5c5c;
  --blue: #4aa8ff;
  --violet: #9b7bff;
  --green: #3ddc97;
  --radius: 20px;
}

/* ===== СВЕТЛАЯ ТЕМА (по клику на ☀️/🌙 в шапке) ===== */
/* ===== Переключатель темы ===== */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --bg2: #ffffff;
  --card: #ffffff;
  --card-hover: #f8f9fd;
  --line: rgba(14, 20, 40, 0.12);
  --text: #131826;
  --muted: #5b6478;
  --btn-bg: rgba(14, 20, 40, 0.05);
  --btn-bg-hover: rgba(14, 20, 40, 0.1);
  --btn-border: rgba(14, 20, 40, 0.35);
  --btn-text: #131826;
  --primary-bg: #131826;
  --primary-text: #f7f8fc;
  --shadow: rgba(23, 32, 64, 0.16);
  --section-tint: rgba(14, 20, 40, 0.035);
  --thead-bg: rgba(14, 20, 40, 0.05);
  --row-hover: rgba(14, 20, 40, 0.04);
  --topbar-bg: rgba(244, 246, 251, 0.82);
  --nav-active: #131826;
  --grad-start: #1b2236;
  --grad-end: #5a6788;
  --orange: #e07c10;
  --red: #e64545;
  --blue: #1678d8;
  --violet: #6d4de0;
  --green: #12a86b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1140px, 92%); margin-inline: auto; }
.wrap--narrow { width: min(760px, 92%); }

/* неоновые надписи в заголовке (сдержанный сине-фиолетовый) */
.neon {
  color: #8b7cf0;
  text-shadow:
    0 0 6px rgba(139, 124, 240, 0.35),
    0 0 18px rgba(139, 124, 240, 0.22);
}
.neon--blue { color: #7f9df5; }
.neon--violet { color: #8b7cf0; }
.neon--pink { color: #a97cf0; }
html[data-theme="light"] .neon { color: #4f46c4; text-shadow: none; }
html[data-theme="light"] .neon--blue { color: #3f56c0; }
html[data-theme="light"] .neon--violet { color: #4f46c4; }
html[data-theme="light"] .neon--pink { color: #6a3fc0; }

.grad {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad--orange { background: linear-gradient(90deg, var(--orange), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad--blue { background: linear-gradient(90deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.muted { color: var(--muted); }

/* --- фоновые свечения --- */
.bg-glow { position: fixed; border-radius: 50%; filter: blur(120px); opacity: .35; z-index: -1; pointer-events: none; transition: opacity .4s; }
.bg-glow--a { width: 480px; height: 480px; top: -140px; left: -120px; background: #ff7a1a; }
.bg-glow--b { width: 520px; height: 520px; top: 40%; right: -180px; background: #3d7bff; opacity: .3; }
html[data-theme="light"] .bg-glow { opacity: .16; }
html[data-theme="light"] .bg-glow--b { opacity: .14; }

/* ===== NAV ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  width: min(1140px, 92%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand em { font-style: normal; background: linear-gradient(90deg, var(--orange), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.nav a:hover { color: var(--nav-active); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--light { background: var(--primary-bg); color: var(--primary-text); }
.btn--light:hover { box-shadow: 0 10px 30px var(--shadow); }
.btn--outline { border-color: var(--btn-border); color: var(--btn-text); background: var(--btn-bg); }
.btn--outline:hover { background: var(--btn-bg-hover); }
.btn--ghost { border-color: var(--btn-border); color: var(--btn-text); background: var(--btn-bg); }
.btn--ghost:hover { background: var(--btn-bg-hover); }

/* переключатель темы */
.theme-toggle { padding-inline: 15px; }
.theme-toggle__icon { display: none; font-size: 15px; line-height: 1; }
html:not([data-theme="light"]) .theme-toggle__icon--dark { display: inline; }
html[data-theme="light"] .theme-toggle__icon--light { display: inline; }

/* ===== HERO ===== */
.hero { position: relative; padding: 72px 0 40px; text-align: center; }
.hero__glow {
  position: absolute; inset: -10% 10% auto; height: 420px;
  background: radial-gradient(ellipse at center, rgba(120,90,255,.35), transparent 65%);
  z-index: -1; filter: blur(30px);
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--btn-bg); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted); margin-bottom: 22px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hero__title { font-size: clamp(32px, 5.6vw, 62px); line-height: 1.1; letter-spacing: -1.5px; font-weight: 800; }
.hero__lead { max-width: 640px; margin: 20px auto 0; color: var(--muted); font-size: clamp(15px, 2vw, 18px); }
.hero__cta { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* устройства в hero */
.hero__phones { display: flex; gap: clamp(24px, 6vw, 70px); justify-content: center; align-items: flex-end; margin-top: 54px; }

/* кнопка переключения темы */
.theme-toggle { position: relative; padding-inline: 15px; min-width: 46px; }
.theme-toggle__icon { font-size: 15px; line-height: 1; transition: transform .25s; display: inline-block; }
.theme-toggle:hover .theme-toggle__icon { transform: rotate(20deg) scale(1.12); }
html[data-theme="light"] .theme-toggle__icon--dark { display: none; }
html:not([data-theme="light"]) .theme-toggle__icon--light { display: none; }
.device { position: relative; transition: transform .35s; }
.device:hover { transform: translateY(-8px); }
.device__screen {
  position: relative; width: clamp(120px, 16vw, 170px); height: clamp(240px, 33vw, 350px);
  border-radius: 26px; border: 3px solid #2b2f3d;
  background: linear-gradient(155deg, #12203a, #2a1740 55%, #0a0d18);
  box-shadow: 0 26px 60px rgba(0,0,0,.6), inset 0 0 40px rgba(120,140,255,.18);
  overflow: hidden;
}
.device--duo .device__fold { display: flex; }
.device--duo .device__screen--inner { width: clamp(110px, 15vw, 160px); height: clamp(230px, 31vw, 330px); border-radius: 20px; }
.device__island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 44%; height: 14px; background: #000; border-radius: 999px; }
.device__time { position: absolute; top: 34px; left: 0; right: 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; }
.device__cam { position: absolute; bottom: 16px; left: 16px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a5468, #0a0c14); border: 2px solid #333a4d; }
.device__crease { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: linear-gradient(transparent, rgba(255,255,255,.25), transparent); transform: translateX(-50%); }
.device__label { position: absolute; bottom: -30px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); }
.device--duo .device__label { color: var(--blue); }
.device--pro .device__label { color: var(--orange); }

/* цвета корпусов устройств в hero (по данным Apple) */
.device--label-black .device__label { color: #c7ccd8; }
.device--label-silver .device__label { color: #e6e9f0; }
.device--label-glacier .device__label { color: #79c7ff; }
.device--label-burgundy .device__label { color: #e8657f; }
.device--label-nightsky .device__label { color: #7f93c9; }
.device--label-starwhite .device__label { color: #eef1f7; }

/* Duo в hero — квадратная (развёрнутая) форма */
.device--duo .device__screen--inner {
  width: clamp(230px, 31vw, 330px);
  height: clamp(230px, 31vw, 330px);
  border-radius: 26px;
}
.device--duo .device__fold { display: flex; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 76px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; }
.stat dt { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.stat dd { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-top: 6px; background: linear-gradient(90deg, #fff, #8fa0c8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== СЕКЦИИ ===== */
.section { padding: 84px 0; }
.section--alt { background: linear-gradient(180deg, var(--section-tint), transparent 40%); border-block: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 4.4vw, 46px); letter-spacing: -1px; margin: 12px 0 12px; }
.sec-head p { color: var(--muted); font-size: 16.5px; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.badge--orange { background: rgba(255,159,67,.15); color: var(--orange); border: 1px solid rgba(255,159,67,.35); }
.badge--blue { background: rgba(74,168,255,.15); color: var(--blue); border: 1px solid rgba(74,168,255,.35); }
.badge--green { background: rgba(61,220,151,.13); color: var(--green); border: 1px solid rgba(61,220,151,.32); }

/* ===== КАРТОЧКИ ===== */
.grid { display: grid; gap: 18px; }
.grid--cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
html:not([data-theme="light"]) .card { box-shadow: none; }
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.22); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.card--span2 { grid-column: span 2; }
.card__icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -.3px; }
.card p { font-size: 15px; color: var(--muted); }
.card p strong, .card p b { color: var(--text); }
.card--price .price { font-size: 30px; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.card--price .price b { color: var(--green); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 16px; }
.chips li {
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  background: var(--btn-bg); border: 1px solid var(--line); color: var(--text);
}

/* ===== DUO showcase ===== */
.duo-showcase { text-align: center; margin-bottom: 40px; }
.duo-device {
  display: inline-flex; cursor: pointer; outline: none;
  padding: 10px; border-radius: 24px; background: #141824;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.55);
  perspective: 900px;
}
.duo-device:focus-visible { box-shadow: 0 0 0 3px var(--blue); }
.duo-device__panel {
  width: clamp(96px, 13vw, 148px); height: clamp(200px, 27vw, 300px);
  background: linear-gradient(160deg, #10203c, #2b1a4a 60%, #0a0d18);
  position: relative; overflow: hidden;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), width .6s cubic-bezier(.4, 0, .2, 1), border-radius .6s;
}
.duo-device__panel--left { border-radius: 18px 4px 4px 18px; }
.duo-device__panel--right { border-radius: 4px 18px 18px 4px; }
.duo-device.is-open .duo-device__panel { width: clamp(130px, 17vw, 200px); }
.duo-device.is-open .duo-device__panel--left { border-radius: 18px 4px 4px 18px; transform: rotateY(6deg); }
.duo-device.is-open .duo-device__panel--right { border-radius: 4px 18px 18px 4px; transform: rotateY(-6deg); }
.duo-device__crease { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,.2); transform: translateX(-50%); }
.duo-device__ui {
  position: absolute; inset: 14px; border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), transparent 30%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px);
  opacity: .8;
}
.duo-hint { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ===== СРАВНЕНИЕ ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.cmp td:last-child, .cmp th:last-child { text-align: left; }
.cmp thead th { font-size: 16px; background: rgba(255,255,255,.04); }
.cmp__name--a { color: var(--orange); }
.cmp__name--b { color: var(--blue); }
.cmp tbody tr { transition: background .18s; }
.cmp tbody tr:hover { background: var(--row-hover); }
.cmp tbody tr:last-child td { border-bottom: none; font-weight: 700; color: #fff; }
.cmp td:first-child { color: var(--muted); }

.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.verdict__col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.verdict__col h3 { font-size: 18px; margin-bottom: 14px; }
.verdict__col:first-child h3 { color: var(--orange); }
.verdict__col:last-child h3 { color: var(--blue); }
.verdict__col ul { list-style: none; display: grid; gap: 10px; }
.verdict__col li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; }
.verdict__col li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq__item summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16px; list-style: none; position: relative; padding-right: 30px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 24px; transition: transform .25s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding-bottom: 18px; color: var(--muted); font-size: 15px; }

/* ===== Быстрый ИИ-помощник (чат внизу страницы) ===== */
.ask {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: 0 20px 60px var(--shadow);
}
.ask__log {
  display: flex; flex-direction: column; gap: 10px;
  min-height: 180px; max-height: 340px; overflow-y: auto;
  padding: 4px 4px 12px; margin-bottom: 12px;
  scrollbar-width: thin;
}
.ask__msg { max-width: 86%; padding: 11px 15px; border-radius: 16px; animation: askIn .25s ease; }
@keyframes askIn { from { opacity: 0; transform: translateY(6px); } }
.ask__msg p { margin: 0; font-size: 15px; line-height: 1.5; }
.ask__msg--user {
  align-self: flex-end; color: var(--primary-text);
  background: var(--primary-bg); border-bottom-right-radius: 5px;
}
.ask__msg--ai {
  align-self: flex-start; color: var(--text);
  background: linear-gradient(135deg, rgba(139,124,240,.16), rgba(127,157,245,.1));
  border: 1px solid rgba(139,124,240,.3); border-bottom-left-radius: 5px;
}
.ask__meta { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); opacity: .85; }
.ask__typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.ask__typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--violet);
  animation: askBlink 1s infinite;
}
.ask__typing span:nth-child(2) { animation-delay: .15s; }
.ask__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes askBlink { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.ask__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ask__chip {
  font: inherit; font-size: 12.5px; padding: 6px 13px; cursor: pointer;
  border-radius: 999px; color: var(--text);
  background: var(--btn-bg); border: 1px solid var(--line);
  transition: background .18s, transform .18s, border-color .18s;
}
.ask__chip:hover { background: var(--btn-bg-hover); border-color: rgba(139,124,240,.5); transform: translateY(-1px); }

.ask__form { display: flex; gap: 10px; }
.ask__input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px;
  padding: 13px 18px; color: var(--text);
  background: var(--btn-bg); border: 1px solid var(--line); border-radius: 999px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.ask__input:focus { border-color: rgba(139,124,240,.7); box-shadow: 0 0 0 3px rgba(139,124,240,.18); }
.ask__input::placeholder { color: var(--muted); opacity: .8; }
.ask__send { flex-shrink: 0; }
.ask__send:disabled { opacity: .55; cursor: wait; transform: none; }
.ask__hint { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ===== CTA + FOOTER ===== */
.cta { text-align: center; padding: 84px 0; background: linear-gradient(180deg, transparent, rgba(120,90,255,.14)); }
.cta h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -1px; }
.cta p { color: var(--muted); margin-top: 10px; }

.footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.footer__note { opacity: .75; }

/* ===== АНИМАЦИИ ПОЯВЛЕНИЯ ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .card--span2 { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .verdict { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .grid--cards { grid-template-columns: 1fr; }
  .card--span2 { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .section { padding: 60px 0; }
  .hero { padding-top: 48px; }
  .hero__phones { margin-top: 40px; }
}

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