:root {
  --bg: #0c0c0e;
  --bg-alt: #101013;
  --card: #121214;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #fbbf24;
  --accent-hover: #fcd34d;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

h1, h2, .logo-name, .stat-value, .product-price, .specs-badge-value {
  font-family: 'Unbounded', 'Manrope', sans-serif;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { border: 1px solid rgba(255,255,255,.25); color: #fff; background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }

.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-name { font-size: 19px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.logo-sub { font-size: 11px; color: var(--muted); }

.nav { display: flex; gap: 26px; }
.nav a { font-size: 14px; font-weight: 500; color: #d4d4d8; transition: color .2s; }
.nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #fff; }
.header-phone svg { color: var(--accent); flex-shrink: 0; }
.header-phone:hover { color: var(--accent); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  background: rgba(12,12,14,.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 16px 24px 20px;
}
.mobile-menu a { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #e4e4e7; }
.mobile-menu a:hover { background: rgba(255,255,255,.05); }
.mobile-menu .mobile-phone { background: var(--accent); color: #000; font-weight: 700; margin-top: 8px; }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.85), rgba(0,0,0,.55) 55%, rgba(0,0,0,.2)),
    linear-gradient(to top, var(--bg), transparent 35%),
    linear-gradient(to bottom, rgba(0,0,0,.4), transparent 30%);
}
.hero-content { position: relative; width: 100%; padding-top: 140px; padding-bottom: 60px; }
.hero-text { max-width: 640px; }

.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(251,191,36,.3); background: rgba(251,191,36,.1);
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #fcd34d; margin-bottom: 24px;
}

.hero h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 700; line-height: 1.1; }
.hero .lead { margin-top: 22px; font-size: 17px; color: #d4d4d8; max-width: 560px; }
.hero-btns { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  margin-top: 60px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: rgba(255,255,255,.08);
}
.stat { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); padding: 20px 22px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value { font-size: clamp(17px, 2vw, 24px); font-weight: 700; color: #fff; }
.stat-label { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 700; line-height: 1.15; }
.section-head .muted { margin-top: 16px; }

/* ---------- Cards ---------- */
.cards-grid { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform .3s, border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(251,191,36,.4); background: rgba(255,255,255,.06); }
.card-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(251,191,36,.1); font-size: 22px; margin-bottom: 18px;
}
.card h3 { font-size: 17px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- Specs ---------- */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.specs-photo { position: relative; }
.specs-photo img { border-radius: 24px; border: 1px solid var(--border); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.specs-badge {
  position: absolute; bottom: -22px; right: -12px;
  background: var(--accent); color: #000; border-radius: 16px;
  padding: 16px 24px; box-shadow: 0 16px 40px rgba(251,191,36,.2);
}
.specs-badge-value { font-size: 24px; font-weight: 700; }
.specs-badge-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.specs-table { margin-top: 36px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.specs-table div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 13px 20px; font-size: 14px;
}
.specs-table div + div { border-top: 1px solid var(--border); }
.specs-table dt { color: var(--muted); }
.specs-table dd { font-weight: 700; color: #fff; text-align: right; flex-shrink: 0; }

/* ---------- Compare table ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.compare-table th {
  text-align: left; padding: 16px 20px; background: rgba(255,255,255,.05);
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.compare-table th.accent { font-weight: 800; }
.compare-table td { padding: 13px 20px; border-top: 1px solid var(--border); color: #d4d4d8; }
.compare-table tr:hover td { background: rgba(255,255,255,.03); }
.compare-table td.good { font-weight: 700; color: #fff; }
.compare-table td.bad { font-weight: 700; color: #71717a; }
.compare-table td:last-child { color: var(--muted); }
.table-note { margin-top: 24px; text-align: center; font-size: 13px; color: #71717a; }

/* ---------- Products ---------- */
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .3s, border-color .3s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(251,191,36,.4); }
.product-card .hit {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--accent); color: #000; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; padding: 5px 12px; border-radius: 999px;
}
.product-card img { aspect-ratio: 4/3; width: 100%; object-fit: cover; transition: transform .6s; }
.product-card:hover img { transform: scale(1.05); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.product-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #71717a; }
.product-title { font-family: 'Unbounded', sans-serif; font-size: 19px; font-weight: 700; margin-top: 6px; }
.product-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.product-meta { display: flex; gap: 16px; margin-top: 14px; font-size: 12px; color: #71717a; }
.product-meta b { color: #d4d4d8; }
.product-price { margin-top: 18px; font-size: 24px; font-weight: 700; color: var(--accent); }
.product-price span { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 500; color: #71717a; }
.product-perm { font-size: 12px; color: #71717a; margin-top: 2px; }
.product-btn {
  margin-top: 22px; display: block; text-align: center;
  padding: 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  font-size: 14px; font-weight: 700; color: #fff;
  transition: background .25s, color .25s, border-color .25s;
}
.product-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }

/* ---------- Gallery ---------- */
.gallery-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); }
.gallery-card img { aspect-ratio: 3/2; width: 100%; object-fit: cover; transition: transform .6s; }
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px;
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.3) 70%, transparent);
  padding-top: 60px;
}
.gallery-card h3 { font-size: 17px; font-weight: 700; color: #fff; }
.gallery-card p { margin-top: 4px; font-size: 13px; color: #d4d4d8; }

.apps-list { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.apps-list div {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 12px; padding: 15px 18px; font-size: 13.5px; color: #d4d4d8;
}

/* ---------- Order ---------- */
.section-order {
  position: relative; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background:
    linear-gradient(rgba(12,12,14,.95), rgba(12,12,14,.95)),
    url('img/basalt.jpg') center / cover;
}
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.steps { margin-top: 40px; display: flex; flex-direction: column; gap: 26px; }
.step { display: flex; gap: 18px; }
.step-num {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(251,191,36,.4);
  background: rgba(251,191,36,.1); color: var(--accent); font-weight: 800; font-size: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; }
.step p { margin-top: 4px; font-size: 14px; color: var(--muted); }

.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 40px; }
.form-card h3 { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 700; }
.form-card form > .muted { margin-top: 8px; font-size: 14px; }
.form-card input, .form-card textarea {
  width: 100%; margin-top: 14px; padding: 14px 16px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05); color: #fff; font-size: 14px;
  font-family: inherit; outline: none; resize: none;
  transition: border-color .2s;
}
.form-card input:focus, .form-card textarea:focus { border-color: var(--accent); }
.form-card input::placeholder, .form-card textarea::placeholder { color: #71717a; }
.form-card .btn-block { margin-top: 18px; }
.form-note { margin-top: 14px; text-align: center; font-size: 11px; color: #71717a; line-height: 1.5; }

.form-success { text-align: center; padding: 60px 10px; }
.form-success-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(251,191,36,.15); color: var(--accent);
  font-size: 30px; font-weight: 800;
}
.form-success h3 { font-size: 22px; }
.form-success p { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 320px; margin-left: auto; margin-right: auto; }

/* ---------- Contacts ---------- */
.link { color: #fff; font-weight: 600; transition: color .2s; }
.link:hover { color: var(--accent); }
.map-wrap { margin-top: 40px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; }

/* ---------- Messengers ---------- */
.messengers { display: flex; gap: 10px; margin-top: 18px; }
.messengers.center { justify-content: center; }
.messenger-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff;
  transition: transform .25s, filter .25s;
}
.messenger-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.messenger-wa { background: #25d366; }
.messenger-max { background: linear-gradient(135deg, #7b5cff, #4f7cff); }

.mobile-messengers { display: flex; gap: 10px; margin-top: 10px; }
.mobile-messengers .messenger-btn { flex: 1; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-note { font-size: 12px; color: #71717a; text-align: right; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav, .header-actions { display: none; }
  .burger { display: flex; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .apps-list { grid-template-columns: repeat(2, 1fr); }
  .specs-grid, .order-grid { grid-template-columns: 1fr; gap: 60px; }
  .specs-badge { right: 12px; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--border); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .cards-4, .cards-3, .apps-list { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-note { text-align: center; }
}
