@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --brand: #294d9d;
  --brand-alt: #3d59a5;
  --brand-dark: #17356f;
  --soft: #e7ebf4;
  --soft-gray: #ededed;
  --white: #ffffff;
  --ink: #15203a;
  --muted: #59647a;
  --border: #cdd6e8;
  --shadow: 0 18px 48px rgba(23, 53, 111, 0.12);
  --container: 1180px;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #f2b544;
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--brand-dark);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(41, 77, 157, 0.14);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  min-height: 84px;
}

.brand-link {
  display: block;
}

.brand-link img {
  width: 220px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
}

.site-nav a,
.footer-links a,
.footer-bottom a {
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover,
.footer-bottom a:hover {
  text-decoration: underline;
}

.header-phone,
.footer-phone,
.contact-phone {
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.header-phone:hover,
.footer-phone:hover,
.contact-phone:hover {
  text-decoration: underline;
}

.header-phone {
  color: var(--brand-dark);
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  background: var(--white);
}

.hero-panorama {
  position: relative;
  width: 100%;
  margin-inline: auto;
}

.hero-panorama::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 35, 79, 0.88), rgba(12, 35, 79, 0.68) 48%, transparent 78%);
  pointer-events: none;
}

.hero-banner-copy {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-banner-copy h1 {
  width: 62%;
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.125rem, 4vw, 4.25rem);
  line-height: 1.12;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-panorama img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.hero-grid {
  display: flex;
  align-items: center;
  padding-block: 32px 56px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--brand-dark);
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 20px;
  color: var(--brand-dark);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.hero-lead {
  max-width: 680px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.primary-actions,
.secondary-actions,
.flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

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

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

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

.button-light {
  color: var(--brand-dark);
  background: var(--white);
}

.button-light:hover {
  background: var(--soft);
}

.button-outline {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: transparent;
}

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

.button-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.button-outline-light:hover {
  color: var(--brand-dark);
  background: var(--white);
}

.button-compact {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.88rem;
}

.action-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 700;
}

.section {
  padding-block: clamp(76px, 10vw, 128px);
}

.section-heading {
  max-width: 560px;
}

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

.service-card {
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--brand);
  background: var(--white);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-number {
  display: block;
  margin-bottom: 42px;
  color: var(--brand-alt);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

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

.section-blue h2,
.section-blue .eyebrow {
  color: var(--white);
}

.eyebrow-light {
  opacity: 0.76;
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 72px;
}

.steps {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: start;
  gap: 14px;
}

.steps span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  font-weight: 800;
}

.flow-actions {
  align-content: center;
}

.flow-actions .button {
  flex: 1 1 210px;
}

.community-actions-light {
  width: 100%;
  margin-top: 4px;
}

.community-actions-light a {
  color: var(--white);
  font-size: 0.92rem;
}

.about-grid,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 8vw, 120px);
}

.about-copy {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.about-copy p:first-child {
  margin-top: 0;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

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

.communities-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 64px;
}

.communities-grid p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.secondary-actions .button {
  flex: 1 1 220px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 24px 46px 24px 0;
  color: var(--brand-dark);
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
}

.faq-list summary::marker {
  color: var(--brand);
}

.faq-list details p {
  max-width: 720px;
  margin: -6px 0 24px;
  color: var(--muted);
}

.section-contacts {
  background: #f7f8fb;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 50px;
}

.contact-copy address {
  max-width: 380px;
  margin-bottom: 28px;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 700;
}

.contact-phone {
  display: grid;
  gap: 3px;
  margin-bottom: 22px;
  color: var(--brand-dark);
  font-size: 1.32rem;
  font-weight: 800;
}

.contact-phone span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-shell {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--soft);
}

.map-placeholder {
  display: grid;
  min-height: 410px;
  place-content: center;
  justify-items: start;
  gap: 18px;
  padding: 40px;
  background:
    linear-gradient(rgba(231, 235, 244, 0.82), rgba(231, 235, 244, 0.9)),
    url("assets/images/panorama-river.jpg") center / cover;
}

.map-placeholder p {
  max-width: 540px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.map-frame {
  width: 100%;
  min-height: 410px;
  border: 0;
}

.map-requested .map-placeholder {
  min-height: 0;
  padding: 20px;
  gap: 12px;
  background: var(--soft);
}

.map-frame:not([hidden]) {
  display: block;
}

[data-map-load][hidden] {
  display: none;
}

.site-footer {
  color: var(--white);
  background: var(--brand-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
  padding-block: 58px 44px;
}

.footer-logo {
  width: 210px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.footer-grid p {
  margin-block: 0 8px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  gap: 20px;
}

.legal-page main {
  min-height: 60vh;
}

.legal-content {
  max-width: 840px;
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.legal-content h2 {
  margin-top: 48px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.legal-note {
  padding: 20px 24px;
  border-left: 5px solid var(--brand);
  background: var(--soft);
}

@media (max-width: 1040px) {
  .header-row {
    grid-template-columns: 190px 1fr;
    gap: 18px 28px;
    padding-block: 14px;
  }

  .brand-link img {
    width: 190px;
  }

  .header-phone {
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .hero-grid {
    min-height: auto;
  }

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

@media (max-width: 780px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    position: static;
  }

  .header-row {
    grid-template-columns: 1fr;
  }

  .header-phone {
    justify-self: start;
  }

  .site-nav {
    display: none;
  }

  .hero-grid,
  .flow-layout,
  .about-grid,
  .communities-grid,
  .faq-layout,
  .contacts-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 46px;
    padding-block: 24px 40px;
  }

  .hero-panorama img {
    object-position: center center;
  }

  .flow-layout,
  .about-grid,
  .communities-grid,
  .faq-layout,
  .contacts-grid {
    gap: 38px;
  }

  .service-card {
    min-height: 240px;
  }

  .card-number {
    margin-bottom: 26px;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .primary-actions,
  .secondary-actions,
  .flow-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .service-card {
    min-height: 0;
  }

  .map-placeholder {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
