/* ===================================================================
   SeoVolga Landing Page — css/style.css
   Design System: "Warm Professional" (Stripe / Notion / Cal.com style)
   Stack: Pure CSS3, Mobile-First
   Font: Inter 400/600/700
   =================================================================== */

/* --- Custom Properties --- */
:root {
  --color-bg:           #FFFFFF;
  --color-bg-warm:      #F5F5F5;
  --color-bg-card:      #FFFFFF;
  --color-bg-accent:    #FFF7ED;
  --color-bg-dark:      #282F3F;
  --color-bg-darker:    #1a1f2e;
  --color-text:         #282F3F;
  --color-text-muted:   #6B7280;
  --color-text-light:   #9CA3AF;
  --color-primary:      #FF9D00;
  --color-primary-hover: #E88E00;
  --color-primary-light: rgba(255, 157, 0, 0.08);
  --color-green:        #16A34A;
  --color-green-bg:     #DCFCE7;
  --color-border:       #E5E7EB;
  --color-border-light: #F3F4F6;
  --color-shadow:       rgba(0, 0, 0, 0.06);
  --color-telegram:     #2AABEE;
  --color-max:          #7B68EE;
  --radius-sm:          8px;
  --radius-md:          12px;
  --radius-lg:          16px;
  --radius-xl:          20px;
  --radius-full:        9999px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

address {
  font-style: normal;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  padding: 14px 32px;
  box-shadow: 0 1px 3px rgba(255, 107, 0, 0.3), 0 1px 2px rgba(255, 107, 0, 0.2);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--large {
  font-size: 18px;
  padding: 16px 48px;
}

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

.btn--secondary {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 32px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 16px;
}

.btn--secondary:hover {
  border-color: var(--color-text-light);
  box-shadow: 0 2px 8px var(--color-shadow);
  transform: translateY(-1px);
}

.btn--telegram {
  background: var(--color-telegram);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-md);
}

.btn--telegram:hover {
  background: #229ed9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 171, 238, 0.3);
}

.btn--max {
  background: var(--color-max);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-md);
}

.btn--max:hover {
  background: #6a5acd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 104, 238, 0.3);
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__stagger {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .flip-timer__card,
  .faq__answer,
  .faq__chevron,
  .btn,
  .upsells__card,
  .for-whom__card,
  .portfolio__card,
  .steps__item {
    transition: none !important;
    animation: none !important;
  }
}

/* ===================================================================
   BLOCK 0: STICKY HEADER (pr.seovolga.ru style)
   =================================================================== */
.header {
  position: relative;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

/* -- Topbar -- */
.topbar {
  background-color: #282F3F;
  padding: 8px 0;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.topbar__text {
  font-size: 13px;
  opacity: 0.8;
  display: none;
}

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

.topbar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
  gap: 6px;
}

.topbar__link:hover {
  color: #FF9D00;
}

.topbar__phone-number {
  font-size: 13px;
  font-weight: 500;
  display: none;
}

/* -- Main Navigation Bar -- */
.header__nav {
  background-color: #fff;
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.header.header--scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.header.header--scrolled .topbar {
  transform: translateY(-100%);
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
}

.header.header--scrolled .header__nav {
  border-bottom-color: var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.header__logo img {
  height: 32px;
  width: auto;
}

/* Navigation menu */
.header__menu {
  display: none;
  align-items: center;
  gap: 28px;
}

.header__menu-link {
  color: #282F3F;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.header__menu-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF9D00;
  transition: width 0.25s ease;
}

.header__menu-link:hover {
  color: #FF9D00;
}

.header__menu-link:hover::after {
  width: 100%;
}

/* Header CTA button (orange, pr.seovolga.ru style) */
.btn--hero-cta {
  background-color: #FF9D00;
  color: #fff;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 0 5px rgba(255, 157, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn--hero-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 157, 0, 0.4);
}

.btn--hero-cta:active {
  transform: scale(0.98);
}

.header__cta {
  font-size: 13px;
  padding: 8px 18px;
  display: none;
}

/* -- Burger (mobile only) -- */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #282F3F;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -- Mobile menu overlay -- */
.header__mobile-menu {
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.header__mobile-menu[hidden] {
  display: none;
}

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 24px;
  gap: 4px;
}

.header__mobile-link {
  display: block;
  padding: 12px 16px;
  color: #282F3F;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.header__mobile-link:hover {
  background: #FFF7ED;
}

.header__mobile-cta {
  margin-top: 12px;
  text-align: center;
}

/* ===================================================================
   BLOCK 1: HERO (Dark, pr.seovolga.ru style)
   =================================================================== */
.hero {
  position: relative;
  padding: 40px 0 55px;
  background: linear-gradient(160deg, #282F3F 0%, #1a1f2e 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
}

/* Bottom transition removed — trust-bar is a flat horizontal stripe */

/* Decorative orange accent blob */
.hero__blob {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 157, 0, 0.15) 0%, rgba(255, 157, 0, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero__blob--bottom {
  top: auto;
  right: auto;
  bottom: -150px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 157, 0, 0.08) 0%, rgba(255, 157, 0, 0) 70%);
}

/* Subtle dot pattern */
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Hero layout */
.hero__center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero__center .hero__title {
  text-align: center;
}

.hero__center .hero__subtitle {
  text-align: center;
  max-width: 600px;
}

.hero__center .hero__cta-row {
  justify-content: center;
}

.hero__center .hero__cta-note {
  text-align: center;
  margin-top: 12px;
}

.hero__center .hero__promo {
  max-width: 100%;
  margin-top: 24px;
}

/* Inline bullets — horizontal row */
.hero__bullets--inline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 0 28px;
  padding: 0;
}

.hero__bullet-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.hero__bullet-inline svg {
  flex-shrink: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.hero__left {
  flex: 1;
  max-width: 620px;
}

.hero__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: #FF9D00;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Staggered animations */
.hero__stagger {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-in 0.6s ease-out forwards;
  animation-delay: calc(0.1s + var(--stagger-index, 0) * 0.08s);
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero content */
.hero__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  font-family: 'Montserrat', sans-serif;
}

.hero__old-price {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-size: 0.75em;
}

.hero__new-price {
  color: #FF9D00;
  font-weight: 900;
}

.hero__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero__bullets {
  list-style: none;
  margin: 0 0 24px;
}

.hero__bullets--compact .hero__bullet {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.6;
  gap: 8px;
}

.hero__bullets--compact .hero__bullet-check {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.hero__bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 2.2;
}

.hero__bullet strong {
  color: #fff;
}

/* Orange check circle */
.hero__bullet-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #FF9D00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

/* Timer section in hero */
.hero__promo {
  margin-top: 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-md);
}

.hero__promo-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

/* Hero CTA row */
.hero__cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero__cta-note {
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__cta-note span {
  display: inline;
}

/* Hero primary CTA button */
.btn--hero-primary {
  background: linear-gradient(to right, #FFBB4F 30%, #FF9D00);
  color: #fff;
  padding: 16px 36px;
  border-radius: 35px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 0 8px rgba(255, 157, 0, 0.5);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  border: none;
}

.btn--hero-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 20px rgba(255, 157, 0, 0.5);
}

.btn--hero-primary:active {
  transform: scale(0.98);
}

/* Pulsing border animation */
.hero__pulse-btn {
  position: relative;
}

.hero__pulse-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 39px;
  border: 2px solid rgba(255, 157, 0, 0.6);
  animation: pulse-ring 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0%, 100% {
    inset: -4px;
    opacity: 0.7;
    border-color: rgba(255, 157, 0, 0.6);
  }
  50% {
    inset: -10px;
    opacity: 0;
    border-color: rgba(255, 157, 0, 0);
  }
}

/* --- Hero form card (right column) --- */
.hero__form-card {
  background: #fff;
  border: 2px solid #FF9D00;
  border-radius: 12px;
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero__form-title {
  font-size: 20px;
  font-weight: 700;
  color: #282F3F;
  text-align: center;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
}

.hero__form-title span {
  color: #FF9D00;
}

.hero__form-subtitle {
  font-size: 14px;
  color: #6B7280;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero__form-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #282F3F;
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.hero__form-field input::placeholder {
  color: #9CA3AF;
}

.hero__form-field input:focus {
  border-color: #FF9D00;
  box-shadow: 0 0 0 3px rgba(255, 157, 0, 0.15);
}

.hero__form-submit {
  margin-top: 4px;
  font-size: 16px;
  padding: 16px;
}

.hero__form-disclaimer {
  font-size: 11px;
  color: #9CA3AF;
  text-align: center;
  line-height: 1.4;
  margin-top: 4px;
}

/* --- Timer (compact, inline) --- */
.flip-timer {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.flip-timer__units {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flip-timer__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flip-timer__card {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  min-width: 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.flip-timer__digit {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1.2;
}

.flip-timer__label {
  font-size: 10px;
  color: var(--color-text-light);
  margin-top: 2px;
  text-transform: lowercase;
}

.flip-timer__separator {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-light);
  line-height: 1;
  padding-bottom: 14px;
}

.flip-timer__card.flip {
  animation: flipDigit 0.3s ease-in-out;
}

@keyframes flipDigit {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Hero timer variant (white on dark) */
.flip-timer--hero .flip-timer__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-timer--hero .flip-timer__digit {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.flip-timer--hero .flip-timer__label {
  color: rgba(255, 255, 255, 0.5);
}

.flip-timer--hero .flip-timer__separator {
  color: rgba(255, 255, 255, 0.3);
}

/* Dark timer variant for final CTA */
.flip-timer--dark .flip-timer__card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.flip-timer--dark .flip-timer__digit {
  color: #fff;
}

.flip-timer--dark .flip-timer__label {
  color: rgba(255, 255, 255, 0.5);
}

.flip-timer--dark .flip-timer__separator {
  color: rgba(255, 255, 255, 0.3);
}

/* --- Ended state (промо закончилось до понедельника) --- */
.flip-timer__ended {
  display: none;
  align-items: center;
  justify-content: center;
}

.flip-timer--ended .flip-timer__units {
  display: none;
}

.flip-timer--ended .flip-timer__ended {
  display: inline-flex;
  animation: timerEndedFade 0.4s ease-out;
}

.flip-timer__ended-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, #d4630a 100%);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(232, 117, 42, 0.35);
  white-space: nowrap;
}

@keyframes timerEndedFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ===================================================================
   BLOCK 2: TRUST BAR
   =================================================================== */
.trust-bar {
  position: relative;
  background: #E5E7EB;
  padding: 32px 0;
  border-bottom: none;
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  text-align: center;
  position: relative;
  z-index: 3;
}

/* Inline: цифра + суффикс + подпись в одну строку */
.trust-bar__item--inline {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.trust-bar__item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

.trust-bar__number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.trust-bar__suffix {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.trust-bar__label {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-top: 0;
  line-height: 1;
}

.trust-bar__divider {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--color-border);
  margin: 0 32px;
}

/* Mobile compact layout — number+suffix on top, label below */
@media (max-width: 767px) {
  .trust-bar {
    padding: 20px 0;
  }
  .trust-bar__inner {
    gap: 0;
    justify-content: space-around;
    padding: 0 12px;
  }
  .trust-bar__item--inline,
  .trust-bar__item {
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    grid-template-areas: "num suf" "lbl lbl";
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: baseline;
    column-gap: 4px;
    row-gap: 2px;
    text-align: center;
    white-space: normal;
  }
  .trust-bar__number { grid-area: num; font-size: 24px; }
  .trust-bar__suffix { grid-area: suf; font-size: 24px; }
  .trust-bar__label  { grid-area: lbl; font-size: 12px; line-height: 1.2; }
  .trust-bar__divider {
    height: 32px;
    margin: 0 4px;
    align-self: center;
  }
}

/* ===================================================================
   BLOCK 3: WHAT'S INCLUDED
   =================================================================== */
.included {
  padding: 60px 0;
  background: #ffffff;
}

.included__inner {
  margin: 0 auto;
}

.included__list {
  list-style: none;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.included__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.included__item:hover {
  box-shadow: 0 4px 12px var(--color-shadow);
  transform: translateY(-1px);
}

.included__icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-bg-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.included__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.included__note {
  font-size: 14px;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.6;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.included__note a {
  color: var(--color-primary);
  text-decoration: underline;
}

.included__note a:hover {
  color: var(--color-primary-hover);
}

/* ===================================================================
   BLOCK 4: FOR WHOM
   =================================================================== */
.for-whom {
  padding: 60px 0;
  background: var(--color-bg-card);
}

.for-whom__cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.for-whom__cards::-webkit-scrollbar {
  display: none;
}

.for-whom__card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.for-whom__card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.08);
  transform: translateY(-2px);
}

.for-whom__card-icon {
  margin-bottom: 16px;
}

.for-whom__card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.for-whom__card-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===================================================================
   BLOCK 5: WHY 9900
   =================================================================== */
.why-price {
  padding: 60px 0;
  background: var(--color-bg-warm);
}

.why-price__inner {
  margin: 0 auto;
}

.why-price__text {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.why-price__text p + p {
  margin-top: 16px;
}

.why-price__reasons {
  margin-bottom: 40px;
}

.why-price__reason {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: center;
}

.why-price__reason-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-bg-accent);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
}

.why-price__reason > div {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.why-price__reason strong {
  color: var(--color-text);
}

/* Comparison cards */
.why-price__compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.why-price__compare-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-price__compare-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.why-price__compare-card--highlight {
  border-color: var(--color-primary);
  border-width: 2px;
  background: var(--color-bg-accent);
  position: relative;
}

.why-price__compare-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.why-price__compare-label {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.why-price__compare-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.why-price__compare-price--striked {
  text-decoration: line-through;
  color: var(--color-text-light);
}

.why-price__compare-card--highlight .why-price__compare-price {
  color: var(--color-primary);
}

.why-price__compare-time {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Legacy table styles (kept for fallback) */
.why-price__table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
  display: none;
}

.why-price__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.why-price__table th,
.why-price__table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.why-price__table th {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.why-price__table s {
  color: var(--color-text-light);
}

.why-price__table-highlight {
  background: var(--color-bg-accent);
  border: 2px solid var(--color-primary);
}

.why-price__table-highlight td {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom-color: var(--color-primary);
}

.why-price__note {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.why-price__note a {
  color: var(--color-primary);
  text-decoration: underline;
}

.why-price__note a:hover {
  color: var(--color-primary-hover);
}

/* ===================================================================
   BLOCK 6: STEPS
   =================================================================== */
.steps {
  padding: 60px 0;
  background: var(--color-bg-card);
}

.steps__timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.steps__line {
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-border) 0,
    var(--color-border) 6px,
    transparent 6px,
    transparent 12px
  );
}

.steps__item {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  position: relative;
}

.steps__item:last-child {
  margin-bottom: 0;
}

.steps__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-card);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.steps__content {
  padding-top: 6px;
}

.steps__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.steps__text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===================================================================
   BLOCK 7: PORTFOLIO
   =================================================================== */
.portfolio {
  padding: 60px 0;
  background: var(--color-bg-warm);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.portfolio__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px var(--color-shadow), 0 1px 2px rgba(28, 25, 23, 0.03);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

.portfolio__card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.1);
}

.portfolio__card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg);
}

.portfolio__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio__card:hover .portfolio__card-img img {
  transform: scale(1.03);
}

.portfolio__card-body {
  padding: 20px;
}

.portfolio__card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.portfolio__card-time {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.portfolio__card-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Empty / "Your project" card */
.portfolio__card--empty {
  cursor: default;
  background: transparent;
  border: 1.5px dashed var(--color-border);
  box-shadow: none;
}
.portfolio__card--empty:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-primary);
}
.portfolio__card-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-warm) 100%);
}
.portfolio__card-empty-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  text-align: center;
}
.portfolio__card-empty-plus {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1.5px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1;
}
.portfolio__card-empty-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===================================================================
   BLOCK 8: UPSELLS
   =================================================================== */
.upsells {
  padding: 60px 0;
  background: var(--color-bg-card);
}

.upsells__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.upsells__card {
  position: relative;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.upsells__card:hover {
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.06);
  transform: translateY(-1px);
}

.upsells__card.is-selected {
  border-color: var(--color-primary);
  background: var(--color-bg-accent);
}

.upsells__checkbox {
  position: absolute;
  top: 16px;
  right: 16px;
}

.upsells__checkbox-checked {
  display: none;
}

.upsells__card.is-selected .upsells__checkbox svg:first-child {
  display: none;
}

.upsells__card.is-selected .upsells__checkbox-checked {
  display: block;
}

.upsells__card-icon {
  margin-bottom: 12px;
}

.upsells__card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.upsells__card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.upsells__card-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.upsells__total {
  background: var(--color-bg-accent);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  text-align: center;
  margin-bottom: 16px;
  animation: slideDown 0.2s ease;
}

.upsells__total-text {
  font-size: 15px;
  color: var(--color-text);
}

.upsells__total-text strong {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 18px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.upsells__note {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-light);
}

/* Details: "Что входит" spoiler inside upsells card */
.upsells__details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.upsells__details[open] {
  animation: slideDown 0.25s ease;
}

.upsells__summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.upsells__summary::-webkit-details-marker {
  display: none;
}

.upsells__summary:hover {
  color: #E35A00;
}

.upsells__summary-chevron {
  transition: transform 0.2s ease;
}

.upsells__details[open] .upsells__summary-chevron {
  transform: rotate(180deg);
}

.upsells__details-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.upsells__details-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.upsells__details-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 4l3 3 7-7' stroke='%23FF6B00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/contain;
}

.upsells__details-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  padding: 1px 6px;
  background: var(--color-bg-accent);
  border-radius: 4px;
  color: var(--color-text);
}

.upsells__details-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-light);
  font-style: italic;
}

/* Callout: quote-like note inside upsells card */
.upsells__callout {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: var(--color-bg-accent);
  border-left: 3px solid var(--color-primary);
  border-radius: 6px;
}

.upsells__callout p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

.upsells__callout p + p {
  margin-top: 4px;
}

.upsells__callout strong {
  color: var(--color-text);
  font-weight: 700;
}

.upsells__callout-sub {
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 400;
}

/* ===================================================================
   BLOCK 9: FAQ
   =================================================================== */
.faq {
  padding: 60px 0;
  background: var(--color-bg-warm);
}

.faq__inner {
  margin: 0 auto;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  line-height: 1.4;
  cursor: pointer;
  background: none;
  border: none;
}

.faq__question:hover {
  color: var(--color-primary);
}

/* Chevron icon */
.faq__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-light);
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq__item--open .faq__chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

/* Legacy icon fallback */
.faq__icon {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 300;
  color: var(--color-text-light);
  transition: transform 0.25s ease;
  line-height: 1;
  display: none;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq__item--open .faq__answer {
  max-height: 500px;
}

.faq__answer p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===================================================================
   BLOCK 10: REVIEWS
   =================================================================== */
.reviews {
  padding: 60px 0;
  background: var(--color-bg-card);
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.reviews__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.reviews__card:hover {
  box-shadow: 0 4px 12px var(--color-shadow);
  transform: translateY(-2px);
}

.reviews__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.reviews__star {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.reviews__quote {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 64px;
  font-weight: 700;
  color: var(--color-bg-accent);
  line-height: 1;
  pointer-events: none;
  font-family: Georgia, serif;
}

.reviews__text {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
  font-style: normal;
  border: none;
  padding: 0;
}

.reviews__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
}

.reviews__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviews__author strong {
  font-size: 14px;
  color: var(--color-text);
}

.reviews__author span {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===================================================================
   BLOCK 11: FINAL CTA
   =================================================================== */
.final-cta {
  padding: 80px 0;
  background: var(--color-bg-dark);
  color: #fff;
}

.final-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.final-cta__title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.final-cta__old-price {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.final-cta__new-price {
  color: var(--color-primary);
  font-weight: 700;
}

.final-cta__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  line-height: 1.6;
}

.final-cta__anchors {
  margin-bottom: 32px;
}

.final-cta__anchor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.final-cta__anchor-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.final-cta__anchor-price--striked {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
}

.final-cta__anchor-price--striked s {
  color: rgba(255, 255, 255, 0.4);
}

.final-cta__anchor-row--highlight {
  border-bottom: none;
}

.final-cta__anchor-row--highlight .final-cta__anchor-label {
  color: #fff;
  font-weight: 600;
}

.final-cta__anchor-price--current {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

.final-cta__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.final-cta__input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.final-cta__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.final-cta__input:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.12);
}

.final-cta__note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.final-cta__success {
  background: var(--color-green);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.final-cta__success p {
  font-size: 15px;
  color: #fff;
  line-height: 1.6;
}

.final-cta__messengers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* ===================================================================
   BLOCK 12: FOOTER
   =================================================================== */
.footer {
  background: var(--color-bg-darker);
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer__logo {
  height: 28px;
  width: auto;
  margin-bottom: 8px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer__heading {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__address {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}

/* ===================================================================
   MOBILE STICKY CTA
   =================================================================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--color-bg-card);
  box-shadow: 0 -2px 12px var(--color-shadow);
  border-top: 1px solid var(--color-border);
}

.sticky-cta .btn {
  height: 48px;
  font-size: 16px;
}

/* ===================================================================
   PORTFOLIO POPUP
   =================================================================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.popup-overlay.active {
  display: flex;
}

.popup {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 88vh;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(28, 25, 23, 0.2);
  display: flex;
  flex-direction: column;
}

.popup__toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
}

.popup__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.popup__devices {
  display: inline-flex;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.popup__device {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.popup__device:hover {
  color: var(--color-text);
}

.popup__device.is-active {
  background: var(--color-bg-card);
  color: var(--color-primary);
  box-shadow: 0 1px 3px var(--color-shadow);
}

.popup__device svg {
  flex: 0 0 auto;
}

/* On tablet viewports — hide Desktop preview button */
@media (max-width: 1024px) {
  .popup__device[data-device="desktop"] {
    display: none;
  }
}

/* On mobile viewports — only Mobile preview button */
@media (max-width: 767px) {
  .popup__device[data-device="tablet"] {
    display: none;
  }
}

.popup__close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.15s ease;
}

.popup__close:hover {
  background: var(--color-bg);
}

.popup__content {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  background: var(--color-bg);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  transition: padding 0.25s ease;
}

.popup__frame-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow: hidden;
  transition: width 0.3s ease, max-width 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease, margin 0.3s ease;
}

.popup__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Device viewport simulation */
.popup__content[data-device="tablet"],
.popup__content[data-device="mobile"] {
  padding: 16px 0;
  background: #1c1917;
}

.popup__content[data-device="tablet"] .popup__frame-wrap {
  width: 100%;
  max-width: 820px;
  border-radius: 18px;
  border: 10px solid #2a2520;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.popup__content[data-device="mobile"] .popup__frame-wrap {
  width: 100%;
  max-width: 390px;
  border-radius: 28px;
  border: 10px solid #2a2520;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ===================================================================
   RESPONSIVE: Tablet (768px+)
   =================================================================== */
@media (min-width: 768px) {
  .section-title {
    font-size: 32px;
    margin-bottom: 56px;
    letter-spacing: -0.02em;
  }

  /* Header: topbar */
  .topbar__text {
    display: inline;
  }

  .topbar__phone-number {
    display: inline;
  }

  /* Header: nav */
  .header__menu {
    display: flex;
  }

  .header__burger {
    display: none;
  }

  .header__cta {
    display: inline-flex;
    font-size: 14px;
    padding: 10px 24px;
  }

  /* Hero */
  .hero {
    padding: 150px 0 120px;
  }

  .hero__grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .hero__right {
    display: flex;
    justify-content: flex-end;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .hero__bullet {
    font-size: 16px;
  }

  /* Trust Bar */
  .trust-bar__inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .trust-bar__number {
    font-size: 32px;
  }

  .trust-bar__suffix {
    font-size: 32px;
  }

  .trust-bar__label {
    font-size: 13px;
  }

  .trust-bar__divider {
    display: block;
    width: 1px;
    height: 40px;
    background: var(--color-border);
    margin: auto 0;
  }

  /* Included grid */
  .included__list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* For Whom */
  .for-whom__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    scroll-snap-type: none;
  }

  .for-whom__card {
    flex: auto;
  }

  /* Why Price comparison */
  .why-price__compare {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Upsells */
  .upsells__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reviews */
  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Final CTA */
  .final-cta__title {
    font-size: 30px;
  }

  .final-cta__messengers {
    flex-direction: row;
    justify-content: center;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hide sticky CTA on tablet+ */
  .sticky-cta {
    display: none !important;
  }

  /* Steps horizontal */
  .steps__timeline {
    max-width: 100%;
    display: flex;
    gap: 24px;
    justify-content: center;
  }

  .steps__line {
    display: none;
  }

  .steps__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 240px;
    margin-bottom: 0;
    position: relative;
  }

  .steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 28px);
    width: calc(100% - 16px);
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      var(--color-border) 0,
      var(--color-border) 6px,
      transparent 6px,
      transparent 12px
    );
  }

  .steps__num {
    margin-bottom: 16px;
  }
}

/* ===================================================================
   RESPONSIVE: Desktop (1024px+)
   =================================================================== */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

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

  /* Hero */
  .hero {
    padding: 50px 0 84px 0;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__grid {
    gap: 60px;
    align-items: center;
  }

  .hero__form-card {
    padding: 36px 32px;
  }

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

  /* Included */
  .included {
    padding: 30px 0;
  }

  /* For Whom */
  .for-whom {
    padding: 80px 0;
  }

  .for-whom__cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .for-whom__card:nth-child(4),
  .for-whom__card:nth-child(5) {
    max-width: 380px;
    justify-self: center;
  }

  /* Why Price */
  .why-price {
    padding: 80px 0;
  }

  /* Steps */
  .steps {
    padding: 80px 0;
  }

  /* Portfolio */
  .portfolio {
    padding: 80px 0;
  }

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

  /* Upsells */
  .upsells {
    padding: 80px 0;
  }

  .upsells__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* FAQ */
  .faq {
    padding: 80px 0;
  }

  /* Reviews */
  .reviews {
    padding: 80px 0;
  }

  /* Final CTA */
  .final-cta {
    padding: 100px 0;
  }

  .final-cta__title {
    font-size: 36px;
  }

  .final-cta__subtitle {
    font-size: 18px;
  }
}

/* Popup fullscreen on mobile */
@media (max-width: 767px) {
  .popup-overlay {
    padding: 0;
  }

  .popup {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .popup__toolbar {
    gap: 8px;
    padding: 8px 10px;
  }

  .popup__title {
    display: none;
  }

  .popup__device span {
    display: none;
  }

  .popup__device {
    padding: 8px 10px;
  }

  /* For whom: horizontal scroll on mobile */
  .for-whom__cards {
    grid-template-columns: unset;
    display: flex;
  }
}

/* Smooth body scroll lock when popup open */
body.popup-open {
  overflow: hidden;
}
