/* COLVUM — identity: indigo #33409c + brass #8d6414, serif logotype */

:root {
  --indigo: #33409c;
  --indigo-deep: #1e2765;
  --indigo-ink: #131a45;
  --brass: #8d6414;
  --brass-light: #c39a3e;
  --paper: #fbfaf7;
  --paper-2: #f3f1ea;
  --line: #e2ded2;
  --text: #1c1e2a;
  --text-soft: #575c72;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .16em;
  color: var(--indigo-ink);
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo:hover { text-decoration: none; }

.logo-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 7px;
  background: var(--indigo);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.head-right { display: flex; align-items: center; gap: 18px; }

.nav-links { display: flex; gap: 20px; font-size: 15px; }
.nav-links a { color: var(--text-soft); }
.nav-links a:hover { color: var(--indigo); text-decoration: none; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  letter-spacing: .06em;
  background: var(--white);
}

.lang-switch a {
  padding: 5px 11px;
  color: var(--text-soft);
}

.lang-switch a[aria-current="true"] {
  background: var(--indigo);
  color: #fff;
}

.lang-switch a:hover { text-decoration: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(141, 100, 20, .30), transparent 62%),
    linear-gradient(168deg, var(--indigo-ink) 0%, var(--indigo-deep) 52%, #2a3480 100%);
  color: #fff;
  padding: 92px 0 84px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 420px at 22% 12%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 420px at 22% 12%, #000, transparent 78%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; max-width: 900px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(195, 154, 62, .55);
  background: rgba(141, 100, 20, .22);
  color: #f0dcae;
  font-size: 13px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass-light);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.72); }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  margin: 22px 0 0;
  letter-spacing: -.01em;
}

.hero .lede {
  font-size: clamp(17px, 2.1vw, 21px);
  color: #ccd2f2;
  margin: 20px 0 0;
  max-width: 720px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 15px;
  color: #b9c0e6;
}

.hero-meta b { color: #fff; font-weight: 600; }

/* ---------- sections ---------- */

section { padding: 76px 0; }
section + section { border-top: 1px solid var(--line); }

.section-alt { background: var(--paper-2); }

.eyebrow {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 700;
  margin: 0 0 12px;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.18;
  margin: 0 0 18px;
  color: var(--indigo-ink);
}

h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--indigo-ink);
}

.section-lede {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 0 40px;
}

/* 232px — чтобы 4 карточки вставали одним рядом при wrap 1120px (иначе 4-я висит сиротой) */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.section-alt .card { background: var(--white); }

.card p { margin: 0; color: var(--text-soft); font-size: 16px; }

.icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(51, 64, 156, .09);
  color: var(--indigo);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.card-brass .icon { background: rgba(141, 100, 20, .11); color: var(--brass); }

/* steps */

.steps {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}

.step {
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--serif);
  font-size: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.step p { margin: 0; color: var(--text-soft); font-size: 16px; }

/* split */

.split {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.list-check { list-style: none; margin: 0; padding: 0; }

.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 16px;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brass);
  transform: rotate(45deg);
}

.list-check li b { color: var(--text); font-weight: 600; }

/* quote / note */

.note {
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 20px;
  color: var(--text-soft);
  font-size: 16px;
  margin: 28px 0 0;
}

/* faq */

.faq { max-width: 820px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

details summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--indigo-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  color: var(--brass);
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}

details[open] summary::after { content: "\2013"; }

details p { color: var(--text-soft); font-size: 16px; margin: 12px 0 0; }

/* closing band */

.band {
  background: linear-gradient(160deg, var(--indigo-ink), var(--indigo-deep));
  color: #fff;
  border-radius: 18px;
  padding: 48px 40px;
  text-align: center;
}

.band h2 { color: #fff; margin-bottom: 12px; }
.band p { color: #c3caee; max-width: 560px; margin: 0 auto; }
.band .badge { margin-bottom: 22px; }

/* footer */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--text-soft);
  font-size: 15px;
  background: var(--paper-2);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}

.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* legal page */

.doc { max-width: 780px; padding: 64px 0 80px; }
.doc h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  color: var(--indigo-ink);
  margin: 0 0 10px;
}
.doc .updated { color: var(--text-soft); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc li { color: var(--text-soft); }

/* 404 */

.err {
  min-height: 64vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 24px;
}
.err .code {
  font-family: var(--serif);
  font-size: 76px;
  color: var(--indigo);
  line-height: 1;
  margin: 0 0 12px;
}

/* reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .hero { padding: 68px 0 62px; }
  section { padding: 58px 0; }
  .band { padding: 36px 24px; }
}
