/* Public layout; palette and base components come from style.css. */
:root { --hdr: 80px; }

.hdr {
  background: rgba(255, 255, 255, .96);
  border-color: var(--line);
}

.hdr__in { gap: 24px; }
.logo { gap: 10px; }
.logo__img {
  width: 48px;
  height: 48px;
  border-radius: 0;
  box-shadow: none;
}
.logo__txt b {
  font-size: 1.34rem;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.logo__txt small {
  margin-top: 3px;
  font-size: .7rem;
  letter-spacing: 0;
}
.nav__link { padding-inline: 12px; }

.btn { min-height: 44px; }

.hero {
  width: min(calc(100% - 32px), 1560px);
  margin: 14px auto 0;
  padding: 0;
  border-radius: 28px;
  background: var(--blue-900);
  isolation: isolate;
}
.hero__photo, .hero::after { position: absolute; inset: 0; }
.hero__photo { z-index: -2; }
.hero__img { height: 100%; object-position: center 58%; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 30, 68, .96), rgba(10, 42, 92, .75) 39%, rgba(10, 42, 92, .13) 73%),
              linear-gradient(0deg, rgba(7, 30, 68, .52), transparent 53%);
}
.hero__in {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(510px, 74svh, 730px);
  padding: 72px 34px 46px;
}
.hero__txt { max-width: 630px; min-width: 0; }
.hero h1 {
  max-width: 13ch;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(2.8rem, 1.65rem + 3.5vw, 4.75rem);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.04;
  text-wrap: balance;
}
.hero h1::after { content: none; }
.hero__txt .lead { max-width: 44ch; margin-bottom: 0; color: #f0f6ff; }
.hero__cta { gap: 10px; margin: 25px 0 0; }
.hero__cta .btn { padding-inline: 1.35em; }
.hero__license {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 9px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--blue-200);
  border-radius: 13px;
  background: #fff;
  color: var(--blue-800);
  font-size: .9rem;
  font-weight: 700;
}
.hero__license:hover { background: var(--blue-50); color: var(--blue-700); }

html.a11y .hero__photo, html.a11y .hero::after { display: none; }
html.a11y .hero { background: var(--bg); }
html.a11y .hero h1, html.a11y .hero__txt .lead { color: var(--ink); }
html.a11y .hero__cta .btn--outline-white { color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }

.home-services { padding-block: clamp(50px, 8vw, 105px); }
.home-services__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(140px, auto);
  align-items: start;
  gap: 26px;
}
.home-services__head {
  grid-area: 1 / 1 / 2 / 7;
  max-width: 410px;
}
.home-services__head h2 {
  font-size: clamp(2.25rem, 1.4rem + 2.7vw, 3.8rem);
  letter-spacing: -.05em;
}
.home-services__head p { max-width: 33ch; color: var(--muted); }

.home-feature { display: block; min-width: 0; color: var(--ink); }
.home-feature:hover { color: var(--ink); }
.home-feature--1 { grid-area: 1 / 8 / span 2 / -1; }
.home-feature--2 { grid-area: 2 / 1 / span 2 / 7; }
.home-feature--3 { grid-area: 3 / 7 / span 2 / -1; }
.home-feature--4 { grid-area: 4 / 1 / span 2 / 7; }
.home-feature--3 { margin-left: 30px; }
.home-feature__media {
  aspect-ratio: 1.56;
  overflow: hidden;
  border-radius: 23px;
  background: var(--blue-100);
}
.home-feature--2 .home-feature__media, .home-feature--4 .home-feature__media { aspect-ratio: 1.67; }
.home-feature__media .photo { transition: transform .36s ease; }
.home-feature:hover .home-feature__media .photo { transform: scale(1.035); }
.home-feature__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  padding-block: 13px 8px;
  border-bottom: 1px solid var(--line);
}
.home-feature__caption h3 { margin: 0 0 4px; font-size: clamp(1.16rem, .85rem + .55vw, 1.55rem); }
.home-feature__caption p { margin: 0; color: var(--muted); }
.home-feature__arrow {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  height: 42px;
  border: 1px solid var(--blue-200);
  border-radius: 50%;
  color: var(--blue-700);
}
.home-feature:hover .home-feature__arrow { background: var(--blue-600); color: #fff; }
html.a11y-noimg .home-feature__media { display: none; }

.card { border-radius: 23px; }
.card:hover { border-color: var(--blue-300); }
.card__media { aspect-ratio: 16 / 10; }
.card__media::after {
  background: linear-gradient(180deg, transparent 64%, rgba(10, 42, 92, .21));
}
.card__ic {
  bottom: 12px;
  left: 12px;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  box-shadow: var(--sh-1);
}
.card__ic .ic { width: 22px; height: 22px; }
.card__body, .card--sm .card__body { padding: 18px 20px 20px; }
.service-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  list-style: none;
  margin: 25px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.service-links a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  height: 100%;
  margin: 0;
  padding: 9px 14px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}
.service-links a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
  border-color: var(--blue-200);
}
.service-links__icon {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-600);
}
.service-links__arrow {
  margin-left: auto;
  color: var(--blue-600);
}
.home-steps {
  background: var(--blue-50);
  border-block: 1px solid var(--line);
}
.home-steps__layout {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) minmax(0, 2.1fr);
  gap: 28px;
  align-items: start;
}
.home-steps .steps {
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--blue-200);
  border-radius: var(--r);
}
.home-steps .steps li {
  padding: 24px 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.home-steps .steps li + li { border-left: 1px solid var(--blue-200); }
.home-steps .steps li:not(:last-child)::after { display: none; }
.home-steps .steps__n { background: var(--blue-100); color: var(--blue-800); box-shadow: none; }

@media (max-width: 960px) {
  :root { --hdr: 66px; }
  .hero__in { min-height: 540px; padding: 48px 26px 34px; }
  .hero h1 { font-size: clamp(2.65rem, 1.55rem + 2.9vw, 3.8rem); }
  .home-services__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 22px;
  }
  .home-services__head { grid-area: auto / 1 / auto / -1; }
  .home-feature { grid-area: auto; margin: 0; }
  .service-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-steps__layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 700px) {
  .hero {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 22px;
  }
  .hero::after { background: linear-gradient(0deg, rgba(7, 30, 68, .98), rgba(7, 30, 68, .83) 54%, rgba(7, 30, 68, .19)); }
  .hero__in {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 16px;
    min-height: 510px;
    padding: 84px 18px 22px;
  }
  .hero h1 { max-width: 16ch; margin-bottom: 14px; }
  .hero__cta { margin: 17px 0 0; }
  .hero__license { min-height: 42px; }
}

@media (max-width: 640px) {
  .logo__img { width: 43px; height: 43px; }
  .logo__txt b { font-size: 1.2rem; }
  .hero h1 { font-size: clamp(2.19rem, 1.2rem + 5.25vw, 2.65rem); }
  .home-services__layout, .service-links { grid-template-columns: minmax(0, 1fr); }
  .home-services__layout { gap: 21px; }
  .home-feature__media { border-radius: 18px; }
  .service-links { gap: 9px; }
  .home-steps .steps li + li { border-left: 0; border-top: 1px solid var(--blue-200); }
  .card__body, .card--sm .card__body { padding: 12px 14px; }
  .card__media { aspect-ratio: auto; }
}
