:root {
  --ink: #14161a;
  --ink-2: #1d2026;
  --paper: #f3f1ec;
  --card: #ffffff;
  --line: #d8d4ca;
  --muted: #5a5f68;
  --muted-dark: #b4b7bd;
  --red: #d9281e;
  --red-dark: #b81f16;
  --green: #4fd675;
  --ph: #ffe14d;
  --display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --text: "Golos Text", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ph); outline-offset: 3px; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: .005em; }
h2 { font-size: clamp(30px, 5vw, 46px); }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }

.ph {
  display: inline-block;
  padding: 0 7px;
  background: var(--ph);
  color: #14161a;
  border: 2px dashed #14161a;
  border-radius: 4px;
  font-family: var(--text);
  font-size: .92em;
  font-weight: 600;
  line-height: 1.5;
}

.tag {
  margin-bottom: 10px;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tag--light { color: #ff8078; }

section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }

/* Верх */
.top { background: var(--ink); color: #fff; border-bottom: 1px solid #2c3037; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.ph--name { font-size: 14px; }
.top__tel { font-weight: 700; text-decoration: none; white-space: nowrap; }
.top__tel:hover { color: var(--ph); }
@media (max-width: 460px) { .top__tel { font-size: 15px; } .ph--name { font-size: 13px; padding: 0 5px; } }

/* Первый экран */
.hero {
  padding: 40px 0 48px;
  color: #fff;
  background:
    radial-gradient(640px 400px at 78% 40%, rgba(217, 40, 30, .24), transparent 70%),
    var(--ink);
}
.hero__grid { display: grid; gap: 28px; align-items: center; }
.warning {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #ff6a60;
  font-weight: 600;
}
.warning svg { width: 30px; height: 22px; animation: blink 1.8s steps(2, jump-none) infinite; }
.hero h1 { font-size: clamp(38px, 9.4vw, 66px); }
.hero__lead { margin-top: 18px; max-width: 34em; color: #dcdde0; font-size: clamp(17px, 2.2vw, 20px); }
.hero__where { margin-top: 18px; color: var(--muted-dark); font-size: 15px; }
.device { display: block; width: min(100%, 420px); height: auto; margin: 0 auto; }

.call {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 400px;
  margin-top: 26px;
  padding: 15px 22px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--red-dark);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.call:hover { background: #e5352a; }
.call:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-dark); }
.call svg { flex: none; width: 30px; height: 30px; }
.call span { display: block; }
.call b { display: block; margin-top: 3px; font: 600 25px/1.1 var(--display); letter-spacing: .02em; white-space: nowrap; }

.cable { fill: none; stroke-width: 9; stroke-linecap: round; }
.cable--red { stroke: var(--red); }
.cable--dark { stroke: #8a8f99; }
.seg { fill: var(--green); opacity: .14; animation: charge 3.600s linear infinite; }
.seg1 { animation-delay: 0s; }
.seg2 { animation-delay: .35s; }
.seg3 { animation-delay: .7s; }
.seg4 { animation-delay: 1.05s; }
@keyframes charge {
  0%, 4% { opacity: .14; }
  8%, 70% { opacity: 1; }
  78%, 100% { opacity: .14; }
}
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .35; } }

@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero__grid { grid-template-columns: 1.25fr 1fr; gap: 48px; }
  .device { width: 100%; max-width: 460px; }
}

/* Что это */
.about__grid, .faq__grid { display: grid; gap: 24px; }
.about__body p + p { margin-top: 16px; }
.about__body { max-width: 40em; }
@media (min-width: 900px) {
  .about__grid, .faq__grid { grid-template-columns: 5fr 7fr; gap: 56px; }
}

/* Модели */
.models { background: #e9e6df; }
.models h2 { margin-bottom: 28px; }
.cards { display: grid; gap: 18px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card__img {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 18px 12px 12px;
  background: repeating-linear-gradient(135deg, #eeeae2 0 10px, #f6f4ef 10px 20px);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.card__img svg { width: 110px; height: auto; fill: none; stroke: #8f8c84; stroke-width: 3; stroke-linecap: round; }
.card dl { display: grid; gap: 10px; flex: 1; }
.card dt { color: var(--muted); font-size: 14px; }
.card__call {
  display: block;
  padding: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.card__call:hover { background: var(--red); }

/* Преимущества */
.benefits { background: var(--ink-2); color: #fff; }
.benefit-list { display: grid; gap: 1px; margin-top: 28px; background: #3a3e46; border: 1px solid #3a3e46; border-radius: 14px; overflow: hidden; }
.benefit-list li { padding: 24px 22px; background: var(--ink-2); }
.benefit-list p { margin-top: 8px; color: var(--muted-dark); }
@media (min-width: 720px) { .benefit-list { grid-template-columns: repeat(2, 1fr); } }
.benefits__own { margin-top: 24px; }

/* Как пользоваться */
.steps h2 { margin-bottom: 28px; }
.step-list { display: grid; gap: 26px; counter-reset: step; }
.step-list li { position: relative; padding-top: 16px; border-top: 4px solid var(--ink); counter-increment: step; }
.step-list li:first-child { border-top-color: var(--red); }
.step-list li::before { content: counter(step); display: block; margin-bottom: 6px; font: 600 40px/1 var(--display); }
.step-list p { margin-top: 6px; color: var(--muted); }
@media (min-width: 620px) { .step-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .step-list { grid-template-columns: repeat(4, 1fr); } }
.note { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* Вопросы */
.faq { background: #e9e6df; }
.faq details { border-bottom: 1px solid #c8c4ba; }
.faq details:first-child { border-top: 1px solid #c8c4ba; }
.faq summary {
  position: relative;
  padding: 18px 36px 18px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 4px;
  color: var(--red);
  font: 600 28px/1.3 var(--display);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 20px; color: #363a42; }
.faq .ph { margin-top: 2px; }

/* Контакты */
.contacts { background: var(--red); color: #fff; }
.contacts__grid { display: grid; gap: 36px; }
.contacts__tel {
  display: block;
  margin-top: 16px;
  font: 700 clamp(36px, 10vw, 60px)/1.1 var(--display);
  text-decoration: none;
  white-space: nowrap;
}
.call--invert { background: #fff; color: var(--ink); box-shadow: 0 6px 0 #8f150e; }
.call--invert:hover { background: var(--paper); }
.call--invert:active { box-shadow: 0 2px 0 #8f150e; }
.call--invert span { font-size: 20px; }
.contacts__data { display: grid; gap: 14px; align-content: start; }
.contacts__data dt { font-size: 14px; opacity: .85; }
@media (min-width: 900px) { .contacts__grid { grid-template-columns: 7fr 5fr; gap: 56px; } }

/* Подвал */
.foot { padding: 22px 0 92px; background: var(--ink); color: var(--muted-dark); font-size: 14px; }
@media (min-width: 720px) { .foot { padding-bottom: 22px; } }

/* Закреплённая кнопка на телефоне */
.sticky {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  padding: 15px 12px;
  background: var(--red);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
@media (min-width: 720px) { .sticky { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .warning svg, .seg { animation: none; }
  .seg { opacity: 1; }
  .call { transition: none; }
}
