:root {
  --bg: #07111a;
  --bg-2: #0b1824;
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.74);
  --soft: rgba(244, 247, 251, 0.52);
  --accent: #eef3f8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius: 30px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #07111a 0%, #091722 38%, #07111a 100%);
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at top, rgba(105, 138, 170, 0.22), transparent 35%),
    radial-gradient(
      circle at 20% 30%,
      rgba(36, 164, 196, 0.13),
      transparent 25%
    ),
    radial-gradient(circle at 80% 20%, rgba(80, 173, 130, 0.1), transparent 25%);
}
.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 26, 0.72);
  border-bottom: 1px solid var(--stroke);
}
.header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand__text strong {
  display: block;
  font-size: 16px;
}
.brand__text small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  color: var(--muted);
  transition: 0.2s ease;
}
.nav a:hover {
  color: var(--text);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch,
.btn {
  border-radius: 999px;
  border: 1px solid var(--stroke);
  cursor: pointer;
  transition: 0.25s ease;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  min-height: 54px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s ease;
}
.lang-btn.active {
  background: linear-gradient(
    135deg,
    rgba(143, 216, 255, 0.24),
    rgba(255, 255, 255, 0.08)
  );
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.lang-btn:hover {
  color: var(--text);
}
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 17, 26, 0.88) 0%,
      rgba(7, 17, 26, 0.62) 45%,
      rgba(7, 17, 26, 0.4) 100%
    ),
    linear-gradient(180deg, rgba(7, 17, 26, 0.15), rgba(7, 17, 26, 0.72));
}
.hero__container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 80px;
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-top: 120px;
  padding-bottom: 36px;
}

.hero__content {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 40px;
}

.eyebrow,
.section-kicker,
.mini-kicker {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}
.hero h1 {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.02;
}
.hero__actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  height: 54px;
}
.btn--primary {
  background: var(--accent);
  color: #08111a;
  font-weight: 700;
}
.btn--primary:hover {
  transform: translateY(-1px);
}
.hero__socials {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 34px;
}
.social-chip {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  user-select: none;
  backdrop-filter: blur(10px);
}
.social-chip svg {
  width: 21px;
  height: 21px;
  display: block;
}
.social-chip--max svg {
  width: 23px;
  height: 23px;
}
.hero__map {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding-left: 40px;
}
.hero__map-card {
  width: min(100%, 760px);
  margin-left: auto;
  padding: 24px;
}
.hero__map-title {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 700;
}
.map-box {
  margin-top: 18px;
  height: 516px;
  min-height: 516px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top, rgba(118, 161, 193, 0.18), transparent 34%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    );
  overflow: hidden;
  position: relative;
}
.map-svg {
  width: 100%;
  height: auto;
  display: block;
}
.map-pin circle {
  fill: #0b1724;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 4;
}
.map-pin text {
  fill: #f4f7fb;
  font-size: 20px;
  font-weight: 600;
}
.section {
  padding: 68px 0;
}
.section__head {
  max-width: 780px;
  margin-bottom: 30px;
}
.section__head h2,
.about__main h2,
.request__info h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
}
.section__head p,
.about__main p,
.request__info p,
.benefit p,
.service-card__body p,
.price-card p,
.request-form__bottom p {
  color: var(--muted);
  line-height: 1.8;
}
.services-grid,
.pricing-grid,
.benefits-grid {
  display: grid;
  gap: 20px;
}
.services-grid {
  grid-template-columns: repeat(5, 1fr);
}
.pricing-grid,
.benefits-grid {
  grid-template-columns: repeat(3, 1fr);
}
.service-card,
.price-card,
.benefit {
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.065),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 40px rgba(0, 0, 0, 0.14);
}
.service-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background 0.32s ease;
}
.service-card__media {
  height: 270px;
  overflow: hidden;
  position: relative;
}
.service-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 72px;
  background: linear-gradient(
    180deg,
    rgba(7, 17, 28, 0),
    rgba(7, 17, 28, 0.28)
  );
  pointer-events: none;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}
.service-card__body,
.price-card,
.benefit {
  padding: 18px 18px 16px;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(173, 221, 255, 0.22);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.035)
  );
}
.service-card:hover .service-card__media img {
  transform: scale(1.05);
}
.service-card__body {
  display: grid;
  gap: 10px;
  align-content: start;
  flex: 1;
}
.service-card__body h3,
.price-card h3,
.benefit h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.service-card__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(230, 237, 243, 0.76);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(198, 211, 224, 0.72);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.service-card__foot strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card__foot strong::after {
  content: "↗";
  font-size: 14px;
  line-height: 1;
  opacity: 0.9;
}
.price-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.price-card__top strong {
  font-size: 30px;
}
.price-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-size: 13px;
}
.price-card.featured {
  outline: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
}
.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}
.about__main {
  padding: 32px;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.stat {
  padding: 28px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.stat strong {
  font-size: 48px;
  line-height: 1;
}
.stat span {
  margin-top: 12px;
  color: var(--muted);
}

.about-section .section-title-wrap {
  max-width: 760px;
  margin-bottom: 34px;
}
.about-section .section-title-wrap h2 {
  margin: 18px 0 0;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 820px;
}
.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  letter-spacing: 0.22em;
  font-size: 14px;
  background: rgba(146, 205, 255, 0.08);
  border: 1px solid rgba(173, 221, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.about-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bfe4ff;
  box-shadow: 0 0 18px rgba(191, 228, 255, 0.6);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, 0.98fr);
  gap: 22px;
  align-items: stretch;
}
.about-main {
  position: relative;
  min-height: 696px;
  padding: 42px 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(
      180deg,
      rgba(8, 17, 28, 0.18) 0%,
      rgba(8, 17, 28, 0.26) 34%,
      rgba(8, 17, 28, 0.76) 100%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    );
}
.about-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 17, 28, 0.18) 0%,
      rgba(8, 17, 28, 0.18) 24%,
      rgba(8, 17, 28, 0.56) 62%,
      rgba(8, 17, 28, 0.9) 100%
    ),
    url("assets/img/DSC06207.webp") center bottom / cover no-repeat;
  opacity: 0.82;
  transform: scale(1.02);
}
.about-main::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(
    180deg,
    rgba(8, 17, 28, 0),
    rgba(8, 17, 28, 0.78) 55%,
    rgba(8, 17, 28, 0.96) 100%
  );
}
.about-main__content,
.about-main .btn {
  position: relative;
  z-index: 1;
}
.about-main__content {
  display: grid;
  gap: 26px;
  max-width: 88%;
}
.about-main .lead {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.75;
  color: rgb(237, 243, 249);
  text-wrap: balance;
}
.btn--about {
  position: relative;
  z-index: 1;
  width: min(100%, 628px);
  height: 140px;
  margin-top: 28px;
  align-self: center;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #bfe2f5, #acd4ea);
  color: #04111b;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.btn--about:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.about-card {
  min-height: 336px;
  padding: 24px 22px 22px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(
    180deg,
    rgba(4, 15, 27, 0.72),
    rgba(4, 15, 27, 0.58)
  );
  border: 1px solid rgba(147, 199, 243, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 30px rgba(0, 0, 0, 0.14);
}
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #aee0ff;
  background: rgba(145, 214, 255, 0.08);
  border: 1px solid rgba(173, 221, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 18px;
}
.about-card h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.about-card p {
  margin: 0;
  color: rgba(230, 237, 243, 0.72);
  font-size: 16px;
  line-height: 1.85;
}

.request {
  display: grid;
  gap: 24px;
  align-items: start;
}
.request__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}
.request-form {
  padding: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.full-width {
  grid-column: 1 / -1;
}
label span,
.form-services__title {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}
input,
textarea {
  resize: none;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}
.form-services {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.form-services__title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.form-services label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
}
.form-services input {
  width: 18px;
  height: 18px;
  accent-color: #dfe9f3;
}
.request-contact,
.request-form {
  padding: 24px;
  min-height: 100%;
}
.request-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.request-contact h3,
.request-form h3 {
  margin: 0 0 14px;
  font-size: clamp(28px, 2.3vw, 40px);
}
.request-contact p {
  margin: 0;
  max-width: 58ch;
}
.request-contact__list {
  margin-top: 28px;
}
.request-contact__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.request-contact__row span {
  color: var(--text);
}
.request-contact__row strong {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}
.request-contact__actions {
  margin-top: 28px;
  padding-top: 100px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.request-form__bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: auto;
}
.request-form__bottom .btn {
  width: 100%;
  justify-content: center;
}
.form-message {
  margin-top: 16px;
  color: #dfe9f3;
  font-weight: 600;
}
.footer {
  border-top: 1px solid var(--stroke);
  padding: 28px 0 34px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer p {
  margin: 8px 0 0;
  color: var(--soft);
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1200px) {
  .hero__container {
    padding: 0 40px;
  }
  .about,
  .request__grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__content {
    min-height: auto;
    padding-right: 0;
  }
  .hero__socials {
    margin-top: 28px;
  }
  .hero__map {
    justify-content: flex-start;
  }
  .hero__map-card {
    margin-left: 0;
    width: min(100%, 860px);
  }
}
@media (max-width: 768px) {
  .container {
    width: min(1240px, calc(100% - 20px));
  }
  .header .container,
  .hero .container {
    padding: 0 20px;
  }
  .header__inner {
    flex-wrap: wrap;
  }
  .nav {
    display: none;
  }
  .hero {
    min-height: auto;
  }
  .hero__container {
    min-height: auto;
    padding: 106px 0 24px;
    gap: 24px;
  }
  .hero__map-title {
    font-size: 28px;
  }
  .services-grid,
  .pricing-grid,
  .benefits-grid,
  .about__stats,
  .form-grid,
  .form-services,
  .modal-gallery {
    grid-template-columns: 1fr;
  }
  .service-card__media {
    height: 220px;
  }
  .price-card.featured {
    transform: none;
  }
  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .lang-switch {
    min-height: 50px;
  }
  .modal {
    padding: 12px;
  }
  .modal-dialog {
    padding: 16px;
    border-radius: 24px;
  }
  .modal-media {
    aspect-ratio: 16 / 10;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Interactive Yandex map */
.yandex-map {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  transform: translateZ(0);
}

.yandex-map [class*="copyrights-pane"] {
  opacity: 0.92;
}

.yandex-map ymaps[class*="ground-pane"] {
  filter: saturate(0.95) contrast(1.02);
}

@media (max-width: 1140px) {
  .hero__map-card {
    width: min(100%, 820px);
  }
}

@media (max-width: 760px) {
  .map-box {
    height: 380px;
    min-height: 380px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  padding: 24px;
  background: rgba(1, 3, 7, 0.82);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.modal.open {
  display: flex;
}
.modal-dialog {
  width: min(1120px, 100%);
  max-height: min(90vh, 980px);
  overflow: auto;
  padding: 22px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}
.modal-close {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}
.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
}
.modal-media {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--stroke);
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-copy {
  display: grid;
  gap: 18px;
}
.modal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.feature-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  line-height: 1.72;
}
.feature-list li::before {
  content: "•";
  color: var(--text);
}
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.modal-gallery figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 1 / 1;
}
.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 17, 28, 0.9);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
  z-index: 120;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.scroll-top:hover {
  background: rgba(18, 29, 46, 0.98);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .scroll-top {
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
  }
}

/* Fallback: content stays visible even if JavaScript fails */
.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Weather chip + popup */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: 0.25s ease;
  backdrop-filter: blur(12px);
}

.weather-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.weather-chip__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
}

.weather-chip__city,
.weather-chip__label {
  color: var(--muted);
}

.weather-chip__value {
  font-weight: 700;
}

.weather-chip__divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.weather-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 10, 16, 0.56);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s ease;
}

.weather-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.weather-modal__dialog {
  width: min(980px, 100%);
  padding: 28px;
  border-radius: 34px;
  max-height: min(90vh, 980px);
  overflow: auto;
}

.weather-modal__head,
.weather-modal__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.weather-modal__location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  padding: 0;
}

.weather-modal__location-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  color: #8fd8ff;
}

.weather-modal__close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.weather-modal__tabs {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.weather-modal__tab {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

.weather-modal__tab.active {
  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(143, 216, 255, 0.2),
    rgba(255, 255, 255, 0.08)
  );
}

.weather-modal__main {
  margin-top: 26px;
  align-items: stretch;
}

.weather-modal__date {
  color: var(--muted);
  font-size: 15px;
}

.weather-modal__temp {
  margin-top: 10px;
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 800;
  line-height: 0.9;
}

.weather-modal__temp sup {
  font-size: 0.35em;
  top: -0.7em;
}

.weather-modal__conditions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}

.weather-modal__aurora-card {
  min-width: 280px;
  padding: 22px 24px;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(95, 185, 164, 0.18),
    rgba(115, 92, 190, 0.12)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-modal__aurora-kicker {
  color: var(--muted);
  font-size: 14px;
}

.weather-modal__aurora-value {
  margin-top: 8px;
  font-size: 44px;
  font-weight: 800;
}

.weather-modal__aurora-note {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.weather-modal__section {
  margin-top: 28px;
}

.weather-modal__section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.weather-day-card,
.weather-hour-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
}

.weather-day-card {
  padding: 18px;
}

.weather-day-card__title {
  color: var(--muted);
  font-size: 14px;
}

.weather-day-card__temp {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
}

.weather-day-card__meta {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.weather-modal__hourly {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.weather-hour-card {
  min-height: 132px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.weather-hour-card__time {
  color: var(--muted);
  font-size: 14px;
}

.weather-hour-card__temp {
  font-size: 24px;
  font-weight: 800;
}

.weather-hour-card__meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.weather-hour-card--sun {
  background: linear-gradient(
    180deg,
    rgba(255, 205, 80, 0.12),
    rgba(255, 255, 255, 0.04)
  );
}

@media (max-width: 1080px) {
  .header__inner {
    align-items: center;
  }
  .nav {
    gap: 18px;
  }
}

@media (max-width: 920px) {
  .header__inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 14px 0;
  }
  .brand {
    order: 1;
  }
  .topbar-actions {
    order: 2;
    width: 100%;
    justify-content: space-between;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .weather-modal__main {
    flex-direction: column;
    align-items: stretch;
  }
  .weather-modal__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .weather-chip {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 9px 12px;
  }
  .weather-chip__item {
    font-size: 13px;
  }
  .weather-chip__divider {
    display: none;
  }
  .weather-modal {
    padding: 12px;
  }
  .weather-modal__dialog {
    padding: 20px;
    border-radius: 24px;
  }
  .weather-modal__hourly {
    grid-auto-columns: minmax(112px, 1fr);
  }
}

.weather-modal__suninfo {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.weather-sun-card {
  min-width: 160px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-sun-card__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.weather-sun-card__value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

#weatherHourlyTitle,
#weatherHourlyCards {
  display: none !important;
}

/* custom select */
.custom-select {
  position: relative;
  width: 100%;
}
.select-selected {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 14px 16px;
  color: #ccc;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.select-items {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(20, 30, 40, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  overflow: hidden;
  z-index: 100;
}
.select-items div {
  padding: 12px 16px;
  color: #fff;
  cursor: pointer;
}
.select-items div:hover {
  background: rgba(255, 255, 255, 0.08);
}
.select-hide {
  display: none;
}

@media (max-width: 1200px) {
  .about-section .section-title-wrap h2 {
    font-size: clamp(36px, 5vw, 60px);
    max-width: 760px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-main {
    min-height: 620px;
  }
}
@media (max-width: 768px) {
  .about-section .section-title-wrap {
    margin-bottom: 24px;
  }
  .about-section .section-title-wrap h2 {
    margin-top: 14px;
    font-size: clamp(34px, 10vw, 52px);
    line-height: 1.02;
  }
  .about-main {
    min-height: auto;
    padding: 26px 18px 18px;
  }
  .about-main__content {
    max-width: 100%;
    gap: 16px;
  }
  .about-main .lead {
    font-size: 16px;
    line-height: 1.7;
  }
  .btn--about {
    width: 100%;
    height: 84px;
    font-size: 15px;
  }
  .about-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-card {
    min-height: auto;
    padding: 20px 18px;
  }
  .icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
}


/* Modal gallery navigation */
.modal-media-wrap {
  position: relative;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 17, 26, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(12px);
}

.modal-nav[hidden] {
  display: none;
}

.modal-nav--prev {
  left: 16px;
}

.modal-nav--next {
  right: 16px;
}

.modal-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.modal-gallery figure {
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.modal-gallery figure.is-active {
  border-color: rgba(191, 228, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(191, 228, 255, 0.25);
  transform: translateY(-1px);
}

/* Better tablet/mobile layout */
@media (max-width: 1100px) {
  .header__inner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .topbar-actions {
    margin-left: auto;
    justify-content: flex-end;
  }

  .hero__container {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 118px 32px 32px;
    gap: 26px;
  }

  .hero__content {
    min-height: auto;
    padding-right: 0;
    order: 2;
  }

  .hero__map {
    order: 1;
    padding-left: 0;
    justify-content: stretch;
  }

  .hero__map-card {
    width: 100%;
    margin-left: 0;
  }

  .map-box {
    height: 420px;
    min-height: 420px;
  }

  .hero__socials {
    margin-top: 22px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 24px, 1240px);
  }

  .header {
    position: sticky;
  }

  .header__inner {
    min-height: auto;
    gap: 14px;
    padding: 12px 0 14px;
  }

  .brand {
    width: 100%;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__text strong {
    font-size: 15px;
  }

  .brand__text small {
    font-size: 13px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .weather-chip {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
    min-height: 54px;
    padding: 10px 14px;
  }

  .weather-chip__item {
    min-width: 0;
  }

  .weather-chip__city,
  .weather-chip__label,
  .weather-chip__value {
    white-space: nowrap;
  }

  .lang-switch {
    min-height: 46px;
  }

  .lang-btn {
    padding: 9px 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero__container {
    padding: 22px 0 28px;
    gap: 20px;
  }

  .hero__content {
    order: 1;
    padding-top: 8px;
  }

  .hero__map {
    order: 2;
  }

  .eyebrow {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 56px);
    max-width: 100%;
    line-height: 0.98;
  }

  .hero__actions {
    margin-top: 20px;
  }

  .btn--primary {
    width: 100%;
  }

  .hero__socials {
    margin-top: 18px;
    padding-top: 0;
  }

  .social-chip {
    width: 46px;
    height: 46px;
  }

  .hero__map-card {
    padding: 18px;
    border-radius: 26px;
  }

  .hero__map-title {
    margin-top: 8px;
    font-size: 22px;
  }

  .map-box,
  .yandex-map {
    height: 320px;
    min-height: 320px;
    border-radius: 22px;
  }

  .section {
    padding: 52px 0;
  }

  .section__head {
    margin-bottom: 22px;
  }

  .section__head h2,
  .about__main h2,
  .request__info h2 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.04;
  }

  .services-grid,
  .pricing-grid,
  .benefits-grid,
  .about__stats,
  .form-grid,
  .form-services {
    grid-template-columns: 1fr;
  }

  .service-card__media {
    height: 210px;
  }

  .service-card__body,
  .price-card,
  .benefit,
  .request-form,
  .request-contact {
    padding-left: 16px;
    padding-right: 16px;
  }

  .request__grid {
    gap: 16px;
  }

  .modal {
    padding: 10px;
    align-items: flex-start;
  }

  .modal-dialog {
    width: 100%;
    max-height: calc(100svh - 20px);
    margin: 0;
    padding: 16px;
    border-radius: 24px;
  }

  .modal-head {
    gap: 12px;
    margin-bottom: 16px;
  }

  .modal-head h2 {
    margin: 8px 0 0;
    font-size: 20px;
    line-height: 1.1;
  }

  .modal-close {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-media {
    aspect-ratio: 16 / 11;
  }

  .modal-copy {
    gap: 14px;
  }

  .modal-copy p,
  .feature-list li {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .modal-gallery figure {
    border-radius: 14px;
  }

  .modal-nav {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .modal-nav--prev {
    left: 10px;
  }

  .modal-nav--next {
    right: 10px;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 20px);
  }

  .hero__container {
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .weather-chip {
    gap: 10px;
    padding: 10px 12px;
  }

  .weather-chip__value {
    font-size: 14px;
  }

  .map-box,
  .yandex-map {
    height: 280px;
    min-height: 280px;
  }

  .modal-dialog {
    padding: 14px;
  }

  .modal-gallery {
    gap: 8px;
  }
}


/* === Mobile header and drawer === */
.mobile-header,
.mobile-drawer {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }

  .header {
    display: none;
  }

  .mobile-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 8px 0 0;
    background: linear-gradient(180deg, rgba(7, 17, 26, 0.96), rgba(7, 17, 26, 0.76));
    backdrop-filter: blur(12px);
  }

  .mobile-header__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 0 10px;
  }

  .brand--mobile {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .brand--mobile .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 14px;
    flex: 0 0 auto;
  }

  .brand--mobile .brand__text {
    min-width: 0;
  }

  .brand--mobile .brand__text strong {
    font-size: 15px;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand--mobile .brand__text small {
    margin-top: 2px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lang-switch--mobile {
    order: 2;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 3px;
    gap: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
  }

  .lang-switch--mobile .lang-btn {
    min-width: 40px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .mobile-menu-toggle {
    order: 3;
    flex: 0 0 auto;
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.28s ease, opacity 0.2s ease;
  }

  .mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
  }

  .mobile-drawer__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 9, 15, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-drawer__panel {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    padding: 18px;
    border-radius: 28px;
    transform: translateY(-18px) scale(0.96);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(.22,1,.36,1), opacity 0.28s ease;
  }

  .mobile-drawer.open {
    pointer-events: auto;
  }

  .mobile-drawer.open .mobile-drawer__backdrop {
    opacity: 1;
  }

  .mobile-drawer.open .mobile-drawer__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .mobile-drawer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 18px;
  }

  .mobile-drawer__weather {
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .mobile-drawer__weather-kicker {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--soft);
  }

  .mobile-drawer__weather-main,
  .mobile-drawer__weather-aurora {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
  }

  .mobile-drawer__weather-main {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
  }

  .mobile-drawer__weather-aurora {
    font-size: 14px;
    color: var(--muted);
  }

  .mobile-drawer__close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
  }

  .mobile-drawer__nav {
    display: grid;
    gap: 10px;
  }

  .mobile-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  }

  .mobile-nav-link::after {
    content: '›';
    font-size: 20px;
    color: rgba(255,255,255,0.56);
  }

  .mobile-nav-link:active {
    transform: scale(0.985);
  }

  .topbar-actions {
    display: none;
  }

  .header__inner {
    display: none;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 68px;
  }

  .mobile-header__inner {
    gap: 8px;
  }

  .brand--mobile .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .brand--mobile .brand__text strong {
    font-size: 14px;
  }

  .brand--mobile .brand__text small {
    font-size: 10.5px;
  }

  .lang-switch--mobile .lang-btn {
    min-width: 36px;
    padding: 7px 7px;
  }

  .mobile-drawer__panel {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 16px;
    border-radius: 24px;
  }
}


/* === Mobile hero refinements: centered hero, socials at bottom, detached map after hero === */
@media (max-width: 768px) {
  .hero {
    min-height: calc(100svh - 72px);
  }

  .hero__container {
    display: flex;
    min-height: calc(100svh - 72px);
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .hero__content {
    width: 100%;
    min-height: calc(100svh - 104px);
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 18px;
    padding-bottom: 8px;
  }

  .eyebrow {
    margin-top: 14px;
    text-align: center;
  }

  .hero h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 11ch;
    text-align: center;
  }

  .hero__actions {
    width: 100%;
    justify-content: center;
  }

  .hero__socials {
    width: 100%;
    margin-top: auto;
    justify-content: center;
    align-items: center;
    padding-top: 18px;
  }

  .hero__map.hero__map--detached {
    width: min(100% - 24px, 1240px);
    margin: 0 auto 0;
    padding-left: 0;
    display: block;
  }

  .hero__map.hero__map--detached .hero__map-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: calc(100svh - 68px);
  }

  .hero__container {
    min-height: calc(100svh - 68px);
    padding-top: 10px;
    padding-bottom: 14px;
  }

  .hero__content {
    min-height: calc(100svh - 98px);
    padding-top: 16px;
  }

  .hero h1 {
    max-width: 10.5ch;
  }

  .hero__map.hero__map--detached {
    width: calc(100% - 20px);
  }
}

/* Performance optimizations */
.section,
.footer,
.hero__map,
.services-grid,
.pricing-grid,
.about-grid,
.request-layout {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

img {
  height: auto;
}

.yandex-map {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.yandex-map--failed::before {
  content: "Карта временно недоступна";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.76);
  font-size: 0.95rem;
}
