:root {
  --ink: #172624;
  --muted: #5f716d;
  --line: #dbe4e1;
  --paper: #fbfcfa;
  --soft: #eef4f2;
  --brand: #a62c2c;
  --brand-dark: #7d2020;
  --gold: #bc8f4a;
  --green: #2f5f56;
  --shadow: 0 22px 70px rgba(20, 42, 38, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: #f7faf8;
  line-height: 1.6;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 252, 250, .92);
  border-bottom: 1px solid rgba(219, 228, 225, .86);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 15px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-family: Georgia, serif;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

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

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

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(247, 250, 248, .98) 0%, rgba(247, 250, 248, .92) 42%, rgba(247, 250, 248, .2) 72%),
    url("assets/hero-documents.svg") right center / min(60vw, 900px) auto no-repeat;
  border-bottom: 1px solid var(--line);
}

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

.hero-content {
  max-width: 660px;
  padding: 84px 0 98px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--brand);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6.3vw, 78px);
  letter-spacing: 0;
}

.lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: #465a56;
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.primary:hover {
  background: var(--brand-dark);
}

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

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.trust-item {
  padding: 18px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-item strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.trust-item span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

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

.section-head h2 {
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 52px);
}

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

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

.card {
  min-height: 232px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(20, 42, 38, .07);
}

.card .icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 900;
}

.card h3 {
  font-size: 22px;
}

.card p {
  margin: 14px 0 0;
  color: var(--muted);
}

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

.language {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language b {
  display: block;
  font-size: 20px;
}

.language span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.info-panel {
  min-height: 238px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(20, 42, 38, .07);
}

.info-panel.wide {
  grid-column: span 3;
  min-height: auto;
}

.info-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 0 10px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.info-panel h3 {
  font-size: 23px;
}

.info-panel p {
  margin: 14px 0 0;
  color: var(--muted);
}

.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  padding: 28px 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--brand);
  font-weight: 900;
}

.step h3 {
  font-size: 20px;
}

.step p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-band {
  color: #fff;
  background: #173b36;
}

.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 52px);
}

.contact-band p {
  color: rgba(255, 255, 255, .78);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.contact-list a,
.contact-list span {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  background: #f8fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.form textarea {
  min-height: 116px;
  resize: vertical;
}

.field-note,
.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.field-note {
  margin-top: -1px;
}

.form-status {
  min-height: 20px;
}

.form-success .form-status {
  color: var(--green);
  font-weight: 800;
}

.form-error .form-status {
  color: var(--brand);
  font-weight: 800;
}

.form button {
  min-height: 50px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.footer {
  padding: 28px 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(247, 250, 248, .95) 0%, rgba(247, 250, 248, .95) 52%, rgba(247, 250, 248, .68) 100%),
      url("assets/hero-documents.svg") center bottom / 780px auto no-repeat;
  }

  .hero-content {
    padding: 62px 0 420px;
  }

  .trust-row,
  .grid,
  .translator-info,
  .process,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .info-panel.wide {
    grid-column: auto;
  }

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

  .section-head {
    display: grid;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, 1160px);
  }

  .logo {
    font-size: 16px;
    white-space: normal;
  }

  .nav-phone {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-content {
    padding: 48px 0 315px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(247, 250, 248, .98) 0%, rgba(247, 250, 248, .96) 58%, rgba(247, 250, 248, .7) 100%),
      url("assets/hero-documents.svg") center bottom / 570px auto no-repeat;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
  }

  .trust-row,
  .languages {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .footer-inner {
    display: grid;
  }
}
