/* ========================================
   iPhone 17 Гид — styles
   ======================================== */

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

:root {
  --bg: #0a0a0f; --surface: #111118; --surface-2: #1a1a24;
  --border: rgba(255,255,255,.08); --text: #e8e8f0; --text-dim: #8888a0;
  --accent: #6e8efb; --accent2: #a777e3; --pro-gold: #d4a050;
  --radius: 16px;
  --nav-bg: rgba(10,10,15,.72); --nav-bg-solid: rgba(10,10,15,.92);
  --card-shadow: rgba(0,0,0,.4); --hero-glow: rgba(110,142,251,.35);
  --hero-tag-bg: rgba(110,142,251,.12); --hero-tag-border: rgba(110,142,251,.25);
  --section-from: #fff; --section-to: #a0b4ff;
  --dot-border: rgba(255,255,255,.12); --dot-border-hover: rgba(255,255,255,.4);
  --compare-hover: rgba(110,142,251,.04);
}

[data-theme="light"] {
  --bg: #f5f5f8; --surface: #ffffff; --surface-2: #ededf2;
  --border: rgba(0,0,0,.08); --text: #1d1d2e; --text-dim: #6b6b80;
  --accent: #4a6cf7; --accent2: #8b5cf6; --pro-gold: #b8862d;
  --nav-bg: rgba(245,245,248,.82); --nav-bg-solid: rgba(245,245,248,.96);
  --card-shadow: rgba(0,0,0,.08); --hero-glow: rgba(74,108,247,.25);
  --hero-tag-bg: rgba(74,108,247,.08); --hero-tag-border: rgba(74,108,247,.2);
  --section-from: #1d1d2e; --section-to: #4a6cf7;
  --dot-border: rgba(0,0,0,.1); --dot-border-hover: rgba(0,0,0,.3);
  --compare-hover: rgba(74,108,247,.05);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
  transition: background .3s, color .3s;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(1.5); background: var(--nav-bg);
  border-bottom: 1px solid var(--border); transition: background .3s; }
.nav__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { text-decoration: none; color: var(--text-dim); font-size: .9rem;
  font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__burger { display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .3s; }

/* THEME TOGGLE */
.theme-toggle { display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); cursor: pointer; font-size: 1rem;
  transition: background .2s, border-color .2s, transform .2s; flex-shrink: 0; }
.theme-toggle:hover { transform: scale(1.1); border-color: var(--accent); }
.theme-toggle__moon { display: inline; line-height: 1; }
.theme-toggle__sun  { display: none; line-height: 1; }
[data-theme="light"] .theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun  { display: inline; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 100px 24px 60px; overflow: hidden; }
.hero__bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35; }
.orb--1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--accent), transparent);
  top: -10%; left: -5%; animation: orbFloat 12s ease-in-out infinite; }
.orb--2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent2), transparent);
  bottom: -5%; right: 10%; animation: orbFloat 16s ease-in-out infinite reverse; }
.orb--3 { width: 300px; height: 300px; background: radial-gradient(circle, var(--pro-gold), transparent);
  top: 40%; right: -5%; animation: orbFloat 10s ease-in-out infinite 3s; }
@keyframes orbFloat { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(40px,-30px) scale(1.1)} }

.hero__content { position: relative; z-index: 2; text-align: center; max-width: 700px; }
.hero__tag { display: inline-block; font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  background: var(--hero-tag-bg); border: 1px solid var(--hero-tag-border);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 28px;
  animation: fadeUp .8s ease both; transition: background .3s, border-color .3s; }
.hero__title { margin: 0; animation: fadeUp .8s ease .15s both; }
.hero__line { display: block; }
.hero__line--1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900;
  background: linear-gradient(135deg, var(--section-from) 0%, var(--accent) 50%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; }
.hero__line--2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300;
  color: var(--text-dim); line-height: 1.2; margin-top: 4px; }
.hero__subtitle { font-size: 1.1rem; color: var(--text-dim); margin-top: 20px;
  animation: fadeUp .8s ease .3s both; }
.hero__models-preview { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 32px; animation: fadeUp .8s ease .45s both; }
.model-pill { font-size: .82rem; font-weight: 600; padding: 8px 18px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: default; transition: transform .2s, border-color .3s, background .3s, color .3s; }
.model-pill:hover { transform: translateY(-2px); }
.model-pill--17e    { border-color: rgba(90,184,138,.35); color: #5ab88a; }
.model-pill--air    { border-color: rgba(200,200,210,.3); }
.model-pill--pro    { border-color: rgba(212,160,80,.4); color: var(--pro-gold); }
.model-pill--promax { border-color: rgba(212,160,80,.5); color: var(--pro-gold); }
.hero__cta { display: inline-block; margin-top: 36px; padding: 14px 36px;
  font-size: 1rem; font-weight: 600; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 999px; transition: transform .2s, box-shadow .3s; animation: fadeUp .8s ease .6s both; }
.hero__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--hero-glow); }
.hero__cta--shop { margin-left: 12px; background: linear-gradient(135deg, #28a745, #218838); animation-delay: .75s; }
.hero__cta--shop:hover { box-shadow: 0 8px 30px rgba(40,167,69,.35); }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* SECTIONS */
.section { padding: 100px 0; position: relative; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  text-align: center; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--section-from), var(--section-to));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section__desc { text-align: center; color: var(--text-dim); font-size: 1.05rem;
  max-width: 600px; margin: 0 auto 56px; }

/* MODELS GRID */
.models__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; overflow: hidden;
  transition: transform .3s, box-shadow .3s, background .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px var(--card-shadow); }
.card__glow { position: absolute; top: -60px; right: -60px; width: 160px; height: 160px;
  border-radius: 50%; filter: blur(60px); opacity: .18; pointer-events: none; }
.card__glow--17e { background: #5ab88a; }
.card__glow--17 { background: var(--accent); }
.card__glow--air { background: #a0a8c0; }
.card__glow--pro { background: var(--pro-gold); }
.card__glow--promax { background: #e07040; }
.card--featured { border-color: rgba(212,160,80,.35); }
.card__badge { position: absolute; top: 16px; right: 16px; font-size: .7rem;
  font-weight: 700; background: linear-gradient(135deg, var(--pro-gold), #e07040);
  color: #fff; padding: 4px 12px; border-radius: 999px; }
.card__label { font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-dim); margin-bottom: 8px; }
.card__name { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; }
.card__colors { display: flex; gap: 8px; margin-bottom: 20px; }
.color-dot { width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--dot-border); cursor: pointer; transition: transform .2s, border-color .2s; }
.color-dot:hover { transform: scale(1.25); border-color: var(--dot-border-hover); }
.card__specs { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.card__specs li { font-size: .88rem; color: var(--text-dim); padding-left: 18px; position: relative; }
.card__specs li::before { content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transition: background .3s; }
.card__price { font-size: 1.3rem; font-weight: 700; color: var(--text); }

/* CAMERA */
.camera { background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); transition: background .3s; }
.camera__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.camera-feature { background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: transform .3s, border-color .3s, background .3s; }
.camera-feature:hover { transform: translateY(-4px); border-color: var(--accent); }
.camera-feature__icon { font-size: 2.5rem; margin-bottom: 16px; }
.camera-feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.camera-feature p { font-size: .88rem; color: var(--text-dim); line-height: 1.55; }

/* CHIP */
.chip__comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.chip-card { position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px; transition: transform .3s, background .3s; }
.chip-card:hover { transform: translateY(-4px); }
.chip-card--pro { border-color: rgba(212,160,80,.35); }
[data-theme="light"] .chip-card--pro { background: linear-gradient(160deg, var(--surface), rgba(212,160,80,.08)); }
.chip-card__badge { position: absolute; top: 16px; right: 16px; font-size: .7rem;
  font-weight: 700; color: var(--pro-gold); border: 1px solid rgba(212,160,80,.4);
  padding: 3px 10px; border-radius: 999px; }
.chip-card__icon { font-size: 2.5rem; margin-bottom: 14px; }
.chip-card h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.chip-card__for { font-size: .82rem; color: var(--text-dim); margin-bottom: 18px; }
.chip-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.chip-card li { font-size: .9rem; color: var(--text-dim); padding-left: 20px; position: relative; }
.chip-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; transition: color .3s; }
.chip-card--pro li::before { color: var(--pro-gold); }

/* COMPARE TABLE */
.compare__table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.compare__table { width: 100%; border-collapse: collapse; min-width: 650px; }
.compare__table th, .compare__table td { padding: 16px 18px; text-align: center;
  font-size: .88rem; border-bottom: 1px solid var(--border); }
.compare__table thead th { background: var(--surface); font-weight: 700;
  font-size: .92rem; position: sticky; top: 0; z-index: 1; transition: background .3s; }
.compare__table tbody tr { transition: background .2s; }
.compare__table tbody tr:hover { background: var(--compare-hover); }
.compare__label { text-align: left !important; font-weight: 600; color: var(--text);
  white-space: nowrap; background: var(--surface); position: sticky; left: 0; z-index: 1; transition: background .3s; }
.compare__table tbody tr:last-child td { border-bottom: none; }

/* BUY */
.buy { background: var(--surface); border-top: 1px solid var(--border); transition: background .3s; }
.buy__inner { text-align: center; }
.buy__cta { display: inline-flex; align-items: center; gap: 14px; padding: 18px 40px;
  font-size: 1.05rem; font-weight: 600; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #28a745, #1e7e34); border-radius: 14px;
  transition: transform .2s, box-shadow .3s; }
.buy__cta:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(40,167,69,.35); }
.buy__cta-icon { font-size: 1.6rem; }
.buy__cta span { display: flex; flex-direction: column; text-align: left; }
.buy__cta small { font-size: .78rem; font-weight: 400; opacity: .75; }
.buy__note { margin-top: 20px; font-size: .85rem; color: var(--text-dim); }
[data-theme="light"] .buy__cta { box-shadow: 0 2px 12px rgba(40,167,69,.15); }

/* FOOTER */
.footer { padding: 48px 0; text-align: center; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-direction: column; gap: 6px; }
.footer p { font-size: .9rem; color: var(--text-dim); }
.footer__small { font-size: .75rem; opacity: .5; }

/* REVEAL */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute;
    top: 60px; left: 0; right: 0; background: var(--nav-bg-solid);
    backdrop-filter: blur(20px); padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border); }
  .hero__models-preview { gap: 8px; }
  .model-pill { font-size: .72rem; padding: 6px 12px; }
  .section { padding: 64px 0; }
  .section__desc { margin-bottom: 36px; }
}
@media (max-width: 480px) {
  .hero { padding: 80px 16px 40px; }
  .hero__subtitle { font-size: .95rem; }
  .hero__cta { margin-top: 24px; }
  .hero__cta--shop { margin-left: 0; margin-top: 14px; }
}
