:root {
  --blue: #09233f;
  --blue-2: #103f70;
  --yellow: #f7c948;
  --yellow-2: #ffdf74;
  --green: #15946b;
  --ink: #122033;
  --muted: #66758a;
  --line: #dbe4ef;
  --soft: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(9, 35, 63, 0.12);
  --radius: 8px;
  --crm-login-path: "/login";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--blue);
  background: linear-gradient(135deg, var(--yellow), var(--green));
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: var(--blue);
  font-size: 18px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  background: #eef6ff;
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  background: var(--white);
  color: var(--blue);
}

.btn {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.btn.primary {
  background: var(--yellow);
  color: var(--blue);
}

.btn.primary:hover {
  background: var(--yellow-2);
}

.btn.secondary {
  background: var(--blue);
  color: var(--white);
}

.btn.secondary:hover {
  background: var(--blue-2);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn.light {
  border-color: var(--line);
  background: var(--white);
  color: var(--blue);
}

.hero {
  min-height: min(720px, calc(100svh - 92px));
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(9, 35, 63, 0.9), rgba(9, 35, 63, 0.58), rgba(9, 35, 63, 0.18)),
    var(--hero-image, url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1800&q=80"));
  background-position: center;
  background-size: cover;
}

.hero.narrow {
  min-height: 430px;
}

.hero-content {
  width: min(760px, calc(100% - 40px));
  margin-left: max(20px, calc((100% - 1160px) / 2));
  padding: 54px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--blue);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  color: var(--white);
  max-width: 760px;
  font-size: clamp(38px, 7vw, 78px);
}

.hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-trust span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 12px;
}

.section {
  padding: 76px 0;
}

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

.section.dark {
  background: var(--blue);
  color: var(--white);
}

.section.dark h2,
.section.dark h3 {
  color: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 560px;
  color: var(--muted);
}

.section.dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.section h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(9, 35, 63, 0.06);
  padding: 22px;
}

.card.media-card {
  padding: 0;
  overflow: hidden;
}

.card.media-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card.media-card div {
  padding: 20px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.card p,
.muted {
  color: var(--muted);
}

.icon-chip {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--blue);
  background: var(--yellow);
  font-weight: 900;
}

.scheme-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(135deg, #fff8d6, #e9fff5);
  border: 1px solid #f2df8d;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.trust-strip div {
  padding: 24px;
  background: var(--white);
}

.trust-strip strong {
  display: block;
  color: var(--blue);
  font-size: 28px;
}

.process {
  counter-reset: step;
}

.process .card {
  position: relative;
  padding-left: 66px;
}

.process .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 26px;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.list li {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--ink);
}

.list li::before {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--green);
}

.cta-panel {
  border-radius: var(--radius);
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(9, 35, 63, 0.95), rgba(16, 63, 112, 0.9)),
    url("https://images.unsplash.com/photo-1497440001374-f26997328c1b?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.cta-panel h2 {
  color: var(--white);
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.calculator,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 24px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

textarea {
  min-height: 124px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 148, 107, 0.12);
}

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

.form-message {
  margin: 12px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.form-message.error {
  color: #b42318;
}

.complaint-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.complaint-result-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 16px;
}

.complaint-result-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.complaint-result-card span,
.complaint-result-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.complaint-result-card strong {
  color: var(--blue);
  text-align: right;
}

.complaint-result-card p {
  margin: 0;
  color: var(--ink);
}

.complaint-status-timeline {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.complaint-status-timeline div {
  display: grid;
  gap: 3px;
  justify-content: stretch;
  border-bottom: 0;
  border-left: 3px solid var(--solar-green);
  background: #ffffff;
  border-radius: 0 8px 8px 0;
  padding: 9px 10px;
}

.complaint-status-timeline strong {
  text-align: left;
}

.complaint-status-timeline span {
  color: var(--ink);
  font-weight: 600;
}

.public-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
}
.public-captcha strong {
  min-height: 44px;
  min-width: 140px;
  border: 1px dashed var(--solar-green);
  border-radius: 8px;
  background: #f0fdf4;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--soft);
}

.result-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

.testimonial {
  border-left: 4px solid var(--yellow);
}

.site-footer {
  background: #061a30;
  color: var(--white);
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  display: block;
  text-decoration: none;
  margin: 7px 0;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions .btn.light {
    display: none;
  }

  .grid.three,
  .grid.two,
  .split,
  .document-workspace-grid,
  .result-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .scheme-band,
  .cta-panel {
    align-items: start;
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav-wrap {
    min-height: 66px;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 124px);
  }

  .hero-content {
    width: min(100% - 28px, 760px);
    margin: 0 auto;
    padding: 42px 0;
  }

  .hero-actions,
  .nav-actions,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-actions .btn.secondary {
    min-width: 94px;
  }

  .section {
    padding: 54px 0;
  }

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

  .cta-panel,
  .scheme-band,
  .calculator,
  .form-panel {
    padding: 20px;
  }
}
