/* ============================================================
   Prosto PL — основні стилі
   Стиль: графітовий мінімалізм (палітра #232425 / #52555A / #FFFFFF),
   акцент — червоний із логотипу. Заголовки: Montserrat. Текст: Inter.
   ============================================================ */

:root {
  --bg: #232425;          /* основний фон (графіт) */
  --bg-deep: #1a1b1c;     /* глибший фон для чергування секцій */
  --surface: #2b2c2e;     /* картки */
  --surface-2: #333437;   /* картки при наведенні */
  --gray: #52555a;        /* другорядний колір бренду */
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --ink: #ffffff;
  --mut: #c9cbcf;         /* другорядний текст: світлий, але не білий */
  --accent: #d6283c;      /* червоний з логотипу */
  --accent-hover: #e8394d;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  font: 400 16px/1.7 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 600; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.18; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
h3 { font-size: 21px; font-weight: 500; margin-bottom: 10px; }

.w { max-width: 1180px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px var(--font-head); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  background: var(--accent); color: #fff; transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.btn.light { background: #fff; color: var(--bg); }
.btn.light:hover { background: #e9e9ea; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Логотип ---------- */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo svg { width: 34px; height: auto; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font: 700 19px var(--font-head); letter-spacing: .04em; }
.logo-name span { font-weight: 400; }
.logo-sub { font: 400 8.5px var(--font-head); letter-spacing: .26em; color: var(--mut); margin-top: 5px; }

/* ---------- Шапка ---------- */
header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(35, 36, 37, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header .w { display: flex; align-items: center; justify-content: space-between; height: 100%; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { padding: 8px 14px; text-decoration: none; font: 400 14.5px var(--font-head); color: var(--mut); border-radius: 999px; transition: color .2s; }
nav a:hover { color: #fff; }
nav a.btn { color: #fff; margin-left: 12px; padding: 10px 22px; }
#menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: #fff; border-radius: 999px; padding: 9px 18px; font: 400 14px var(--font-head); cursor: pointer; }

@media (max-width: 920px) {
  #menu-toggle { display: block; }
  nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
  }
  nav.open { display: flex; }
  nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: #fff; }
  nav a.btn { margin: 14px 0 0; border-radius: 999px; border: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(80px, 13vw, 150px) 0 clamp(70px, 10vw, 120px);
  background: var(--bg);
}
/* діагональна «смуга світла», як у референсі */
.hero::before {
  content: ""; position: absolute; inset: -40% -20%; z-index: -1;
  background:
    linear-gradient(118deg, transparent 38%, rgba(255,255,255,.075) 46%, rgba(255,255,255,.02) 54%, transparent 62%),
    radial-gradient(60% 50% at 18% 10%, rgba(255,255,255,.06), transparent 70%);
}
/* великий напівпрозорий знак логотипу на фоні */
.hero-mark { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: min(560px, 55vw); opacity: .06; z-index: -1; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--mut); margin-bottom: 26px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 { max-width: 820px; }
.hero h1 em { font-style: normal; font-weight: 600; }
.hero p { max-width: 600px; margin: 26px 0 12px; color: var(--mut); font-size: 18px; }
.hero .tagline { display: block; margin-bottom: 40px; color: #fff; font-weight: 400; font-size: 18px; }

.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 48px; margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-facts b { display: block; font: 500 26px var(--font-head); }
.hero-facts span { color: var(--mut); font-size: 14px; }

/* ---------- Секції ---------- */
section { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
section.alt { background: var(--bg-deep); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head .num { font: 400 13px var(--font-head); letter-spacing: .2em; color: var(--accent); display: block; margin-bottom: 14px; }
.lead { color: var(--mut); max-width: 560px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: background .25s, border-color .25s;
}
.card:hover { background: var(--surface-2); border-color: var(--line-strong); }
.card p { color: var(--mut); }

/* Послуги */
.service { display: flex; flex-direction: column; }
.service .tag { align-self: flex-start; font: 500 11.5px var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; margin-bottom: 26px; }
.service .tag.main { color: #fff; border-color: var(--accent); }
.service h3 { font-size: 26px; }
.checks { list-style: none; padding: 0; margin: 22px 0 32px; }
.checks li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); color: #e4e5e7; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.service .btn { margin-top: auto; align-self: flex-start; }

/* Ціни */
.price-list { list-style: none; padding: 0; margin: 18px 0 6px; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.price-list li span { color: #e4e5e7; }
.price-list li small { display: block; color: var(--mut); font-size: 13px; }
.price-list b { font: 500 18px var(--font-head); white-space: nowrap; }
.note { color: var(--mut); font-size: 14px; margin-top: 14px; }

.cta-box {
  margin-top: 24px; border-radius: var(--radius); padding: 38px;
  background: linear-gradient(118deg, #3a3c40 0%, var(--gray) 55%, #45484c 100%);
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
}
.cta-box p { max-width: 520px; color: #e9eaeb; }
.cta-box p b { display: block; font: 500 22px var(--font-head); color: #fff; margin-bottom: 6px; }

/* Терміни */
.big { font: 400 clamp(30px, 4vw, 42px) var(--font-head); margin: 6px 0 14px; }
.big small { font-size: .5em; color: var(--mut); }
.statement { margin-top: 36px; padding: 28px 32px; border-left: 2px solid var(--accent); background: linear-gradient(90deg, rgba(255,255,255,.04), transparent); color: var(--mut); max-width: 820px; }
.statement b { color: #fff; }

/* Переваги */
.feature .icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; margin-bottom: 22px; }
.feature .icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.6; }

/* Кроки */
.steps { counter-reset: step; }
.step { position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 300 52px var(--font-head); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); margin-bottom: 18px; line-height: 1; }

/* Контакти */
.contact-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; transition: color .2s; }
.contact-list a:first-of-type { border-top: 0; }
.contact-list a span { color: var(--mut); transition: color .2s; }
.contact-list a:hover span { color: #fff; }
.contact-list a::after { content: "→"; color: var(--accent); margin-left: 6px; }
.contact-list a span { margin-left: auto; }

label { display: block; font-size: 13px; color: var(--mut); margin-bottom: 6px; letter-spacing: .02em; }
input {
  width: 100%; padding: 14px 16px; margin-bottom: 18px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  color: #fff; font: 400 16px var(--font-body);
}
input:focus { border-color: #fff; outline: none; }
form .btn { width: 100%; }
form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: -4px 0 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; color: #ffd7dc; background: rgba(214, 40, 60, .12); border: 1px solid rgba(214, 40, 60, .45); }
.form-error a { color: #fff; }
.form-success { text-align: center; padding: 24px 6px; }
.form-success .success-icon { width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(214, 40, 60, .12); border: 1px solid var(--accent); }
.form-success .success-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--mut); max-width: 380px; margin: 0 auto; }
.form-success a { color: #fff; }

/* ---------- Футер ---------- */
footer { background: #161718; border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; color: var(--mut); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-top p { margin-top: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: flex-start; }
.footer-nav a, footer a { text-decoration: none; color: #fff; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; }
.footer-bottom a { color: var(--mut); }
.footer-bottom a:hover { color: #fff; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; line-height: 1.55; color: var(--mut); }
.consent svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Сторінка політики конфіденційності ---------- */
.legal { padding: clamp(48px, 8vw, 90px) 0; border-top: 0; }
.legal .w { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 12px; }
.legal .updated { color: var(--mut); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 500; margin: 44px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: #dfe0e3; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal li::marker { color: var(--accent); }
.legal a { color: #fff; text-underline-offset: 2px; }
.legal .back { display: inline-flex; gap: 8px; color: var(--mut); text-decoration: none; font-size: 14px; margin-bottom: 28px; }
.legal .back:hover { color: #fff; }

dialog { max-width: 440px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 30px; background: var(--surface); color: #fff; }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog p { margin-bottom: 20px; color: var(--mut); }

/* ---------- Мобільна версія ---------- */
@media (max-width: 640px) {
  /* Читабельність: більший шрифт, ширші рядки, менше «повітря» по боках */
  body { font-size: 17px; line-height: 1.65; }
  .w { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: 34px; line-height: 1.15; }
  h2 { font-size: 28px; }
  h3, .service h3 { font-size: 21px; }
  section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; gap: 12px; }
  .lead { font-size: 16px; }

  /* Hero */
  .hero { padding: 56px 0 52px; }
  .hero p, .hero .tagline { font-size: 17px; }
  .hero .tagline { margin-bottom: 30px; }
  .eyebrow { margin-bottom: 18px; font-size: 11.5px; }
  .hero-mark { width: 300px; right: -120px; top: 32%; opacity: .045; }
  .hero-facts { grid-template-columns: 1fr; gap: 0; margin-top: 44px; padding-top: 0; }
  .hero-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-facts b { font-size: 19px; }
  .hero-facts span { font-size: 14px; text-align: right; }

  /* Кнопки на всю ширину — легко натиснути пальцем */
  .row .btn, .cta-box .btn, .service .btn { width: 100%; }
  .btn { padding: 15px 22px; font-size: 16px; }

  .card, .cta-box { padding: 22px 20px; }
  .grid { gap: 14px; }
  .service .tag { margin-bottom: 18px; }
  .checks { margin: 18px 0 24px; }
  .checks li { padding: 11px 0 11px 28px; }
  .checks li::before { top: 19px; }

  /* Ціни: назва зліва, ціна справа в один рядок */
  .price-list li { padding: 14px 0; gap: 14px; }
  .price-list b { font-size: 17px; }
  .cta-box p b { font-size: 20px; }

  .statement { padding: 20px 18px; margin-top: 24px; }
  .big { font-size: 30px; }
  .step::before { font-size: 42px; margin-bottom: 12px; }
  .feature .icon { margin-bottom: 16px; }

  /* Контакти: назва зверху, значення під нею */
  .contact-list a { flex-wrap: wrap; padding: 14px 0; gap: 2px 10px; }
  .contact-list a span { margin-left: 0; order: 2; width: 100%; color: #fff; font-size: 16px; }
  .contact-list a::after { order: 1; margin-left: auto; }
  .contact-list a { color: var(--mut); font-size: 14px; }

  input { font-size: 16px; padding: 15px 16px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .logo-sub { display: none; }
  nav a.btn { font-size: 16px; }
}
