/* ===================== Tokens & Reset ===================== */
:root {
  --color-navy: #0B2545;
  --color-navy-2: #123164;
  --color-accent: #FF6A00;
  --color-accent-dark: #C25100;
  --color-accent-darker: #9E4200;
  --color-bg: #F7F8FA;
  --color-surface: #FFFFFF;
  --color-text: #16233A;
  --color-text-muted: #5B6B85;
  --color-border: #E2E6ED;

  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

p {
  margin: 0 0 1rem;
}

ol, ul {
  margin: 0;
}

a {
  color: inherit;
}

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

button {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================== Layout helpers ===================== */

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding-block: 3rem;
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

/* ===================== Buttons ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-accent {
  background: var(--color-accent-dark);
  color: #FFFFFF;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--color-accent-darker);
}

/* ===================== Section reveal animation ===================== */

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mobile-cta-bar {
    transition: none;
  }
}

/* ===================== Header ===================== */

.site-header {
  background: var(--color-navy);
  color: #FFFFFF;
}

.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.75rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: #FFFFFF;
}

.header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.header-phone {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.header-phone svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--color-accent);
}

.header-actions .btn {
  display: none;
}

/* ===================== Hero ===================== */

.hero {
  background: var(--color-navy);
  color: #FFFFFF;
}

.hero-heading {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  max-width: 20ch;
  color: #FFFFFF;
}

.hero-subline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: #C9D6EC;
  max-width: 22ch;
  margin: 0 0 0.5rem;
}

.hero-subtitle {
  color: #C9D6EC;
  font-size: 1.05rem;
  max-width: 46ch;
}

.trust-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  color: #9FB1D1;
  font-size: 0.9rem;
}

.trust-stats li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-stats svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--color-accent);
}

.hero-visual {
  background: var(--color-navy-2);
  border: 1px solid #23407A;
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin-top: 2rem;
}

.hero-visual svg {
  width: 100%;
  height: auto;
}

/* ===================== Calculator ===================== */

.calculator {
  background: var(--color-surface);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.field-group {
  margin-bottom: 1.5rem;
}

.field-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.field-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0;
  background: transparent;
  accent-color: var(--color-accent);
}

.field-group input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
}

.field-group input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
}

.field-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -11px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(11, 37, 69, 0.35);
  cursor: pointer;
}

.field-group input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(11, 37, 69, 0.35);
  cursor: pointer;
}

.field-group input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

.field-group input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

.segmented {
  border: none;
  padding: 0;
  margin: 0;
}

.segmented legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.6rem;
}

.segmented-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  cursor: pointer;
}

.segmented-option input {
  accent-color: var(--color-accent);
  width: 1.1rem;
  height: 1.1rem;
}

.segmented-option.is-selected {
  border-color: var(--color-accent);
  background: #FFF3EA;
}

.calculator-result {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.result-label {
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.result-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.result-note {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.calculator-result .btn {
  width: 100%;
}

/* ===================== Before / After ===================== */

.before-after {
  background: var(--color-bg);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.photo-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #E4E8EF;
}

.photo-illustration {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-label {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.photo-label.tone-before {
  background: rgba(18, 49, 100, 0.82);
}

.photo-label.tone-after {
  background: rgba(194, 81, 0, 0.9);
}

.case-title {
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.case-desc {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ===================== Process ===================== */

.process {
  background: var(--color-surface);
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.process-list::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--color-border);
}

.process-step {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 2rem;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-marker {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.process-marker svg {
  width: 22px;
  height: 22px;
}

.process-marker-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-surface);
}

.process-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.process-content p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ===================== Reviews ===================== */

.reviews {
  background: var(--color-bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #FFFFFF;
}

.review-avatar.tone-navy {
  background: var(--color-navy-2);
}

.review-avatar.tone-accent {
  background: var(--color-accent-dark);
}

.review-name {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--color-navy);
}

.review-card p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* ===================== FAQ ===================== */

.faq {
  background: var(--color-surface);
}

.accordion {
  border-top: 1px solid var(--color-border);
}

.faq-heading {
  margin: 0;
  font-weight: 400;
  font-size: 1rem;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 1rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
}

.faq-icon {
  flex: 0 0 auto;
  color: var(--color-accent);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
}

.faq-answer-wrap.is-open {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer {
  padding: 1rem 0 0.25rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ===================== Lead form ===================== */

.lead-form {
  background: var(--color-bg);
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-width: 32rem;
}

#lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#lead-form input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
}

#lead-form input[type="tel"]:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-success p {
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0;
}

.form-alt {
  margin-top: 1rem;
  margin-bottom: 0;
}

.form-alt a {
  color: var(--color-accent-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* ===================== Footer ===================== */

.site-footer {
  background: var(--color-navy);
  color: #C9D6EC;
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contacts p {
  margin-bottom: 0.4rem;
}

.footer-contacts a {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #2C4675;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
}

.footer-copy {
  margin: 1.5rem 0 0;
  color: #7E93BC;
  font-size: 0.85rem;
}

.site-footer {
  padding-bottom: calc(2.5rem + 76px);
}

/* ===================== Mobile sticky CTA bar ===================== */

.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 12px rgba(11, 37, 69, 0.1);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.mobile-cta-bar.is-active {
  transform: translateY(0);
}

.mobile-cta-call {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-cta-call svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--color-accent-dark);
}

.mobile-cta-primary {
  flex: 1 1 auto;
  margin: 0;
}

/* ===================== Breakpoint: 768px ===================== */

@media (min-width: 768px) {
  .container {
    padding-inline: 1.5rem;
  }

  .section {
    padding-block: 4rem;
  }

  .logo {
    font-size: 1.35rem;
  }

  .header-phone {
    font-size: 1rem;
  }

  .header-actions .btn {
    display: inline-flex;
    width: auto;
  }

  .calculator-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .calculator-result .btn {
    width: auto;
  }

  .case-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .process-list::before {
    left: 20px;
    right: 20px;
    top: 20px;
    bottom: auto;
    height: 2px;
    width: auto;
  }

  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
    flex: 1;
  }

  .process-marker {
    margin-bottom: 0.85rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }

  .mobile-cta-bar {
    display: none;
  }
}

/* ===================== Breakpoint: 1200px ===================== */

@media (min-width: 1200px) {
  .container {
    padding-inline: 2rem;
  }

  .section {
    padding-block: 5rem;
  }

  .hero-heading {
    max-width: 24ch;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-visual {
    margin-top: 0;
  }

  .calculator-grid {
    grid-template-columns: 1fr 0.8fr;
    gap: 3rem;
  }

  .case-grid {
    gap: 2rem;
  }

  .reviews-grid {
    gap: 2rem;
  }
}
