/* Base layout and typography */

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

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

:root {
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-footer: #171717;
  --accent: #111827;
  --accent-soft: #e5d9c8;
  --text-main: #111111;
  --text-muted: #111111;
  --border-soft: #e0d7c9;
  --radius-card: 18px;
  --radius-large: 22px;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
  --container-max: 1200px;
  --nav-offset: 70px;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

.anchor-target {
  display: block;
  position: relative;
  top: calc(-1 * var(--nav-offset));
  height: 0;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 40px;
}

.section {
  padding: 64px 0;
}

/* Top navigation */

.top-bar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: #F3F4F6;
  position: sticky;
  top: 0;
  z-index: 20;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.top-bar.is-scrolled {
  background: #F3F4F6;
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}


.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
}

.logo__sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top-nav__link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.top-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Mobile navigation (overlay + panel) */
.mnav {
  display: none;
}

.mnav.is-open {
  display: block;
}

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

  body.menu-open {
    overflow: hidden;
    touch-action: none;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(-1 * var(--menu-scroll-y, 0px));
  }

  .top-bar__inner {
    padding-inline: 18px;
  }

  .container {
    padding-inline: 18px;
  }

  .top-nav__links {
    display: none;
  }

  .top-nav .cta-demo {
    display: none;
  }

  .top-nav__menu {
    display: inline-flex;
  }

  .top-nav__menu.is-active span:first-child {
    transform: translateY(7.5px) rotate(45deg);
  }
  .top-nav__menu.is-active span:nth-child(2) {
    opacity: 0;
  }
  .top-nav__menu.is-active span:last-child {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .mnav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 16px 24px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
  }

  .mnav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .mnav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
  }

  .mnav__panel {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #f3f4f6;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
    padding: 20px 22px 28px;
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
  }

  .mnav.is-open .mnav__panel {
    transform: translateY(0);
    opacity: 1;
  }

  .mnav__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
  }

  .mnav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    position: relative;
  }

  .mnav__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.35);
  }

  .mnav__close span {
    position: absolute;
    width: 18px;
    height: 1.5px;
    border-radius: 999px;
    background: #111827;
    transition: transform 0.22s ease;
  }
  .mnav__close span:first-child { transform: rotate(45deg); }
  .mnav__close span:last-child { transform: rotate(-45deg); }

  .mnav__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mnav__link {
    display: block;
    width: 100%;
    padding: 16px 14px;
    border-radius: 14px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(15, 23, 42, 0.9);
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mnav__link:hover,
  .mnav__link:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    outline: none;
  }

  .mnav__cta-wrap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .mnav__cta {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 12px;
  }

  /* Responsive typography */
  .hero__title {
    font-size: clamp(32px, 8vw, 56px);
  }

  .hero__subtitle {
    font-size: clamp(13px, 3.4vw, 15px);
    max-width: 100%;
  }

  .section-title {
    font-size: clamp(18px, 4vw, 22px);
  }

  .section-label,
  .faq-question,
  .faq-answer,
  .pricing-name,
  .pricing-desc {
    font-size: clamp(12px, 3.2vw, 14px);
  }

  p,
  .faq-question,
  .faq-answer {
    overflow-wrap: anywhere;
  }

  /* Video section: 2 per row */
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* Photography: 2 per row */
  .comparison-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* Models: ensure carousel viewport fits */
  .mc-viewport {
    overflow: hidden;
  }

  /* General: avoid horizontal scroll from wide cards */
  .pricing-block .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.top-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.9);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.16s ease;
}

.top-nav__link:hover::after,
.top-nav__link:focus-visible::after {
  transform: scaleX(1);
}

.top-nav__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.5);
  border-radius: 999px;
}

.top-nav__menu {
  border: none;
  background: transparent;
  padding: 0;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

@media (min-width: 769px) {
  .top-nav__menu {
    display: none;
  }
}

.top-nav__menu:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.35);
  border-radius: 8px;
}

.top-nav__menu span {
  display: block;
  width: 20px;
  height: 1.5px;
  border-radius: 999px;
  background-color: #111827;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.top-nav__menu span:first-child { transform: translateY(0) rotate(0); }
.top-nav__menu span:nth-child(2) { opacity: 1; }
.top-nav__menu span:last-child { transform: translateY(0) rotate(0); }

/* Buttons */

.btn {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.btn--primary {
  color: #111827;
  background: rgba(248, 250, 252, 0.9);
  border-color: #111827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.btn--primary:hover {
  transform: translateY(-1px);
  background: #111827;
  color: #f9fafb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.26);
}

/* HERO */

.section--hero {
  padding-top: 80px;
  padding-bottom: 72px;
  background-image: url("assets/photo/main.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hero__left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero__right {
  flex: 0 0 52%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 0;
}

.hero__title {
  font-size: clamp(100px, 4vw + 29px, 75px);
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.hero__subtitle {
  font-size: 15px;
  line-height: 1.7;
  max-width: 460px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 28px;
}

.hero__tagline {
  font-size: 1.5em;
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
}

.hero__media {
  width: 100%;
  max-width: 1400px; /* увеличено примерно в два раза */
  aspect-ratio: 16 / 6.8;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* Размер и положение кнопки в hero как на макете */
.section--hero .btn--primary {
  align-self: center;
  width: 630px;
  justify-content: center;
  display: inline-flex;
  padding: 12px 42px;
  font-size: 16px;
  font-weight: 700;
}

.hero__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Placeholders */

.placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #101827;
  overflow: hidden;
}

.placeholder--hero {
  background: #050814;
}

.placeholder--card {
  background: #0f172a;
}

.placeholder__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.1),
    rgba(55, 65, 81, 0.3),
    rgba(15, 23, 42, 0.9)
  );
}

.placeholder__gradient--alt {
  background: linear-gradient(
    145deg,
    rgba(248, 250, 252, 0.3),
    rgba(234, 179, 8, 0.6),
    rgba(15, 23, 42, 0.9)
  );
}

/* Section headers */

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0px;
  margin-bottom: 26px;
}

.section-header--compact {
  margin-bottom: 24px;
}

.section-header--spaced {
  margin-bottom: 26px;
}

.section-label {
  font-size: 30px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px; /* убираем визуальный зазор до большого заголовка */
}

.section-title {
  font-size: 60px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.section-title--center {
  text-align: center;
}

/* BLOCK 2 — VIDEO GRID */

.section--video {
  padding-top: 14px;
  padding-bottom: 52px;
}

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

.video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.video-card__label {
  font-size: 16px;
  letter-spacing: 0.26em;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

/* Real video player inside 9:16 cards */

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: inherit;
}

.video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Kinescope responsive embeds inside existing 9:16 frames */
.kinescope-embed {
  position: relative;
  width: 100%;
  height: 100%;
}

.kinescope-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* For Kinescope cards, keep the play icon purely decorative and non-blocking */
.video-card--kinescope .play-btn {
  pointer-events: none;
}

.play-btn {
  display: none;
}

.play-btn::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffffff;
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: #e5e7eb;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
}

.video-card.is-playing .play-btn {
  opacity: 0;
  pointer-events: none;
}

/* BLOCK 3 — COMPARISON GALLERY */

.section--gallery {
  padding-top: 28px;
  padding-bottom: 60px;
}

.comparison-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 items in a single row on desktop */
  gap: 18px;
}

.comparison-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-card {
  border-radius: var(--radius-card);
  background-color: var(--bg-card);
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.comparison-caption {
  font-size: 16px;
  letter-spacing: 0.26em;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-main);
}

/* Fix comparison slider seam artifacts in "Campaign-Ready Photography" */
.compare {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 2 / 3; /* 2x3 format */
  background-color: #ffffff; /* was #020617 – dark background caused thin dark strips around white product image */
  user-select: none;
}

.image-bottom,
.image-top {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  background-color: #ffffff;
  border: 0;
  box-shadow: none;
  filter: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.mask{
  position:absolute;
  inset:0;
  overflow:hidden;
  --split: 0%; /* по умолчанию полностью видна нижняя (левая) фотография */
  /* slight left overlap to hide potential seam between panes */
  clip-path: inset(0 calc(100% - var(--split)) 0 -1px);
  background-color: #ffffff;
  border: 0;
  box-shadow: none;
  filter: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.handle {
  position: absolute;
  top: 0;
  height: 100%;
  width: 2px;
  left: 50%;
  background: rgba(249, 250, 251, 0.9);
  cursor: ew-resize;
}

.handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: -12px;
  border-radius: 50%;
  border: 2px solid #f9fafb;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.4);
}

/* PRICING BLOCK */

.pricing-block {
  background-color: var(--bg-page);
}

.pricing-block .section-header--pricing {
  align-items: center;
  text-align: center;
}

.pricing-block .section-header--pricing .section-title {
  text-align: center;
}

.pricing-block .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-block .pricing-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-block .pricing-card {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(252, 252, 252, 1) 55%,
    rgba(248, 248, 248, 1) 100%
  );
  border: 1px solid rgba(20, 20, 20, 0.06);
  isolation: isolate;
  overflow: visible;
  flex: 1 1 auto;
  padding: 44px 44px 34px; /* unified inner padding: top, sides, bottom */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 14px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.pricing-block .pricing-card > * {
  position: relative;
  z-index: 1;
}

.pricing-block .pricing-note {
  margin: 12px 2px 0;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-height: 3.2em;
  display: flex;
  align-items: center;
}

.pricing-block .pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(20, 20, 20, 0.05);
  z-index: 0;
}

.pricing-block .pricing-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  --spin: 0deg;
  background: conic-gradient(from var(--spin),
    rgba(59, 130, 246, 0) 0deg,
    rgba(59, 130, 246, 0.55) 80deg,
    rgba(59, 130, 246, 0.20) 140deg,
    rgba(59, 130, 246, 0.65) 200deg,
    rgba(59, 130, 246, 0) 360deg
  );
  filter: blur(8px);
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: normal;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shimmerSpin 2.8s linear infinite;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.pricing-block .pricing-card--featured::after {
  background: conic-gradient(from var(--spin),
    rgba(245, 197, 66, 0) 0deg,
    rgba(245, 197, 66, 0.55) 80deg,
    rgba(245, 197, 66, 0.25) 140deg,
    rgba(245, 197, 66, 0.70) 200deg,
    rgba(245, 197, 66, 0) 360deg
  );
}

/* No hover/click lift: active state is driven by .is-centered only */
.pricing-block .pricing-card:hover {
  transform: none;
}

.pricing-block .pricing-card:hover::after {
  opacity: 0.8;
  filter: blur(8px);
}

@keyframes shimmerSpin {
  to {
    --spin: 360deg;
  }
}

/* Active/centered card gets lift (class .is-centered set by JS) */
.pricing-block .pricing-card-wrapper.is-centered .pricing-card {
  transform: scale(1.04);
  z-index: 2;
  border-color: rgba(20, 20, 20, 0.08);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Pricing typography hierarchy (conversion-focused) */

.pricing-block .pricing-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 18px 0 12px;
  text-align: center;
  width: 100%;
}

.pricing-block .pricing-name-em {
  font-weight: 700;
  opacity: 0.9;
}

.pricing-block .pricing-price {
  margin: 0 0 12px;
  text-align: center;
  width: 100%;
}

.pricing-block .pricing-price-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 8px;
}

.pricing-block .pricing-price-amount {
  display: block;
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-block .pricing-desc {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 36ch;
  margin: 0 auto 18px;
  text-align: center;
  opacity: 0.92;
}

.pricing-block .pricing-list {
  margin: 0 auto 22px;
  padding: 0;
  max-width: none;
  width: max-content;
  list-style: none;
}

.pricing-block .pricing-list li {
  position: relative;
  padding-left: 1.5em;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin: 10px 0;
}

.pricing-block .pricing-list li::before {
  content: "✓ ";
  color: #16a34a;
  position: absolute;
  left: 0;
}

.pricing-block .pricing-list li + li {
  margin-top: 0;
}

.pricing-block .pricing-note {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  text-align: center;
  color: var(--text-muted);
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pricing cards – aligned CTA + badge */
.pricing-card .cta-demo {
  margin-top: auto;
}

.pricing-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: max-content;     /* critical */
  max-width: none;        /* critical */
  white-space: nowrap;    /* critical */

  padding: 8px 12px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: rgba(20, 20, 20, 0.78);

  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 20, 20, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.1);
}

.pricing-card.pricing-card--featured {
  position: relative;
}

.pricing-card--featured .pricing-badge{
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;

  text-align: center;
  justify-content: center;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  width: max-content;
  max-width: none;
  white-space: nowrap;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(20,20,20,0.10);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  backdrop-filter: blur(10px);

  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pricing-card--featured .pricing-badge::before{
  content: "";
  display: inline-block;   /* важно */
  flex: 0 0 auto;          /* важно */

  width: 10px;
  height: 10px;
  border-radius: 999px;

  background:
    radial-gradient(circle at 30% 30%, #fff 0%, rgba(255,255,255,0.25) 22%, rgba(0,0,0,0) 62%),
    linear-gradient(180deg, rgba(212,175,55,0.98), rgba(212,175,55,0.55));
  box-shadow:
    0 0 0 3px rgba(212,175,55,0.12),
    0 10px 18px rgba(212,175,55,0.18);
}

.pricing-card--featured:hover .pricing-badge {
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
  border-color: rgba(20,20,20,0.14);
}

.pricing-block .pricing-card--featured .pricing-name {
  font-weight: 700;
}

.pricing-block .pricing-card--featured .pricing-price-amount {
  font-size: 58px;
}

.pricing-block .pricing-card--featured .pricing-desc {
  opacity: 1;
}

@media (max-width: 640px) {
  .pricing-block .pricing-price-amount {
    font-size: 40px;
  }
  .pricing-block .pricing-name {
    font-size: 16px;
  }
}

/* Best price pill above middle card */

.pricing-block .pricing-pill {
  display: none;
}

.pricing-block .pricing-pill img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Info button + tooltip */

.pricing-block .pricing-info {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.pricing-block .pricing-info-icon {
  font-size: 14px;
  font-weight: 700;
}

.pricing-block .pricing-tooltip {
  position: absolute;
  right: 0;
  top: 120%;
  max-width: 280px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  background-color: #111827;
  color: #f9fafb;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 10;
}

.pricing-block .pricing-tooltip-arrow {
  position: absolute;
  top: -5px;
  right: 10px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #111827;
}

.pricing-block .pricing-info:hover .pricing-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive layout for pricing */

@media (max-width: 1024px) {
  .pricing-block .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile pricing: horizontal scroll layout is in the main @media (max-width: 768px) block below */
/* BLOCK 4 — CAROUSEL */

.section--carousel {
  padding-top: 40px;
  padding-bottom: 70px;
}

/* Centered hero models carousel */

.models-carousel {
  position: relative;
}

.mc-viewport {
  overflow: hidden;
  width: 100%;
}

.mc-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: center;
  will-change: transform;
}

.mc-slide {
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
}

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

/* Strict 16:9 sizes */
.mc-slide.is-active { width: 980px; aspect-ratio: 16 / 9; }
.mc-slide:not(.is-active) { width: 420px; aspect-ratio: 16 / 9; opacity: 0.9; }

/* Arrows */
.mc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  box-shadow: 0 11px 24px rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

@media (max-width: 768px) {
  /* Models carousel – keep desktop composition, scaled for mobile */
  .section--carousel {
    padding-inline: 0;
  }

  .mc-viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
  }

  .mc-track {
    gap: 16px;
  }

  .mc-slide.is-active {
    width: 80vw;
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .mc-slide:not(.is-active) {
    width: 48vw;
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* BLOCK 5 — REQUEST A PROJECT (FAQ + FORM) — premium SaaS polish */

.section--contact {
  padding-top: 46px;
  padding-bottom: 80px;
}

.request-section {
  padding: 96px 0;
}

.request-section .container {
  max-width: 100%;
  margin: 0;
  padding: 0 24px;
}

.request-section-title {
  text-align: left;
  margin: 0 0 48px;
}

.request-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.form-wrapper {
  position: sticky;
  top: 36px;
}

@media (max-width: 900px) {
  .request-section {
    padding: 72px 0;
  }
  .request-section-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-wrapper {
    position: static;
    top: auto;
  }
}

/* Form as hero surface */
.contact-form {
  margin-top: 0;
  padding: 44px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(252, 252, 252, 1) 60%,
    rgba(248, 248, 248, 1) 100%
  );
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* FAQ block — centered single column */
.faq-block {
  max-width: 820px;
  margin: 0 auto;
}

.faq-title {
  font-size: 60px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 18px;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px 0;
}

.faq-item.active {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 14px;
  padding: 18px 14px;
  margin: 6px 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
}

.faq-question:hover {
  opacity: 0.78;
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.14);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  font-size: 15px;
  line-height: 1.55;
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.faq-item.active .faq-answer {
  max-height: 420px;
  opacity: 0.9;
  transform: translateY(0);
  margin-top: 10px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  margin-bottom: 24px;
}

.field__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

.field__input {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 11px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #f9f6ef;
}

.field__input--textarea {
  border-radius: 20px;
  resize: vertical;
  min-height: 130px;
}

.field__input:focus {
  border-color: #111827;
  background: #fdfaf4;
}

.contact-form__actions {
  display: flex;
  justify-content: flex-end;
}

.field-error {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.9;
  color: rgba(200, 40, 40, 0.9);
  min-height: 16px;
}

.form-trust {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}

.field__input.input-invalid {
  border-color: rgba(200, 40, 40, 0.35) !important;
  box-shadow: 0 0 0 4px rgba(200, 40, 40, 0.08);
}

/* FOOTER */

.footer {
  background: var(--bg-footer);
  color: #d1d5db;
  padding: 34px 0 32px;
  margin-top: auto;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer__title {
  font-size: 11px;
  letter-spacing: 0.23em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.footer__line {
  margin: 2px 0;
  font-size: 13px;
  color: #e5e7eb;
}

.footer__line--tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__icon {
  width: 32px;
  height: 32px;
  display: inline-block;
}

.footer__link {
  color: inherit;
  text-decoration: none;
}

.footer__link:hover,
.footer__link:focus-visible {
  text-decoration: underline;
}

.footer__col--right {
  text-align: right;
}

.footer__copyright {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .hero {
    flex-direction: column;
    gap: 32px;
  }

  .hero__left,
  .hero__right {
    flex: 1 1 auto;
  }

  .hero__right {
    justify-content: flex-start;
  }

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

  .comparison-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3x2 on tablet */
  }

  .carousel__viewport {
    padding-inline: 32px;
  }

  .carousel__item {
    flex-basis: 75%;
  }
}

@media (max-width: 768px) {
  .top-bar__inner {
    padding-inline: 24px;
  }

  .section {
    padding: 40px 0;
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 48px);
    letter-spacing: 0.06em;
    line-height: 1.05;
    max-width: 100%;
  }

  .hero__subtitle {
    font-size: clamp(12px, 3.4vw, 14px);
    letter-spacing: 0.12em;
    max-width: 100%;
  }

  .hero__tagline {
    white-space: normal;
  }

  .section--hero .btn--primary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .pricing-block .section-header--pricing .section-title {
    font-size: clamp(22px, 6vw, 28px);
    letter-spacing: 0.18em;
    margin-bottom: 20px;
  }

  /* Section contains card + badge; no clipping of badge or info button */
  .pricing-block,
  .pricing-block .container {
    overflow: visible;
  }

  .pricing-block .pricing-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    padding-top: 24px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: flex-start;
  }
  .pricing-block .pricing-grid::-webkit-scrollbar {
    display: none;
  }
  .pricing-block .pricing-card-wrapper {
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    box-sizing: border-box;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    align-self: stretch;
  }

  .pricing-block .pricing-card {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    padding: 24px 18px 22px;
    gap: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .pricing-block .pricing-card > * {
    min-width: 0;
    max-width: 100%;
  }

 /* Featured card */
.pricing-block .pricing-card--featured {
  position: relative;
  padding-top: 88px; /* reserve real space for badge + gap above title */
  overflow: visible; /* do not clip badge */
  transform: none;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 14px 36px rgba(0, 0, 0, 0.1);
}

/* Badge wrapper */
.pricing-block .pricing-card--featured .pricing-badge {
  position: absolute;
  top: 22px; /* sits in reserved top zone */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none; /* do not block info button */
  max-width: calc(100% - 96px); /* leave room for the info button on the right */
  white-space: nowrap;
}

/* Optional hover without vertical jump */
.pricing-block .pricing-card--featured .pricing-badge:hover {
  transform: translateX(-50%);
}

/* Title */
.pricing-block .pricing-card--featured .pricing-name {
  margin-top: 0;
  padding: 0 20px;
}

/* Info button stays clickable and above decorative layers */
.pricing-block .pricing-card--featured .pricing-info,
.pricing-block .pricing-card--featured .pricing-info-btn,
.pricing-block .pricing-card--featured .pricing-card__info {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  pointer-events: auto;
}

/* Extra safety for mobile */
@media (max-width: 768px) {
  .pricing-block .pricing-card--featured {
    padding-top: 92px;
  }

  .pricing-block .pricing-card--featured .pricing-badge {
    top: 20px;
    max-width: calc(100% - 104px);
  }
}
  /* Info button always on top and clickable */
  .pricing-block .pricing-info {
    z-index: 10;
    pointer-events: auto;
  }
  /* Active/centered card only gets lift on mobile (no hover/click) */
  .pricing-block .pricing-card-wrapper.is-centered .pricing-card {
    box-shadow:
      0 4px 8px rgba(0, 0, 0, 0.08),
      0 18px 44px rgba(0, 0, 0, 0.12);
  }

.pricing-block .pricing-name,
.pricing-block .pricing-desc,
.pricing-block .pricing-list,
.pricing-block .pricing-list li,
.pricing-block .pricing-note {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

/* TITLE — как у центральной карточки */
.pricing-block .pricing-name {
  font-size: 18px;
  line-height: 1.3;
  margin: 16px 0 8px;
  padding-right: 44px; /* место для кнопки i */
  padding-left: 44px;
  text-align: center;
}

/* PRICE */
.pricing-block .pricing-price {
  min-width: 0;
}

.pricing-block .pricing-price-amount {
  font-size: 40px;
  line-height: 1.1;
}

/* DESCRIPTION */
.pricing-block .pricing-desc {
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
  margin-bottom: 14px;
}

/* FEATURES LIST */
.pricing-block .pricing-list {
  width: 100%;
  max-width: 100%;
  margin-bottom: 16px;
  min-width: 0;
}

.pricing-block .pricing-list li {
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0;
}

/* NOTE */
.pricing-block .pricing-note {
  font-size: 13px;
  min-height: 3em;
  text-align: center;
}

/* BUTTON */
.pricing-card .cta-demo {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* INFO BUTTON POSITION FIX */
.pricing-card .pricing-info {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* HEADER AREA SAFE SPACE */
.pricing-card .pricing-header {
  position: relative;
  padding-right: 48px;
}

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

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

  .comparison {
    height: 120px;
  }

  .carousel__viewport {
    padding-inline: 32px;
  }

  .carousel__item {
    flex-basis: 86%;
  }

  .contact-form {
    padding-inline: 22px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 18px;
  }

  .footer__col--right {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 18px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .section-title {
    font-size: 18px;
    letter-spacing: 0.17em;
  }

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

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

  .hero__media {
    max-width: 100%;
  }
}

/* CTA "Request a demo" buttons */
.cta-demo {
  white-space: nowrap;
}

.cta-demo--card {
  margin-top: 18px;
  width: 100%;
}

/* Request a demo modal */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  width: min(720px, calc(100% - 48px));
  margin: 7vh auto;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.18);
  padding: 42px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.modal.is-open .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-main);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.04);
}

.modal-title {
  margin: 0 0 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
}
