:root {
  --bg: #ffffff;
  --bg-soft: #f3f6f7;
  --bg-muted: #edf1f1;
  --text: #171717;
  --muted: #5b6368;
  --line: #dce3e5;
  --brand: #d61f26;
  --brand-dark: #a9151a;
  --green: #0f766e;
  --yellow: #f4b23d;
  --shadow: 0 18px 45px rgba(13, 24, 28, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
}

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

a {
  color: inherit;
  text-decoration-color: rgba(214, 31, 38, 0.42);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--brand);
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.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);
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  color: var(--brand);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.button-primary:hover {
  color: #fff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button-secondary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.button-secondary:hover {
  color: #fff;
  background: #0b5c56;
  border-color: #0b5c56;
}

.button-outline {
  color: var(--text);
  background: transparent;
  border-color: #b8c3c7;
}

.button-outline:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}

.button-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.button-small {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  color: #fff;
  background: #161616;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("../img/image.jpg");
  background-position: center 42%;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.58);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78svh;
  padding: 88px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 0.98;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: 40px;
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 26px;
  font-size: 24px;
  line-height: 1.35;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 32px;
}

.hero-facts span {
  padding: 9px 12px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
}

.hero-actions,
.button-row,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.section {
  padding: 92px 0;
}

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

.section-muted {
  background: var(--bg-muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-lead {
  max-width: 700px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 19px;
}

.two-column,
.accreditation-grid,
.docs-grid,
.contact-grid,
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.two-column-form {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.notice {
  max-width: 620px;
  padding: 18px 20px;
  background: #fff;
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(13, 24, 28, 0.07);
}

.form-panel {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

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

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #b9c4c8;
  border-radius: var(--radius);
  outline: none;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.field-error {
  display: none;
  color: var(--brand);
  font-weight: 700;
}

.field.is-invalid .field-error {
  display: block;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(214, 31, 38, 0.14);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 2px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.checkbox.is-invalid {
  color: var(--brand);
}

.checkbox.is-invalid input {
  outline: 2px solid rgba(214, 31, 38, 0.4);
  outline-offset: 2px;
}

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

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--brand);
}

.fact-list,
.contact-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.fact-list div,
.contact-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  font-weight: 800;
}

.certificate {
  display: block;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.certificate img {
  width: 100%;
  border-radius: 4px;
}

.price-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(13, 24, 28, 0.08);
}

.price-row {
  display: grid;
  grid-template-columns: 160px 1fr 180px;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.price-row:first-child {
  border-top: 0;
}

.price-head {
  color: #fff;
  font-weight: 800;
  background: #2a3033;
}

.price-row strong {
  color: var(--brand);
  font-size: 22px;
}

.fine-print {
  margin: 18px 0 0;
  color: var(--muted);
}

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

.step-card,
.doc-list article {
  min-height: 190px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 900;
  background: var(--brand);
  border-radius: 50%;
}

.step-card p,
.doc-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.docs-grid {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

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

.map-panel {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 22, 24, 0.88), rgba(16, 22, 24, 0.55)),
    url("../img/meta.png") center / cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.1;
}

.map-panel span {
  display: block;
  font-size: 20px;
}

.map-panel a {
  align-self: flex-start;
  color: #fff;
  font-weight: 800;
}

.legal-links {
  display: grid;
  gap: 12px;
}

.legal-links a {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-links a {
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  padding: 32px 0;
  color: #fff;
  background: #171717;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 24px;
}

.footer-brand {
  display: inline-block;
  white-space: nowrap;
}

.footer-grid p,
.footer-grid > div > span,
.footer-grid a {
  display: block;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 960px) {
  .header-grid {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .two-column,
  .two-column-form,
  .accreditation-grid,
  .docs-grid,
  .contact-grid,
  .legal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 72px 0;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .site-header {
    position: static;
  }

  .header-grid {
    min-height: auto;
    padding: 14px 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-actions {
    justify-content: space-between;
  }

  .header-phone {
    font-size: 15px;
  }

  .hero,
  .hero-content {
    min-height: 76svh;
  }

  .hero-content {
    padding: 72px 0 56px;
  }

  .hero-media {
    background-position: 57% center;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 18px;
  }

  .hero-lead,
  .section-lead {
    font-size: 18px;
  }

  .hero-actions,
  .button-row,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .form-panel {
    padding: 18px;
  }

  .field-grid,
  .doc-list,
  .steps {
    grid-template-columns: 1fr;
  }

  .fact-list div,
  .contact-list div,
  .price-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .price-row {
    padding: 18px;
  }

  .map-panel {
    min-height: 300px;
  }
}
