/* ============== TOKENS ============== */
:root {
  --c-primary: #1F4E79;
  --c-primary-dark: #15375A;
  --c-accent-crit: #C00000;
  --c-accent-turb: #ED7D31;
  --c-accent-stab: #70AD47;
  --c-text: #1A1A1A;
  --c-muted: #5A6573;
  --c-line: #E1E6EC;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F5F7FA;
  --c-bg-blue: #EEF3F9;
  --shadow-sm: 0 2px 8px rgba(31, 78, 121, 0.06);
  --shadow-md: 0 4px 16px rgba(31, 78, 121, 0.10);
  --shadow-lg: 0 16px 48px rgba(31, 78, 121, 0.14);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; color: var(--c-primary); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============== LAYOUT ============== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

section { padding: 56px 0; }
@media (min-width: 768px) { section { padding: 80px 0; } }

.section__head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.section__head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin: 16px 0 12px;
}
.section__head p {
  color: var(--c-muted);
  font-size: clamp(15px, 2vw, 18px);
}
.section__head--light h2, .section__head--light p { color: #fff; }

/* ============== BADGES ============== */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge--blue { background: var(--c-bg-blue); color: var(--c-primary); }
.badge--neutral { background: #EEF0F3; color: var(--c-muted); }
.badge--white { background: rgba(255,255,255,0.18); color: #fff; backdrop-filter: blur(8px); }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  min-height: 44px;
}
.btn--lg { padding: 14px 26px; font-size: 16px; min-height: 52px; }
.btn--sm { padding: 8px 14px; font-size: 14px; min-height: 36px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.btn--secondary:hover { background: var(--c-bg-blue); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-primary); text-decoration: none; }
.btn--ghost-light { background: rgba(255,255,255,0.14); color: #fff; border: 2px solid rgba(255,255,255,0.36); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.24); text-decoration: none; }

/* ============== HEADER ============== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}
@media (min-width: 768px) { .header__inner { padding: 16px 32px; } }
.header__logo { display: inline-flex; align-items: center; gap: 8px; color: var(--c-primary); font-weight: 700; font-size: 20px; }
.header__logo:hover { text-decoration: none; }
.header__logo-mark {
  display: inline-block;
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.header__nav { display: none; gap: 24px; }
.header__nav a { color: var(--c-text); font-weight: 500; font-size: 15px; }
.header__nav a:hover { color: var(--c-primary); }
@media (min-width: 768px) { .header__nav { display: flex; } }

/* ============== HERO ============== */
.hero {
  padding: 48px 0 64px;
  background:
    radial-gradient(ellipse at top right, rgba(31, 78, 121, 0.08), transparent 60%),
    linear-gradient(180deg, #FFF 0%, var(--c-bg-soft) 100%);
}
@media (min-width: 768px) { .hero { padding: 80px 0 96px; } }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.4fr 1fr; gap: 56px; }
}

.hero__eyebrow {
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero__title {
  font-size: clamp(34px, 6vw, 64px);
  color: var(--c-primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero__subtitle {
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--c-text);
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.hero__lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--c-text);
  margin: 0 0 24px;
  max-width: 600px;
}

.hero__service {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  margin: 0 0 28px;
  background: linear-gradient(135deg, rgba(31, 78, 121, 0.06), rgba(31, 78, 121, 0.02));
  border-left: 4px solid var(--c-primary);
  border-radius: 6px;
  max-width: 600px;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--c-text);
}
.hero__service-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.hero__service strong { color: var(--c-primary); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 36px;
}
@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0 0;
  border-top: 1px solid var(--c-line);
}
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong { font-size: clamp(20px, 3vw, 28px); color: var(--c-primary); font-weight: 700; }
.hero__stats span { font-size: 13px; color: var(--c-muted); }

.hero__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line);
}
.hero__card h3 { font-size: 20px; margin: 16px 0 20px; color: var(--c-primary); }
.zones-list { display: flex; flex-direction: column; gap: 16px; }
.zone { display: flex; gap: 12px; align-items: flex-start; }
.zone__dot { flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.zone--crit .zone__dot { background: var(--c-accent-crit); }
.zone--turb .zone__dot { background: var(--c-accent-turb); }
.zone--stab .zone__dot { background: var(--c-accent-stab); }
.zone strong { display: block; font-size: 15px; color: var(--c-text); margin-bottom: 2px; }
.zone__desc { font-size: 13px; color: var(--c-muted); line-height: 1.45; }

/* ============== TRUST ============== */
.trust {
  background: var(--c-primary);
  color: #fff;
  padding: 32px 0;
}
.trust__title {
  text-align: center;
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trust__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 768px) { .trust__metrics { grid-template-columns: repeat(4, 1fr); } }
.trust__metrics li { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.trust__metrics strong { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.trust__metrics span { font-size: 13px; opacity: 0.85; }

/* ============== CALCULATOR ============== */
.calculator { background: var(--c-bg-soft); }
.checker {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .checker { flex-direction: row; align-items: flex-end; padding: 28px; }
  .checker__field { flex: 1; }
  .checker__submit { width: auto; }
}
.checker__field { display: flex; flex-direction: column; gap: 6px; }
.checker__label { font-weight: 600; font-size: 14px; color: var(--c-text); }
.checker__field input {
  padding: 14px 16px;
  border: 2px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 500;
  transition: border-color 0.12s;
}
.checker__field input:focus {
  outline: none;
  border-color: var(--c-primary);
}
.checker__hint { font-size: 13px; color: var(--c-muted); }

.checker__result {
  max-width: 760px;
  margin: 32px auto 0;
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.32s ease;
}
.checker__result[hidden] { display: none; }
.checker__result h3 { color: var(--c-primary); font-size: 22px; margin: 0 0 8px; }
.checker__result .result-zone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  margin: 8px 0 20px;
}
.result-zone--crit { background: rgba(192, 0, 0, 0.10); color: var(--c-accent-crit); }
.result-zone--turb { background: rgba(237, 125, 49, 0.12); color: var(--c-accent-turb); }
.result-zone--stab { background: rgba(112, 173, 71, 0.14); color: var(--c-accent-stab); }
.result-zone--unknown { background: var(--c-bg-blue); color: var(--c-primary); }

.result-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.result-table th { text-align: left; color: var(--c-muted); font-weight: 500; padding: 8px 8px; border-bottom: 1px solid var(--c-line); }
.result-table td { padding: 12px 8px; border-bottom: 1px solid var(--c-line); }
.result-table td strong { color: var(--c-primary); }
.result-delta--down { color: var(--c-accent-crit); }
.result-delta--up { color: var(--c-accent-stab); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== METHODOLOGY ============== */
.methodology__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .methodology__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .methodology__grid { grid-template-columns: repeat(4, 1fr); } }

.indicator {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.16s, box-shadow 0.16s;
}
.indicator:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.indicator__num {
  display: inline-block;
  background: var(--c-bg-blue);
  color: var(--c-primary);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.indicator h3 { font-size: 17px; margin: 0 0 8px; }
.indicator p { font-size: 14px; color: var(--c-muted); margin: 0; line-height: 1.5; }

.methodology__details {
  max-width: 760px;
  margin: 40px auto 0;
  background: var(--c-bg-soft);
  padding: 16px 20px;
  border-radius: var(--radius);
  cursor: pointer;
}
.methodology__details summary { font-weight: 600; color: var(--c-primary); list-style: none; }
.methodology__details summary::before { content: '▸ '; transition: transform 0.16s; display: inline-block; }
.methodology__details[open] summary::before { transform: rotate(90deg); }
.methodology__details p { margin: 12px 0 0; color: var(--c-muted); }

/* ============== FORMATS ============== */
.formats { background: var(--c-bg-soft); }
.formats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .formats__grid { grid-template-columns: repeat(3, 1fr); } }

.format {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border-top: 4px solid var(--c-primary);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, box-shadow 0.16s;
}
.format:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.format--crit { border-top-color: var(--c-accent-crit); }
.format--turb { border-top-color: var(--c-accent-turb); }
.format--stab { border-top-color: var(--c-accent-stab); }
.format__price { font-size: 22px; font-weight: 800; color: var(--c-primary); margin-bottom: 8px; display: block; }
.format h3 { font-size: 18px; margin: 0 0 6px; }
.format__zone { font-size: 13px; color: var(--c-muted); margin-bottom: 20px; }
.format__features { flex: 1; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.format__features li { position: relative; padding-left: 22px; font-size: 14px; color: var(--c-text); }
.format__features li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  background: var(--c-bg-blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l3 3 5-6' stroke='%231F4E79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.formats__note { text-align: center; color: var(--c-muted); font-size: 14px; margin-top: 28px; }

/* ============== MAGNETS ============== */
.magnets__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 640px) { .magnets__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .magnets__grid { grid-template-columns: repeat(3, 1fr); } }

.magnet {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.magnet:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--c-primary); text-decoration: none; }
.magnet__icon { font-size: 32px; margin-bottom: 12px; }
.magnet h3 { font-size: 16px; margin: 0 0 6px; }
.magnet p { font-size: 13px; color: var(--c-muted); flex: 1; margin: 0 0 12px; line-height: 1.45; }
.magnet__cta { font-weight: 600; color: var(--c-primary); font-size: 14px; }

.magnet-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.magnet-form h3 { font-size: 18px; margin: 0 0 16px; }
.magnet-form__row { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 640px) { .magnet-form__row { grid-template-columns: 1fr 1fr; } }

/* ============== FIELDS ============== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-weight: 600; font-size: 13px; color: var(--c-text); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color 0.12s;
  background: #fff;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.10);
}
.field textarea { resize: vertical; min-height: 96px; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 13px; color: var(--c-muted); }
.checkbox input { margin-top: 3px; }

/* ============== APPLY ============== */
.apply {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
}
.apply-form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  color: var(--c-text);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .apply-form { padding: 40px; } }
.apply-form__row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
@media (min-width: 640px) { .apply-form__row { grid-template-columns: 1fr 1fr; } }
.apply-form__note {
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
  margin: 14px 0 0;
}

/* ============== FAQ ============== */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__list details {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.12s;
}
.faq__list details:hover { border-color: var(--c-primary); }
.faq__list summary {
  font-weight: 600;
  font-size: 16px;
  color: var(--c-primary);
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq__list summary::after {
  content: '+';
  position: absolute;
  right: 0; top: -2px;
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.16s;
  color: var(--c-primary);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { margin: 14px 0 0; color: var(--c-text); font-size: 15px; line-height: 1.6; }

/* ============== CONTACT BAR ============== */
.contact-bar { background: var(--c-primary); color: #fff; padding: 40px 0; }
.contact-bar__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .contact-bar__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.contact-bar h3 { color: #fff; margin: 0 0 4px; font-size: 22px; }
.contact-bar p { margin: 0; opacity: 0.85; }
.contact-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============== FOOTER ============== */
.footer { background: #0F1E2E; color: #B8C2CC; padding: 48px 0 24px; font-size: 14px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer a { color: #B8C2CC; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__logo { font-size: 20px; color: #fff; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.footer__about { line-height: 1.55; }
.footer__copy { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; opacity: 0.6; font-size: 13px; margin: 0; }

/* ============== MODAL ============== */
.modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 600px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(15, 30, 46, 0.6); backdrop-filter: blur(4px); }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: none;
  font-size: 28px;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--c-muted);
  line-height: 1;
}
.modal__close:hover { background: var(--c-bg-soft); }
.modal__body { padding: 32px 28px; }

/* ============== UTILITY ============== */
.is-loading { opacity: 0.6; pointer-events: none; }
.field--error input, .field--error select { border-color: var(--c-accent-crit); }
.success-message {
  background: rgba(112, 173, 71, 0.12);
  color: #2E5A1E;
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  border-left: 3px solid var(--c-accent-stab);
}
.error-message {
  background: rgba(192, 0, 0, 0.06);
  color: var(--c-accent-crit);
  border-radius: var(--radius);
  padding: 12px;
  margin: 12px 0;
  border-left: 3px solid var(--c-accent-crit);
  font-size: 14px;
}

/* ============== PRINT ============== */
@media print {
  .header, .contact-bar, .footer { display: none; }
}
