/* ============================================================
   МАРИНЕРИО — фирменный стиль
   Премиальная морская тема: глубина, воздух, золото.
   Всё на CSS-переменных. Тёмная тема — единственная и основная.
   ============================================================ */

:root {
  /* Палитра: глубина океана */
  --c-abyss:   #060d15;   /* самый тёмный фон, низ страницы */
  --c-deep:    #0a1520;   /* основной фон */
  --c-sea:     #0e1d2c;   /* панели, карточки */
  --c-sea-2:   #132638;   /* приподнятые карточки, hover */
  --c-line:    #1e3448;   /* линии, рамки */

  /* Золото — только для акцентов и коротких заголовков */
  --c-gold:    #d4af37;
  --c-gold-2:  #f0d98c;
  --c-gold-dim:#8a742f;

  /* Текст */
  --c-text:    #e9eff5;
  --c-muted:   #9db1c3;
  --c-faint:   #64809a;

  /* Семантика */
  --c-ok:      #4cc38a;

  /* Типографика */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --fs-hero:   clamp(2rem, 5.5vw, 3.6rem);
  --fs-h2:     clamp(1.5rem, 3.2vw, 2.3rem);
  --fs-h3:     clamp(1.15rem, 2vw, 1.4rem);
  --fs-body:   clamp(1rem, 1.1vw, 1.125rem);
  --fs-small:  0.875rem;
  --lh-tight:  1.15;
  --lh-body:   1.65;

  /* Геометрия */
  --w-page:    1160px;
  --gap:       clamp(1rem, 2.5vw, 2rem);
  --sect-pad:  clamp(3.5rem, 8vw, 7rem);
  --radius:    14px;
  --radius-lg: 22px;

  /* Эффекты */
  --shadow:    0 18px 50px rgba(3, 8, 14, .55);
  --glow-gold: 0 0 42px rgba(212, 175, 55, .16);
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-deep);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--c-gold-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { line-height: var(--lh-tight); margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 750; }
h3 { font-size: var(--fs-h3); font-weight: 650; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

/* Короткие заголовки — золотом (фирменное правило) */
.gold { color: var(--c-gold); }
.gold-grad {
  background: linear-gradient(100deg, var(--c-gold) 10%, var(--c-gold-2) 55%, var(--c-gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--c-muted); }
.small { font-size: var(--fs-small); }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1.1rem;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 13, 21, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--c-text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .06em;
}
.brand:hover { text-decoration: none; }
.brand svg, .brand img { width: 40px; height: 40px; flex: none; }
.brand-name { text-transform: uppercase; }
.brand-name b { color: var(--c-gold); font-weight: inherit; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.8rem);
}
.nav a {
  color: var(--c-muted);
  font-weight: 550;
  font-size: .95rem;
}
.nav a:hover { color: var(--c-text); text-decoration: none; }
.nav a.active { color: var(--c-gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  color: var(--c-text);
  width: 44px; height: 44px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(120deg, var(--c-gold) 0%, var(--c-gold-2) 100%);
  color: #221a05;
  box-shadow: var(--glow-gold);
}
.btn-gold:hover { box-shadow: 0 0 55px rgba(212, 175, 55, .3); }

.btn-ghost {
  border-color: var(--c-line);
  color: var(--c-text);
  background: rgba(19, 38, 56, .4);
}
.btn-ghost:hover { border-color: var(--c-gold-dim); }

.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.08rem; }

/* ---------- Герой ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8.5rem) 0 var(--sect-pad);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(212, 175, 55, .10), transparent 62%),
    radial-gradient(900px 640px at 12% 8%, rgba(30, 82, 120, .35), transparent 60%),
    linear-gradient(180deg, #0c1b2a 0%, var(--c-deep) 70%);
}

.hero-in { position: relative; z-index: 2; max-width: 760px; }

.hero h1 { margin-bottom: .5em; }
.hero .lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--c-muted);
  max-width: 620px;
  margin-bottom: 2.2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Осьминог-водяной знак в герое */
.hero-mark {
  position: absolute;
  right: clamp(-120px, -4vw, -30px);
  bottom: -80px;
  width: clamp(320px, 38vw, 560px);
  opacity: .07;
  z-index: 1;
  pointer-events: none;
}

/* Волна-разделитель */
.wave {
  display: block;
  width: 100%;
  height: 46px;
  color: var(--c-deep);
}

/* ---------- Секции ---------- */

.section { padding: var(--sect-pad) 0; }
.section-dark { background: var(--c-abyss); }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Карточки-сетки ---------- */

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(165deg, var(--c-sea) 0%, var(--c-sea-2) 130%);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}

.card h3 { margin-top: .9rem; }
.card .num {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--c-gold);
  color: var(--c-gold);
  font-weight: 800;
  font-size: 1.15rem;
}
.card .ico { width: 44px; height: 44px; color: var(--c-gold); }

/* Шаги: соединительная линия на десктопе */
.steps { counter-reset: step; position: relative; }

/* ---------- Блок фактов ---------- */

.facts {
  border: 1px solid var(--c-gold-dim);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(212, 175, 55, .08), transparent 60%),
    linear-gradient(165deg, var(--c-sea) 0%, var(--c-abyss) 120%);
  padding: clamp(1.8rem, 4vw, 3rem);
}

.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.fact .fact-value {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: var(--c-gold);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: .35rem;
}
.fact .fact-label { color: var(--c-muted); font-size: .97rem; }

.facts-note { margin-top: 1.6rem; color: var(--c-faint); font-size: var(--fs-small); }

/* ---------- Списки с якорями-плюсами ---------- */

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .85rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--c-gold) 0 35%, transparent 40%),
    radial-gradient(circle at 50% 50%, transparent 0 60%, var(--c-gold-dim) 65% 72%, transparent 78%);
}

/* ---------- Формы ---------- */

.form-card {
  background: linear-gradient(165deg, var(--c-sea) 0%, var(--c-sea-2) 130%);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow);
  max-width: 640px;
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-muted);
  margin-bottom: .4rem;
}
.field .req { color: var(--c-gold); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  background: var(--c-deep);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-text);
  font: inherit;
  padding: .85rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}
.field select { appearance: none; }
.field textarea { resize: vertical; min-height: 96px; }

.agree {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--c-faint);
  margin: 1.1rem 0 1.4rem;
}
.agree input { margin-top: .25em; accent-color: var(--c-gold); }

/* Honeypot: скрытое от людей поле-ловушка */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Таблица прозрачности ---------- */

.flow-table { width: 100%; border-collapse: collapse; }
.flow-table th, .flow-table td {
  text-align: left;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.flow-table th {
  color: var(--c-gold);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.flow-table td:first-child { color: var(--c-text); font-weight: 600; white-space: nowrap; }
.flow-table td { color: var(--c-muted); }

/* ---------- CTA-полоса ---------- */

.cta-band {
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-gold-dim);
  background:
    radial-gradient(640px 260px at 50% -30%, rgba(212, 175, 55, .13), transparent 65%),
    linear-gradient(165deg, var(--c-sea) 0%, var(--c-abyss) 130%);
  padding: clamp(2.4rem, 6vw, 4.2rem) clamp(1.4rem, 4vw, 3rem);
}
.cta-band h2 { max-width: 620px; margin-inline: auto; }
.cta-band p { max-width: 520px; margin: 0 auto 1.8rem; color: var(--c-muted); }

/* ---------- Подвал ---------- */

.site-footer {
  background: var(--c-abyss);
  border-top: 1px solid var(--c-line);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  color: var(--c-faint);
  font-size: var(--fs-small);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 2rem;
}
.site-footer a { color: var(--c-muted); }
.site-footer a:hover { color: var(--c-gold-2); }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: var(--c-text); font-weight: 700; letter-spacing: .06em; margin-bottom: .8rem; }
.footer-brand svg, .footer-brand img { width: 32px; height: 32px; }
.footer-bottom {
  border-top: 1px solid var(--c-line);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  justify-content: space-between;
}

/* ---------- Страница «спасибо» и прочее ---------- */

.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: .5rem; color: var(--c-muted); }

.stub {
  border: 1px dashed var(--c-gold-dim);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  color: var(--c-faint);
  font-size: var(--fs-small);
}

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 13, 21, .97);
    border-bottom: 1px solid var(--c-line);
    padding: .5rem 0 1rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem clamp(1.1rem, 4vw, 2rem); font-size: 1.05rem; }
  .nav-toggle { display: inline-grid; place-items: center; }

  .hero-mark { right: -140px; bottom: -60px; opacity: .05; }
  .hero-cta .btn { width: 100%; text-align: center; }
}

@media (max-width: 520px) {
  .fact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .flow-table td:first-child { white-space: normal; }
}

/* Доступность: видимый фокус для клавиатуры */
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }

/* Уважение к reduce-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
