/* ═══════════════════════════════════════════
   plan° — цифровые планеры
   Тёмная тема · оранжевый акцент
   (дизайн-язык адаптирован с kaisproai/website-test)
   ═══════════════════════════════════════════ */

:root {
  --bg:        #000000;
  --bg-1:      #08080a;
  --surface:   #0d0d10;
  --surface-2: #131317;
  --border:    #222228;
  --border-2:  #2c2c34;

  --text:      #f4f4f6;
  --text-2:    #b0b0b8;
  --text-3:    #6d6d78;
  --muted:     #3a3a42;

  --accent:      #ff5a1f;
  --accent-2:    #ff7a3c;
  --accent-glow: rgba(255, 90, 31, 0.45);

  --font-display: "Unbounded", sans-serif;
  --font-body:    "Inter Tight", system-ui, sans-serif;

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); line-height: 1.5;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════ НАВИГАЦИЯ ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 20px var(--pad);
  background: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,0));
  backdrop-filter: blur(6px);
}
.logo { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
.logo-dot { color: var(--accent); }
.nav-links { display: flex; gap: 34px; margin: 0 auto; font-size: 15px; color: var(--text-2); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--accent); }

.btn-cart {
  background: #fff; color: #000; border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 2px;
  display: flex; align-items: center; gap: 10px;
  transition: transform .2s, box-shadow .2s;
}
.btn-cart:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,.15); }
.cart-count {
  background: var(--accent); color: #fff; font-size: 12px; min-width: 22px; height: 22px;
  border-radius: 20px; display: grid; place-items: center; padding: 0 6px;
}
.cart-count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.4); } }

.burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { width: 26px; height: 2px; background: var(--text); transition: .3s; }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; min-height: 100vh; padding: 0 var(--pad); overflow: hidden; }



.hero-type {
  position: absolute; left: 0; right: 0; top: 15vh;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-display); font-weight: 500; line-height: .82; text-align: center;
  pointer-events: none; z-index: 1;
}
.hero-type .line { display: block; letter-spacing: -.03em; }
.hero-type .line-1 { font-size: clamp(44px, 11vw, 156px); color: var(--text); animation: rise .9s ease both; }
.hero-type .line-2 { font-size: clamp(44px, 12.5vw, 178px); color: #17171b; animation: rise .9s ease .08s both; }

.hero-visual {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: clamp(340px, 42vw, 600px); height: 82vh; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  perspective: 1400px;
}
.hero-glow {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: 70%; height: 45%;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  filter: blur(50px); z-index: -1; opacity: .5; animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: .9; } }

/* Макет планера */
.mock {
  width: 100%; max-width: 520px; margin-bottom: 9vh;
  background: linear-gradient(160deg, #1a1a20, #0e0e12);
  border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: 0 50px 120px rgba(0,0,0,.8), 0 0 0 1px rgba(255,90,31,.1), 0 0 90px rgba(255,90,31,.12);
  transform: rotateX(8deg) rotateY(-14deg) rotateZ(2deg);
  transition: transform .25s ease-out;
  animation: rise 1s ease .15s both, floaty 7s ease-in-out 1.2s infinite;
  will-change: transform;
}
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.mock-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-3);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); }
.mock-bar i:first-child { background: var(--accent); }
.mock-bar span { margin-left: 10px; }
.mock-body { padding: 20px; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.mock-head b { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.mock-head em { font-style: normal; color: var(--text-3); font-size: 12px; }
.mock-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.mc { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px 6px 10px; min-height: 120px; display: flex; flex-direction: column; gap: 7px; }
.mc--w { background: #0a0a0d; }
.mc u { text-decoration: none; font-size: 10px; color: var(--text-3); letter-spacing: .06em; }
.mc s { display: block; height: 14px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); }
.mc s.on { background: rgba(255,90,31,.85); border-color: var(--accent); box-shadow: 0 0 12px rgba(255,90,31,.4); }
.mock-foot { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.mock-ring {
  width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--accent) 0 72%, var(--surface-2) 0);
  position: relative;
}
.mock-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #0e0e12; }
.mock-ring span { position: relative; font-family: var(--font-display); font-size: 12px; font-weight: 600; }
.mock-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.mock-lines i { height: 8px; border-radius: 4px; background: var(--surface-2); }
.mock-lines i:nth-child(1) { width: 90%; } .mock-lines i:nth-child(2) { width: 65%; } .mock-lines i:nth-child(3) { width: 78%; }

.mock-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 40px; padding: 10px 18px; font-size: 13px; color: var(--text-2);
  box-shadow: 0 14px 40px rgba(0,0,0,.6); animation: floaty 6s ease-in-out infinite;
}
.chip-1 { left: -8%; top: 60%; animation-delay: .5s; }
.chip-2 { right: -6%; top: 50%; animation-delay: 1.4s; }
.chip-1::first-letter, .chip-2::first-letter { color: var(--accent); }

.hero-left { position: absolute; left: var(--pad); top: 46vh; max-width: 340px; z-index: 3; animation: rise .9s ease .2s both; }
.eyebrow { font-size: 14px; color: var(--text); font-weight: 500; margin-bottom: 14px; }
.hero-sub { font-size: 15px; color: var(--text-2); line-height: 1.55; }

.hero-tags { position: absolute; left: var(--pad); bottom: 130px; display: flex; gap: 12px; z-index: 3; animation: rise .9s ease .3s both; }
.tag { border: 1px solid var(--border-2); border-radius: 40px; padding: 11px 24px; font-size: 14px; color: var(--text-2); transition: border-color .2s, color .2s; }
.tag:hover { border-color: var(--accent); color: var(--text); }

.hero-bottom { position: absolute; left: var(--pad); bottom: 46px; display: flex; align-items: center; gap: 34px; z-index: 3; animation: rise .9s ease .4s both; }
.btn-read {
  background: linear-gradient(180deg, #1a1a1e, #0c0c0e); border: 1px solid var(--border-2);
  padding: 18px 46px; font-size: 15px; font-weight: 500; border-radius: 2px; transition: .2s;
}
.btn-read:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 40px var(--accent-glow); }
.btn-play { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.play-ico { color: var(--accent); font-size: 13px; }

.hero-stats { position: absolute; right: var(--pad); bottom: 46px; display: flex; gap: 18px; z-index: 3; animation: rise .9s ease .5s both; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 26px 30px 22px; min-width: 150px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -.03em; }
.stat-label { font-size: 13px; color: var(--text-3); margin-top: 10px; line-height: 1.35; }

/* ═══════════ СЕКЦИИ ═══════════ */
.section { padding: clamp(80px, 12vh, 160px) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; margin-bottom: 72px; }
.sec-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 5.4vw, 68px); line-height: .98; letter-spacing: -.03em; text-transform: uppercase; }
.sec-title .muted { color: var(--muted); }
.sec-note { color: var(--text-3); font-size: 15px; text-align: right; line-height: 1.6; max-width: 320px; margin-left: auto; }

/* ═══════════ ПРЕИМУЩЕСТВА ═══════════ */
.features { position: relative; }
.dotted-surface {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%);
}
.features .sec-head, .features .cards { position: relative; z-index: 1; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 40px 34px; border-radius: 6px; min-height: 420px; display: flex; flex-direction: column;
  border: 1px solid var(--border); background: rgba(19,19,23,.55); transition: .3s;
}
.card--hl { background: rgba(19,19,23,.72); }
.card:hover { background: rgba(28,28,34,.72); border-color: var(--border-2); transform: translateY(-6px); }
.card-ico {
  width: 54px; height: 54px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 24px; margin-bottom: auto; box-shadow: 0 8px 30px var(--accent-glow);
}
.card-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 30px; line-height: .98; letter-spacing: -.02em; margin: 34px 0 18px; }
.card-text { color: var(--text-3); font-size: 15px; line-height: 1.6; }

/* ═══════════ КАТАЛОГ ═══════════ */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.tier {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 22px 26px; display: flex; flex-direction: column; transition: .3s;
}
.tier:hover { transform: translateY(-6px); border-color: var(--border-2); }
.tier--hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 80px rgba(255,90,31,.12); }
.tier-badge {
  position: absolute; top: 34px; right: 34px; z-index: 2;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 40px; text-transform: uppercase; letter-spacing: .04em;
}
.tier-pic {
  height: 170px; border-radius: 10px; margin-bottom: 24px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(255,90,31,.28), transparent 70%), var(--surface-2);
  border: 1px solid var(--border); display: grid; place-items: center;
}
.tier-pic svg { width: 78%; height: auto; }
.tier-pic img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.tier-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; line-height: 1.1; padding: 0 6px; cursor: pointer; }
.tier-desc { color: var(--text-3); font-size: 14px; margin: 12px 6px 14px; line-height: 1.5; flex: 1; }
.tier-more {
  align-self: flex-start; margin: 0 6px 18px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--accent-2); font-size: 13px; font-weight: 500; border-bottom: 1px solid rgba(255,90,31,.4); transition: .2s;
}
.tier-more:hover { color: var(--accent); border-color: var(--accent); }
.tier-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 6px 20px; }
.tier-price .price { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -.03em; }
.tier-price .old { color: var(--text-3); text-decoration: line-through; font-size: 15px; }
.tier-btn {
  text-align: center; padding: 16px; border-radius: 6px; cursor: pointer;
  background: none; border: 1px solid var(--border-2); color: var(--text);
  font-size: 15px; font-weight: 500; transition: .2s;
}
.tier-btn:hover { border-color: var(--accent); background: rgba(255,90,31,.06); }
.tier-btn--hl { border-color: var(--accent); background: rgba(255,90,31,.08); }
.tier-btn--hl:hover { background: var(--accent); color: #fff; }
.tier-btn.added { background: var(--accent); border-color: var(--accent); color: #fff; }
.tier-trust { margin: 28px 0 0; color: var(--text-3); font-size: 14px; grid-column: 1 / -1; text-align: center; }

/* ═══════════ КАК ЭТО РАБОТАЕТ ═══════════ */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.case-big { grid-column: 1 / -1; background: linear-gradient(135deg, var(--surface), var(--bg-1)); border: 1px solid var(--border); border-radius: 12px; padding: 46px; margin-bottom: 4px; }
.case-lead { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin-top: 14px; max-width: 780px; }
.case-num { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 34px 30px; }
.case-num .cn { font-family: var(--font-display); font-weight: 600; font-size: 46px; color: var(--accent); letter-spacing: -.03em; }
.case-num .cl { color: var(--text-3); font-size: 14px; margin-top: 12px; line-height: 1.4; }

/* ═══════════ FAQ ═══════════ */
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-note { text-align: left; margin-left: 0; margin-top: 24px; max-width: 380px; font-size: 16px; color: var(--text-2); }
.faq-mail { display: inline-block; margin-top: 18px; color: var(--accent-2); border-bottom: 1px solid var(--accent); }
.acc { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: 17px; font-weight: 500; transition: color .2s;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 300; color: var(--accent); transition: rotate .25s; }
.acc-item[open] summary::after { rotate: 45deg; }
.acc-item summary:hover { color: var(--accent-2); }
.acc-item p { color: var(--text-3); font-size: 15px; line-height: 1.65; padding: 0 40px 24px 0; }

/* ═══════════ ФОРМЫ / КНОПКИ ═══════════ */
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: 14px; color: var(--text-3); }
.field input {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 15px 18px; color: var(--text); font-family: var(--font-body); font-size: 15px; transition: border-color .2s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.12); }
.field input::placeholder { color: var(--text-3); }
.form-btn {
  width: 100%; background: var(--accent); color: #fff; border: 0; cursor: pointer;
  padding: 18px; border-radius: 6px; font-size: 16px; font-weight: 600; transition: .2s;
}
.form-btn:hover { background: var(--accent-2); box-shadow: 0 12px 40px var(--accent-glow); }
.form-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.form-status { font-size: 14px; color: var(--accent-2); min-height: 18px; margin-top: 10px; }

/* ═══════════ ФУТЕР ═══════════ */
.footer {
  border-top: 1px solid var(--border); padding: 60px var(--pad); max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.foot-logo { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.foot-slogan { color: var(--text-3); font-size: 15px; }
.foot-meta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }
.foot-meta a:hover { color: var(--text); }

/* ═══════════ КОРЗИНА ═══════════ */
.drawer-overlay { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: .3s; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 901; width: min(440px, 100%);
  background: var(--bg-1); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.drawer-x { background: none; border: 1px solid var(--border-2); color: var(--text-2); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; transition: .2s; }
.drawer-x:hover { border-color: var(--accent); color: var(--text); }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 28px; }
.drawer-empty { color: var(--text-3); padding: 40px 0; text-align: center; }
.ci { display: flex; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); }
.ci-pic { width: 64px; height: 64px; flex: none; border-radius: 8px; background: radial-gradient(ellipse at 50% 120%, rgba(255,90,31,.3), transparent 70%), var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--font-display); color: var(--accent); }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.ci-price { color: var(--text-3); font-size: 14px; margin-top: 4px; }
.ci-rm { background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 18px; padding: 6px; transition: color .2s; }
.ci-rm:hover { color: var(--accent); }
.drawer-foot { padding: 24px 28px 28px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; color: var(--text-2); }
.drawer-total b { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--text); letter-spacing: -.02em; }
.drawer-foot .form-status { margin: -8px 0 0; }

/* ═══════════ ПОП-АП ═══════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 420px; text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 18px; padding: 48px 36px 36px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,90,31,.08);
  transform: scale(.9) translateY(10px); opacity: 0; transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .38s;
}
.modal-overlay.open .modal { transform: none; opacity: 1; }
.modal-check { width: 92px; height: 92px; margin: 0 auto 26px; }
.modal-check svg { width: 100%; height: 100%; }
.mc-circle { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.mc-check { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 42; stroke-dashoffset: 42; }
.modal-overlay.open .mc-circle { animation: draw .55s ease forwards; }
.modal-overlay.open .mc-check { animation: draw .35s .45s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; margin-bottom: 12px; }
.modal-text { color: var(--text-2); font-size: 16px; line-height: 1.55; margin-bottom: 30px; }
.modal-btn { width: 100%; padding: 16px; border: 0; cursor: pointer; background: var(--accent); color: #fff; border-radius: 8px; font-size: 16px; font-weight: 600; transition: .2s; }
.modal-btn:hover { background: var(--accent-2); box-shadow: 0 12px 40px var(--accent-glow); }

/* ═══════════ КАРТОЧКА ТОВАРА (модалка) ═══════════ */
.modal-overlay:has(.product-modal) { align-items: flex-start; padding: clamp(12px, 4vw, 24px); }
@supports not selector(:has(*)) { .modal-overlay { align-items: flex-start; padding: clamp(12px, 4vw, 24px); } }
.product-modal {
  width: 100%; max-width: 820px; max-height: calc(100svh - 48px); max-height: calc(100vh - 48px);
  text-align: left; padding: 0; overflow: hidden; display: flex; flex-direction: column;
  margin: 24px auto;
}
.pm-topbar { flex: none; display: flex; justify-content: flex-end; padding: 14px 14px 0; }
.pm-close {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); cursor: pointer; transition: .2s;
  font-size: 15px; line-height: 1;
}
.pm-close:hover { border-color: var(--accent); color: var(--text); }
.pm-grid { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }
.pm-pic { flex: none; background: var(--surface-2); display: flex; align-items: center; justify-content: center; padding: 8px 28px 24px; }
.pm-pic img { width: 100%; max-width: 220px; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.pm-body { padding: 8px 28px 32px; min-width: 0; }
.pm-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 4vw, 26px); letter-spacing: -.02em; margin-bottom: 8px; }
.pm-terms { color: var(--text-3); font-size: 13px; margin-bottom: 16px; }
.pm-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 24px; }
.pm-price .price { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -.03em; }
.pm-price .old { color: var(--text-3); text-decoration: line-through; font-size: 16px; }
.pm-desc p { color: var(--text-2); font-size: 14.5px; line-height: 1.65; margin-bottom: 14px; }
.pm-block { margin-top: 26px; }
.pm-label { font-size: 13px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.pm-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pm-list--check li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.pm-list--check li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,90,31,.14); color: var(--accent-2); font-size: 10px; display: grid; place-items: center;
}
.pm-list--plain li { position: relative; padding-left: 18px; color: var(--text-3); font-size: 14px; }
.pm-list--plain li::before { content: "—"; position: absolute; left: 0; color: var(--text-3); }
.product-modal #pmAdd { margin-top: 30px; width: 100%; }
@media (min-width: 640px) {
  .pm-grid { flex-direction: row; }
  .pm-pic { width: 260px; padding: 28px; }
  .pm-pic img { max-width: 100%; }
  .pm-body { flex: 1; padding: 36px 36px 36px 0; overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .mock, .mock-chip, .hero-glow { animation: none; }
  .modal, .mc-circle, .mc-check { transition: none; animation: none; }
  .modal-overlay.open .mc-circle, .modal-overlay.open .mc-check { stroke-dashoffset: 0; }
}

/* ═══════════ АДАПТИВ ═══════════ */
@media (max-width: 1180px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .sec-note { text-align: left; margin-left: 0; }
  .card { min-height: auto; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg-1); border-top: 1px solid var(--border);
    transform: translateY(-140%); transition: transform .35s; z-index: 90;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 18px var(--pad); border-bottom: 1px solid var(--border); }
  .nav-links a.active::after { display: none; }
  .btn-cart { margin-left: auto; padding: 10px 16px; }
  .burger { display: flex; }

  .hero { min-height: auto; padding-top: 96px; padding-bottom: 40px; }
  .hero-type { position: static; margin-bottom: 20px; }
  .hero-visual { position: relative; left: auto; transform: none; width: 100%; height: auto; margin: 10px auto 0; }
  .mock { margin-bottom: 0; transform: rotateX(6deg) rotateY(-8deg); }
  .chip-1 { left: 0; } .chip-2 { right: 0; }
  .hero-left, .hero-tags, .hero-bottom, .hero-stats { position: static; max-width: none; margin-top: 26px; }
  .hero-tags { flex-wrap: wrap; }
  .hero-bottom { flex-wrap: wrap; gap: 20px; }
  .hero-stats { flex-wrap: wrap; }
  .stat { flex: 1; min-width: 130px; }
  .tiers { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-big { padding: 30px; }
}

/* ═══════════════════════════════════════════
   ЭЛЕГАНТНЫЙ СЛОЙ — тоньше, тише, больше воздуха
   ═══════════════════════════════════════════ */
:root {
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --border: #1b1b20;
  --border-2: #26262d;
  --accent-glow: rgba(255, 90, 31, 0.28);
  --ease: cubic-bezier(.22,.8,.24,1);
}
body { letter-spacing: .005em; }

/* Типографика: лёгкие веса + курсивный serif как акцент */
.sec-title, .card-title, .tier-name, .case-num .cn, .stat-num, .drawer-head h3, .modal-title, .tier-price .price, .drawer-total b { font-weight: 400; }
.hero-type { font-weight: 400; }
.hero-type .line-1 { font-size: clamp(40px, 9.4vw, 136px); letter-spacing: -.04em; }
.hero-type .line-2 { font-size: clamp(40px, 10.6vw, 154px); letter-spacing: -.04em; color: #131317; }
.sec-title { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.035em; }
.sec-title .muted {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  text-transform: lowercase; letter-spacing: -.01em; color: #5a5a66;
  font-size: 1.18em; line-height: .9;
}
.logo, .foot-logo { font-weight: 500; }
.eyebrow { font-family: var(--font-serif); font-style: italic; font-size: 22px; font-weight: 400; color: var(--accent-2); letter-spacing: 0; margin-bottom: 10px; }
.hero-sub, .card-text, .tier-desc, .acc-item p { font-weight: 300; }
.hero-sub { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.case-lead { font-weight: 300; }
.case-num .cn { font-family: var(--font-serif); font-style: italic; font-size: 64px; font-weight: 500; line-height: 1; }
.tier-name { font-size: 18px; letter-spacing: -.01em; }
.tier-price .price { font-size: 26px; }
.card-title { font-size: 24px; line-height: 1.08; }

/* Тише: меньше свечения, тонкие линии */
.hero-glow { opacity: .35; }
@keyframes pulse { 0%,100% { opacity: .3; } 50% { opacity: .55; } }
.mock { box-shadow: 0 60px 120px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.03), 0 0 80px rgba(255,90,31,.07); border-color: #202026; }
.mock-chip { background: rgba(13,13,16,.7); backdrop-filter: blur(10px); border-color: #202026; font-size: 12px; letter-spacing: .02em; }
.stat, .case-num, .case-big, .tier { border-radius: 4px; }
.tier, .card, .case-num, .stat { border-color: var(--border); }
.tier--hl { box-shadow: none; border-color: rgba(255,90,31,.55); background: linear-gradient(180deg, rgba(255,90,31,.045), var(--surface) 55%); }
.tier:hover, .card:hover { transform: translateY(-4px); transition: transform .5s var(--ease), border-color .4s, background .4s; }
.tier-pic { border-radius: 3px; background: radial-gradient(ellipse at 50% 130%, rgba(255,90,31,.16), transparent 70%), var(--surface-2); }
.tier-badge { font-weight: 500; letter-spacing: .1em; font-size: 10px; padding: 5px 12px; background: transparent; color: var(--accent-2); border: 1px solid rgba(255,90,31,.6); }

/* Иконки: тонкая линия вместо заливки */
.card-ico { background: transparent; border: 1px solid rgba(255,90,31,.45); color: var(--accent-2); box-shadow: none; border-radius: 50%; width: 52px; height: 52px; }
.card-ico svg { width: 22px; height: 22px; }

/* Кнопки: спокойнее */
.btn-cart { border-radius: 40px; font-weight: 500; font-size: 14px; padding: 10px 14px 10px 22px; }
.btn-read { border-radius: 40px; font-weight: 400; letter-spacing: .02em; padding: 17px 44px; }
.tag { border-color: var(--border-2); font-size: 13px; letter-spacing: .02em; }
.tier-btn { border-radius: 40px; font-weight: 400; letter-spacing: .02em; padding: 14px; }
.form-btn, .modal-btn { border-radius: 40px; font-weight: 500; letter-spacing: .02em; }
.form-btn:hover, .modal-btn:hover, .btn-read:hover { box-shadow: 0 10px 40px rgba(255,90,31,.22); }
.field input { border-radius: 4px; }
.nav-links { font-size: 14px; letter-spacing: .02em; }
.nav-links a.active::after { height: 1px; }

/* Больше воздуха */
.section { padding-block: clamp(96px, 15vh, 190px); }
.sec-head { margin-bottom: 84px; }
.cases-grid, .tiers, .cards { gap: 18px; }
.acc-item summary { font-weight: 400; font-size: 18px; }

/* Появление при скролле */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.tier.reveal.in:hover, .card.reveal.in:hover { transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.sec-title .muted::first-letter { text-transform: uppercase; }
.sec-title .muted { display: block; margin-top: .06em; }

/* Hero: РАЗБОГАТЕЙ / ИЛИ СДОХНИ */
.hero-type { line-height: .9; }
.hero-type .line-1, .hero-type .line-2 { font-size: clamp(36px, 8.6vw, 124px); letter-spacing: -.03em; white-space: nowrap; }
.hero-type .line-2 { color: #1c1c21; }
@media (max-width: 760px) {
  .hero-type .line-1, .hero-type .line-2 { font-size: 8.6vw; }
}

/* Hero: только надпись, по центру экрана */
.hero { display: flex; align-items: center; justify-content: center; }
.hero-type { position: static; font-weight: 500; line-height: .86; }
.hero-type .line-1, .hero-type .line-2 { font-weight: 500; font-size: clamp(40px, 10.4vw, 156px); letter-spacing: -.035em; }
.hero-type .line-1 { color: var(--text); }
.hero-type .line-2 { color: #1c1c21; }
@media (max-width: 760px) {
  .hero { min-height: 100svh; padding: 0 var(--pad); }
  .hero-type .line-1, .hero-type .line-2 { font-size: 9.4vw; }
}
.features .tiers, .features .tier-trust { position: relative; z-index: 1; }

/* Hero: треть высоты экрана */
.hero, .hero.hero { min-height: 34vh; height: 34vh; padding-top: 64px; padding-bottom: 0; }
.hero-type .line-1, .hero-type .line-2 { font-size: min(10.4vw, 15vh); }
@media (max-width: 760px) {
  .hero { min-height: 34vh; height: 34vh; padding-top: 64px; }
  .hero-type .line-1, .hero-type .line-2 { font-size: min(9.4vw, 12vh); }
}
.hero, .hero.hero { padding-top: 76px; }
.hero-type .line-1, .hero-type .line-2 { font-size: min(10.4vw, 11vh); }
@media (max-width: 760px) { .hero-type .line-1, .hero-type .line-2 { font-size: min(9.4vw, 10vh); } }

/* Hero: 80% высоты экрана, крупная надпись */
.hero, .hero.hero { min-height: 80vh; height: 80vh; padding-top: 64px; padding-bottom: 0; }
.hero-type .line-1, .hero-type .line-2 { font-size: min(11.2vw, 21vh); }
@media (max-width: 760px) {
  .hero, .hero.hero { min-height: 80vh; height: 80vh; }
  .hero-type .line-1, .hero-type .line-2 { font-size: min(9.4vw, 14vh); }
}

/* Плавающая панель корзины: показывает итог, не перекрывая каталог */
.cart-bar {
  position: fixed; left: 50%; bottom: 22px; z-index: 800;
  display: flex; align-items: center; gap: 20px; padding: 10px 10px 10px 26px;
  background: rgba(13,13,16,.88); backdrop-filter: blur(14px);
  border: 1px solid var(--border-2); border-radius: 60px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s;
}
.cart-bar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cart-bar-text { font-size: 15px; color: var(--text-2); white-space: nowrap; }
.cart-bar-btn { background: var(--accent); color: #fff; border: 0; cursor: pointer; border-radius: 40px; padding: 13px 26px; font-size: 14px; font-weight: 500; transition: .2s; white-space: nowrap; }
.cart-bar-btn:hover { background: var(--accent-2); }

/* Hero: фон — волна из точек (canvas из script.js) */
.hero .dotted-surface { mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 70%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 70%, transparent 100%); }
.hero-type { position: relative; top: auto; left: auto; right: auto; z-index: 1; }
.hero-type .line-2 { color: #1c1c21; }

/* Мобильный hero: каждое слово с новой строки — надпись крупнее */
@media (max-width: 760px) {
  .hero-type .line-1, .hero-type .line-2 { font-size: min(11.4vw, 13vh); line-height: .95; }
  .hero-type .line-2 .w { display: block; }
}
@media (max-width: 760px) {
  .hero-type .line-2 { font-size: min(16vw, 15vh); line-height: .92; }
}

/* Hero: фоновое видео */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  object-fit: cover; object-position: center 30%; pointer-events: none;
}
.hero::before { /* лёгкое затемнение поверх видео, чтобы надпись читалась */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(0,0,0,.38);
}
.hero::after { /* низ видео растворяется в чёрный фон страницы */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, #000);
}
.hero-type .line-2 { color: rgba(255,255,255,.18); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* Hero: 100% высоты экрана + кнопка */
.hero, .hero.hero { min-height: 100vh; height: 100vh; padding-top: 72px; padding-bottom: 0; flex-direction: column; gap: clamp(28px, 5vh, 56px); }
@supports (height: 100svh) { .hero, .hero.hero { min-height: 100svh; height: 100svh; } }
.hero-type { margin-top: 0; }
.hero-cta {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 14px;
  background: var(--accent); color: #fff; font-weight: 500; font-size: 17px; letter-spacing: .02em;
  padding: 20px 44px; border-radius: 60px;
  box-shadow: 0 14px 50px rgba(255,90,31,.3);
  transition: transform .3s var(--ease), background .2s, box-shadow .3s;
  animation: rise .9s ease .5s both;
}
.hero-cta span { transition: transform .3s var(--ease); }
.hero-cta:hover { background: var(--accent-2); transform: translateY(-3px); box-shadow: 0 18px 60px rgba(255,90,31,.45); }
.hero-cta:hover span { transform: translateX(5px); }
@media (max-width: 760px) {
  .hero, .hero.hero { justify-content: flex-start; padding-top: 16svh; padding-top: 16vh; gap: 28px; }
  .hero-video { object-position: center bottom; }
  .hero-cta { padding: 18px 36px; font-size: 16px; }
}

/* ═══════════ ОБЩАЯ КАРУСЕЛЬ (используется в «Галерее») ═══════════ */
.carousel { position: relative; display: flex; align-items: center; gap: 14px; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 10px; -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-nav {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: .2s; z-index: 2;
}
.carousel-nav:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(255,90,31,.08); }
.carousel-nav:disabled { opacity: .3; cursor: default; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); border: 0; padding: 0; cursor: pointer; transition: .2s; }
.carousel-dot.active { background: var(--accent); width: 20px; border-radius: 4px; }
@media (max-width: 600px) { .carousel-nav { width: 36px; height: 36px; font-size: 16px; } }

/* ═══════════ ГАЛЕРЕЯ — КАРУСЕЛЬ СКРИНШОТОВ ═══════════ */
.gallery-item {
  flex: 0 0 auto; width: min(230px, 62vw); scroll-snap-align: start;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.gallery-item:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,90,31,.12); }

/* ═══════════ КАК ЭТО РАБОТАЕТ — СКРИНШОТЫ (сетка) ═══════════ */
.how-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.how-shot {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s;
}
.how-shot:hover { transform: translateY(-5px); border-color: var(--accent); }
.how-shot-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.how-shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.how-shot-bar i:first-child { background: var(--accent); }
.how-shot img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: top; border-bottom: 1px solid var(--border); }
.how-shot p { padding: 16px 18px 18px; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
@media (max-width: 980px) { .how-shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .how-shots { grid-template-columns: 1fr; } }

/* ═══════════ ПОЧЕМУ ЭТО РАБОТАЕТ ═══════════ */
.why { position: relative; overflow: hidden; }
.why .why-grid { position: relative; z-index: 1; }
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.why-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.why-visual::before {
  content: ""; position: absolute; inset: 10%; z-index: 0; border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  filter: blur(40px); opacity: .5;
}
.why-visual img { position: relative; z-index: 1; width: 100%; max-width: 480px; border-radius: 14px; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 26px; margin-top: 34px; }
.why-list li { position: relative; padding-left: 34px; color: var(--text-3); font-size: 15.5px; line-height: 1.6; }
.why-list li b { color: var(--text); font-weight: 600; }
.why-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 12px; display: grid; place-items: center;
}
@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { order: -1; }
}
