﻿:root {
  --bg: #f3f7fc;
  --bg-soft: #f8fbff;
  --panel: #ffffff;
  --panel-soft: linear-gradient(170deg, #ffffff 0%, #f2f7ff 100%);
  --text: #12263f;
  --muted: #4f6b88;
  --line: #dbe7f6;
  --line-strong: #c8d9f0;
  --primary: #0f4ca7;
  --primary-dark: #0a3779;
  --primary-soft: #eaf2ff;
  --success: #15654a;
  --error: #b42318;
  --shadow-sm: 0 10px 26px rgba(19, 52, 97, 0.08);
  --shadow-md: 0 22px 56px rgba(19, 52, 97, 0.14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 66px;
}

[id] {
  scroll-margin-top: 66px;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 560px at 8% -8%, rgba(15, 76, 167, 0.09), transparent 70%),
    radial-gradient(1100px 620px at 92% 3%, rgba(15, 76, 167, 0.06), transparent 70%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 48%, #f9fbff 100%);
  line-height: 1.64;
  letter-spacing: 0.002em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-shell { min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(248, 252, 255, 0.86);
  border-bottom: 1px solid rgba(214, 228, 245, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.brand-spacer {
  width: 220px;
  min-height: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav a:hover { color: var(--primary); }
.nav a:hover::after { transform: scaleX(1); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--primary);
  background: linear-gradient(180deg, #1f62c1 0%, var(--primary) 100%);
  color: #fff;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: 0.24s ease;
  box-shadow: 0 10px 24px rgba(15, 76, 167, 0.22);
}

.button:hover {
  background: linear-gradient(180deg, #1856ae 0%, var(--primary-dark) 100%);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #8aa8cf;
  border-color: #8aa8cf;
  box-shadow: none;
  transform: none;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border-color: #c3d6ee;
  box-shadow: 0 7px 18px rgba(18, 54, 102, 0.08);
}

.button-ghost:hover {
  background: #fff;
  border-color: #a8c3e6;
}

.button-ghost:disabled {
  background: #f1f5fb;
  color: #7f97b6;
  border-color: #c7d7ea;
}

.button-small {
  min-height: 41px;
  padding-inline: 16px;
  font-size: 0.92rem;
}

.section { padding: 90px 0; }
.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 251, 255, 0.78));
  border-top: 1px solid rgba(220, 231, 245, 0.66);
  border-bottom: 1px solid rgba(220, 231, 245, 0.66);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero {
  padding: 72px 0 84px;
}

.hero-grid,
.calculator-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: start;
}

.hero h1 {
  margin: 10px 0 16px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(2.15rem, 5vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.hero-copy,
.section-copy,
.muted {
  font-size: 1.03rem;
  color: var(--muted);
  max-width: 70ch;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.hero-points li {
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  color: #496985;
  font-size: 0.9rem;
  font-weight: 600;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(219, 231, 246, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.soft-panel { background: var(--panel-soft); }

.hero-visual {
  box-shadow: var(--shadow-md);
}

.hero-visual h2 {
  margin: 0;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.2;
}

.hero-visual-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.hero-visual-list article {
  border: 1px solid #dbe8f7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
}

.hero-visual-list strong {
  display: block;
  margin-bottom: 4px;
}

.hero-visual-list span {
  color: var(--muted);
  font-size: 0.93rem;
}

.trust-strip {
  padding: 0 0 22px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-item {
  background: #fff;
  border: 1px solid #dce9f8;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(20, 57, 103, 0.07);
}

.trust-icon {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.trust-item h3 {
  margin: 0 0 8px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.04rem;
}

.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head {
  margin-bottom: 30px;
}

.section-head h2,
.quote-panel h3 {
  margin: 0 0 10px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(17, 61, 125, 0.07);
}

.service-symbol {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ecf4ff;
  margin-bottom: 10px;
}

.service-card h3 {
  margin: 0 0 10px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.2rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-fit {
  margin-top: 12px !important;
  padding-top: 10px;
  border-top: 1px solid #e1ecfa;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pricing-card {
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(17, 61, 125, 0.07);
}

.pricing-card h3 {
  margin: 0 0 8px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.24rem;
}

.pricing-card h4 {
  margin: 14px 0 6px;
  font-size: 1rem;
}

.price-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.93rem;
}

.price-highlight {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 700;
  color: #173f72;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0 12px;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e3edf9;
}

.price-table thead th {
  background: #f2f7ff;
  font-weight: 650;
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.included-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.included-list li {
  color: var(--muted);
  font-size: 0.94rem;
  position: relative;
  padding-left: 22px;
}

.included-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #15654a;
  font-weight: 700;
}

.pricing-card-offer {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.pricing-disclaimer {
  margin-top: 20px;
  border-style: dashed;
}

.pricing-disclaimer p {
  margin: 0;
  color: var(--muted);
}

.quote-module-layout {
  align-items: stretch;
}

.calculator-form-card {
  border: 1px solid #d4e3f6;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label,
.form-grid fieldset {
  display: grid;
  gap: 9px;
}

.form-grid span,
.form-grid legend {
  font-size: 0.93rem;
  font-weight: 620;
  color: #2f4c6d;
}

label input,
label select,
label textarea {
  width: 100%;
  border: 1px solid #d8e6f6;
  border-radius: 14px;
  background: #fff;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

label textarea {
  min-height: 152px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 76, 167, 0.16);
  border-color: rgba(15, 76, 167, 0.54);
}

.full-span { grid-column: 1 / -1; }

.checkbox-panel {
  border: 1px solid #d9e6f6;
  border-radius: 18px;
  padding: 16px;
  background: #f8fbff;
}

.checkbox-panel label {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.checkbox-panel input[type='checkbox'] { margin-top: 4px; }
.single-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }

.quote-panel {
  position: sticky;
  top: 118px;
  border: 1px solid #cfe0f4;
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.quote-price-block {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #d7e6f7;
  background: linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%);
}

.quote-price-block h3 {
  margin: 6px 0;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
}

.quote-price-block .muted { margin: 0; }
.small-price { font-size: 0.91rem; }

.quote-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.quote-meta p {
  margin: 0;
  border: 1px solid #dbe8f7;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  color: #355474;
  font-weight: 500;
}

.quote-breakdown {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed #cadcf2;
  background: #fff;
  color: #4f6b89;
  font-size: 0.94rem;
}

.small-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow-step {
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(17, 61, 125, 0.07);
}

.flow-num {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f4f8ff, #e8f0ff);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
}

.flow-step h3 {
  margin: 0 0 8px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.1rem;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
}

.tabs {
  display: inline-flex;
  background: #edf4ff;
  border: 1px solid #d7e6f7;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 22px;
}

.tab-button {
  border: 0;
  background: transparent;
  color: #5b7592;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 620;
  cursor: pointer;
}

.tab-button.is-active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 7px 19px rgba(17, 61, 125, 0.1);
}

.subgrid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.subgrid.is-visible { display: grid; }

.rut-box,
.quote-attach-box {
  background: #f8fbff;
}

.rut-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rut-details-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 620;
  text-decoration: underline;
  cursor: pointer;
  justify-self: start;
  padding: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid #dce9f8;
  border-radius: 18px;
  padding: 18px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.rut-dialog,
.warning-dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(560px, calc(100% - 24px));
  padding: 22px;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.rut-dialog {
  background: #fff;
}

.warning-dialog {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  box-shadow: 0 24px 60px rgba(17, 61, 125, 0.2);
}

.rut-dialog::backdrop {
  background: rgba(16, 38, 70, 0.45);
}

.warning-dialog::backdrop {
  background: rgba(16, 38, 70, 0.55);
  backdrop-filter: blur(2px);
}

.warning-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.warning-eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.warning-dialog h3,
.rut-dialog h3 {
  margin: 0 0 10px;
  font-family: 'Manrope', 'Inter', sans-serif;
}

.warning-dialog p,
.rut-dialog p {
  margin: 0 0 10px;
  color: var(--muted);
}

.warning-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.success-box {
  border: 1px solid rgba(21, 101, 74, 0.18);
  background: #f4fffa;
  border-radius: 18px;
  overflow: hidden;
}

.success-toggle {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  color: var(--success);
  font-weight: 700;
  cursor: pointer;
}

.success-content {
  padding: 0 18px 18px;
  display: grid;
  gap: 10px;
}

.success-content[hidden] { display: none; }

.honeypot {
  position: absolute !important;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.site-footer {
  border-top: 1px solid rgba(213, 227, 244, 0.8);
  padding: 36px 0 40px;
  background: rgba(255, 255, 255, 0.84);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: start;
  gap: 24px;
}

.footer-brand strong {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

/* Hero redesign inspired by provided concept image */
.hero {
  padding: 20px 0 26px;
  margin-top: -44px;
  position: relative;
  z-index: 1;
}

.hero .container {
  width: min(1360px, calc(100% - 28px));
}

.hero-grid-split {
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  min-height: 760px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #dbe7f6;
  box-shadow: var(--shadow-md);
  background: #f6faff;
}

.hero-copy-wrap {
  padding: 36px 40px 28px;
  position: relative;
  z-index: 3;
  max-width: 47%;
}

.hero-inline-logo {
  height: 148px;
  width: auto;
  margin: 0 0 18px;
  object-fit: contain;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.35rem, 4.5vw, 4rem);
  margin: 0 0 16px;
  line-height: 1.04;
}

.hero-copy {
  max-width: 32ch;
  font-size: 1.15rem;
  line-height: 1.52;
}

.hero-photo-panel {
  position: relative;
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-photo-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: linear-gradient(90deg, rgba(246, 250, 255, 1) 0%, rgba(246, 250, 255, 0.96) 23%, rgba(246, 250, 255, 0.8) 40%, rgba(246, 250, 255, 0.45) 60%, rgba(246, 250, 255, 0.16) 77%, rgba(246, 250, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-trust-row {
  margin-top: 28px;
  border-top: 0;
  padding-top: 18px;
}

.hero-icons-strip {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.hero-trust-mobile-grid {
  display: none;
}

.hero-stats-wrap {
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce8f7;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(20, 57, 103, 0.1);
  overflow: hidden;
}

.hero-stats-bar article {
  padding: 20px 14px;
  text-align: center;
  border-right: 1px solid #e6eef9;
}

.hero-stats-bar article:last-child {
  border-right: 0;
}

.hero-stats-bar strong {
  display: block;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #153f73;
}

.hero-stats-bar span {
  display: block;
  margin-top: 6px;
  color: #5b7390;
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .section { padding: 78px 0; }
  .hero-grid,
  .calculator-layout,
  .contact-layout {
    gap: 30px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero .container {
    width: min(1180px, calc(100% - 26px));
  }

  .nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 16px;
    font-size: 0.92rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .nav-wrap > .button {
    display: none;
  }

  .hero-grid,
  .calculator-layout,
  .contact-layout,
  .cards-grid,
  .pricing-grid,
  .flow-steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    position: static;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .hero-grid-split {
    border-radius: 22px;
    gap: 14px;
    min-height: 0;
    overflow: hidden;
  }

  .hero-copy-wrap {
    max-width: 100%;
    padding: 22px 20px 16px;
  }

  .hero-photo-panel {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 320px;
  }

  .hero-photo-panel::before {
    width: 0;
  }

  .hero-copy-wrap {
    padding: 12px 0 10px;
  }

  .hero-trust-row {
    border-top: 0;
    padding-top: 6px;
  }

  .hero-stats-wrap {
    margin-top: 12px;
  }

  .hero-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats-bar article:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 62px;
  }

  [id] {
    scroll-margin-top: 62px;
  }

  .container {
    width: min(1180px, calc(100% - 26px));
  }

  .nav-wrap {
    min-height: 66px;
    gap: 10px;
    justify-content: center;
  }
  .brand-spacer { width: 1px; }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding: 0 2px;
    font-size: 0.88rem;
  }
  .hero {
    padding-top: 14px;
    margin-top: -20px;
  }
  .section { padding: 58px 0; }

  .hero h1 { max-width: none; }

  .panel {
    padding: 22px;
    border-radius: 20px;
  }

  .form-grid,
  .subgrid {
    grid-template-columns: 1fr;
  }

  .mobile-stack { flex-direction: column; }

  .button,
  .button-ghost {
    width: 100%;
  }

  .hero-photo-panel {
    min-height: 250px;
    border-radius: 0;
  }

  .hero-photo {
    object-position: 66% center;
  }

  .hero-inline-logo {
    height: 66px;
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .hero-copy {
    font-size: 1.03rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 10px;
    margin-top: -24px;
  }

  .hero .container {
    width: min(1180px, calc(100% - 18px));
  }

  .hero-grid-split {
    min-height: 680px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
  }

  .hero-photo-panel {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    border-radius: 0;
  }

  .hero-photo {
    object-fit: cover;
    object-position: 66% center;
  }

  .hero-photo-panel::before {
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 42%, rgba(255, 255, 255, 0.2) 100%);
  }

  .hero-copy-wrap {
    max-width: 100%;
    padding: 20px 16px 16px;
    z-index: 3;
  }

  .hero-inline-logo {
    height: 74px;
    margin-bottom: 10px;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.1rem, 11vw, 3.2rem);
    line-height: 1.02;
    margin-bottom: 12px;
  }

  .hero-copy {
    max-width: 30ch;
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-actions .button,
  .hero-actions .button-ghost {
    width: 100%;
    min-height: 46px;
    padding-inline: 12px;
    font-size: 1rem;
  }

  .hero-trust-row {
    margin-top: 16px;
    padding-top: 10px;
  }

  .hero-icons-strip {
    display: none;
  }

  .hero-trust-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-trust-mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-size: 0.95rem;
    color: #183862;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #d7e5f7;
    border-radius: 12px;
    padding: 10px 8px;
  }

  .hero-trust-mobile-item > span:not(.hero-mini-icon) {
    display: none;
  }

  .hero-mini-icon {
    width: 60px;
    height: 60px;
    background-image: url('../hero-icons-strip.png');
    background-repeat: no-repeat;
    background-size: 430%;
    display: inline-block;
  }

  .hero-mini-icon-1 { background-position: 0% 12%; }
  .hero-mini-icon-2 { background-position: 33.3% 12%; }
  .hero-mini-icon-3 { background-position: 66.6% 12%; }
  .hero-mini-icon-4 { background-position: 100% 12%; }

  .hero-stats-wrap {
    margin-top: 10px;
  }

  .hero-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 14px;
    overflow: hidden;
  }

  .hero-stats-bar article {
    padding: 14px 10px;
  }

  .hero-stats-bar article:nth-child(2n) {
    border-right: 0;
  }

  .hero-stats-bar strong {
    font-size: 0.98rem;
  }

  .hero-stats-bar span {
    font-size: 0.86rem;
    margin-top: 4px;
  }
}

@media (max-width: 420px) {
  .hero-grid-split {
    min-height: 650px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }
}
