/* ============================================================
   Скорость Света — lightspeedcharge.ru
   Палитра: чёрный + электрический жёлтый (#FFF500) на белом воздухе.
   Шрифты: Unbounded (заголовки, цифры) + Onest (текст).
   ============================================================ */

:root {
  --black: #0b0b0c;
  --ink: #141416;
  --ink-soft: #5f5f66;
  --paper: #ffffff;
  --paper-2: #f6f6f2;
  --line: rgba(11, 11, 12, 0.09);
  --yellow: #fff500;
  --yellow-deep: #f0e600;
  --yellow-soft: #fffbb8;
  --radius: 28px;
  --radius-sm: 16px;
  --wrap: 1200px;
  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Onest', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'kern';
}
::selection { background: var(--yellow); color: var(--black); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--font-display); }

/* ---------- типографика ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
h1 strong, h2 strong { font-weight: 600; }
p.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); max-width: 56ch; font-weight: 300; }
.mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 94%, transparent 94%);
  padding: 0 0.08em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--yellow); border-radius: 2px; transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(255, 245, 0, 0.25); }
.sec-head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head p.lead { font-size: 1.05rem; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }

section { padding: 108px 0; position: relative; }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 100px; text-decoration: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-yellow { background: var(--yellow); color: var(--black); box-shadow: 0 10px 30px -10px rgba(255, 245, 0, 0.9); }
.btn-yellow:hover { transform: translateY(-2px) scale(1.02); background: var(--yellow-deep); box-shadow: 0 16px 34px -10px rgba(255, 245, 0, 1); }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(11, 11, 12, 0.18); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--black); background: #fff; }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost.on-dark:hover { border-color: var(--yellow); color: var(--yellow); background: transparent; }
.btn-lg { padding: 20px 34px; font-size: 1.05rem; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px; background: var(--yellow); transition: right 0.3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav .btn { padding: 12px 22px; font-size: 0.92rem; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: 0.3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,.2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav .btn-yellow { display: none; }
  .burger { display: block; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -240px; right: -200px; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 245, 0, 0.55), rgba(255, 245, 0, 0) 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; }
.hero p.lead { margin-bottom: 30px; }
.hero-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 10px; border-radius: 100px; border: 1px solid var(--line); background: #fff;
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
}
.chip i { font-style: normal; font-family: var(--font-display); font-size: 0.68rem; width: 24px; height: 24px; border-radius: 50%; background: var(--black); color: var(--yellow); display: grid; place-items: center; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 540px; }
.hero-photo {
  position: relative; border-radius: 36px 36px 36px 140px; overflow: hidden; aspect-ratio: 0.92;
  box-shadow: 0 40px 80px -30px rgba(11, 11, 12, 0.45);
  transform: rotate(-1.5deg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35)); }
.hero-star { position: absolute; width: 120px; height: 120px; top: -44px; right: -30px; animation: spin 18s linear infinite; filter: drop-shadow(0 10px 20px rgba(255, 245, 0, 0.6)); }
.hero-star.small { width: 56px; height: 56px; top: auto; bottom: 60px; right: auto; left: -26px; animation-duration: 11s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.float {
  position: absolute; background: #fff; border-radius: 18px; padding: 12px 16px;
  box-shadow: 0 14px 40px -12px rgba(11, 11, 12, 0.35); font-weight: 600; font-size: 0.9rem; line-height: 1.15;
  animation: bob 6s ease-in-out infinite; border: 1px solid var(--line);
}
.float b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.float small { color: var(--ink-soft); font-weight: 500; font-size: 0.78rem; }
.f1 { top: 10%; left: -54px; animation-delay: 0s; }
.f2 { bottom: 18%; right: -40px; animation-delay: 2s; }
.f3 { bottom: -22px; left: 22%; animation-delay: 4s; background: var(--black); color: #fff; border-color: transparent; }
.f3 b { color: var(--yellow); }
.f3 small { color: rgba(255,255,255,.7); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { justify-self: center; max-width: 520px; }
  .hero-photo { aspect-ratio: 1.15; }
}
@media (max-width: 720px) {
  .hero { padding: 44px 0 56px; }
  .f1 { left: -8px; } .f2 { right: -8px; }
  .hero-star { width: 80px; height: 80px; top: -28px; right: -10px; }
  .hero-photo { border-radius: 28px 28px 28px 90px; }
}

/* ---------- бегущая строка ---------- */
.ticker { background: var(--black); color: var(--yellow); padding: 18px 0; overflow: hidden; white-space: nowrap; border-top: 3px solid var(--yellow); }
.ticker-track { display: inline-flex; animation: slide 40s linear infinite; }
.ticker span { font-family: var(--font-display); font-size: 0.95rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; }
.ticker span::after { content: '✦'; color: #fff; font-size: 0.8rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- правила ---------- */
.rules { background: var(--paper); }
.rules-list { list-style: none; border-top: 1px solid var(--line); }
.rule {
  display: grid; grid-template-columns: 80px 1fr 1fr; gap: 32px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--line);
}
.rule .num { font-family: var(--font-display); font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.1em; }
.rule .old { font-size: 1.25rem; color: #9a9aa1; text-decoration: line-through; text-decoration-color: rgba(11,11,12,.35); text-decoration-thickness: 2px; font-weight: 300; }
.rule .new { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.rule .new em { font-style: normal; background: var(--yellow); padding: 0 0.2em; border-radius: 4px; }
@media (max-width: 760px) {
  .rule { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .rule .old { font-size: 1.05rem; }
}

/* ---------- выгоды ---------- */
.benefits { background: var(--paper-2); }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line);
  position: relative; overflow: hidden; min-height: 280px; display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11, 11, 12, 0.35); }
.card .big { font-family: var(--font-display); font-size: 3rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin-bottom: auto; color: var(--ink); }
.card .big sup { font-size: 1.1rem; vertical-align: super; font-weight: 400; margin-left: 2px; }
.card h3 { margin: 28px 0 10px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--yellow); opacity: 0; transform: scale(.4); transition: 0.5s var(--ease); }
.card:hover::after { opacity: 1; transform: scale(1); }
.card > * { position: relative; z-index: 1; }
.card.dark { background: var(--black); color: #fff; border-color: var(--black); }
.card.dark .big { color: var(--yellow); }
.card.dark p { color: rgba(255,255,255,.7); }
.card.dark::after { background: var(--yellow); opacity: .15; transform: scale(1); }
.ritual {
  margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: var(--yellow); border-radius: var(--radius); padding: 36px 40px;
}
.ritual h3 { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 500; max-width: 30ch; }
.ritual p { color: rgba(11,11,12,.72); max-width: 50ch; margin-top: 8px; }
.ritual .big-star { width: 120px; height: 120px; animation: spin 24s linear infinite; }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } .card { min-height: 0; } .card .big { margin-bottom: 6px; } .card h3 { margin-top: 10px; } .ritual { grid-template-columns: 1fr; padding: 28px; } .ritual .big-star { width: 72px; height: 72px; } }

/* ---------- кто что делает ---------- */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; }
.panel { border-radius: var(--radius); padding: 44px 40px; }
.panel.black { background: var(--black); color: #fff; }
.panel.yellow { background: var(--yellow); color: var(--black); }
.panel h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-bottom: 26px; opacity: .8; }
.panel ul { list-style: none; display: grid; gap: 14px; }
.panel.black ul { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; line-height: 1.4; }
.panel li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.panel.yellow li::before { background-color: var(--black); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff500' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.panel.yellow li { font-size: 1.15rem; font-weight: 500; }
.panel .foot { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: 0.92rem; color: rgba(255,255,255,.6); }
.panel.yellow .foot { border-color: rgba(11,11,12,.15); color: rgba(11,11,12,.6); }
.panel.yellow .foot b { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; color: var(--black); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .panel.black ul { grid-template-columns: 1fr; } .panel { padding: 32px 26px; } }

/* ---------- как это работает ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; counter-reset: step; }
.step { position: relative; padding: 28px 24px 28px; border-radius: var(--radius-sm); background: var(--paper-2); border: 1px solid transparent; transition: .4s var(--ease); }
.step:hover { background: #fff; border-color: var(--line); transform: translateY(-4px); }
.step .n { font-family: var(--font-display); font-size: 2.6rem; font-weight: 200; color: var(--ink); letter-spacing: -0.04em; line-height: 1; margin-bottom: 22px; position: relative; display: inline-block; }
.step .n::after { content: ''; position: absolute; left: -6px; right: -6px; bottom: 4px; height: 12px; background: var(--yellow); z-index: -1; border-radius: 3px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }
.step .arrow { position: absolute; right: -14px; top: 36px; width: 24px; height: 24px; z-index: 2; color: var(--ink); background: var(--yellow); border-radius: 50%; display: grid; place-items: center; }
.step:last-child .arrow { display: none; }
.how-photo { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.how-photo figure { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 1.55; }
.how-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.how-photo figure:hover img { transform: scale(1.04); }
.how-photo figcaption { position: absolute; left: 18px; bottom: 18px; background: rgba(11,11,12,.8); color: #fff; padding: 8px 14px; border-radius: 100px; font-size: 0.85rem; font-weight: 500; backdrop-filter: blur(6px); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .step .arrow { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .how-photo { grid-template-columns: 1fr; } }

/* ---------- карта ---------- */
.map-section { background: var(--black); color: #fff; }
.map-section .eyebrow { color: rgba(255,255,255,.6); }
.map-section p.lead { color: rgba(255,255,255,.68); }
.map-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 18px; height: 620px; }
.map-list { background: #151517; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.08); }
.map-list-head { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,.6); }
.map-list-head b { color: var(--yellow); font-family: var(--font-display); font-weight: 500; }
.map-list ul { list-style: none; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.map-list li { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; transition: background .25s; }
.map-list li:hover, .map-list li.active { background: rgba(255, 245, 0, 0.08); }
.map-list li.active { box-shadow: inset 4px 0 0 var(--yellow); }
.map-list .name { font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.map-list .addr { color: rgba(255,255,255,.6); font-size: 0.85rem; margin-top: 3px; }
.ports { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.port { font-family: var(--font-display); font-size: 0.66rem; letter-spacing: .04em; padding: 5px 9px; border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; }
.port.dc { background: var(--yellow); color: var(--black); }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: #111; position: relative; }
#map-canvas { width: 100%; height: 100%; background: #111; }
.osm-dark { filter: invert(1) hue-rotate(180deg) saturate(0.25) brightness(0.82) contrast(1.08); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-attribution { background: rgba(11,11,12,.75) !important; color: rgba(255,255,255,.5) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: rgba(255,255,255,.7) !important; }
.leaflet-bar a { background: #1c1c1f !important; color: #fff !important; border-color: rgba(255,255,255,.1) !important; }
.leaflet-bar a:hover { background: var(--yellow) !important; color: var(--black) !important; }
.ls-marker { width: 34px; height: 34px; position: relative; }
.ls-marker .dot { position: absolute; inset: 0; border-radius: 50%; background: var(--yellow); border: 3px solid var(--black); box-shadow: 0 0 0 2px var(--yellow); display: grid; place-items: center; transition: transform .3s var(--ease); }
.ls-marker .dot::after { content: '✦'; font-size: 16px; color: var(--black); line-height: 1; }
.ls-marker .pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--yellow); opacity: 0; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.ls-marker:hover .dot, .ls-marker.active .dot { transform: scale(1.2); }
.leaflet-popup-content-wrapper { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); padding: 4px; }
.leaflet-popup-tip { background: #fff; }
.leaflet-popup-content { margin: 12px 14px; font-size: 0.92rem; line-height: 1.4; min-width: 200px; }
.leaflet-popup-content b { font-size: 1rem; display: block; margin-bottom: 2px; }
.leaflet-popup-content .ports { margin-top: 8px; }
.leaflet-popup-content .port { background: var(--paper-2); color: var(--ink); }
.leaflet-popup-content .port.dc { background: var(--yellow); }
.leaflet-popup-content a.route { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--yellow); }
.leaflet-popup-close-button { color: var(--ink-soft) !important; font-size: 20px !important; padding: 6px 8px 0 0 !important; }
.map-note { margin-top: 18px; font-size: 0.88rem; color: rgba(255,255,255,.5); display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.map-note .port { font-size: .62rem; }
@media (max-width: 960px) { .map-wrap { grid-template-columns: 1fr; height: auto; } .map-box { height: 460px; } .map-list { max-height: 380px; order: 2; } }

/* ---------- тренд ---------- */
.trend { background: var(--paper); }
.countries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.country { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 22px 20px; transition: .4s var(--ease); background: #fff; }
.country:hover { border-color: var(--black); transform: translateY(-4px); }
.country .yr { font-family: var(--font-display); font-size: 2rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.country .yr small { font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); margin-left: 6px; letter-spacing: 0; }
.country .cn { font-weight: 600; margin: 12px 0 6px; display: flex; align-items: center; gap: 8px; }
.country .cn code { font-family: var(--font-display); font-size: .62rem; background: var(--yellow); padding: 3px 6px; border-radius: 4px; letter-spacing: .06em; }
.country p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 960px) { .countries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .countries { grid-template-columns: 1fr; } }

/* ---------- почему мы ---------- */
.why { background: var(--paper-2); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-item { background: #fff; border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: .4s var(--ease); }
.why-item:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(11,11,12,.3); }
.why-item .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--yellow); display: grid; place-items: center; }
.why-item .ico svg { width: 26px; height: 26px; stroke: var(--black); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { font-size: 1.12rem; }
.why-item p { color: var(--ink-soft); font-size: 0.95rem; }
.why-item.feature { grid-row: span 2; background: var(--black); color: #fff; border-color: var(--black); justify-content: flex-end; min-height: 360px; position: relative; overflow: hidden; }
.why-item.feature .huge { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7rem); font-weight: 200; color: var(--yellow); letter-spacing: -0.05em; line-height: 1; }
.why-item.feature p { color: rgba(255,255,255,.72); font-size: 1rem; }
.why-item.feature img.star-bg { position: absolute; right: -40px; top: -40px; width: 220px; opacity: .12; animation: spin 40s linear infinite; }
.why-item.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; }
.why-item.wide .ico { flex: none; }
.why-item.wide h3 { flex: 0 0 34%; }
.why-item.wide p { max-width: 60ch; }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } .why-item.feature { grid-row: auto; grid-column: span 2; min-height: 0; } .why-item.wide { flex-direction: column; align-items: flex-start; gap: 14px; } .why-item.wide h3 { flex: none; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } .why-item.feature { grid-column: auto; } }

/* ---------- галерея ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery-grid figure { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid figure:nth-child(4), .gallery-grid figure:nth-child(5), .gallery-grid figure:nth-child(6) { grid-column: span 2; }
.gallery-grid figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--yellow); color: var(--black); padding: 6px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.gallery-grid figure:hover figcaption { opacity: 1; transform: none; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .gallery-grid figure:nth-child(1) { grid-column: span 2; } .gallery-grid figure:nth-child(4), .gallery-grid figure:nth-child(5) { grid-column: span 1; } .gallery-grid figcaption { opacity: 1; transform: none; } }

/* ---------- приложение ---------- */
.app-card { background: var(--black); color: #fff; border-radius: 40px; padding: 64px 60px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.app-card::before { content: ''; position: absolute; left: 40%; top: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,245,0,.35), transparent 70%); pointer-events: none; }
.app-card h2 { color: #fff; }
.app-card h2 strong { color: var(--yellow); }
.app-card p.lead { color: rgba(255,255,255,.7); }
.app-list { list-style: none; display: grid; gap: 10px; margin: 26px 0 34px; }
.app-list li { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.85); }
.app-list li::before { content: '✦'; color: var(--yellow); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 14px; background: #fff; color: var(--black); text-decoration: none; font-weight: 600; line-height: 1.1; transition: .3s var(--ease); }
.store:hover { transform: translateY(-3px); background: var(--yellow); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: .68rem; font-weight: 500; color: var(--ink-soft); }
.support { margin-top: 28px; font-size: .92rem; color: rgba(255,255,255,.6); display: flex; gap: 18px; flex-wrap: wrap; }
.support a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.support a:hover { border-color: var(--yellow); color: var(--yellow); }
.phone-wrap { position: relative; justify-self: center; }
.phone-wrap img { width: 320px; transform: rotate(4deg); transition: transform 1s var(--ease); filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)); }
.phone-wrap:hover img { transform: rotate(0deg) scale(1.02); }
.phone-wrap .hero-star { top: -20px; left: -50px; right: auto; width: 90px; height: 90px; }
@media (max-width: 900px) { .app-card { grid-template-columns: 1fr; padding: 44px 28px; } .phone-wrap img { width: 240px; } }

/* ---------- контакты ---------- */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact h2 { margin-bottom: 20px; }
.contact-meta { margin-top: 36px; display: grid; gap: 16px; }
.contact-meta div { font-size: .95rem; color: var(--ink-soft); }
.contact-meta b { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.contact-meta a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--yellow); }
.form { background: #fff; border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(11,11,12,.25); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--paper-2); outline: none; transition: .25s; font-size: 1rem; }
.field input:focus, .field textarea:focus { border-color: var(--black); background: #fff; box-shadow: 0 0 0 4px rgba(255,245,0,.55); }
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-status { margin-top: 14px; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: #1f7a3a; font-weight: 600; }
.form-status.err { color: #b42318; font-weight: 600; }
.form .fine { font-size: .78rem; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form { padding: 26px 20px; } .form .row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- футер ---------- */
.footer { background: var(--black); color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; align-items: start; }
.footer .logo img { height: 46px; }
.footer p { font-size: .9rem; margin-top: 16px; max-width: 34ch; }
.footer h4 { font-family: var(--font-display); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.45); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .hero-star, .float, .ritual .big-star, .ls-marker .pulse { animation: none; }
}

/* ---------- кнопка вверх / мелочи ---------- */
.cut { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
