:root {
  --bg: #050607;
  --bg-alt: #0d0f12;
  --card: #15181d;
  --card-soft: #1b1f25;
  --accent: #f5b15f;
  --accent-soft: rgba(245, 177, 95, 0.18);
  --text: #f4f5f7;
  --muted: #9ca3af;
  --border: #252932;
  --danger: #f97373;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 24px 80px rgba(0,0,0,0.55);
  --shadow-card: 0 16px 50px rgba(0,0,0,0.45);
  /* Header height fallback (JS уточнит реальное значение) */
  --header-h: 64px;
}

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

/* Prevent white flash: html background can appear during scroll unlock/animations */
html {
  background: radial-gradient(circle at top, #151820 0, #050607 50%, #020304 100%);
  overflow-y: scroll;
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", 
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #151820 0, #050607 50%, #020304 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Header is fixed - keep all pages from sliding under it */
  padding-top: var(--header-h);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Anchor jumps with fixed header */
:target{
  scroll-margin-top: calc(var(--header-h) + 16px);
}

figure { margin: 0; }


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

/* Ensure native [hidden] works even with custom display rules */
[hidden]{
  display: none !important;
}


.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fallback header height on mobile (JS уточнит реальное значение) */
@media (max-width: 720px){
  :root{ --header-h: 92px; }
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5,6,7,0.74);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled{
  background: rgba(5,6,7,0.52);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.40);
  border-bottom-color: rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 8px;
}

.header-cta{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
}

/* Make header button slightly more compact */
.site-header .btn{
  padding: 8px 14px;
  font-size: 13px;
}



.logo-mark {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}
/* Header navigation: compact */
.nav{
  display:flex;
  align-items:center;
  gap:0;
  font-size:13px;
}
.nav a{
  color:inherit;
  text-decoration:none;
  padding:0 12px;
  letter-spacing:0.06em;
  white-space:nowrap;
}
.nav a:hover{ text-decoration:underline; }

.hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Градиент‑виниетка поверх слайдера */
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.42) 60%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(1200px 520px at 18% 28%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 55%);
  opacity: 1;
  z-index: 1;
}

/* ------------------------------
   Hero slider
-------------------------------- */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Лёгкий «блик» поверх слайдов (активируется классом .is-sheened) */
.hero-slider::after {
  content: "";
  position: absolute;
  inset: -30% -20%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-140%) skewX(-18deg);
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.00) 36%,
    rgba(255, 255, 255, 0.14) 47%,
    rgba(255, 255, 255, 0.06) 56%,
    transparent 72%
  );
  mix-blend-mode: screen;
  filter: blur(0.3px);
}

.hero-slider.is-sheened::after {
  animation: hero-sheen 1900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-slider.is-sheened-reverse::after {
  animation: hero-sheen-reverse 1900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0;
  transform: scale(1.02) translate3d(0, 0, 0);
  filter: saturate(1.02) contrast(1.02);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition:
    opacity 1300ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 6800ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 1200ms ease;
  will-change: opacity, transform, clip-path, filter;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Слайд уходит мягко, но остаётся под маской следующего */
.hero-slide.is-exiting {
  opacity: 0;
  z-index: 0;
  /* Длиннее «хвост» ухода предыдущего кадра: сначала задержка,
     затем мягкий длинный fade под маской следующего */
  transition:
    opacity 2200ms cubic-bezier(0.16, 1, 0.3, 1) 420ms,
    transform 6800ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 1200ms ease;
}

/* Киношный заход следующего кадра: wipe (маска со скошенным краем) */
.hero-slide.is-revealing {
  opacity: 1;
  z-index: 2;
  /* Чуть медленнее и мягче - «кино‑люкс» */
  animation: hero-wipe-in 2150ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-slide.is-revealing.is-reverse {
  animation-name: hero-wipe-in-reverse;
}

/* Мягкий «дорогой» зум на активном слайде */
.hero-slide.is-active.is-zoom {
  transform: scale(1.08) translate3d(-0.6%, -0.4%, 0);
  filter: saturate(1.06) contrast(1.04);
}

.hero-dots {
  position: absolute;
  left: max(24px, calc((100vw - 1120px) / 2 + 24px));
  bottom: 22px;
  display: flex;
  gap: 10px;
  z-index: 2;
  pointer-events: auto;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-dot:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.hero-dot.is-active {
  border-color: rgba(255, 255, 255, 0.36);
  background: linear-gradient(90deg, rgba(245, 146, 60, 0.92), rgba(255, 255, 255, 0.18));
}

/* Стрелки навигации */
.hero-arrows {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2 + 24px));
  bottom: 16px;
  display: flex;
  gap: 10px;
  z-index: 2;
  pointer-events: auto;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 14, 20, 0.35);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(10, 14, 20, 0.48);
}

.hero-arrow:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-arrows {
    right: 16px;
    bottom: 12px;
  }
  .hero-arrow {
    width: 40px;
    height: 34px;
    border-radius: 12px;
  }
}

@keyframes hero-wipe-in {
  0% {
    clip-path: polygon(-12% 0, -3% 0, -3% 100%, -12% 100%);
    transform: scale(1.02) translate3d(0.7%, 0, 0);
    filter: saturate(1.06) contrast(1.05) brightness(1.02);
  }
  70% {
    clip-path: polygon(0 0, 112% 0, 96% 100%, 0 100%);
    filter: saturate(1.08) contrast(1.06) brightness(1.02);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: scale(1.02) translate3d(0, 0, 0);
    filter: saturate(1.04) contrast(1.03);
  }
}

@keyframes hero-wipe-in-reverse {
  0% {
    clip-path: polygon(112% 0, 103% 0, 103% 100%, 112% 100%);
    transform: scale(1.02) translate3d(-0.7%, 0, 0);
    filter: saturate(1.06) contrast(1.05) brightness(1.02);
  }
  70% {
    clip-path: polygon(-10% 0, 100% 0, 100% 100%, 2% 100%);
    filter: saturate(1.08) contrast(1.06) brightness(1.02);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: scale(1.02) translate3d(0, 0, 0);
    filter: saturate(1.04) contrast(1.03);
  }
}

@keyframes hero-sheen {
  0%   { opacity: 0;   transform: translateX(-140%) skewX(-18deg); }
  24%  { opacity: 0.16; }
  100% { opacity: 0;   transform: translateX(140%) skewX(-18deg); }
}

@keyframes hero-sheen-reverse {
  0%   { opacity: 0;   transform: translateX(140%) skewX(-18deg); }
  24%  { opacity: 0.16; }
  100% { opacity: 0;   transform: translateX(-140%) skewX(-18deg); }
}

@media (max-width: 900px) {
  .hero-dots {
    left: 18px;
    bottom: 16px;
  }
  .hero-dot { width: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 250ms ease; transform: none; }
  .hero-slide.is-active.is-zoom { transform: none; }
  .hero-slide.is-revealing { animation: none; clip-path: none; }
  .hero-slider::after { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-grid {
  /* Контент должен быть выше слоёв слайдера и затемняющей маски */
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(148,163,184,0.35);
}

.hero-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
}

.hero-title {
  font-size: 42px;
  line-height: 1.1;
  margin: 18px 0 12px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}

.hero-badge {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,0.9);
  background: radial-gradient(circle at top, rgba(148,163,184,0.25), rgba(15,23,42,0.9));
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  font-size: 12px;
  color: var(--muted);
}

.hero-media {
  position: relative;
}

.hero-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(circle at top left, #111827, #020617);
}

.hero-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-floating {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.45);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}

.hero-floating span {
  color: var(--accent);
  font-weight: 600;
}

/* Sections */

.section {
  padding: 18px 0 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.section-header--with-actions {
  align-items: flex-end;
}

.section-header__text {
  min-width: 0;
}

.section-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 22px;
}

.section-sub {
  font-size: 13px;
  color: var(--muted);
}

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

.card {
  background: radial-gradient(circle at top, var(--card-soft), #05070a);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card img {
  border-radius: 14px;
  border: 1px solid rgba(30,64,175,0.6);
}

/* Not container block */
.section-not-container {
  padding-top: 8px;
}

.not-container-card {
  padding: 18px 18px 16px;
}

.not-container-lead {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
}

.not-container-badges {
  margin: 12px 0 12px;
}

.not-container-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Превью в «Линейке модулей» - единый формат 16:9 */
.cards-grid .card > img,
.cards-grid .card > a.card-media > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-media {
  display: block;
  text-decoration: none;
}

.card-media:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 14px;
}

.card-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.card-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.75);
  border: 1px solid rgba(55,65,81,0.9);
}

.card-usp {
  font-size: 13px;
  color: #e5e7eb;
}

.card-note{
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(229,231,235,.78);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
  padding-bottom: 2px;
  /* держим кнопку на одной линии во всех карточках */
  margin-top: auto;
  font-size: 12px;
}

/* Подпись «Руководство» - всегда 2 строки, без троеточий */
.card-footer .card-guide{
  max-width: 52%;
  min-width: 0;
  min-height: 44px;
  padding: 2px 0;
  line-height: 1.3;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.card-footer .card-guide-label{
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  line-height: 1.1;
}

.card-footer .card-guide-name{
  font-size: 13px;
  color: rgba(255,255,255,0.86);
  line-height: 1.1;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(75,85,99,0.9);
  font-size: 12px;
  color: var(--muted);
}

.link-pill span {
  font-size: 14px;
}

.link-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  background: radial-gradient(circle at top, #111827, #020617);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 12px 12px 14px;
  font-size: 13px;
  color: var(--muted);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(248, 181, 89, 0.7);
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 6px;
}

.step-title {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

/* Guides */

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

.guide-card {
  background: radial-gradient(circle at top, #020617, #02040a);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-title {
  font-size: 15px;
}

.guide-meta {
  font-size: 12px;
  color: var(--muted);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(31,41,55,0.9);
  background: radial-gradient(circle at top, #020617, #000000);
  margin-top: 30px;
}

.footer-inner {
  padding: 18px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
}

/* Product page */

.product-page {
  padding: 30px 0 40px;
}

.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs span {
  color: var\(--text\);
}

/* Module navigation (module pages) */
.module-nav-bar{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 8px 0 14px;
}

.module-nav-label{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.module-nav-list{
  display:flex;
  gap:8px;
  flex-wrap: wrap;
}

.module-nav-pill{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.55);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  text-decoration:none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.module-nav-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(148,163,184,0.55);
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

.module-nav-pill.is-current,
.module-nav-pill[aria-current="page"]{
  background: rgba(255,77,0,0.14);
  border-color: rgba(255,77,0,0.45);
}

.module-nav-all{
  margin-left:auto;
  font-size: 12px;
  color: var(--muted);
  text-decoration:none;
  white-space: nowrap;
}

.module-nav-all:hover{
  color: var(--text);
}

@media (max-width: 760px){
  .module-nav-bar{
    align-items:flex-start;
    gap: 8px;
    margin: 10px 0 12px;
  }
  .module-nav-list{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .module-nav-pill{
    scroll-snap-align: center;
    white-space: nowrap;
  }
  .module-nav-all{
    display:none;
  }
  .module-nav-list::-webkit-scrollbar{ height: 0; }
}


.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: flex-start;
}

.product-media {
  background: radial-gradient(circle at top, #020617, #02040a);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.product-media-main {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(2,6,23,0.35);
}

@supports not (aspect-ratio: 16 / 9) {
  .product-media-main { height: 0; padding-top: 56.25%; }
  .product-media-main .gallery-stage { position: absolute; inset: 0; }
}

.gallery-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(0) scale(1.02);
  transition: opacity 900ms cubic-bezier(.2,.8,.2,1),
              transform 1550ms cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
}

.gallery-frame.is-active {
  opacity: 1;
}

.gallery-frame.is-enter-left  { opacity: 0; transform: translateX(-28px) scale(1.03); }
.gallery-frame.is-enter-right { opacity: 0; transform: translateX( 28px) scale(1.03); }
.gallery-frame.is-exit-left   { opacity: 0; transform: translateX(-40px) scale(1.03); }
.gallery-frame.is-exit-right  { opacity: 0; transform: translateX( 40px) scale(1.03); }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(2,6,23,0.55);
  color: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease, background 240ms ease;
}

.product-media-main:hover .gallery-nav {
  opacity: 1;
  pointer-events: auto;
}

.gallery-nav:hover {
  background: rgba(2,6,23,0.68);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

@media (hover: none) {
  .gallery-nav { opacity: 1; pointer-events: auto; }
}

.product-media-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-media-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(55,65,81,0.9);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.product-media-thumbs img:hover {
  transform: scale(1.03);
  filter: saturate(1.04);
}

.product-media-thumbs img.is-active {
  border-color: rgba(255,159,67,0.55);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.product-title {
  font-size: 30px;
  margin-bottom: 4px;
}

.product-kicker {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.product-price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0 16px;
}

.product-price-main {
  font-size: 20px;
}

.product-price-note {
  font-size: 12px;
  color: var(--muted);
}

.product-usp-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.product-usp-list li {
  margin-bottom: 4px;
}

.product-usp-list li::before {
  content: "• ";
  color: var(--accent);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.product-params {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  font-size: 12px;
  margin-bottom: 16px;
}

.param {
  background: rgba(15,23,42,0.9);
  border-radius: 10px;
  border: 1px solid rgba(31,41,55,0.9);
  padding: 6px 8px;
}

.param-label {
  color: var(--muted);
  margin-bottom: 2px;
}

.param-value {
  color: var(--text);
}

.product-section {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.product-section h3 {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 6px;
}

.product-layout {
  margin-top: 12px;
}

.product-layout img {
  border-radius: 14px;
  border: 1px solid rgba(31,41,55,0.9);
}


/* =========================
   Product offer (premium)
   ========================= */

.product-offer-card{
  position: relative;
  border-radius: var(--radius-xl);
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, rgba(21,24,29,0.78), rgba(7,9,12,0.58));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.product-offer-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 220px at 18% 0%, rgba(245,177,95,0.16), transparent 60%),
    radial-gradient(520px 220px at 110% 40%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events:none;
}

.product-offer-kicker{
  position: relative;
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-offer-price{
  position: relative;
  margin: 8px 0 10px;
  padding-bottom: 10px;
}

.product-offer-price span{
  display: inline-block;
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.product-offer-price::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(245,177,95,0.95), rgba(245,177,95,0.12));
  border-radius: 2px;
}

.product-offer-note{
  position: relative;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
}

.product-offer-stats{
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}

.product-offer-stat{
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 10px 12px;
}

.product-offer-stat-label{
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.product-offer-stat-value{
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.product-offer-actions{
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 12px;
}

.product-offer-actions .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  min-height: 48px;
  border-radius: 999px;

  background: linear-gradient(180deg, rgba(245,177,95,0.12), rgba(0,0,0,0.18));
  border: 1px solid rgba(245,177,95,0.32);
  color: rgba(255,255,255,0.92);

  box-shadow: 0 16px 44px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: transform 200ms ease, box-shadow 240ms ease, background 240ms ease, border-color 240ms ease;
}

.product-offer-actions .btn:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(245,177,95,0.18), rgba(0,0,0,0.12));
  border-color: rgba(245,177,95,0.44);
  box-shadow: 0 22px 56px rgba(0,0,0,0.42);
}

.product-offer-actions .btn:active{
  transform: translateY(0px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.34);
}

.product-offer-actions .btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(245,177,95,0.25), 0 22px 56px rgba(0,0,0,0.42);
}

.product-offer-highlights{
  position: relative;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.product-offer-highlights li{
  position: relative;
  padding-left: 18px;
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  line-height: 1.45;
}

.product-offer-highlights li::before{
  content:"";
  position:absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(245,177,95,0.90);
  box-shadow: 0 0 0 3px rgba(245,177,95,0.18);
}


/* Backward compatible selectors (older markup) */
.product-offer-stats .stat-item{
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 10px 12px;
}

.product-offer-stats .stat-label{
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.product-offer-stats .stat-value{
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.product-offer-highlights,
.product-offer-list{
  position: relative;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.product-offer-highlights li,
.product-offer-list li{
  position: relative;
  padding-left: 18px;
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  line-height: 1.45;
}

.product-offer-highlights li::before,
.product-offer-list li::before{
  content:"";
  position:absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(245,177,95,0.90);
  box-shadow: 0 0 0 3px rgba(245,177,95,0.18);
}

@media (max-width: 980px){
  .product-offer-actions{
    grid-template-columns: 1fr;
  }
  .product-offer-stats{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px){
  .product-offer-stats{
    grid-template-columns: 1fr;
  }
}


/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-media {
    order: -1;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0 6px;
  }
  /* Mobile header: slightly bigger side paddings + compact layout */
  .site-header .container.header-inner{
    padding-left: 16px;
    padding-right: 16px;
  }
  .logo-img{ height: 30px; }
  .nav {
    display: none;
  }
  /* Mobile header: keep contacts + button on one line when possible */
  .header-cta{
    width:100%;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding: 0 2px; /* keep TG icon and CTA away from screen edge */
  }
  .header-contacts{
    text-align:left;
    justify-content:flex-start;
  }
  .header-contact-lines{
    align-items:flex-start;
  }
  .header-contact-lines{
    align-items:flex-start;
  }
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .guides-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 420px){
  .site-header .container.header-inner{
    padding-left: 14px;
    padding-right: 14px;
  }
  .site-header .btn{ padding: 7px 12px; }
  .header-tg{ width: 28px; height: 28px; border-radius: 9px; }
}


/* 3D hover effects for cards */
.card,
.product-card {
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform 260ms ease-out,
    box-shadow 260ms ease-out,
    border-color 260ms ease-out,
    background-color 260ms ease-out;
  will-change: transform, box-shadow;
}

.card::before,
.product-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 55%);
  opacity: 0;
  transition: opacity 260ms ease-out;
  pointer-events: none;
}

.card:hover,
.card:focus-within,
.product-card:hover,
.product-card:focus-within {
  transform: translate3d(0, -6px, 0) scale(1.01);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.card:hover::before,
.card:focus-within::before,
.product-card:hover::before,
.product-card:focus-within::before {
  opacity: 1;
}



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.9);
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 200ms ease-out,
    border-color 200ms ease-out,
    color 200ms ease-out,
    transform 180ms ease-out,
    box-shadow 200ms ease-out;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-ghost {
  background: rgba(2, 6, 23, 0.35);
  border-color: rgba(148,163,184,0.28);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(148,163,184,0.55);
  background: rgba(2, 6, 23, 0.55);
}

.btn-accent {
  border-color: rgba(148,163,184,0.55);
  background: linear-gradient(135deg, #1f2933, #020617);
  box-shadow: 0 0 0 1px rgba(148,163,184,0.5);
}

.btn:hover,
.btn:focus-visible {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
  border-color: rgba(148,163,184,0.75);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: linear-gradient(135deg, #111827, #020617);
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(148,163,184,0.8);
  outline-offset: 3px;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.btn-dark {
  border-radius: 16px;
  padding: 14px 28px;
  background: #0b1220;
  border-color: rgba(15,23,42,0.35);
  color: #fff;
  min-width: 240px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: #070d18;
  border-color: rgba(15,23,42,0.55);
}

/* Contact modal ("Связаться") */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease-out;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 320ms ease-out;
}

.contact-modal.is-open .contact-modal__backdrop {
  opacity: 1;
}

.contact-modal__panel {
  position: relative;
  width: min(1120px, 100%);
  height: min(640px, 100%);
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  background: #ffffff;
  color: #0b1220;
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 40px 120px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.12);
  transform: translate3d(0, 26px, 0) scale(0.975);
  opacity: 0;
  transition:
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 520ms ease-out;
}

/* Subtle light sweep on open (premium touch) */
.contact-modal__panel::after {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.0) 38%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0.0) 62%,
    rgba(255,255,255,0) 100%
  );
  transform: translate3d(-65%, 0, 0) rotate(12deg);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.contact-modal.is-open .contact-modal__panel {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  animation: contactPanelIn 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-modal.is-open .contact-modal__panel::after {
  animation: contactSheen 980ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

@keyframes contactSheen {
  0% {
    opacity: 0;
    transform: translate3d(-65%, 0, 0) rotate(12deg);
  }
  20% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: translate3d(65%, 0, 0) rotate(12deg);
  }
}

.contact-modal__media,
.contact-modal__body,
.contact-modal__close {
  position: relative;
  z-index: 2;
}

@keyframes contactPanelIn {
  0% {
    transform: translate3d(0, 26px, 0) scale(0.975);
    opacity: 0;
  }
  58% {
    transform: translate3d(0, -2px, 0) scale(1.01);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

.contact-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 180ms ease-out, background 180ms ease-out;
}

.contact-modal__close:hover {
  transform: translate3d(0, -1px, 0);
  background: rgba(255,255,255,1);
}

/* Ensure the close icon is always clickable as a single button (SVG quirks) */
.contact-modal__close svg,
.contact-modal__close path {
  pointer-events: none;
}

.contact-modal__media {
  position: relative;
  --media-bg: url('img/hero_slide_01.jpg');
  --px: 0px;
  --py: 0px;
  background-image: var(--media-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.contact-modal__media::before {
  content: "";
  position: absolute;
  inset: -28px;
  background-image: var(--media-bg);
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(1.05) brightness(0.95);
  opacity: 0.22;
  transform: translate3d(calc(var(--px) * -0.7), calc(var(--py) * -0.7), 0) scale(1.12);
  transition: transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.contact-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.0), rgba(255,255,255,0.45) 65%, rgba(255,255,255,1));
}

.contact-modal__body {
  padding: 64px 64px 56px;
  overflow: auto;
}

.contact-modal__title {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.contact-modal__hl-line {
  display: block;
  margin-top: 14px;
}

.contact-modal__hl {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
  padding: 0.14em 0.52em 0.16em;
  border-radius: 999px;
  color: rgba(15,23,42,0.98);
  background: linear-gradient(90deg, rgba(245,177,95,0.26), rgba(245,177,95,0.14));
  box-shadow: inset 0 0 0 1px rgba(245,177,95,0.18);
}

.contact-modal__hl::after {
  content: "";
  position: absolute;
  left: 0.42em;
  right: 0.42em;
  bottom: 0.16em;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245,177,95,0.95), rgba(245,177,95,0));
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.9;
}

.contact-modal__hl::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.65) 45%, transparent 62%);
  transform: translateX(-140%);
  opacity: 0.0;
  pointer-events: none;
}

.contact-modal.is-open .contact-modal__hl::after {
  animation: contactHLUnderline 720ms 180ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.contact-modal.is-open .contact-modal__hl::before {
  animation: contactHLSheen 900ms 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes contactHLUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes contactHLSheen {
  0% { transform: translateX(-140%); opacity: 0.0; }
  15% { opacity: 0.75; }
  100% { transform: translateX(140%); opacity: 0.0; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal.is-open .contact-modal__hl::before,
  .contact-modal.is-open .contact-modal__hl::after {
    animation: none !important;
  }
  .contact-modal__hl::after { transform: scaleX(1); }
}


.contact-modal__sub {
  margin: 18px 0 34px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(15,23,42,0.72);
}

.contact-modal__context {
	margin: -18px 0 26px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid rgba(15,23,42,0.12);
	background: rgba(15,23,42,0.03);
	color: rgba(15,23,42,0.72);
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-line;
}

.contact-modal__channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 28px;
}

.contact-modal__channels-label {
  font-size: 14px;
  color: rgba(15,23,42,0.72);
  margin-right: 6px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(15,23,42,0.03);
  cursor: pointer;
  user-select: none;
  transition: background 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

.contact-chip input {
  width: 18px;
  height: 18px;
  accent-color: #0b1220;
}

.contact-chip:hover {
  background: rgba(15,23,42,0.055);
  border-color: rgba(15,23,42,0.18);
  transform: translate3d(0, -1px, 0);
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(15,23,42,0.05);
  font-size: 16px;
  outline: none;
  transition: border-color 180ms ease-out, background 180ms ease-out, box-shadow 180ms ease-out;
}

.contact-input:focus {
  background: rgba(15,23,42,0.03);
  border-color: rgba(15,23,42,0.28);
  box-shadow: 0 0 0 4px rgba(15,23,42,0.08);
}

.contact-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 26px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(15,23,42,0.72);
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0b1220;
}

.contact-link {
  color: rgba(15,23,42,0.82);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.contact-form__actions {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.contact-form__ok {
  min-height: 18px;
  font-size: 14px;
}

.contact-form__ok.is-err {
  color: #9b1c1c;
}

.contact-form__ok.is-ok {
  color: #065f46;
}

@media (max-width: 980px) {
  .contact-modal__panel {
    grid-template-columns: 1fr;
    height: min(760px, 100%);
  }
  .contact-modal__media {
    min-height: 220px;
  }
  .contact-modal__media::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.25) 60%, rgba(255,255,255,1));
  }
  .contact-modal__body {
    padding: 34px 22px 26px;
  }
  .contact-form__row {
    grid-template-columns: 1fr;
  }
  .btn-dark {
    min-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal,
  .contact-modal__panel,
  .contact-modal__media::before,
  .contact-modal__panel::after,
  .contact-chip,
  .btn-dark {
    transition: none !important;
  }

  .contact-modal.is-open .contact-modal__panel,
  .contact-modal.is-open .contact-modal__panel::after {
    animation: none !important;
  }
}


@keyframes float-soft {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.hero-card {
  animation: float-soft 14s ease-in-out infinite;
}


.hero-plan {
  margin: 18px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(148,163,184,0.22), rgba(15,23,42,0.95));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(148,163,184,0.35);
  transform-style: preserve-3d;
  cursor: pointer;
  transition:
    transform 260ms ease-out,
    box-shadow 260ms ease-out,
    background 260ms ease-out;
}

.hero-plan:focus-visible {
  outline: 2px solid rgba(226,232,240,0.75);
  outline-offset: 4px;
}

.hero-plan:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(226,232,240,0.45);
  background: radial-gradient(circle at top left, rgba(226,232,240,0.2), rgba(15,23,42,0.98));
}

.hero-plan-image-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  transform: translateZ(0);
}

.hero-plan-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-plan-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-plan-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.96);
}

.hero-plan-meta {
  font-size: 13px;
  color: rgba(148,163,184,0.95);
}


/* ------------------------------
   Quiz section
------------------------------ */

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: flex-start;
}

.quiz-main .section-title {
  margin-bottom: 12px;
}

.quiz-main .section-sub {
  max-width: 520px;
  margin-bottom: 24px;
}

.quiz-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.quiz-step {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
  opacity: 0.5;
}

.quiz-step.is-active {
  opacity: 1;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), rgba(19, 23, 32, 0.98));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.quiz-step.is-completed {
  opacity: 0.75;
}

.quiz-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.quiz-step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.quiz-step-title {
  font-size: 16px;
  font-weight: 500;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-option {
border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 13, 20, 0.9);
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  color: #f5f5f5;
}

.quiz-option:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.quiz-option.is-selected {
  background: linear-gradient(135deg, #ffffff, #c1c6d0);
  color: #10131b;
  border-color: transparent;
}

.quiz-progress {
  margin-bottom: 16px;
}

.quiz-progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 8px;
}

.quiz-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #c1c6d0);
  transition: width 0.25s ease;
}

.quiz-progress-labels {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.quiz-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.quiz-result {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(10, 13, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.quiz-result-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.quiz-result-text {
  font-size: 14px;
  margin-bottom: 4px;
}

.quiz-result-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

/* Quiz lead form (inline, after result button) */
.quiz-lead {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.quiz-lead .contact-form__row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quiz-lead .contact-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.quiz-lead .contact-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.quiz-lead .contact-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.quiz-lead .contact-consent {
  color: rgba(255, 255, 255, 0.72);
}

.quiz-lead .contact-link {
  color: rgba(255, 255, 255, 0.86);
}

.quiz-lead .btn-dark {
  min-width: 240px;
}

@media (max-width: 980px) {
  .quiz-lead .contact-form__row {
    grid-template-columns: 1fr;
  }
  .quiz-lead .btn-dark {
    min-width: 100%;
  }
}

/* side card */

.quiz-side-card {
  position: sticky;
  top: 120px;
  border-radius: 22px;
  padding: 20px 20px 18px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), rgba(10, 13, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
}

.quiz-side-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  margin-bottom: 10px;
}

.quiz-side-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.quiz-side-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 14px;
}

.quiz-side-list li {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.quiz-side-list span {
  opacity: 0.8;
}

.quiz-guides-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* mobile */

@media (max-width: 900px) {
  .quiz-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .quiz-side-card {
    position: static;
  }
}


@keyframes quiz-shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}


/* Header navigation spacing fix */
.header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  margin: 0 2px;
  letter-spacing: 0.06em; /* чуть шире сами буквы, лучше читается */
  white-space: nowrap;
}

.nav-separator {
  display: inline-block;
  margin: 0 2px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9em;
  pointer-events: none;
}


/* Вертикальные разделители между пунктами меню */
.header nav a + a {
  position: relative;
}


.header nav a:first-child {
  margin-left: 0;
}



/* ---------- Product detail: solutions & layout ---------- */

.section-solutions {
  padding-top: 32px;
}

.section-solutions .section-title {
  margin-bottom: 12px;
}

.section-solutions .section-lead {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--muted);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.solution-card {
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(15,23,42,1));
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.solution-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.solution-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.solution-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.solution-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 6px;
}

.solution-meta {
  padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.solution-meta .meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.solution-meta .meta-value {
  font-weight: 600;
  font-size: 15px;
}

.section-layout-duo .layout-duo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: flex-start;
}

.layout-duo-text p + p {
  margin-top: 10px;
}

.layout-stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.layout-stats-col h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.layout-stats-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.layout-stats-col li span:first-child {
  color: var(--muted);
  margin-right: 4px;
}

.layout-duo-plan .plan-card {
  background: radial-gradient(circle at top, #020617, #020817);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 12px 12px 14px;
  box-shadow: var(--shadow-soft);
}

.layout-duo-plan img {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(31,41,55,0.9);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.layout-duo-plan .plan-card:hover img {
  transform: scale(1.01);
  filter: saturate(1.03);
  border-color: rgba(255,159,67,0.55);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

@media (hover: none) {
  .layout-duo-plan .plan-card:hover img {
    transform: none;
  }
}

.plan-caption {
  margin-top: 10px;
}

.plan-caption h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.plan-caption p {
  font-size: 14px;
  color: var(--muted);
}

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

.section-gallery .section-lead {
  max-width: 720px;
  margin: 0 auto 26px;
  text-align: center;
  color: var(--muted);
}

/*
  Модульные страницы: галерея должна быть «крупной» и читаться как истории/сценарии,
  поэтому по умолчанию - вертикальная лента из больших кадров.
*/
.module-gallery-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.module-gallery-stack .gallery-item {
  aspect-ratio: 16 / 9;
}

@media (max-width: 640px) {
  .module-gallery-stack {
    gap: 14px;
  }

  .module-gallery-stack .gallery-item {
    aspect-ratio: 4 / 3;
  }
}

/*
  Если когда-то понадобится плитка (не используется в текущем шаблоне),
  оставили как отдельный класс.
*/
.module-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(30,64,175,0.45);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-item:hover img {
  transform: scale(1.12);
}

/* ---------- How we work ---------- */

.section-how-we-work .section-lead {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
  color: var(--muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.step-card {
  position: relative;
  background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,1));
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 20px 18px 18px 18px;
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(248,250,252,0.06);
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 13px;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Benefits + CTA ---------- */

.section-benefits .benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.benefits-list ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.benefits-list li span {
  font-weight: 600;
  margin-right: 4px;
}

.benefits-cta .cta-card {
  background: radial-gradient(circle at top, rgba(30,64,175,0.35), rgba(15,23,42,1));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(59,130,246,0.55);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-strong);
}

.cta-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.cta-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.cta-form .form-row {
  margin-bottom: 10px;
}

.cta-form input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
}

.cta-form input::placeholder {
  color: rgba(148,163,184,0.8);
}

.cta-form .btn {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}


.cta-form__ok {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.92);
}

.cta-form__ok.is-error {
  color: rgba(251, 113, 133, 0.92);
}

.cta-form .btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}
/* ---------- Responsive: product detail ---------- */

@media (max-width: 960px) {
  .section-layout-duo .layout-duo-grid,
  .section-benefits .benefits-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

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

@media (max-width: 640px) {
  .product-offer-actions {
    flex-direction: column;
  }

  .product-offer-actions .btn {
    width: 100%;
  }
}


/* Планировка: модальное увеличение */
.plan-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  box-sizing: border-box;
}

.plan-modal--open {
  display: flex;
}

.plan-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.plan-modal__content {
  position: relative;
  width: min(96vw, 1240px);
  height: calc(100vh - 48px);
  max-height: 920px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.plan-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

.plan-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.plan-modal__close:hover {
  background: rgba(0, 0, 0, 1);
}

img.plan-image {
  cursor: zoom-in;
}

/* FAQ (Вопрос-Ответ) */
.section-faq .section-lead{
  margin-top: 10px;
  max-width: 820px;
  opacity: 0.85;
}

.faq{
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.faq-item{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(1200px 300px at 10% -20%, rgba(255,122,0,0.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: 0 14px 50px rgba(0,0,0,0.45);
  transform: translateZ(0);
}

.faq-item::before{
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(500px 180px at 18% 0%, rgba(255,122,0,0.16), transparent 60%);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.faq-item:hover::before{
  opacity: 1;
}

.faq-q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--text, #fff);
  font-weight: 650;
  font-size: 16px;
  line-height: 1.25;
}

.faq-q:focus-visible{
  outline: 2px solid rgba(255,122,0,0.55);
  outline-offset: 3px;
  border-radius: 14px;
}

.faq-icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
}

.faq-icon::before,
.faq-icon::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: rgba(255,255,255,0.82);
  transform: translate(-50%, -50%);
  transition: transform 280ms ease, opacity 240ms ease;
  border-radius: 2px;
}

.faq-icon::after{
  width: 2px;
  height: 12px;
}

.faq-a{
  max-height: 0px;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 260ms ease;
}

.faq-a-inner{
  padding: 0 18px 18px 18px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

.faq-a-inner p{
  margin: 0;
}

.faq-a-inner p + p{
  margin-top: 10px;
}

.faq-item.is-open{
  border-color: rgba(255,122,0,0.35);
  box-shadow: 0 18px 70px rgba(0,0,0,0.55);
}

.faq-item.is-open .faq-a{
  opacity: 1;
}

.faq-item.is-open .faq-icon{
  border-color: rgba(255,122,0,0.45);
  background: rgba(255,122,0,0.09);
}

.faq-item.is-open .faq-icon::after{
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

@media (prefers-reduced-motion: reduce){
  .faq-item::before,
  .faq-icon::before,
  .faq-icon::after,
  .faq-a{
    transition: none !important;
  }
}


/* Footer v2 + legal pages */
/* Header compact typography */
.site-header .header-phone{ font-size: 13px; }
.site-header .header-mail{ font-size: 12px; }


.header-contacts{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  text-align:right;
  line-height:1.1;
}

.header-contact-lines{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:1px;
}

.header-tg{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.20);
  box-shadow: 0 10px 28px rgba(0,0,0,.40);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.header-tg svg{
  width:18px;
  height:18px;
  opacity:.92;
  fill: currentColor;
}
@media (hover:hover){
  .header-tg:hover{
    transform: translateY(-1px);
    background:rgba(255,255,255,.14);
    border-color:rgba(255,255,255,.30);
    box-shadow: 0 14px 38px rgba(0,0,0,.50);
  }
}
.header-phone, .header-mail{
  color:inherit;
  text-decoration:none;
  opacity:.9;
}
.header-mail{
  font-size:12px;
  opacity:.75;
}
.header-phone:hover, .header-mail:hover{ opacity:1; text-decoration:underline; }

.site-footer{
  padding:28px 0 18px;
  border-top:1px solid rgba(255,255,255,.08);
  background: radial-gradient(1200px 300px at 50% 0%, rgba(255,255,255,.06), rgba(0,0,0,0));
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:18px;
  align-items:start;
}
.footer-title{ font-weight:700; font-size:14px; letter-spacing:.02em; }
.footer-text{ margin-top:8px; color:#cbd5e1; font-size:13px; line-height:1.45; max-width:40ch; }
.footer-h{ font-weight:700; font-size:13px; margin-bottom:10px; color:#e5e7eb; }
.footer-link{ display:block; width:fit-content; color:#cbd5e1; text-decoration:none; margin:6px 0; font-size:13px; }
.footer-link:hover{ text-decoration:underline; color:#fff; }

.footer-meta{ margin-top:10px; display:flex; flex-direction:column; gap:6px; color:#94a3b8; font-size:12px; }

.footer-messenger{ margin-top:10px; display:flex; gap:12px; }
.messenger-link{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.messenger-link svg{ width:18px; height:18px; fill:#e5e7eb; opacity:.92; }
.messenger-link:hover{ transform: translateY(-1px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
.messenger-link:active{ transform: translateY(0); }
.messenger-link:focus-visible{ outline:2px solid rgba(255,255,255,.22); outline-offset:3px; }

.footer-social{ margin-top:12px; display:flex; gap:12px; }
.social-link{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.social-link svg{ width:18px; height:18px; fill:#e5e7eb; opacity:.9; }
.social-link:hover{ transform: translateY(-2px); background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }
.social-link:hover svg{ opacity:1; }

.footer-bottom{ margin-top:18px; padding-top:14px; border-top:1px solid rgba(255,255,255,.06); }
.footer-disclaimer{ color:#94a3b8; font-size:12px; line-height:1.45; }

@media (max-width: 880px){
  .footer-grid{ grid-template-columns: 1fr; }
  .header-contacts{ gap:1px; }
  .header-phone{ font-size:12px; }
  .header-mail{ font-size:11px; }
}

.legal-page .section-title{ margin-bottom:14px; }
.legal-card{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 18px 38px rgba(0,0,0,.35);
  margin: 14px 0;
}
.legal-h2{ font-size:16px; margin:0 0 12px; }
.legal-note{ color:#cbd5e1; line-height:1.55; }
.legal-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.legal-label{ font-size:12px; color:#94a3b8; margin-bottom:6px; }
.legal-link{ color:#e5e7eb; text-decoration:none; }
.legal-link:hover{ text-decoration:underline; }

.legal-text{ color:#cbd5e1; line-height:1.55; }

.map-embed{
  margin-top:14px;
  position:relative;
  width:100%;
  height:0;
  padding-bottom:56.25%;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  box-shadow: 0 18px 38px rgba(0,0,0,.35);
}
.map-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.legal-list{ margin: 0; padding-left: 18px; color:#cbd5e1; line-height:1.55; }
.table-wrap{ overflow:auto; }
.legal-table{ width:100%; border-collapse:separate; border-spacing:0; font-size:13px; }
.legal-table th, .legal-table td{ text-align:left; padding:10px 10px; border-bottom:1px solid rgba(255,255,255,.08); vertical-align:top; }
.legal-table th{ width:220px; color:#94a3b8; font-weight:600; }
@media (max-width: 640px){
  .legal-grid{ grid-template-columns:1fr; }
  .legal-table th{ width:auto; }
}


/* ---------- Built Projects ---------- */

.section-built .section-sub{
  max-width: 760px;
}

.projects-track{
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-top: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  scroll-padding-right: 2px;
  padding-bottom: 4px;
}
.projects-track::-webkit-scrollbar{ display:none; }

/* 3 cards in view on desktop */
.projects-track .project-card{
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
}

/* Works page: grid 3-in-row */
.projects-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 980px){
  .projects-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 720px){
  .projects-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px){
  .projects-track .project-card{
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 720px){
  .projects-track{
    gap: 14px;
    padding: 0 10px 10px;
    scroll-padding-left: 10px;
    scroll-padding-right: 10px;
  }

  .projects-track .project-card{
    flex: 0 0 86%;
    max-width: 86%;
    scroll-snap-align: center;
  }
}

.projects-dots{
  display: none;
  margin-top: 10px;
  justify-content: center;
  gap: 8px;
}

.projects-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.55);
  background: rgba(148,163,184,.18);
  padding: 0;
  cursor: pointer;
}

.projects-dot.is-active{
  border-color: rgba(245,177,95,.75);
  background: rgba(245,177,95,.55);
}

.projects-arrows{
  display: flex;
  gap: 8px;
}

.projects-arrow{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(15,23,42,0.7);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease-out, border-color 200ms ease-out, background-color 200ms ease-out, opacity 200ms ease-out;
}

.projects-arrow:hover,
.projects-arrow:focus-visible{
  transform: translate3d(0, -2px, 0);
  border-color: rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
}

.projects-arrow:disabled{
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 720px){
  .projects-dots{ display:flex; }
}

.project-card{
  border: 1px solid rgba(30,64,175,0.35);
  background: linear-gradient(180deg, rgba(10,14,20,0.78), rgba(9,10,12,0.78));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: left;
  padding: 0;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  display: grid;
  grid-template-rows: auto 1fr;
  scroll-snap-align: start;
}

.project-card:focus-visible{
  outline: 2px solid rgba(245, 177, 95, 0.75);
  outline-offset: 3px;
}

.project-card:hover{
  transform: translateY(-2px);
  border-color: rgba(245, 177, 95, 0.55);
  background: linear-gradient(180deg, rgba(14,18,26,0.82), rgba(9,10,12,0.82));
}

.project-media{
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-media-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateX(var(--px, 0px)) scale(1.06);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.project-card:hover .project-media-img{
  transform: translateX(var(--px, 0px)) scale(1.14);
}

.project-body{
  padding: 14px 14px 16px;
}

.project-title{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.project-meta{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* Modal */
.project-modal{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.project-modal--open{
  display: block;
}

.project-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
}

.project-modal__dialog{
  position: relative;
  max-width: 1080px;
  margin: 5vh auto;
  background: linear-gradient(180deg, rgba(12,15,20,0.98), rgba(7,8,10,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 120px rgba(0,0,0,0.75);
  border-radius: 24px;
  padding: 18px;
  max-height: 90vh;
  overflow: auto;
}

.project-modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}

.project-modal__close:hover{
  background: rgba(255,255,255,0.10);
  transform: scale(1.03);
}

.project-modal__grid{
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  align-items: start;
}

.project-modal__hero{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(30,64,175,0.35);
  box-shadow: var(--shadow-card);
}

.project-modal__media{
  position: relative;
}

.project-modal__nav{
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.project-modal__arrow{
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 14, 20, 0.35);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  pointer-events: auto;
}

.project-modal__arrow:hover{
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(10, 14, 20, 0.48);
}

.project-modal__arrow:active{
  transform: translateY(0);
}

@media (max-width: 900px){
  .project-modal__nav{
    left: 10px;
    right: 10px;
  }
  .project-modal__arrow{
    width: 40px;
    height: 34px;
    border-radius: 14px;
  }
}

.project-modal__thumbs{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.project-thumb{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
  aspect-ratio: 1/1;
}

.project-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-thumb:hover{
  transform: translateY(-1px);
  border-color: rgba(245, 177, 95, 0.55);
}

.project-thumb.is-active{
  border-color: rgba(245, 177, 95, 0.85);
}

.project-modal__content{
  padding-top: 6px;
}

.project-modal__title{
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.project-modal__meta{
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.project-modal__facts{
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(244,245,247,0.92);
}

.project-modal__facts li{
  margin: 8px 0;
}

.project-modal__desc{
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.project-modal__actions{
  margin-top: 16px;
}

@media (max-width: 980px){
  .project-modal__grid{
    grid-template-columns: 1fr;
  }
  .project-modal__title{
    font-size: 24px;
  }
  .project-modal__dialog{
    margin: 3vh 10px;
    padding: 14px;
  }
}

/* Mobile header + built projects tweaks */
@media (max-width: 520px){
  /* Header: tighter + safe side paddings for TG and CTA */
  .site-header .container.header-inner{
    padding-left: 16px;
    padding-right: 16px;
  }
  .header-inner{
    gap: 6px;
    padding: 7px 0 5px;
  }
  .header-cta{
    gap: 10px;
    padding: 0 4px;
  }
  .header-tg{ width: 28px; height: 28px; border-radius: 9px; }
  .site-header .btn{ padding: 7px 12px; font-size: 13px; }
}

@media (max-width: 380px){
  .header-cta{ padding: 0 2px; }
  .site-header .btn{ padding: 7px 10px; font-size: 12px; }
}

/* =========================
   BLOG
   ========================= */

.blog-empty{
  padding: 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.03);
}

.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 980px){
  .blog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .blog-grid{ grid-template-columns: 1fr; }
}


.section-header--after-grid{
  margin-top: 22px;
}

.blog-faq-card{
  padding: 16px 18px;
}
.blog-faq-q{
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 14px;
}
.blog-faq-a{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #e5e7eb;
}
@media (max-width: 640px){
  .blog-faq-card{ padding: 14px 14px; }
}

.blog-card{
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  flex-direction: column;
}

.blog-card-media{
  display: block;
  aspect-ratio: 16/10;
  background: rgba(255,255,255,.02);
}

.blog-card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body{
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card-date{
  color: rgba(255,255,255,.60);
  font-size: 13px;
}

.blog-card-title{
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}
.blog-card-title:hover{ text-decoration: underline; }

.blog-card-excerpt{
  color: rgba(255,255,255,.70);
  line-height: 1.55;
}

.blog-card-footer{
  margin-top: auto;
}

.blog-post .blog-title{
  margin: 10px 0 10px;
  font-size: 34px;
  line-height: 1.12;
}
@media (max-width: 640px){
  .blog-post .blog-title{ font-size: 28px; }
}

.blog-meta{
  color: rgba(255,255,255,.62);
  font-size: 14px;
  margin-top: 12px;
}

.blog-cover{
  margin: 14px 0 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
}
.blog-cover img{ width: 100%; height: auto; display: block; }

.blog-content{
  max-width: 820px;
}

.blog-content p{ line-height: 1.72; margin: 12px 0; }
.blog-content h2{ margin: 26px 0 12px; font-size: 24px; line-height: 1.22; }
.blog-content h3{ margin: 20px 0 10px; font-size: 19px; line-height: 1.25; }
.blog-content ul, .blog-content ol{ margin: 10px 0 10px 22px; }
.blog-content blockquote{
  border-left: 2px solid rgba(255,255,255,.22);
  padding: 6px 0 6px 14px;
  margin: 14px 0;
  color: rgba(255,255,255,.72);
}

.blog-content figure{ margin: 18px 0; }
.blog-content figure img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
}
.blog-content figcaption{
  margin-top: 8px;
  color: rgba(255,255,255,.60);
  font-size: 13px;
}

.blog-toc{
  margin: 14px 0 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.blog-toc-title{
  font-weight: 650;
  margin-bottom: 8px;
}
.blog-toc-list{ margin: 0; padding-left: 18px; }
.blog-toc-list li{ margin: 6px 0; }
.blog-toc-list li.is-sub{ margin-left: 10px; }
.blog-toc a{ color: rgba(255,255,255,.80); text-decoration: none; }
.blog-toc a:hover{ text-decoration: underline; }


/* Splash intro */

.splash{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(1200px 600px at 50% 45%, rgba(255,122,0,0.055), rgba(0,0,0,1) 60%),
    #000;
  opacity:1;
  visibility:visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

html:not([data-page="home"]) #splash{display:none !important;}
.splash.is-hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.splash-center{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:28px;
}

/* Splash logo - same mark as in header */
.splash-logo{
  position:relative;
  width:min(560px, 86vw);
  max-width:560px;
}

.splash-logo__full{
  width:100%;
  height:auto;
  display:block;
  opacity:0;
  transform: translateY(8px);
  filter: drop-shadow(0 18px 46px rgba(0,0,0,0.65));
  animation: splash-logo-in 0.9s cubic-bezier(0.18,0.82,0.18,1) forwards;
  animation-delay:0.45s;
}

.splash-logo__cube{
  position:absolute;
  left:0;
  top:0;
  width:23.2%;
  height:100%;
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  pointer-events:none;
  filter: drop-shadow(0 18px 54px rgba(255, 122, 0, 0.16));
  animation: splash-cube-breathe 2.2s ease-in-out 0.55s infinite;
}

.splash-cubeReveal{
  width:100%;
  height:auto;
  display:block;
}

.splash-cubeReveal .seg{
  opacity:0;
  transform: translateY(3px) scale(0.985);
  will-change: opacity, transform;
  animation: splash-seg 0.9s cubic-bezier(0.18,0.82,0.18,1) forwards;
}
.splash-cubeReveal .s1{animation-delay:0.00s;}
.splash-cubeReveal .s2{animation-delay:0.06s;}
.splash-cubeReveal .s3{animation-delay:0.10s;}
.splash-cubeReveal .s4{animation-delay:0.14s;}
.splash-cubeReveal .s5{animation-delay:0.18s;}
.splash-cubeReveal .s6{animation-delay:0.22s;}
.splash-cubeReveal .s7{animation-delay:0.26s;}
.splash-cubeReveal .s8{animation-delay:0.29s;}
.splash-cubeReveal .s9{animation-delay:0.32s;}

@keyframes splash-seg{
  0%{opacity:0; transform: translateY(4px) scale(0.985);}
  60%{opacity:0.92; transform: translateY(1px) scale(0.995);}
  100%{opacity:1; transform:none;}
}

@keyframes splash-logo-in{
  0%{opacity:0; transform: translateY(10px) scale(0.99);}
  100%{opacity:1; transform:none;}
}

@keyframes splash-cube-breathe{
  0%,100%{transform:scale(1); opacity:1;}
  50%{transform:scale(1.01); opacity:0.97;}
}

@media (prefers-reduced-motion: reduce){
  .splash, .splash.is-hide{transition:none;}
  .splash-logo__full{animation:none !important; opacity:1; transform:none;}
  .splash-logo__cube{animation:none !important; opacity:1; transform:none;}
  .splash-cubeReveal .seg{animation:none !important; opacity:1;}
}
