/* ==================================================================
   DRIPLY — стили сайта driply.uk
   Стиль по мотивам сайта cryscult: тёмный фон, курсивные заголовки
   строчными, моноширинные «бирочные» подписи, острые углы.
   Цветового акцента нет — монохром, как в приложении.
   1. Токены  2. База  3. Шапка  4. Hero  5. Бегущая строка
   6. Секции  7. Карточки и шаги  8. Тексты (документы)  9. FAQ
   10. Кнопки сторов  11. Футер
   ================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-alt: #141416;
  --bg-alt-2: #1c1c1f;
  --fg: #f2f2f2;
  --fg-dim: #9a9aa0;
  --line: #26262a;

  /* акцент — белый: кнопки белые с чёрным текстом */
  --accent: #f2f2f2;
  --on-accent: #0b0b0c;

  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1200px;
  --radius: 2px;
}

/* 2. База */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 560px) { .container { padding: 0 20px; } }

.tag-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* 3. Шапка */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(11, 11, 12, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 242, 242, 0.08);
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.site-header nav ul { display: flex; gap: 24px; }
.site-header nav a {
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { opacity: 1; }
.site-header .logo img { height: 22px; width: auto; }
.langs { display: flex; gap: 2px; justify-self: end; }
.langs button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  padding: 6px 8px;
  border-radius: var(--radius);
}
.langs button[aria-pressed="true"] { color: var(--fg); background: var(--bg-alt-2); }
@media (max-width: 980px) {
  .site-header .container { grid-template-columns: auto 1fr; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav ul { gap: 18px; }
  .site-header nav a { font-size: 11px; white-space: nowrap; }
  .site-header .logo { grid-column: 1; grid-row: 1; }
  .langs { grid-column: 2; grid-row: 1; }
}

/* 4. Hero */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(46vw, 720px);
  height: auto;
  pointer-events: none;
  user-select: none;
}
/* затемнение слева — текст поверх телефона читается на любой ширине */
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 12, 0.85) 38%, rgba(11, 11, 12, 0) 70%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; width: 100%; padding-bottom: 72px; padding-top: 140px; }
.hero__content > [data-lang] { max-width: 56%; }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 8px rgba(242, 242, 242, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: lowercase;
}
.hero__tagline {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  max-width: 520px;
}
.hero__cta-row { margin-top: 36px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) {
  /* на телефоне модель не показываем — только текст */
  .hero__phone, .hero__shade { display: none; }
  .hero { min-height: 0; }
  .hero__content > [data-lang] { max-width: none; }
  .hero__title { font-size: clamp(40px, 11vw, 64px); }
}
@media (max-width: 560px) {
  .hero__content { padding-bottom: 40px; }
  .hero__tagline { font-size: 12px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  transition: opacity 0.2s ease, background 0.2s ease;
}
.btn:hover { opacity: 0.88; }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid rgba(242, 242, 242, 0.35); }
.btn--ghost:hover { background: rgba(242, 242, 242, 0.08); opacity: 1; }

/* 5. Бегущая строка — две одинаковые группы, сдвиг ровно на -50% */
.marquee {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
}
.marquee__track { display: inline-flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__group { display: inline-flex; flex-shrink: 0; }
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 20px;
  text-transform: lowercase;
  padding: 0 28px;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.marquee__track span::after { content: "✦"; color: var(--fg); font-style: normal; font-size: 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 6. Секции */
.section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2, .page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.02;
  text-transform: lowercase;
}
.section-head p { color: var(--fg-dim); font-size: 15px; max-width: 380px; }
.page-content { padding-top: 140px; padding-bottom: 96px; }
.page-lead { color: var(--fg-dim); font-size: 17px; max-width: 640px; margin-top: 16px; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .page-content { padding-top: 130px; padding-bottom: 64px; }
}

/* 7. Карточки, шаги, цены */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step__num { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); letter-spacing: 0.1em; }
.step h3, .card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: lowercase;
  margin: 10px 0 8px;
}
.step p, .card p { color: var(--fg-dim); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 32px; }
.section--alt .card { background: var(--bg-alt); }
.card .tag-label { display: block; margin-bottom: 4px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.split p { color: var(--fg-dim); margin-bottom: 14px; }
.split .btn { margin-top: 12px; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 8px 0 20px; }
.price { background: var(--bg); padding: 24px; }
.price__period { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
.price__value { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 40px; margin-top: 6px; }
.note { font-size: 13px; color: var(--fg-dim); }

.screens { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.screens img { border: 1px solid var(--line); border-radius: 18px; width: 100%; }

@media (max-width: 900px) {
  .steps, .cards, .prices, .split { grid-template-columns: 1fr; }
  .split { gap: 32px; }
}

/* 8. Документы */
.prose { max-width: 720px; }
.prose h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; text-transform: lowercase; margin-bottom: 8px; }
.prose .date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--fg-dim); margin-bottom: 32px; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 36px 0 10px; }
.prose p { color: #d6d6da; margin-bottom: 12px; }
.prose ul { margin: 0 0 12px 18px; list-style: disc; color: #d6d6da; }
.prose li { margin-bottom: 4px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* 9. FAQ */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-size: 17px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 18px;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--fg-dim);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { color: var(--fg-dim); padding: 0 0 22px; max-width: 680px; }
.faq .answer a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.contact-box { border: 1px solid var(--line); padding: 32px; margin-top: 48px; max-width: 820px; }
.contact-box h2 { font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: lowercase; margin-bottom: 8px; }
.contact-box p { color: var(--fg-dim); margin-bottom: 18px; }
.contact-box .row { display: flex; gap: 12px; flex-wrap: wrap; }

/* 10. Кнопки сторов */
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 170px;
  padding: 10px 18px;
  border: 1px solid rgba(242, 242, 242, 0.35);
  border-radius: var(--radius);
}
.store small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
.store strong { font-size: 17px; font-weight: 700; }
.store[aria-disabled="true"] { cursor: default; }

.cta { text-align: left; }
.cta .section-head { margin-bottom: 28px; }

/* 11. Футер */
.site-footer { padding-top: 72px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 64px; }
.footer-brand img { height: 26px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--fg-dim); font-size: 14px; max-width: 300px; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; opacity: 0.85; transition: opacity 0.2s ease; }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
}
@media (max-width: 720px) { .footer-links { gap: 32px; } }
