/* ============================================================
   PILLARS.KG — styles
   Modern minimalist, mobile-first. Brand blue #0046ff.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Deep navy accent gradient */
  --grad: linear-gradient(90deg, #1a2f6b, #0a1330);
  --grad-135: linear-gradient(135deg, #1a2f6b, #0a1330);
  /* Deep navy gradient — filled buttons, so white label stays readable */
  --grad-btn: linear-gradient(135deg, #1a2f6b 0%, #0a1330 100%);
  /* Location-pin marker, used as a mask so it inherits the accent gradient */
  --pin-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E");
  --accent-cyan: #1a2f6b;
  --accent-blue: #0a1330;
  --accent: #1a2f6b;
  --blue: #12277f; /* solid navy accent (fallback) */
  --blue-600: #0a1330; /* hover */
  --blue-050: rgba(26, 47, 107, 0.5); /* navy tint (hover) */
  --ink: #f2f2f2; /* primary text */
  --ink-2: #a5a5a5; /* secondary text */
  --muted: #8a8a8a; /* muted text */
  --line: rgba(255, 255, 255, 0.1); /* borders / dividers */
  --bg: #0a0a0a; /* page background */
  --bg-soft: #0d0f14; /* alternating sections */
  --surface: #141820; /* cards / panels */
  --surface-2: #1a1f29; /* inputs / elevated */
  --white: #f2f2f2;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --shadow-sm:
    0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-blue: 0 10px 34px rgba(0, 0, 0, 0.5);
  --shadow-accent:
    0 16px 40px rgba(0, 0, 0, 0.55), 0 6px 20px rgba(0, 0, 0, 0.4);

  --container: 1200px;
  --gutter: clamp(18px, 5vw, 40px);
  --header-h: 84px;

  /* Body text — Inter (clean, highly legible, full Cyrillic) */
  --font:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  /* Display / headings — Montserrat (geometric, high-impact) */
  --font-head:
    "Montserrat", "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  /* faint diagonal texture on the black — no colour */
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.014) 0 1px,
    transparent 1px 24px
  );
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
.hero__title,
.section__title,
.stat__num,
.service__num {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: #12277f;
  color: #f2f2f2;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--grad);
  --btn-fg: #f2f2f2;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  transition:
    transform 0.2s var(--ease),
    filter 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    color 0.2s var(--ease);
  white-space: nowrap;
}
/* Primary — deep blue gradient fill (white label stays legible) */
.btn--primary {
  background: var(--grad-btn);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  filter: brightness(1.12);
  transform: scale(1.02);
}
/* Secondary / social — same deep navy fill as primary, white label */
.btn--ghost,
.btn--wa,
.btn--tg,
.btn--call {
  --btn-bg: var(--grad-btn);
  --btn-fg: #ffffff;
  background: var(--grad-btn);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-blue);
}
.btn--ghost:hover,
.btn--wa:hover,
.btn--tg:hover,
.btn--call:hover {
  filter: brightness(1.12);
  transform: scale(1.02);
}
.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
}
.btn--lg {
  padding: 15px 30px;
  font-size: 16px;
}
.btn--block {
  width: 100%;
}
/* ---------- Submit button: sending / sent states ---------- */
.btn:disabled {
  cursor: default;
}
.btn.is-loading {
  filter: none;
  transform: none;
  opacity: 0.85;
}
.btn.is-loading:hover {
  filter: none;
  transform: none;
}
.btn__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Sent — success green, non-interactive final state */
.btn.is-sent,
.btn.is-sent:hover {
  background: linear-gradient(135deg, #1f9d55, #157a41);
  box-shadow: 0 8px 24px rgba(21, 122, 65, 0.28);
  filter: none;
  transform: none;
  cursor: default;
}
.btn__check {
  animation: btn-pop 0.3s var(--ease) both;
}
@keyframes btn-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.logo img {
  height: 34px;
  width: auto;
}
.site-header .logo img {
  height: 38px;
  max-width: 100%;
}
/* tablets: trim a little so the wordmark never crowds the burger row */
@media (max-width: 1200px) {
  .site-header .logo img {
    height: 32px;
  }
}
@media (max-width: 620px) {
  .site-header .logo img {
    height: 28px;
  }
}
.nav {
  display: flex;
  gap: 6px;
  margin-inline: auto;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  transition:
    background 0.2s,
    color 0.2s;
}
.nav__link:hover {
  background: rgba(26, 47, 107, 0.5);
  color: #ffffff;
}
/* drawer-only content — hidden on desktop */
.nav__drawer-actions {
  display: none;
}
/* "Menu" label shown next to burger only while the drawer is open */
/* drawer title (shown only inside the mobile panel) */
.nav__title {
  display: none;
}
/* off-canvas backdrop */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
  z-index: 94;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
body.nav-open,
body.modal-open {
  overflow: hidden;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  color: #eaf0ff;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(79, 124, 255, 0.2),
    rgba(79, 124, 255, 0.08)
  );
  border: 1px solid rgba(79, 124, 255, 0.5);
  box-shadow: 0 0 0 rgba(79, 124, 255, 0);
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.phone-link svg {
  color: #7fa0ff;
  transition: color 0.2s;
}
.phone-link:hover {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(79, 124, 255, 0.32),
    rgba(79, 124, 255, 0.14)
  );
  border-color: rgba(79, 124, 255, 0.85);
  box-shadow: 0 8px 22px rgba(79, 124, 255, 0.3);
}
.phone-link:hover svg {
  color: #ffffff;
}

/* ---------- Language switcher ---------- */
.lang {
  position: relative;
}
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.lang__toggle:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink);
}
.lang__globe {
  color: var(--ink-2);
}
.lang__toggle:hover .lang__globe {
  color: var(--ink);
}
.lang__caret {
  transition: transform 0.2s var(--ease);
}
.lang[aria-open="true"] .lang__caret {
  transform: rotate(180deg);
}
/* Language modal (centered dialog, two-column list) */
.lang__modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lang__modal[hidden] {
  display: none;
}
.lang__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade 0.2s var(--ease);
}
.lang__dialog {
  position: relative;
  width: min(92vw, 460px);
  max-height: 86vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  animation: pop 0.2s var(--ease);
}
.lang__dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lang__dialog-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.lang__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  transition:
    background 0.15s,
    color 0.15s;
}
.lang__close:hover {
  background: rgba(26, 47, 107, 0.55);
  color: #ffffff;
}
.lang__menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-2);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.lang__menu a:hover {
  background: rgba(26, 47, 107, 0.55);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.lang__menu li[aria-selected="true"] a {
  color: #ffffff;
  font-weight: 600;
  background: rgba(26, 47, 107, 0.55);
  border-color: rgba(255, 255, 255, 0.22);
}
.lang__code {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.lang__menu a:hover .lang__code {
  color: #ffffff;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Burger ---------- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #f2f2f2;
  isolation: isolate;
  padding-top: clamp(24px, 4vw, 44px);
  padding-bottom: clamp(28px, 5vw, 48px);
  overflow: hidden;
}
.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(
      180deg,
      rgba(8, 8, 8, 0.6) 0%,
      rgba(8, 8, 8, 0.72) 55%,
      rgba(10, 10, 10, 0.96) 100%
    ),
    radial-gradient(70% 55% at 10% 16%, rgba(45, 225, 232, 0.16), transparent 60%),
    radial-gradient(60% 50% at 92% 88%, rgba(41, 98, 255, 0.14), transparent 60%);
}
.hero__inner {
  max-width: var(--container);
  padding-top: clamp(8px, 2vw, 20px);
  padding-bottom: clamp(40px, 7vw, 70px);
}
.hero__eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b0b0b0;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}
.hero__title {
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 22px;
  overflow-wrap: break-word;
  max-width: 900px;
}
.hero__title .accent {
  color: #f2f2f2;
}
.hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #d8d3c8;
  max-width: 620px;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(24px, 5vw, 40px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 30px);
  backdrop-filter: blur(8px);
}
.stat {
  text-align: center;
  position: relative;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.stat__num {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #c2beb4;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(56px, 9vw, 110px);
}
.section--soft {
  background: var(--bg-soft);
}
.section__head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
}
.section__sub {
  margin-top: 16px;
  font-size: 1.05rem;
}
.eyebrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.eyebrow--light {
  color: #b0b0b0;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-2);
}
.muted {
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 20px;
}
.link-arrow span {
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover span {
  transform: translateX(5px);
}

/* Format / About */
.format__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.format__text .section__title {
  line-height: 1.25;
  margin-bottom: 18px;
}
.format__text .lead {
  line-height: 1.65;
  margin-bottom: 18px;
}
.format__text .muted {
  line-height: 1.65;
}
.format__media {
  position: relative;
}
.format__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.format__media::before {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 55%;
  height: 55%;
  z-index: -1;
  background: radial-gradient(
    circle at 70% 70%,
    rgba(255, 255, 255, 0.22),
    transparent 70%
  );
  border-radius: var(--radius-lg);
}

/* Cards (advantages) */
.cards-heading {
  max-width: 820px;
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* two-column variant (e.g. Pillars vs LED comparison) */
.cards--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin-inline: auto;
}
/* rotation math — calm, on-brand callout */
.rotation-formula {
  margin: clamp(20px, 3vw, 30px) auto 0;
  max-width: 780px;
  text-align: center;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-size: clamp(0.96rem, 1.6vw, 1.08rem);
  line-height: 1.7;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
/* gradient border shown on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-btn);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
}
.card:hover::before {
  opacity: 1;
}
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-btn);
  color: #ffffff;
  margin-bottom: 20px;
}
.card__icon svg {
  width: 26px;
  height: 26px;
}
.card__title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.card__text {
  font-size: 0.96rem;
  color: var(--muted);
}

/* ===================== Pillars vs LED comparison table ===================== */
.cmp-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cmp-wrap {
  max-width: 920px;
  margin-inline: auto;
  overflow-x: auto;
}
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cmp-table th,
.cmp-table td {
  padding: 20px 20px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  transition: background-color 0.2s var(--ease);
}
/* no separator after the last column */
.cmp-table th:last-child,
.cmp-table td:last-child {
  border-right: 0;
}
/* the highlighted column already has its own blue frame — avoid a doubled line */
.cmp-table .is-primary {
  border-right-color: transparent;
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td {
  border-bottom: 0;
}
.cmp-table thead th {
  background: var(--surface-2);
  vertical-align: bottom;
  padding-top: 26px;
  padding-bottom: 22px;
}
/* zebra striping for readability */
.cmp-table tbody tr:nth-child(even) th,
.cmp-table tbody tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.022);
}
/* row hover */
.cmp-table tbody tr:hover th,
.cmp-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.05);
}
/* highlighted column = Back Light (recommended) */
.cmp-table .is-primary {
  background-image: linear-gradient(
    180deg,
    rgba(26, 47, 107, 0.34),
    rgba(26, 47, 107, 0.12)
  );
  box-shadow:
    inset 1px 0 0 rgba(99, 132, 255, 0.3),
    inset -1px 0 0 rgba(99, 132, 255, 0.3);
}
.cmp-table thead th.is-primary {
  box-shadow:
    inset 1px 0 0 rgba(99, 132, 255, 0.3),
    inset -1px 0 0 rgba(99, 132, 255, 0.3),
    inset 0 2px 0 0 rgba(99, 132, 255, 0.55);
}
.cmp-table tbody tr:last-child td.is-primary {
  box-shadow:
    inset 1px 0 0 rgba(99, 132, 255, 0.3),
    inset -1px 0 0 rgba(99, 132, 255, 0.3),
    inset 0 -2px 0 0 rgba(99, 132, 255, 0.3);
}
/* left column = criterion label */
.cmp-table__crit {
  text-align: left;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  width: 32%;
}
/* header cell of the criterion column: centred to match the other columns */
.cmp-table thead th.cmp-table__crit {
  text-align: center;
}
.cmp-table tbody .cmp-table__crit {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}
/* column header: blue square icon + format name + badge */
.cmp-col {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cmp-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: var(--grad-btn);
  border: 1px solid rgba(99, 132, 255, 0.5);
  box-shadow: 0 4px 16px rgba(26, 47, 107, 0.5);
  white-space: nowrap;
}
.cmp-col__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad-btn);
  color: #ffffff;
}
/* de-emphasised icon for the non-recommended column */
.cmp-col__icon--muted {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.cmp-col__icon svg {
  width: 22px;
  height: 22px;
}
.cmp-col__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
/* status cell */
.cmp-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.cmp-note {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 22ch;
}
.ic {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.ic svg {
  width: 21px;
  height: 21px;
}
.ic--ok {
  color: #3fb950;
  background: rgba(63, 185, 80, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(63, 185, 80, 0.35),
    0 0 16px rgba(63, 185, 80, 0.4);
}
.ic--warn {
  color: #e3b341;
  background: rgba(227, 179, 65, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(227, 179, 65, 0.35),
    0 0 14px rgba(227, 179, 65, 0.32);
}
.ic--no {
  color: #e5534b;
  background: rgba(229, 83, 75, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(229, 83, 75, 0.35),
    0 0 14px rgba(229, 83, 75, 0.3);
}
/* mobile: stack the table into per-criterion cards */
@media (max-width: 640px) {
  .cmp-wrap {
    overflow-x: visible;
  }
  .cmp-table,
  .cmp-table thead,
  .cmp-table tbody,
  .cmp-table tr,
  .cmp-table th,
  .cmp-table td {
    display: block;
    width: 100%;
  }
  .cmp-table {
    background: transparent;
    border: 0;
    overflow: visible;
  }
  .cmp-table thead {
    display: none;
  }
  .cmp-table tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    padding: 6px 4px;
  }
  /* keep the criterion label as the card heading, above the values */
  .cmp-table tbody tr th.cmp-table__crit {
    order: -1;
  }
  .cmp-table th,
  .cmp-table td {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    text-align: left;
    padding: 12px 16px;
  }
  .cmp-table tr th.cmp-table__crit {
    width: 100%;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    text-align: center;
  }
  .cmp-table tbody tr td:last-child {
    border-bottom: 0;
  }
  /* equal side columns keep every icon on the same centre line */
  .cmp-table td {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .cmp-table td::before {
    content: attr(data-col);
    color: var(--ink-2);
    font-size: 0.92rem;
    font-weight: 500;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .cmp-cell {
    display: contents;
  }
  .cmp-note {
    max-width: none;
    text-align: right;
    overflow-wrap: anywhere;
  }
  .ic {
    flex: none;
  }
  /* keep the recommended row highlighted in the stacked layout */
  .cmp-table td.is-primary {
    background-image: linear-gradient(
      90deg,
      rgba(26, 47, 107, 0.3),
      rgba(26, 47, 107, 0.06)
    );
    box-shadow: inset 3px 0 0 0 rgba(99, 132, 255, 0.55);
    border-radius: 10px;
  }
}

/* ===================== Commercial offer / pricing table ===================== */
.price-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.price-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.price-table th,
.price-table td {
  padding: 18px clamp(12px, 1.6vw, 20px);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s var(--ease);
}
.price-table thead th {
  background: var(--surface-2);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.35;
}
.price-table tbody td {
  color: var(--ink-2);
  font-size: 0.98rem;
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}
/* zebra striping for readability */
.price-table tbody tr:nth-child(even) th,
.price-table tbody tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.022);
}
.price-table tbody tr:hover th,
.price-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.05);
}
/* row index */
.price-table__num {
  width: 64px;
}
.price-num {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding-inline: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
}
.price-sides {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  white-space: nowrap;
}
.price-money {
  white-space: nowrap;
}
/* last column = total for the whole term, softly highlighted */
.price-table .is-total {
  background-image: linear-gradient(
    180deg,
    rgba(41, 98, 255, 0.4),
    rgba(26, 47, 107, 0.18)
  );
  box-shadow: inset 1px 0 0 rgba(99, 132, 255, 0.45);
}
.price-table thead th.price-table__total {
  color: var(--ink);
  box-shadow: inset 1px 0 0 rgba(99, 132, 255, 0.3),
    inset 0 2px 0 0 rgba(99, 132, 255, 0.55);
}
.price-total {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.02rem;
}

/* recommended tariff — framed row with a small flag */
.price-table {
  --rec-line: rgba(99, 132, 255, 0.75);
}
.price-table tbody tr.is-recommended th,
.price-table tbody tr.is-recommended td {
  background-color: rgba(41, 98, 255, 0.12);
  box-shadow:
    inset 0 2px 0 0 var(--rec-line),
    inset 0 -2px 0 0 var(--rec-line);
}
.price-table tbody tr.is-recommended > *:first-child {
  box-shadow:
    inset 0 2px 0 0 var(--rec-line),
    inset 0 -2px 0 0 var(--rec-line),
    inset 2px 0 0 0 var(--rec-line);
}
.price-table tbody tr.is-recommended > *:last-child {
  box-shadow:
    inset 0 2px 0 0 var(--rec-line),
    inset 0 -2px 0 0 var(--rec-line),
    inset -2px 0 0 0 var(--rec-line);
}
.price-table tbody tr.is-recommended:hover th,
.price-table tbody tr.is-recommended:hover td {
  background-color: rgba(41, 98, 255, 0.18);
}
.price-flag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2962ff, #12277f);
  border: 1px solid rgba(99, 132, 255, 0.55);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* the offer section is the loudest block on the page: accent-lit band,
   brighter eyebrow and a pill carrying the deadline */
.section--offer {
  position: relative;
  background:
    radial-gradient(72% 120% at 88% 0%, rgba(41, 98, 255, 0.24), transparent 58%),
    radial-gradient(60% 100% at 0% 100%, rgba(45, 225, 232, 0.1), transparent 55%),
    linear-gradient(160deg, #0d1224 0%, #0b0e1a 58%, #090a0f 100%);
}
.section--offer::before,
.section--offer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 132, 255, 0.55),
    transparent
  );
}
.section--offer::before {
  top: 0;
}
.section--offer::after {
  bottom: 0;
}
.section--offer .container {
  position: relative;
}
.section--offer .eyebrow {
  color: #8fa9ff;
}
/* title picks up the logo gradient (aqua -> brand blue) */
.section--offer .section__title {
  color: #7fd8ff;
  background: linear-gradient(96deg, #00ffff 0%, #6fa8ff 52%, #2f6bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
  padding-bottom: 0.06em;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .section--offer .section__title {
    -webkit-text-fill-color: currentColor;
  }
}
.offer-deadline {
  margin-top: 18px;
}
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(41, 98, 255, 0.3),
    rgba(26, 47, 107, 0.35)
  );
  border: 1px solid rgba(99, 132, 255, 0.5);
  box-shadow: 0 10px 30px rgba(26, 47, 107, 0.55);
  color: #e7edff;
  font-size: 0.95rem;
  line-height: 1.4;
}
.offer-badge strong {
  color: #ffffff;
  font-weight: 700;
}
.offer-badge svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: #8fa9ff;
}

/* placement parameters panel */
.offer-params {
  margin-top: clamp(24px, 4vw, 38px);
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.offer-params__title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin-bottom: clamp(16px, 2.5vw, 24px);
}
.offer-params__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px clamp(24px, 4vw, 48px);
}
.offer-params__list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.65;
}
.offer-params__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-btn);
  box-shadow: 0 0 0 4px rgba(26, 47, 107, 0.35);
}
.offer-params__list strong {
  color: var(--ink);
  font-weight: 600;
}

/* closing call to action */
.offer-cta {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.offer-cta__title {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: #ffffff;
}
/* brighter button for the accent-lit band */
.btn--accent {
  background: linear-gradient(135deg, #2962ff 0%, #0046ff 100%);
  color: #ffffff;
  border: 1px solid rgba(120, 160, 255, 0.55);
  box-shadow: 0 14px 38px rgba(0, 70, 255, 0.38);
}
.btn--accent:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  box-shadow: 0 18px 44px rgba(0, 70, 255, 0.48);
}
.btn--accent span {
  transition: transform 0.2s var(--ease);
}
.btn--accent:hover span {
  transform: translateX(4px);
}

/* tablet + mobile: the 6-column table would need horizontal scrolling, so it
   becomes one card per tariff, laid out as a responsive pricing grid */
@media (max-width: 1023px) {
  .price-wrap {
    overflow-x: visible;
  }
  .price-table,
  .price-table thead,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
    width: 100%;
  }
  .price-table {
    min-width: 0;
    background: transparent;
    border: 0;
    overflow: visible;
  }
  .price-table thead {
    display: none;
  }
  .price-table tbody tr,
  .price-table tbody tr:nth-child(even) th,
  .price-table tbody tr:nth-child(even) td,
  .price-table tbody tr:hover th,
  .price-table tbody tr:hover td {
    background-color: transparent;
  }
  .price-table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    align-items: start;
  }
  .price-table tbody tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 6px 4px;
  }
  .price-table th,
  .price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }
  .price-table tbody tr td:last-child {
    border-bottom: 0;
  }
  /* row index + sides become the card heading */
  .price-table tbody tr th.price-table__num {
    width: 100%;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .price-table td.price-cell--sides {
    border-bottom: 1px solid var(--line);
    padding-top: 6px;
  }
  .price-table td.price-cell--sides {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .price-cell--sides .price-sides {
    font-size: 1.15rem;
  }
  .price-cell--sides .price-flag {
    margin-top: 0;
  }
  /* column header becomes the label above its value */
  .price-table td:not(.price-cell--sides) {
    display: block;
    color: var(--ink);
  }
  .price-table td:not(.price-cell--sides)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .price-table .is-total {
    background-image: linear-gradient(
      90deg,
      rgba(26, 47, 107, 0.3),
      rgba(26, 47, 107, 0.06)
    );
    box-shadow: inset 3px 0 0 0 rgba(99, 132, 255, 0.55);
    border-radius: 10px;
  }
  /* the recommended tariff is framed as a whole card */
  .price-table tbody tr.is-recommended {
    border-color: rgba(99, 132, 255, 0.6);
    box-shadow:
      0 0 0 1px rgba(99, 132, 255, 0.35),
      0 18px 44px rgba(26, 47, 107, 0.55);
  }
  .price-table tbody tr.is-recommended th,
  .price-table tbody tr.is-recommended td:not(.is-total),
  .price-table tbody tr.is-recommended > *:first-child {
    background-color: transparent;
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .offer-params__list {
    grid-template-columns: 1fr;
  }
}

/* Map */
.map {
  height: clamp(320px, 45vw, 480px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: var(--bg-soft);
}
.map__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 45%),
    repeating-linear-gradient(
      0deg,
      transparent 0 39px,
      rgba(11, 13, 18, 0.04) 39px 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 39px,
      rgba(11, 13, 18, 0.04) 39px 40px
    );
}
.map__placeholder svg {
  color: #ffffff;
}
.map__placeholder p {
  max-width: 320px;
  font-size: 0.95rem;
}

/* Gallery — locations, three sides (A / B / C) each */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.place-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.place-group:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}
.place-group__name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  margin: 4px 4px 12px;
}
.place-group__sides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.side {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #12161d, #0d1016);
  border: 1px solid var(--line);
}
.side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.side:hover img {
  transform: scale(1.07);
}
.side__tag {
  position: absolute;
  top: 7px;
  left: 7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--grad-btn);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
/* side without a photo yet */
.side--empty img {
  opacity: 0.35;
}
.side--empty:hover img {
  transform: none;
}
.side--empty::after {
  content: "Скоро";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Partners */
.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.partner {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: clamp(20px, 3vw, 34px);
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* grid items default to min-width:auto — a wide logo's intrinsic size would
     then force the track (and the whole layout) past the viewport. Pin to 0. */
  min-width: 0;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.partner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.partner__link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
}
.partner img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* larger logo (visually smaller source art) */
.partner--lg img {
  max-height: 100px;
  max-width: 100%;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service__num {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f2f2f2, #6b7280);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.04em;
}
.service__title {
  font-size: 1.4rem;
  margin: 12px 0 12px;
}
.service__text {
  color: var(--muted);
  margin-bottom: 4px;
}

/* CTA / Contacts */
.cta {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(41, 98, 255, 0.16), transparent 55%),
    radial-gradient(70% 110% at 0% 100%, rgba(45, 225, 232, 0.1), transparent 55%),
    linear-gradient(155deg, #0c0d10 0%, #0d0f14 55%, #090a0d 130%);
  color: #f2f2f2;
}
.cta__grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.cta .section__title {
  color: #f2f2f2;
  line-height: 1.25;
  margin-bottom: 16px;
}
.cta .lead {
  color: #cbc7bd;
  line-height: 1.65;
  margin-bottom: 28px;
}
.contact-list {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}
.contact-list a,
.contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: #ece7dd;
}
.contact-list a:hover {
  color: #f2f2f2;
}
.contact-list svg {
  color: #f2f2f2;
  flex: none;
}
.cta__socials {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}
.cta__socials .btn {
  flex: 1 1 0;
  min-width: 0;
}

/* Floating WhatsApp button — fixed bottom-right, on every page */
.wa-float {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: #25d366;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.42);
  transform: translateY(14px);
  opacity: 0;
  animation: wa-float-in 0.5s var(--ease, ease) 0.6s forwards;
  transition:
    transform 0.25s var(--ease, ease),
    box-shadow 0.25s var(--ease, ease);
}
.wa-float:hover {
  transform: translateY(0) scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}
.wa-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.5);
  outline-offset: 3px;
}
.wa-float svg {
  width: 30px;
  height: 30px;
}
@keyframes wa-float-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .wa-float {
    width: 52px;
    height: 52px;
  }
  .wa-float svg {
    width: 27px;
    height: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .wa-float:hover {
    transform: scale(1.05);
  }
}

.cta__form {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}
/* Floating-label field — reusable for input / textarea / select.
   Markup: <div class="field"><input placeholder=" "><label>…</label></div>
   (control BEFORE label so the `input ~ label` sibling selector works) */
.field {
  position: relative;
  margin-bottom: 14px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 24px 16px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
  background: var(--bg-soft);
  appearance: none;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.field input {
  height: 58px;
}
.field textarea {
  resize: vertical;
  min-height: 116px;
}
.field label {
  position: absolute;
  left: 16px;
  top: 20px;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transform: translateY(0);
  transition:
    transform 0.2s var(--ease),
    font-size 0.2s var(--ease),
    color 0.2s var(--ease);
}
/* raised state — on focus or when the field has content */
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field select:valid ~ label {
  transform: translateY(-11px);
  font-size: 11.5px;
  color: var(--ink-2);
}
/* placeholder hint (e.g. @username) shows only on focus, so it never
   collides with the resting floating label */
.field input:not(:focus)::placeholder,
.field textarea:not(:focus)::placeholder {
  color: transparent;
}
.field input:focus::placeholder,
.field textarea:focus::placeholder {
  color: var(--muted);
}
/* focus — border lightens */
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.42);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.cta__note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}
.cta__form.is-sent {
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: #08080a;
  color: #cbc7bd;
  padding-top: clamp(48px, 7vw, 72px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f2f2f2;
  margin-bottom: 16px;
}
.footer__brand .muted {
  color: #8d897f;
  margin-top: 16px;
  max-width: 260px;
}
.logo--footer img {
  height: 36px;
}
.footer__nav,
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav a,
.footer__contacts a,
.footer__contacts span {
  color: #b6b1a6;
  font-size: 15px;
  transition: color 0.2s;
}
.footer__nav a:hover,
.footer__contacts a:hover {
  color: #f2f2f2;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-2);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.socials a:hover {
  background: var(--grad-btn);
  color: #ffffff;
  border-color: transparent;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)) 1;
  font-size: 14px;
}
.footer__bottom .muted {
  color: #8d897f;
}
.footer__bottom a.muted:hover {
  color: #f2f2f2;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .cta__grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* tablet only: fixed-height partner tiles (2-up) so they never grow into
   giant squares nor get too short to fit a logo — height is constant across
   the whole range, so every logo (incl. the taller KudaGo) stays centred */
@media (min-width: 621px) and (max-width: 1024px) {
  .partner {
    aspect-ratio: auto;
    height: 120px;
    padding: 20px;
  }
  .partner img {
    max-height: 56px;
  }
  .partner--lg img {
    max-height: 72px;
  }
}

/* Header / navigation collapse into the burger drawer.
   Two conditions: every viewport under 1200px, plus touch devices up to
   1440px — that covers iPad Pro 12.9" in landscape (1366px), which is wide
   enough for the inline nav but is still a tablet. */
@media (max-width: 1200px), (max-width: 1440px) and (pointer: coarse) {
  .header__actions {
    margin-left: auto;
    gap: 10px;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    width: min(78vw, 300px);
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    padding: 0 18px 20px;
    box-shadow: -24px 0 60px rgba(11, 13, 18, 0.22);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 95;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open {
    transform: none;
  }
  .nav__link {
    padding: 11px 10px;
    font-size: 15.5px;
    border-radius: 10px;
    border-bottom: 1px solid var(--line);
  }
  .nav__drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
  }
  .nav__drawer-actions .btn {
    padding: 12px 18px;
    font-size: 15px;
  }
  .phone-link--drawer {
    justify-content: center;
    padding: 12px;
    font-size: 15px;
  }
  .burger {
    display: flex;
    position: relative;
    z-index: 120;
  }
  .header__cta,
  .header__actions > .phone-link {
    display: none;
  }
  .nav__title {
    display: flex;
    align-items: center;
    height: var(--header-h);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    padding: 0 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }
  body.nav-open .lang {
    display: none;
  }
}

@media (max-width: 1024px) {
  .format__grid {
    grid-template-columns: 1fr;
  }
  .format__media {
    order: -1;
    max-width: 460px;
    margin-inline: auto;
  }
  .services {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .format__media img {
    max-height: 420px;
    width: auto;
    display: block;
    margin-inline: auto;
  }
  .partners {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .partner__link {
    justify-items: center;
    text-align: center;
  }
  .partner--lg img {
    max-height: 64px;
    margin-inline: auto;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stat {
    padding-block: 14px;
  }
  .stat:not(:last-child)::after {
    display: none;
  }
  .stat:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .hero__actions .btn {
    flex: 1;
  }
  .cta__grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  /* tighter vertical rhythm on phones */
  .section {
    padding-block: clamp(42px, 11vw, 60px);
  }
  .section__head {
    margin-bottom: 24px;
  }
  .section__title {
    font-size: clamp(1.6rem, 6.4vw, 2rem);
  }
  .section__sub {
    font-size: 1rem;
    margin-top: 12px;
  }
  .lead {
    font-size: 1.02rem;
  }

  /* hero */
  .hero {
    padding-top: 20px;
  }
  .hero__inner {
    padding-top: 16px;
    padding-bottom: 26px;
  }
  .hero__eyebrow {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .hero__title {
    font-size: clamp(2rem, 8.4vw, 2.7rem);
    margin-bottom: 16px;
  }
  .hero__lead {
    font-size: 1.02rem;
    margin-bottom: 22px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero__actions .btn {
    width: 100%;
  }

  /* stats — more compact */
  .stats {
    margin-top: 18px;
    padding: 6px 16px;
  }
  .stat {
    padding-block: 12px;
  }
  .stat__num {
    font-size: 1.75rem;
  }
  .stat__label {
    font-size: 13px;
    margin-top: 4px;
  }

  /* advantage cards — compact */
  .card {
    padding: 20px 18px;
  }
  .card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }
  .card__icon svg {
    width: 22px;
    height: 22px;
  }
  .card__title {
    font-size: 1.08rem;
  }
  .card__text {
    font-size: 0.94rem;
  }

  /* services */
  .service {
    padding: 26px 22px;
  }
  .service__num {
    font-size: 2.4rem;
  }
  .service__title {
    font-size: 1.25rem;
  }

  /* contacts — phone / Telegram / WhatsApp share one row where they fit,
     and wrap gracefully on very narrow screens (≈320px) instead of clipping */
  .cta__socials {
    gap: 6px;
    flex-wrap: wrap;
  }
  .cta__socials .btn {
    flex: 1 1 auto;
    width: auto;
    padding: 11px 6px;
    font-size: 12.5px;
    gap: 5px;
    overflow: hidden;
  }
  .cta__socials .btn svg {
    flex: none;
    width: 18px;
    height: 18px;
  }
  .contact-list a,
  .contact-list span {
    font-size: 1rem;
  }
  .footer__grid {
    text-align: left;
  }
}


@media (max-width: 360px) {
  .site-header .logo img {
    height: 24px;
  }
  .btn--lg {
    padding: 14px 22px;
    font-size: 15px;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Lightbox gallery (progressively enhanced via main.js)
   ============================================================ */
.lb-clickable {
  cursor: zoom-in;
}
.lb-clickable:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 48px);
  background: rgba(6, 8, 12, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s var(--ease),
    visibility 0s linear 0.28s;
  touch-action: pan-y;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.28s var(--ease),
    visibility 0s;
}

.lightbox__stage {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  background: var(--surface);
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.lightbox__img.is-ready {
  opacity: 1;
  transform: none;
}

/* Controls */
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(20, 24, 32, 0.72);
  color: var(--ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
  z-index: 2;
}
.lightbox__btn:hover {
  background: var(--grad-btn);
  transform: scale(1.06);
}
.lightbox__btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.lightbox__btn svg {
  width: 22px;
  height: 22px;
}
.lightbox__close {
  top: clamp(12px, 4vw, 28px);
  right: clamp(12px, 4vw, 28px);
  position: fixed;
}
.lightbox__nav--prev {
  left: clamp(8px, 3vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  position: fixed;
}
.lightbox__nav--next {
  right: clamp(8px, 3vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  position: fixed;
}
.lightbox__nav--prev:hover,
.lightbox__nav--next:hover {
  transform: translateY(-50%) scale(1.06);
}
.lightbox[data-single="true"] .lightbox__nav {
  display: none;
}

.lightbox__counter {
  position: fixed;
  left: 50%;
  bottom: clamp(12px, 4vw, 26px);
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 24, 32, 0.72);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 2;
}
.lightbox[data-single="true"] .lightbox__counter {
  display: none;
}

body.lb-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .lightbox__btn {
    width: 40px;
    height: 40px;
  }
  .lightbox__img {
    max-height: 76vh;
  }
}
