/* =========================================================
   Склад ПРОМПАРК М-11 — landing styles (mobile-first)
   ========================================================= */

:root {
  --bg: #f4f5f7;
  --bg-alt: #ffffff;
  --ink: #1a1d23;
  --ink-soft: #4a5160;
  --muted: #6b7280;
  --line: #e2e5eb;
  --accent: #c0392b;
  --accent-dark: #9b2d22;
  --accent-soft: rgba(192, 57, 43, 0.1);
  --dark: #15181e;
  --dark-2: #1f2430;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(21, 24, 30, 0.08);
  --shadow-lg: 0 24px 60px rgba(21, 24, 30, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 60px;
  --mobile-cta-h: 0px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: calc(var(--mobile-cta-h) + var(--safe-bottom));
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
  touch-action: none;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font-size: 0.9em;
  word-break: break-word;
}

.container {
  width: min(100% - 1.25rem, var(--container));
  margin-inline: auto;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.section {
  padding: 2.75rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--dark);
  color: #f3f4f6;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem;
}

.section__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.4rem, 5.5vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

.section__lead {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.55;
}

.section--dark .section__lead {
  color: #c5cad3;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 229, 235, 0.9);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(21, 24, 30, 0.08);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(21, 24, 30, 0.12);
}

.logo__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo__title {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo__sub {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.2rem;
}

.nav a {
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.header-cta {
  display: none;
}

.burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.burger__lines {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s var(--ease);
}

.burger__lines::before,
.burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

.burger__lines::before { top: -6px; }
.burger__lines::after { top: 6px; }

.burger[aria-expanded="true"] .burger__lines {
  background: transparent;
}

.burger[aria-expanded="true"] .burger__lines::before {
  top: 0;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] .burger__lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 17, 22, 0.45);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.mobile-nav-backdrop.is-open {
  display: block;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top));
  left: 0;
  right: 0;
  z-index: 95;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.85rem calc(0.85rem + var(--safe-bottom));
  box-shadow: var(--shadow-lg);
  max-height: calc(100dvh - var(--header-h) - var(--safe-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), visibility 0.22s;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 0.95rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  min-height: 48px;
}

.mobile-nav a:active,
.mobile-nav a:hover {
  background: var(--bg);
}

.mobile-nav__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.mobile-nav__cta .btn {
  min-height: 48px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  text-align: center;
  touch-action: manipulation;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.28);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-dark);
  outline: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

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

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.btn--dark {
  background: var(--dark);
  color: #fff;
}

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

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(72dvh, 560px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__photo,
.hero__media img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img,
.hero__video {
  object-fit: cover;
  object-position: center 35%;
}

.hero__media img {
  filter: brightness(1.08) contrast(1.02);
}

.hero__video {
  z-index: 1;
  /* keep photo underneath as fallback while video buffers */
  background: transparent;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* slightly stronger so white text stays readable over moving video */
  background:
    linear-gradient(180deg, rgba(15, 17, 22, 0.28) 0%, rgba(15, 17, 22, 0.45) 40%, rgba(15, 17, 22, 0.82) 100%),
    linear-gradient(90deg, rgba(15, 17, 22, 0.35) 0%, transparent 55%);
}

/* reduce motion: hide autoplay video, keep photo */
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 2.5rem 0 1.75rem;
  max-width: 720px;
}

.hero__title,
.hero__badge,
.hero__text {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  backdrop-filter: blur(8px);
  line-height: 1.3;
}

.hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 7.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: #ff8f7f;
}

.hero__text {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  color: #d7dbe3;
  max-width: 52ch;
  line-height: 1.55;
}

.hero__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.hero__actions .btn {
  width: 100%;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  color: #e8ebf0;
}

/* ---------- Stats ---------- */

.stats {
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: 0.5rem;
}

.stats__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(-0.5 * (100vw - min(100% - 1.25rem, var(--container))) * 0);
  padding-bottom: 0.15rem;
}

.stats__scroll::-webkit-scrollbar {
  display: none;
}

.stats__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 42vw);
  gap: 0.55rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-lg);
  padding: 0.65rem;
  width: max-content;
  min-width: 100%;
}

.stat {
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  scroll-snap-align: start;
  min-width: 0;
}

.stat__value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
}

.stat__label {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}

.stats__hint {
  display: block;
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

/* ---------- Grid layouts ---------- */

.split {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

.card-list {
  display: grid;
  gap: 0.7rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.check-list {
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 0.22rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 35%, transparent 36%),
    var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex-shrink: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0f1116;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  width: 100%;
}

.gallery-item--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

@media (hover: hover) {
  .gallery-item:hover img {
    transform: scale(1.04);
  }
}

.gallery-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.gallery-item__label {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  right: 0.45rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 17, 22, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: fit-content;
  max-width: calc(100% - 0.9rem);
}

/* ---------- Specs ---------- */

.specs-grid {
  display: grid;
  gap: 0.65rem;
}

.spec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.3rem;
}

.spec__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--accent);
}

.spec__value {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.spec .note {
  font-size: 0.84rem;
}

/* ---------- Maps / plan ---------- */

.media-pair {
  display: grid;
  gap: 0.75rem;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: auto;
}

.media-frame figcaption {
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  border-top: 1px solid var(--line);
  line-height: 1.4;
}

/* ---------- Video ---------- */

.video-root {
  width: 100%;
}

.video-player {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: #0f1116;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-player video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  background: #0f1116;
}

.video-placeholder {
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(21, 24, 30, 0.88), rgba(31, 36, 48, 0.75)),
    url("../assets/images/exterior-yard.jpg") center/cover;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-placeholder__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 auto 0.85rem;
  font-size: 1.4rem;
}

.video-placeholder h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.video-placeholder p {
  margin: 0;
  color: #d0d5de;
  max-width: 40ch;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ---------- Contact / form ---------- */

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-card,
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.contact-links {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.contact-link {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  min-height: 64px;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.contact-link__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}

.contact-link__label {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-link__value {
  display: block;
  font-weight: 800;
  font-size: 0.98rem;
  word-break: break-word;
}

.note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.form {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 0.95rem;
  min-height: 48px;
  font-size: 16px; /* prevent iOS zoom */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field--error input,
.field--error textarea,
.field--error select {
  border-color: var(--accent);
}

.field__error {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 1.1em;
}

.form__hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.form-success {
  display: none;
  text-align: center;
  padding: 1.25rem 0.35rem;
}

.form-success.is-visible {
  display: block;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e8f7ee;
  color: #1f7a45;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
}

.form.is-hidden {
  display: none;
}

/* ---------- Sticky mobile CTA ---------- */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem calc(0.55rem + var(--safe-bottom));
  padding-right: calc(0.65rem + 4.5rem); /* room for TG fab */
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(21, 24, 30, 0.1);
}

.mobile-cta .btn {
  min-height: 46px;
  padding: 0.55rem 0.4rem;
  font-size: 0.86rem;
  border-radius: 11px;
}

.mobile-cta .btn--outline {
  background: #fff;
}

/* ---------- Floating Telegram ---------- */

.fab-telegram {
  position: fixed;
  right: max(1rem, var(--safe-right));
  bottom: calc(1rem + var(--safe-bottom) + var(--mobile-cta-h));
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2aabee;
  color: #fff;
  box-shadow:
    0 10px 28px rgba(42, 171, 238, 0.45),
    0 2px 8px rgba(15, 17, 22, 0.2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.fab-telegram:hover,
.fab-telegram:focus-visible {
  transform: translateY(-2px) scale(1.04);
  background: #229ed9;
  outline: none;
  box-shadow:
    0 14px 34px rgba(42, 171, 238, 0.55),
    0 4px 12px rgba(15, 17, 22, 0.22);
}

.fab-telegram:active {
  transform: scale(0.97);
}

.fab-telegram::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(42, 171, 238, 0.45);
  animation: fab-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes fab-pulse {
  0% { transform: scale(0.92); opacity: 0.85; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: #c8ced8;
  padding: 2.5rem 0 calc(1.25rem + var(--safe-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__grid {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.site-footer__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #9aa3b2;
  max-width: 32ch;
}

.site-footer__heading {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer__links {
  display: grid;
  gap: 0.5rem;
}

.site-footer__links a {
  color: #b4bcc9;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s var(--ease);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #fff;
  outline: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1.1rem;
  font-size: 0.84rem;
  color: #8b93a3;
}

.site-footer__tag {
  font-weight: 700;
  color: #aeb6c4;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 12, 16, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    calc(0.75rem + var(--safe-top))
    0.65rem
    calc(0.75rem + var(--safe-bottom));
  touch-action: none;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__stage {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 9rem - var(--safe-top) - var(--safe-bottom));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__close,
.lightbox__nav {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  min-width: 44px;
  min-height: 44px;
}

.lightbox__close {
  position: absolute;
  top: calc(0.65rem + var(--safe-top));
  right: 0.65rem;
  z-index: 2;
  font-size: 1.1rem;
}

.lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.75rem;
  flex-shrink: 0;
}

.lightbox__nav {
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  line-height: 1;
}

.lightbox__caption {
  color: #e8ebf0;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  max-width: min(70vw, 420px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* desktop lightbox nav on sides */
.lightbox__nav--side {
  display: none;
}

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* phones ≥ 380 */
@media (min-width: 380px) {
  .stat__value {
    font-size: 1.22rem;
  }

  .hero__badge {
    font-size: 0.8rem;
  }
}

/* large phones / small tablets */
@media (min-width: 480px) {
  .container {
    width: min(100% - 1.75rem, var(--container));
  }

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

  .stats__grid {
    grid-auto-columns: minmax(140px, 28vw);
  }

  .gallery-item__label {
    font-size: 0.74rem;
    left: 0.6rem;
    bottom: 0.6rem;
  }
}

/* tablets */
@media (min-width: 640px) {
  :root {
    --header-h: 68px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section__lead {
    font-size: 1.02rem;
  }

  .header-cta {
    display: inline-flex;
  }

  .stats {
    margin-top: -2rem;
  }

  .stats__scroll {
    overflow: visible;
    scroll-snap-type: none;
  }

  .stats__grid {
    display: grid;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    min-width: 0;
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .stats__hint {
    display: none;
  }

  .gallery-grid {
    gap: 0.75rem;
  }

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

  .media-pair {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: min(82dvh, 700px);
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(15, 17, 22, 0.18) 0%, rgba(15, 17, 22, 0.42) 48%, rgba(15, 17, 22, 0.82) 100%),
      linear-gradient(90deg, rgba(15, 17, 22, 0.4) 0%, rgba(15, 17, 22, 0.12) 65%, transparent 100%);
  }

  .hero__content {
    padding: 4.25rem 0 2.75rem;
  }

  .hero__text {
    font-size: 1.05rem;
  }

  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }

  .contact-card,
  .form-card {
    padding: 1.35rem;
  }

  /* desktop-style lightbox side nav on tablet+ */
  .lightbox__nav--side {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
  }

  .lightbox__nav--side.lightbox__nav--prev { left: 0.75rem; }
  .lightbox__nav--side.lightbox__nav--next { right: 0.75rem; }

  .lightbox__toolbar .lightbox__nav {
    display: none;
  }
}

/* desktop */
@media (min-width: 900px) {
  :root {
    --header-h: 72px;
    --mobile-cta-h: 0px;
  }

  body {
    padding-bottom: 0;
  }

  .mobile-cta {
    display: none;
  }

  .mobile-nav,
  .mobile-nav-backdrop {
    display: none !important;
  }

  .nav {
    display: flex;
  }

  .burger {
    display: none;
  }

  .container {
    width: min(100% - 2rem, var(--container));
  }

  .section {
    padding: 4.5rem 0;
  }

  .section__eyebrow {
    font-size: 0.78rem;
  }

  .section__lead {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.75rem;
    align-items: center;
  }

  .split--reverse > :first-child {
    order: 2;
  }

  .split--reverse > :last-child {
    order: 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .gallery-item {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item__label {
    left: 0.8rem;
    bottom: 0.8rem;
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .stats {
    margin-top: -2.25rem;
  }

  .stats__grid {
    grid-template-columns: repeat(7, 1fr);
    padding: 0.9rem;
  }

  .stat {
    text-align: center;
    padding: 1rem 0.7rem;
  }

  .stat__value {
    font-size: 1.25rem;
  }

  .stat__label {
    font-size: 0.8rem;
  }

  .hero {
    min-height: min(88vh, 760px);
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(15, 17, 22, 0.2) 0%, rgba(15, 17, 22, 0.45) 55%, rgba(15, 17, 22, 0.85) 100%),
      linear-gradient(90deg, rgba(15, 17, 22, 0.55) 0%, rgba(15, 17, 22, 0.18) 55%, transparent 100%);
  }

  .hero__content {
    padding: 5.5rem 0 3.5rem;
  }

  .fab-telegram {
    right: max(1.35rem, var(--safe-right));
    bottom: max(1.35rem, var(--safe-bottom));
    width: 62px;
    height: 62px;
  }

  .hero__actions {
    display: flex;
    width: auto;
  }

  .hero__actions .btn {
    width: auto;
  }

  .hero__badge {
    font-size: 0.82rem;
  }

  .chip {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
  }

  .feature-card {
    padding: 1.15rem 1.2rem;
  }

  .site-footer {
    padding: 3rem 0 1.5rem;
  }

  .logo__title {
    font-size: 1rem;
  }

  .logo__sub {
    font-size: 0.72rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox__img {
    max-height: min(88vh, 100%);
    max-width: min(1200px, 100%);
  }

  .lightbox__caption {
    font-size: 0.9rem;
  }
}

@media (min-width: 1100px) {
  .hero__content {
    padding: 6rem 0 4rem;
  }

  .nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
  }
}

/* very small phones */
@media (max-width: 359px) {
  .logo__sub {
    display: none;
  }

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

  .gallery-item--wide {
    aspect-ratio: 16 / 10;
  }

  .mobile-cta {
    padding-right: calc(0.55rem + 4.25rem);
  }
}

/* enable sticky CTA height only on mobile layouts */
@media (max-width: 899px) {
  :root {
    --mobile-cta-h: 68px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
