/* Атрибут hidden должен побеждать любой display из компонентных правил: у .btn
   стоит `display: inline-flex`, который иначе перекрывает браузерный дефолт, и
   скрытый элемент остаётся на экране. Нужно для кнопки «Watch demo», которую
   сборка прячет, пока не задан DEMO_VIDEO_ID (см. build.js). */
[hidden] { display: none !important; }

:root {
  --blue:     #1877F2;
  --blue-dk:  #0d47a1;
  --blue-lt:  #e7f0fd;
  --red:      #e53935;
  --green:    #2e7d32;
  --green-lt: #e8f5e9;
  --text:     #1c1e21;
  --sub:      #65676b;
  --border:   #dde1e7;
  --card:     #ffffff;
  --bg:       #f0f2f5;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow:    0 4px 18px rgba(0,0,0,0.08);
  --shadow-lg: 0 18px 50px rgba(13,71,161,0.16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ─── nav ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.4px; color: inherit; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand-pro { color: var(--green); margin-left: -6px; }
.brand-group { display: flex; align-items: center; gap: 10px; }
.support-ukraine-icon { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--sub); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 14px;
  border-radius: 10px; cursor: pointer; border: none;
  padding: 11px 18px; transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 2px 10px rgba(24,119,242,0.35); }
.btn-primary:hover { background: #1568d8; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(24,119,242,0.4); }
.btn-ghost { background: var(--blue-lt); color: var(--blue); }
.btn-ghost:hover { background: #d8e7fc; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 12px; }

/* ─── hero ─── */
.hero { padding: 80px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(24,119,242,0.10), transparent 70%);
  z-index: 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-lt); color: var(--green);
  font-size: 13px; font-weight: 600;
  padding: 6px 13px; border-radius: 20px; margin-bottom: 22px;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: live-pulse 2.2s ease-out infinite;
  /* Исправление бага субпиксельного рендеринга, который растягивает круг */
  transform: translateZ(0);
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,125,50,.45), 0 0 0 0 rgba(46,125,50,.2); }
  60%  { box-shadow: 0 0 0 4px rgba(46,125,50,.15), 0 0 0 8px rgba(46,125,50,.06); }
  100% { box-shadow: 0 0 0 6px rgba(46,125,50,0), 0 0 0 12px rgba(46,125,50,0); }
}
h1 {
  font-size: 50px; font-weight: 800; line-height: 1.08;
  letter-spacing: -1.5px; margin-bottom: 20px;
}
h1 .grad { color: var(--blue); }
.hero p.lead { font-size: 18px; color: var(--sub); margin-bottom: 32px; max-width: 480px; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--sub); margin-top: 16px; display: flex; align-items: center; gap: 7px; }

/* ─── extension mockup ─── */
.mockup-stage { display: flex; justify-content: center; align-items: center; position: relative; }
.mockup-stage::before {
  content: ''; position: absolute; inset: 10% 18%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dk));
  filter: blur(60px); opacity: 0.18; border-radius: 50%;
}
.mockup-stage picture { display: block; width: 100%; position: relative; z-index: 1; }
.mockup-img {
  display: block; width: 100%; height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(24, 119, 242, 0.18), 0 8px 24px rgba(0,0,0,0.10);
  transform: rotate(-2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mockup-img:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 32px 80px rgba(24, 119, 242, 0.22), 0 12px 32px rgba(0,0,0,0.12);
}

/* ─── stats ─── */
.stats { background: var(--bg); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .v { font-size: 32px; font-weight: 800; color: var(--blue); letter-spacing: -1px; }
.stat .k { font-size: 13px; color: var(--sub); font-weight: 500; margin-top: 2px; }

/* ─── section ─── */
section.block { padding: 90px 0; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.sec-head .eyebrow { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.sec-head h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.sec-head p { font-size: 17px; color: var(--sub); }

/* ─── features ─── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px; transition: all 0.2s;
}
.feat:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.feat .ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--sub); line-height: 1.6; }

/* ─── how it works ─── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; position: relative; }
.step .n {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  box-shadow: 0 6px 16px rgba(24,119,242,0.3);
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--sub); line-height: 1.6; max-width: 280px; margin: 0 auto; }

/* ─── pricing ─── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.price {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 34px 30px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.price.pro { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.price .tag { position: absolute; top: 22px; right: 24px; font-size: 11px; font-weight: 700; color: #fff; background: var(--green); padding: 4px 11px; border-radius: 20px; }
.price h3 { font-size: 16px; font-weight: 700; color: var(--sub); text-transform: uppercase; letter-spacing: 0.5px; }
.price .amt { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; margin: 12px 0 4px; }
.price .amt span { font-size: 16px; font-weight: 500; color: var(--sub); }
.price .sub { font-size: 14px; color: var(--sub); margin-bottom: 24px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.price li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.price li svg { flex-shrink: 0; margin-top: 2px; }
.price .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ─── safety ─── */
.safety { background: var(--bg); }
.safety-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.safety-card {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.safety-row { display: flex; gap: 14px; align-items: flex-start; }
.safety-row .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-lt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.safety-row h4 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.safety-row p { font-size: 13px; color: var(--sub); line-height: 1.55; }

/* ─── faq ─── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details.faq {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 20px; transition: box-shadow 0.2s;
}
details.faq[open] { box-shadow: var(--shadow); }
details.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  font-size: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .plus { color: var(--blue); font-size: 22px; transition: transform 0.2s; font-weight: 400; }
details.faq[open] summary .plus { transform: rotate(45deg); }
details.faq p { font-size: 14px; color: var(--sub); line-height: 1.65; padding: 0 0 18px; }

/* ─── cta band ─── */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%);
  border-radius: 24px; padding: 56px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; top: -100px; left: -100px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.cta-band::after { content: ''; position: absolute; bottom: -120px; right: -80px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.cta-band h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; position: relative; }
.cta-band p { font-size: 17px; opacity: 0.9; margin-bottom: 28px; position: relative; }
.cta-band .btn { background: #fff; color: var(--blue); position: relative; }
.cta-band .btn:hover { background: #f0f2f5; }

/* ─── footer ─── */
footer { padding: 56px 0 40px; border-top: 1px solid var(--border); }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 280px; }
.foot-brand p { font-size: 13px; color: var(--sub); margin-top: 12px; line-height: 1.6; }
.foot-cols { display: flex; gap: 64px; }
.foot-col h5 { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.foot-col a { display: block; font-size: 13px; color: var(--sub); margin-bottom: 10px; transition: color 0.15s; }
.foot-col a:hover { color: var(--blue); }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--sub); flex-wrap: wrap; gap: 10px; }
.foot-lang { display: flex; align-items: center; gap: 8px; }
.foot-lang label { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--sub); font-weight: 500; white-space: nowrap; cursor: default; }
.foot-lang select {
  appearance: none; -webkit-appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2365676b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  padding: 6px 28px 6px 10px; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 120px;
}
.foot-lang select:hover { border-color: var(--blue); }
.foot-lang select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,119,242,0.15); }
.disclaimer { font-size: 12px; color: #9aa0a6; line-height: 1.6; margin-top: 16px; max-width: 720px; }

/* ─── sale pricing ─── */
.sale-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
  padding: 7px 15px; border-radius: 20px; margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(229,57,53,0.3);
}
.price .ribbon {
  position: absolute; top: 18px; right: -38px;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: 12px; letter-spacing: 0.5px;
  padding: 6px 44px; transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(229,57,53,0.35); z-index: 2;
}
.price .amt .old {
  font-size: 20px; font-weight: 600; color: #9aa0a6;
  text-decoration: line-through; margin-left: 4px;
}

/* ─── video modal ─── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative;
  width: min(860px, 92vw);
}
.modal-close {
  position: absolute; top: -40px; right: 0;
  background: none; border: none; cursor: pointer;
  opacity: 0.8; transition: opacity 0.15s;
}
.modal-close:hover { opacity: 1; }
.modal-video {
  position: relative; padding-bottom: 56.25%; /* 16:9 */
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.modal-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mockup-stage { order: -1; }
  h1 { font-size: 40px; }
  .feat-grid, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; }
  .safety-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .cta-band { padding: 40px 24px; }
  .cta-band h2, .sec-head h2 { font-size: 30px; }
}
