@font-face {
  font-family: Inter;
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #071b4c;
  --blue: #087df0;
  --pale: #e5f5ff;
  --ink: #1a2744;
  --muted: #5a6578;
  --line: #dce7f2;
  --font: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  background: #fff;
}

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

a { color: inherit; }

a:focus-visible,
.card:focus-visible,
.phone-chip:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 318px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #e7f3ff;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fff 0%,
    rgba(255, 255, 255, 0.97) 30%,
    rgba(255, 255, 255, 0.72) 46%,
    rgba(255, 255, 255, 0.2) 62%,
    rgba(255, 255, 255, 0) 76%
  );
}

.hero-inner {
  position: relative;
  padding: 28px 0 32px;
  max-width: 680px;
}

.brandline {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.hero-contacts-after .brandline { margin: 16px 0 14px; }

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.phone-chip svg,
.phone-round svg,
.social-dot svg {
  display: block;
  flex: none;
}

.separator {
  width: 1px;
  height: 28px;
  background: #8b97ab;
  flex: none;
}

.socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
}

.social-dot.max { background: #071b4c; font-size: 10px; }
.social-dot.wa { background: #20b968; }
.social-dot.tg { background: #229ed9; }

.brand {
  font-size: 18px;
  font-weight: 700;
  color: #172341;
}

.hero-title,
h1 {
  display: block;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 12px;
}

a.hero-title { text-decoration: none; }
a.hero-title:hover { color: #0a3a8a; }

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  max-width: 640px;
  margin: 0 0 18px;
  color: var(--ink);
}

.delivery {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* ---------- Main ---------- */
main { padding: 28px 0 44px; }

h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h2 .break { display: block; }

h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 8px;
}

.intro {
  font-size: 17px;
  max-width: 980px;
  margin: 0 0 24px;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  margin: 8px 0 32px;
}

.check-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.check {
  flex: none;
  width: 42px;
  height: 42px;
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.plain-list li {
  margin: 4px 0;
  padding: 0;
}

.plain-list li::before {
  content: "—";
  margin-right: 8px;
  color: #3d4c66;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 0;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(8, 35, 78, 0.08);
  transition: transform 0.18s, box-shadow 0.18s;
  background: #fff;
  min-width: 0;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(8, 35, 78, 0.14);
}

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

.card-label {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
}

.arrow {
  width: 30px;
  height: 30px;
  flex: none;
  border: 2px solid #204eae;
  color: #204eae;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* ---------- Inner pages ---------- */
.page-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: start;
  margin-bottom: 8px;
}

.page-heading p { margin: 0 0 14px; }

.page-heading p strong.accent,
.accent {
  color: #0877df;
  font-weight: 700;
}

.doc-illustration { width: 180px; max-width: 100%; }

.notice {
  font-weight: 700;
  color: #0877df;
  margin: 0 0 8px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 18px 0 28px;
}

.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 20px;
}

.steps > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -20px;
  border-left: 1px dashed #64b6f4;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.step-copy { padding-top: 6px; min-width: 0; }
.step-copy p { margin: 0; }
.step-copy h3 { display: inline; font-size: 17px; margin: 0; }
.step-copy h3 + p { display: inline; }
.step-copy h3 + p::before { content: " "; }

.step-copy ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.step-copy li {
  margin: 4px 0;
}

.step-copy ul { list-style: none; padding-left: 0; }
.step-copy ul li {
  position: relative;
  padding-left: 16px;
}
.step-copy ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- Contacts ---------- */
.contact-band {
  display: flex;
  align-items: center;
  gap: 16px 20px;
  background: var(--pale);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}

.phone-round {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
}

.contact-main { min-width: 0; flex: 1 1 200px; }
.contact-main p {
  margin: 0 0 2px;
  font-size: 16px;
}

.contact-number {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}

.contact-number a {
  color: inherit;
  text-decoration: none;
}

.contact-number a:hover { text-decoration: underline; }

.contact-divider {
  width: 1px;
  height: 48px;
  background: #9aadc2;
  flex: none;
}

.contact-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin: 8px 0 20px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}

.back-link {
  margin: 8px 0 0;
  font-size: 16px;
}

.back-link a { color: #0a4ea8; }

footer {
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 16px;
  border-top: 1px solid #edf1f6;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-nav a {
  color: #0a4ea8;
  text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 860px) {
  .container { width: calc(100% - 32px); }

  .hero {
    min-height: 0;
    justify-content: flex-start;
  }

  .hero-photo {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 240px;
    inset: auto;
    z-index: 0;
    object-position: center 40%;
    order: 2;
  }

  .hero::before { display: none; }

  .hero .container {
    order: 1;
    width: calc(100% - 32px);
  }

  .hero-inner {
    padding: 20px 0 16px;
    max-width: none;
  }

  .hero-title,
  h1 { font-size: clamp(28px, 8.4vw, 40px); letter-spacing: -0.02em; }

  .hero-subtitle { font-size: 18px; margin-bottom: 14px; }

  .columns { grid-template-columns: 1fr; gap: 22px; margin: 8px 0 28px; }

  .cards { grid-template-columns: 1fr; gap: 14px; }

  .card img { height: 180px; }

  .page-top { grid-template-columns: minmax(0, 1fr); gap: 8px; }

  .doc-illustration { display: none; }

  .hero { background: #fff; }

  .steps > li { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }

  .step-number { width: 36px; height: 36px; font-size: 16px; }

  .steps > li:not(:last-child)::before { top: 36px; left: 17px; }

  .contact-band { padding: 14px 16px; gap: 12px; }

  .contact-divider { display: none; }

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

  .gallery img {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 430px) {
  .container,
  .hero .container { width: calc(100% - 24px); }

  body { font-size: 16px; }

  .brandline { gap: 8px; margin-bottom: 16px; }

  .phone-chip { padding: 10px 12px; }

  .social-dot { width: 36px; height: 36px; }

  .separator { height: 24px; }

  .intro,
  .delivery,
  .card-label,
  .step-copy,
  .contact-main p,
  footer { font-size: 16px; }

  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  .card img { height: 170px; }

  .contact-social { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
