:root {
  /* Colors */
  --color-0: #000000;
  --color-1: #058E00;
  --color-2: #18C936;
  --color-3: #21CE6B;
  --color-4: #333961;
  --color-5: #444444;
  --color-6: #53F06D;
  --color-7: #595959;
  --color-8: #636363;
  --color-9: #9747FF;
  --color-10: #B01500;
  --color-11: #B9D4FF;
  --color-12: #C4C4C4;
  --color-13: #E6E5E6;
  --color-14: #ECF9F0;
  --color-15: #F4F5F7;
  --color-16: #F99248;
  --color-17: #FF7A1C;
  --color-18: #FFE0D1;
  --color-19: #FFF3EA;
  --color-20: #FFFFFF;
  --color-21: rgba(0, 0, 0, 0.32);
  --color-22: rgba(0, 0, 0, 0.4);
  --color-23: rgba(0, 0, 0, 0.56);
  --color-24: rgba(173, 173, 173, 0.3);
  --color-25: rgba(205, 205, 205, 0.2);
  --color-26: rgba(234, 234, 234, 0.68);
  --color-27: rgba(255, 255, 255, 0.08);
  --color-28: rgba(255, 255, 255, 0.1);
  --color-29: rgba(255, 255, 255, 0.56);
  --color-30: rgba(255, 255, 255, 0.8);
  --color-31: rgba(55, 55, 55, 0.8);
  --color-32: rgba(77, 28, 0, 0.13);
  --color-33: rgba(77, 28, 0, 0.33);

  /* Typography */
  --font-family-0: 'Brandon Text';
  --font-family-1: 'Inter';
  --font-family-2: 'MTS Compact';
  --font-family-3: 'SF Pro';
  --font-family-4: 'Nunito Sans', 'TT Norms';
  --font-size-0: 4px;
  --font-size-1: 5px;
  --font-size-2: 11px;
  --font-size-3: 12px;
  --font-size-4: 13px;
  --font-size-5: 14px;
  --font-size-6: 15px;
  --font-size-7: 16px;
  --font-size-8: 18px;
  --font-size-9: 20px;
  --font-size-10: 24px;
  --font-size-11: 28px;
  --font-size-12: 36px;
  --font-size-13: 38px;
  --font-size-14: 44px;
  --font-size-15: 46px;
  --font-size-16: 100px;
  --font-weight-0: 420;
  --font-weight-1: 500;
  --font-weight-2: 590;
  --font-weight-3: 600;
  --font-weight-4: 700;

  /* Spacing & Borders */
  --spacing-0: 0px 0px 0px 20px;
  --spacing-1: 0px 0px 0px 37px;
  --spacing-2: 0px 0px 32px;
  --spacing-3: 0px 102px;
  --spacing-4: 0px 13px 0px 0px;
  --spacing-5: 0px 160px 0px 0px;
  --spacing-6: 0px 19px 0px 0px;
  --spacing-7: 0px 20px;
  --spacing-8: 0px 26px;
  --spacing-9: 0px 30px;
  --spacing-10: 0px 41px 0px 0px;
  --spacing-11: 0px 4px 16px;
  --spacing-12: 0px 65px 0px 0px;
  --spacing-13: 0px 8px;
  --spacing-14: 0px 8px 0px 0px;
  --spacing-15: 10px;
  --spacing-16: 10px 0px 7px;
  --spacing-17: 10px 0px 8px;
  --spacing-18: 12px;
  --spacing-19: 13px 13px 126px 12px;
  --spacing-20: 161px 86px 503px 133px;
  --spacing-21: 16px;
  --spacing-22: 16px 16px 15px;
  --spacing-23: 16px 16px 28px;
  --spacing-24: 20px;
  --spacing-25: 20px 0px 0px;
  --spacing-26: 20px 48px;
  --spacing-27: 24px;
  --spacing-28: 30px 0px;
  --spacing-29: 30px 0px 80px;
  --spacing-30: 32px;
  --spacing-31: 39px 0px 35px 130px;
  --spacing-32: 3px 0px;
  --spacing-33: 3px 0px 0px;
  --spacing-34: 40px;
  --spacing-35: 40px 160px;
  --spacing-36: 40px 181px;
  --spacing-37: 46px 89px 39px 20px;
  --spacing-38: 48px;
  --spacing-39: 4px;
  --spacing-40: 4px 7px 6px 8px;
  --spacing-41: 4px 8px 6px;
  --spacing-42: 50px 0px;
  --spacing-43: 50px 0px 100px;
  --spacing-44: 50px 130px;
  --spacing-45: 50px 20px;
  --spacing-46: 6px;
  --spacing-47: 6px 8px 5px 7px;
  --spacing-48: 7px 0px 5px;
  --spacing-49: 7px 0px 6px;
  --spacing-50: 7px 8px 6px;
  --spacing-51: 833px 0px 0px;
  --spacing-52: 8px;
  --spacing-53: 8px 0px 5px;
  --border-radius-0: 4px;
  --border-radius-1: 5px;
  --border-radius-2: 6px;
  --border-radius-3: 8px;
  --border-radius-4: 10px;
  --border-radius-5: 12px;
  --border-radius-6: 15px;
  --border-radius-7: 16px;
  --border-radius-8: 17px;
  --border-radius-9: 18px;
  --border-radius-10: 20px;
  --border-radius-11: 24px;
  --border-radius-12: 27px;
  --border-radius-13: 28px;
  --border-radius-14: 32px;
  --border-radius-15: 58px;
  --border-radius-16: 97px;
}


/* ============================================================
   1_SCREEN — Mobile Layout Styles (pixel-accurate vs Figma)
   ============================================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-4), sans-serif;
  background-color: var(--color-20);
  color: var(--color-4);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

main {
  display: block;
}

/* ── Header ───────────────────────────────────────────────── */
/* Mobile: height 119px, logo absolutely positioned           */

.header {
  position: relative;
  width: 100%;
  height: 119px;
  background-color: #FFFFFF;
  overflow: hidden;
}

.logo {
  position: absolute;
  left: 20px;
  top: 72px;
  width: 80px;
  height: 34px;
  display: block;
}

.logo img {
  width: 80px;
  height: 34px;
  display: block;
}

/* Nav hidden on mobile */
.header-nav {
  display: none;
}

/* ── Header — Desktop ─────────────────────────────────────── */
@media (min-width: 768px) {
  .header {
    height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(32px, 6vw, 80px);
    overflow: visible;
  }

  .logo {
    position: static;
    width: 140px;
    height: 59.17px;
    flex-shrink: 0;
  }

  .logo img {
    width: 140px;
    height: 59.17px;
  }

  /* Nav shown on desktop */
  .header-nav {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
  }

  .nav-link {
    text-decoration: none;
    font-family: var(--font-family-4), sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #333961;
    white-space: nowrap;
    transition: color 0.2s ease;
  }

  .nav-link:hover {
    color: #FF7A1C;
  }
}

/* ── Hero Screen ──────────────────────────────────────────── */
/* Figma: width 393px, height 654px, bg #FFFFFF               */
/* Contains a 727px tall Frame 2131331212 (overflow hidden)   */

.hero-screen {
  position: relative;
  width: 100%;
  height: 654px;
  background-color: #FFFFFF;
  overflow: hidden;
}

/* ── Background layers (stacked absolutely) ─────────────── */
/* Layer 1: Mother photo — 393×653px at top:0 left:0          */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 653px;
  object-fit: cover;
  object-position: top center;
}

/* Layer 2: Orange gradient overlay                           */
.hero-gradient-orange {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 654px;
  background: linear-gradient(180deg, rgba(238, 111, 42, 0) 80%, #EE6F2A 97%);
  pointer-events: none;
  opacity: 0.9;
}

/* Layer 3: Dark bottom gradient                              */
.hero-gradient-bottom {
  position: absolute;
  top: 310px;
  left: 0;
  width: 100%;
  height: 340px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 4.56%, #7A421D 91.18%);
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ── Hero Title ──────────────────────────────────────────── */
/* Figma: absolute left:19px top:31px, width:292px, height:160px */
/* color #FFF, TT Norms, 38px/40px                             */
/* fontWeight not set in Figma CSS — design renders as Medium  */
.hero-title {
  position: absolute;
  left: 19px;
  top: 31px;
  width: 292px;
  height: 160px;
  overflow: hidden;
  color: #FFFFFF;
  font-family: var(--font-family-4), sans-serif;
  font-size: 38px;
  line-height: 40px;
  font-weight: 300;
  /* Adjusted from 400 */
  z-index: 2;
}

/* ── Notification Card ───────────────────────────────────── */
/* Figma: absolute left:20px top:475px, width:293px, height:63px */
/* bg rgba(255,255,255,0.8), border-radius 16px              */

/* On mobile the wrapper is transparent — children still use absolute positioning */
.hero-content-desktop {
  position: static;
  width: 0;
  height: 0;
  overflow: visible;
}

.notifications {
  position: absolute;
  left: 20px;
  top: 475px;
  width: 293px;
  height: 63px;
  z-index: 2;
}

.notification-card {
  width: 293px;
  height: 63px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;

  /* Animation defaults (hidden, entering from bottom) */
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.notification-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.notification-card.exit {
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
}

/* Icon: green circle containing the Vector logo */
.notification-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #53F06D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon img {
  width: 22px;
  height: auto;
  display: block;
}

/* Text container to handle dynamic lines */
.notification-text {
  position: absolute;
  left: 63px;
  top: 0;
  width: 179px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

/* Title text */
.notification-title {
  font-family: var(--font-family-2), sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 15px;
  color: #000000;
}

/* Subtitle text */
.notification-subtitle {
  font-family: var(--font-family-2), sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 15px;
  color: #000000;
}

/* Time: absolute left:230px top:11px, width:50px             */
/* color #000, MTS Compact, 13px/18px, text-align right       */
.notification-time {
  position: absolute;
  left: 230px;
  top: 11px;
  width: 50px;
  height: 19px;
  font-family: var(--font-family-2), sans-serif;
  font-size: 13px;
  line-height: 18px;
  font-weight: 300;

  color: #000000;
  text-align: right;
}

/* ── Label Pill ──────────────────────────────────────────── */
/* Figma: absolute left:20px top:556px, width:353px height:69px */
/* bg rgba(77,28,0,0.33), border-radius:28px                 */
.labels {
  position: absolute;
  left: 20px;
  top: 556px;
  width: calc(100% - 40px);
  max-width: 353px;
  height: 69px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(77, 28, 0, 0.3), rgba(77, 28, 0, 0.3)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 100%) border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(77, 28, 0, 0.33);

  border-radius: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Inner label row: absolute left:13px top:11px, width:323px  */
/* flex, gap:12px, justify-content:space-between              */
.label-inner {
  position: absolute;
  left: 13px;
  top: 11px;
  right: 13px;
  height: 48px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

/* Each label item: flex, gap:4px, align-items:center         */
.label {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Icon container: 48×48px, border-radius:97px (circular bg)  */
.label-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 97px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.label-icon img {
  display: block;
}

/* Camera (no_camera) icon: single combined SVG, 48×48        */
.label-icon .icon-base {
  width: 36px;
  height: 36px;
}

/* Wrist icon: component_27.svg 48×48                         */
.label-icon .icon-full {
  width: 36px;
  height: 36px;
}

/* Label text: TT Norms, 16px/20px, color #FFFFFF             */
.label span {
  color: #FFFFFF;
  font-family: var(--font-family-4), sans-serif;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}

/* ── Responsive Utilities ────────────────────────────────── */
.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: inline;
  }
}

/* ============================================================
   DESKTOP / TABLET BREAKPOINT (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {

  /* ── Hero — fixed height, desktop image, no gradients ─── */
  .hero-screen {
    height: clamp(380px, 45vw, 720px);
    min-height: unset;
  }

  /* Switch to desktop image, crop to show upper portion */
  .hero-image {
    content: url('../assets/mother_desktop.png');
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
  }

  /* Hide mobile gradients on desktop */
  .hero-gradient-orange,
  .hero-gradient-bottom {
    display: none;
  }

  /* ── Hero content: full-overlay column ─────────── */
  .hero-content-desktop {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(32px, 6vw, 80px);
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transform: translateY(-15%);
    /* Shift everything up slightly as requested previously */
  }

  /* Hero title — Figma desktop spec */
  .hero-title {
    position: static;
    width: min(440px, 40vw);
    height: auto;
    font-family: 'TT Norms', var(--font-family-4), sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 110%;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    overflow: visible;
    z-index: auto;
    pointer-events: auto;
    margin-bottom: 24px;
  }

  /* Bottom row containing labels and notifications */
  .hero-bottom-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    pointer-events: none;
  }

  /* Labels pill — Figma desktop spec */
  .labels {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    min-height: unset;
    border-radius: 24px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    overflow: visible;
    top: unset;
    left: unset;
    pointer-events: auto;
  }

  .label-inner {
    position: static;
    height: auto;
    width: auto;
    justify-content: flex-start;
    gap: 20px;
  }

  /* RIGHT column: notifications vertically centered */
  .hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: auto;
    margin-right: 10%;
  }

  /* Notifications container */
  .notifications {
    position: relative;
    left: unset;
    top: unset;
    width: 293px;
    height: 63px;
  }
}


/* ============================================================
   2_SCREEN — Value Proposition Section
   Figma: width 393px, height 541px (mobile)
   ============================================================ */

.screen2 {
  position: relative;
  width: 100%;
  background-color: #FFFFFF;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

/* ── Heading ──────────────────────────────────────────────── */
/* Figma: width 353px, left 20px, color #333961, 28px/32px, weight 500 */
.screen2-heading {
  width: 100%;
  max-width: 353px;
  color: #333961;
  font-family: var(--font-family-4), sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 32px;
}

/* ── Visual block: kit photo + phone mockup ─────────────── */
/* Figma: Kit+Iphone frame, width 393px, height 194px        */
/* overflow:hidden so the 280px phone doesn't bleed into text */
.screen2-visual {
  position: relative;
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  /* clips the phone that extends past 200px */
}

/* Kit devices photo: width 240px, adjusted left to bring closer */
.screen2-kit-img {
  position: absolute;
  left: 8px;
  /* moved right from -8px */
  top: 16px;
  width: 240px;
  height: auto;
  object-fit: contain;
}

/* Phone mockup wrapper — "Green" layer: 129×280px            */
/* Figma: border-radius 15px, adjusted right to bring closer  */
.screen2-phone-wrap {
  position: absolute;
  right: 28px;
  /* moved left from 16px */
  top: 0;
  width: 129px;
  height: 252px;
  /* reduced by 10% from 280px */
  border-radius: 15px;
  overflow: hidden;
  /* clips bezel-overflowing content */
}

/* ── Home Screen layer (inside Green) ─────────────────────── */
/* Figma: 129×280px, bg #F4F5F7, border-radius 10px           */
/* flex column, padding: 0 0 32px                              */
.phone-home-screen {
  position: absolute;
  inset: 0;
  background-color: #F4F5F7;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 4px;
}

/* Status Bar image — real Figma export (129×20px) */
.phone-status-bar-img {
  width: 100%;
  height: 20px;
  display: block;
  object-fit: cover;
  align-self: stretch;
  flex-shrink: 0;
  margin-top: 10px;
}

/* CSS-drawn status bar icons — no longer used (replaced by SVG img) */
.phone-status-time,
.phone-status-icons,
.phone-signal,
.phone-wifi,
.phone-battery {
  display: none;
}

/* ── Icon cross: compass layout with avatar centered ─────── */
/* Figma: 113×61px icon area; avatar 38×38px absolutely       */
/* centered; 4 small 8px icons at N / W / E / S positions     */
.phone-icon-cross {
  width: 113px;
  height: 61px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
}

/* Avatar: centered absolutely so compass icons can surround it */
.phone-avatar {
  width: 38px;
  height: 38px;
  display: block;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Shared compass icon position */
.phone-cross-icon {
  position: absolute;
  width: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* North: sun — centered above avatar */
.phone-cross-icon--n {
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

/* West: sunset — centered left of avatar */
.phone-cross-icon--w {
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
}

/* East: sunset — centered right of avatar */
.phone-cross-icon--e {
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
}

/* South: moon — centered below avatar */
.phone-cross-icon--s {
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

/* Real Figma icon image inside each compass position */
/* The SVGs are 16×16 viewBox; displayed at 8px on screen  */
.phone-cross-img {
  width: 8px;
  height: 8px;
  display: block;
  object-fit: contain;
}

/* Status label: "Мама в порядке" — large, centered, Inter bold */
.phone-status-text {
  width: 100%;
  color: #333961;
  font-family: var(--font-family-1), sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 16px;
  margin: 0;
  padding: 0 8px;
  flex-shrink: 0;
}

/* ── Frame 2131330982: Activity section ──────────────────── */
/* Figma: 129×118px, flex col, gap 8px, padding 0 8px        */
.phone-activity {
  width: 113px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  flex-shrink: 0;
  margin-bottom: -15px;
  /* reduce gap to tab bar by 50% */
}

/* "Активность сегодня, 4 марта" — 5px font, weight 600, center */
.phone-activity-heading {
  width: 113px;
  height: 8px;
  color: #333961;
  font-family: var(--font-family-1), sans-serif;
  font-size: 5px;
  font-weight: 400;
  text-align: center;
  line-height: 8px;
  display: block;
}

/* Activity card: icon | text | status badge — 3-column row   */
/* Figma: 113×22px, bg #FFFFFF, border-radius 6px             */
.phone-activity-card {
  width: 113px;
  height: 22px;
  background-color: #FFFFFF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 6px;
  flex-shrink: 0;
}

/* Left icon: walking / bed SVG */
.phone-card-icon {
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Center text column: activity name + time */
.phone-activity-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  gap: 1px;
}

/* Activity name: 5px, color #333961 */
.phone-activity-name {
  font-family: var(--font-family-1), sans-serif;
  font-size: 5px;
  color: #333961;
  line-height: 6px;
  display: block;
}

/* Activity time: 4px, color rgba(0,0,0,0.32), weight 500 */
.phone-activity-time {
  font-family: var(--font-family-1), sans-serif;
  font-size: 4px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.32);
  line-height: 5px;
  display: block;
}

/* Activity status: "✓ Как обычно" */
.phone-activity-status {
  font-family: var(--font-family-1), sans-serif;
  font-size: 4px;
  font-weight: 500;
  color: #333961;
  /* normal text color */
  line-height: 5px;
  align-self: flex-end;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Make just the tick mark green */
.phone-status-tick {
  color: #18C936;
}

/* Expand button */
.phone-expand-btn {
  width: 51px;
  height: 15px;
  background-color: #FFFFFF;
  border-radius: 5px;
  border: none;
  color: #333961;
  /* black text */
  font-family: var(--font-family-1), sans-serif;
  font-size: 5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 0;
  /* center horizontally */
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* Bottom Tab Bar */
.phone-tab-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  /* bring tabs closer */
  gap: 12px;
  padding: 0 8px;
  flex-shrink: 0;
  align-self: stretch;
}

.phone-tab {
  width: 36px;
  height: 36px;
  background-color: #FFFFFF;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.phone-tab-icon {
  width: 15px;
  height: 15px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  /* make the icon circular */
}

/* Phone bezel overlay — absolute on top of everything */
.screen2-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 2;
}

/* ── Text + CTA block ────────────────────────────────────── */
/* Figma: text+btn frame, width 393px, padding 0 20px, gap 16px */
.screen2-text-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

/* Body paragraph: 353px wide, 16px/24px, color #333961 */
.screen2-body {
  width: 100%;
  color: #333961;
  font-family: var(--font-family-4), sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  margin-top: 15px;
}

/* CTA button: 172×51px, #FF7A1C, border-radius 12px */
.screen2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 172px;
  height: 51px;
  background-color: #FF7A1C;
  border-radius: 12px;
  color: #FFFFFF;
  font-family: var(--font-family-4), sans-serif;
  font-size: 18px;
  line-height: 25px;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.screen2-btn:hover {
  background-color: #F99248;
}

.screen2-btn:active {
  background-color: #FFFFFF;
  color: #FF7A1C;
  transform: scale(0.97);
}

/* ── Desktop breakpoint ──────────────────────────────────── */
@media (min-width: 768px) {

  /* Use CSS grid: left column (heading+text+btn) | right column (visual) */
  .screen2 {
    padding: 0;
    display: block;
    /* remove grid from outer wrapper */
  }

  .screen2-inner {
    max-width: 1180px;
    /* matches inner Screen 2 frame width in Figma */
    margin: 0 auto;
    /* centers it, mimicking absolute positioning from Figma */
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "heading visual"
      "textblock visual";
    align-items: center;
    padding: 0 clamp(32px, 7vw, 102px);
    /* 102px matches Figma padding */
    column-gap: clamp(32px, 4vw, 72px);
    row-gap: 20px;
    min-height: 465px;
    overflow: visible;
  }

  .screen2-heading {
    grid-area: heading;
    align-self: end;
    margin: 0;
    max-width: 550px;
    font-size: clamp(24px, 2.2vw, 36px);
    font-weight: 650;
    line-height: 1.15;
  }

  .screen2-text-block {
    grid-area: textblock;
    align-self: start;
    padding: 0;
    gap: 24px;
    max-width: 520px;
  }

  /* Right column: visual — taller on desktop, overflow visible */
  .screen2-visual {
    grid-area: visual;
    width: 100%;
    height: clamp(280px, 38vw, 420px);
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .screen2-kit-img {
    position: relative;
    left: auto;
    top: auto;
    width: 230px;
    /* matched user comment */
  }

  .screen2-phone-wrap {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    margin-left: -50px;
    /* pull it left to overlap kit image */
    margin-top: 30px;
    width: 160px;
    height: 312px;
    transform: scale(0.5);
    transform-origin: left center;
  }

  .phone-home-screen {
    border-radius: 12px;
  }

  .screen2-kit-img {
    left: 0;
    width: 330px;
    top: 20px;
  }

  .screen2-body {
    font-size: 17px;
  }
}

/* ── Benefits Section ─────────────────────────────────────── */
.benefits-section {
  background: linear-gradient(326deg, #FFE0D1 0.15%, #F3DBDD 48.37%, #B9D4FF 85.88%), #FFF;
  display: flex;
  padding: 50px 20px;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}

.benefits-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefits-title {
  font-family: var(--font-family-1), sans-serif;
  color: #333961;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0;
  text-align: left;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefit-item {
  display: flex;
  align-items: center;
  /* Centered vertically */
  gap: 20px;
}

.benefit-icon {
  width: 80px;
  /* Increased size */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon img {
  width: 100%;
  height: auto;
}

.benefit-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.benefit-item-title {
  font-family: var(--font-family-1), sans-serif;
  color: #333961;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0;
}

.benefit-item-text {
  font-family: var(--font-family-4), sans-serif;
  color: rgba(51, 57, 97, 0.7);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

@media (min-width: 1024px) {
  .benefits-section {
    padding: 80px 40px;
  }

  .benefits-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 24px;
  }

  .benefits-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 70%;
    margin: auto;
  }

  .benefit-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .benefit-item-title {
    font-size: 20px;
  }

  .benefit-item-text {
    font-size: 17px;
  }

  .benefit-icon {
    width: 88px;
  }

  .benefit-content {
    padding-left: 20px;
  }
}

/* ── FAQ Section ─────────────────────────────────────────── */
.faq-section {
  padding: 50px 20px;
  background-color: #FFFFFF;
}

.faq-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-title {
  font-family: var(--font-family-1), sans-serif;
  color: #333961;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 32px 0;
  text-align: left;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  display: flex;
  flex-direction: column;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
  outline: none;
}

.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: -2px;
  /* Slight adjustment to align with text */
}

.faq-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: #F47A23;
  transform: translateY(-50%);
}

.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 20px;
  background-color: #F47A23;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.faq-question-text {
  font-family: var(--font-family-1), sans-serif;
  color: #333961;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 40px;
  /* 24px icon + 16px gap */
}

.faq-answer p {
  font-family: var(--font-family-4), sans-serif;
  color: rgba(51, 57, 97, 0.7);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  /* Normal weight */
  margin: 12px 0 0 0;
  padding-bottom: 8px;
}

@media (min-width: 1024px) {
  .faq-section {
    padding: 80px 40px;
  }

  .faq-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
  }

  .faq-list {
    width: 70%;
    margin: 0 auto;
    gap: 32px;
  }

  .faq-question-text {
    font-size: 20px;
  }

  .faq-answer p {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background-color: #333961;
  padding: 50px 20px;
  color: #FFFFFF;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  height: 60px;
  margin-bottom: 16px;
}

.footer-links-contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-links,
.footer-contact,
.footer-company {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer a {
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-family-4), sans-serif;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

.footer a:hover {
  text-decoration: underline;
}

.footer p {
  color: #FFFFFF;
  font-family: var(--font-family-4), sans-serif;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  margin: 0;
}

.footer-company p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px !important;
  margin-top: 16px;
}

.footer-social {
  display: none;
}

.hide-on-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .footer {
    padding: 60px 40px;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 140px;
  }

  .footer-logo {
    margin-bottom: 0;
  }

  .footer-links-contact {
    flex: 1;
    margin-left: 10%;
    gap: 16px;
  }

  .footer-social {
    display: block;
  }

  .hide-on-mobile {
    display: block;
  }

  .hide-on-desktop {
    display: none;
  }
}

/* ── Popup Modal ─────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(51, 57, 97, 0.4);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  /* Mobile width constraint */
  height: 90vh;
  /* or 100vh for full screen on mobile */
  margin: auto auto 0 auto;
  display: flex;
  flex-direction: column;
}

.popup-close-btn {
  position: absolute;
  top: -12px;
  right: 12px;
  background: #FFFFFF;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-close-btn img {
  width: 24px;
  height: 24px;
}

.popup-content {
  background-color: #3E3E3E;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.popup-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 24px 0;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.popup-scroll-area::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.popup-hero-img {
  width: calc(100% - 32px);
  height: auto;
  display: block;
  margin: 16px;
  background-color: #FFFFFF;
  border-radius: 24px;
}

.popup-heading {
  color: #FFFFFF;
  font-family: var(--font-family-1), sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  margin: 24px 16px 12px;
}

.popup-heading-secondary {
  margin-top: 24px;
}

.popup-text {
  color: #E0E0E0;
  font-family: var(--font-family-1), sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 16px 12px;
}

.popup-cards {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 16px 16px 0;
}

.popup-card {
  flex: 1;
  border-radius: 27px;
  padding: 12px;
  background-color: rgba(205, 205, 205, 0.2);
  display: flex;
  flex-direction: column;
}

.popup-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.popup-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.popup-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 15px;
}

.popup-card-green .popup-card-title {
  color: #000000;
}

.popup-card-red .popup-card-title {
  color: #FFFFFF;
}

.popup-card-content {
  display: flex;
  flex-direction: column;
}

.popup-card-row {
  display: flex;
  align-items: center;
}

.popup-card-col {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 0 14px 12px;
  gap: 4px;
}

.popup-border-left-green::before,
.popup-border-left-red::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 35px;
  border-radius: 4px;
}

.popup-border-left-green::before {
  background: #21CE6B;
}

.popup-border-left-red::before {
  background: #FF7A1C;

}


.popup-card-red {
  border-radius: 27.605px;
  background: rgba(77, 28, 0, 0.33);
}


.popup-card-value {
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
}

.popup-card-green .popup-card-value {
  color: #000000;
}

.popup-card-red .popup-card-value {
  color: #FFFFFF;
}

.popup-card-sub {
  font-size: 12px;
  font-weight: 500;
  line-height: 13px;
}

.popup-card-green .popup-card-sub {
  color: rgba(0, 0, 0, 0.56);
}

.popup-card-red .popup-card-sub {
  color: rgba(255, 255, 255, 0.56);
}

.popup-card-divider {
  height: 1px;
  width: 100%;
}

.popup-card-divider-green {
  background: rgba(255, 255, 255, 0.1);
}

.popup-call-btn {
  background: #FF7B00;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-family-1), sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.popup-call-btn img {
  height: 1.5em;
}

/* Glass Card Effect */
.glass-card {
  position: relative;
  /* Required to anchor the shiny border */
  /* border-radius: 27px; */

  /* Your standard glass background and blur go here */
  /* background: rgba(255, 255, 255, 0.1); */
  /* backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); */
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  /* Border width */

  /* The Targeted Dual-Corner Gradient */
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.7) 0%,
      /* 1. Bright at Top-Left */
      rgba(255, 255, 255, 0) 50%,
      /* 2. Fades to transparent */
      rgba(255, 255, 255, 0) 50%,
      /* 3. Stays transparent, hiding TR and BL corners */
      rgba(255, 255, 255, 0.7) 100%
      /* 4. Bright again at Bottom-Right */
    );

  /* The same masking magic as before */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;

  pointer-events: none;
}

/* =========================================
   SCENARIOS SECTION
   ========================================= */
.scenarios-section {
  width: 100%;
  padding: 0;
  background-color: #000;
}

.scenarios-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Each case is exactly 393×856px as in Figma, but we use 100vh for stacking */
.scenario-case {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  flex-shrink: 0;
}

.scenario-case::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 20%);
  pointer-events: none;
  z-index: 1;
}

.scenario-case:nth-child(1)::after {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 90%);
}

/* ── Scenario Component Card ──────────────────────────────── */
/* Card: 260×183px, border-radius 24px */
.scenario-card {
  position: absolute;
  width: 260px;
  height: 183px;
  border-radius: 24px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  z-index: 2;
  left: 20px;
  bottom: 240px;
  /* Default layout: Card above Text */
}

.scenario-card--light {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.scenario-card--dark {
  background-color: rgba(51, 57, 97, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(16px);
}

/* Full-bleed bg image covers the whole case */
.scenario-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

/* Gradient overlays */
.scenario-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.scenario-gradient--dark {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.72) 100%);
}

.scenario-gradient--white {
  background: linear-gradient(184deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 77%);
  top: auto;
  bottom: 0;
  height: 325px;
}

.scenario-gradient--tan {
  background: linear-gradient(180deg, rgba(68, 58, 46, 0) 0%, #A0988E 63%);
  top: auto;
  bottom: 0;
  height: 278px;
}

.scenario-gradient--black {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 41%);
  top: auto;
  bottom: 0;
  height: 275px;
}

/* ── Component Card ──────────────────────── */
.scenario-card {
  position: absolute;
  left: 20px;
  width: 175px;
  height: 175px;
  border-radius: 28px;
  z-index: 2;
  top: auto !important;
  /* Override inline styles */
  bottom: 240px;
}

/* Adjust card height for Case 4 */
.scenario-case:last-child .scenario-card {
  bottom: 360px;
}

/* Light variant: rgba(234,234,234,0.68) */
.scenario-card--light {
  background-color: rgba(234, 234, 234, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(20px);
}

/* Dark variant: rgba(77,28,0,0.33) */
.scenario-card--dark {
  background-color: rgba(77, 28, 0, 0.33);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(20px);
}

/* Status badge: 36×36 circle */
.sc-status {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 18px;
}

/* Card title — positioned top-right of the badge */
.sc-title {
  position: absolute;
  left: 59px;
  top: 16px;
  width: 103px;
  font-family: var(--font-family-4), sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 14px;
}

.sc-title--dark {
  color: #333961;
}

.sc-title--white {
  color: #FFFFFF;
}

/* Data row — left-bar + text */
.sc-row {
  position: absolute;
  left: 17px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 144px;
}

.sc-bar {
  width: 3px;
  height: 38px;
  border-radius: 5px;
  flex-shrink: 0;
}

.sc-bar--green {
  background-color: #21CE6B;
}

.sc-bar--orange {
  background-color: #FF7A1C;
}

.sc-row-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sc-row-main {
  font-family: var(--font-family-4), sans-serif;
  font-size: 13px;
  line-height: 14px;
  font-weight: 500;
}

.sc-row-main--dark {
  color: #333961;
}

.sc-row-main--white {
  color: #FFFFFF;
}

.sc-row-sub {
  font-family: var(--font-family-4), sans-serif;
  font-size: 11px;
  line-height: 13px;
  font-weight: 500;
}

.sc-row-sub--dark {
  color: rgba(0, 0, 0, 0.4);
}

.sc-row-sub--faint {
  color: rgba(255, 255, 255, 0.56);
}

/* Call button inside card */
.sc-call-btn {
  position: absolute;
  left: 17px;
  width: 140px;
  height: 40px;
  background-color: #FF7A1C;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family-4), sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;

}

.sc-call-btn img {
  width: 20px;
  height: 21px;
  filter: brightness(0) invert(1);
}

/* ── Text block (title + subtitle) inside case ── */
.scenario-textblock {
  position: absolute;
  left: 0;
  width: 375px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
  top: auto !important;
  /* Override inline styles */
  bottom: 60px;
}

.scenario-textblock--with-btn {
  gap: 40px;
}

.scenario-heading {
  font-family: var(--font-family-4), sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 32px;
  margin: 0;
}

.scenario-heading--white {
  color: #FFFFFF;
}

.scenario-heading--dark {
  color: #333961;
}

.scenario-body {
  font-family: var(--font-family-4), sans-serif;
  font-size: 15px;
  line-height: 24px;
  margin: 0;
  margin-top: 0px;
}

.scenario-body--white {
  color: #FFFFFF;
}

.scenario-body--dark {
  color: #333961;
}

/* "Заказать набор" orange button (Case 4 only) */
.scenario-order-btn {
  width: 201px;
  height: 51px;
  background-color: #FF7A1C;
  border: none;
  border-radius: 12px;
  font-family: var(--font-family-4), sans-serif;
  font-size: 18px;
  color: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
  margin-bottom: 24px;
}

/* ── Mobile Layout Specific Adjustments ── */
@media (max-width: 767px) {
  /* Let elements flow naturally or use default spacing */
}

/* ── Desktop: Swapped Component Layout & Sticky Stacking ── */
@media (min-width: 768px) {
  .scenarios-section {
    padding: 0;
    /* Removing padding so stacking stays flush to viewport */
    background-color: #000;
  }

  /* 
   * All cases now use pure mobile background images on desktop, so we layout HTML manually.
   */
  .scenario-case .scenario-card {
    left: 80px !important;
    top: 300px !important;
    bottom: auto !important;
    transform: scale(1.25);
    transform-origin: left top;
  }

  .scenario-case .scenario-textblock {
    left: 60px !important;
    top: 580px !important;
    bottom: auto !important;
    transform: scale(1.25);
    transform-origin: left top;
  }

  /* Cases 1, 2, 3: textblock on top, card below with exactly 20px visual gap */
  /* Textblock top: 280px. Height unscaled: 152px. Scaled: 190px. Bottom: 470px. */
  /* Card top should be 470px + 20px = 490px */
  .scenario-case:nth-child(1) .scenario-textblock,
  .scenario-case:nth-child(2) .scenario-textblock,
  .scenario-case:nth-child(3) .scenario-textblock {
    top: 280px !important;
  }

  .scenario-case:nth-child(1) .scenario-card,
  .scenario-case:nth-child(2) .scenario-card,
  .scenario-case:nth-child(3) .scenario-card {
    top: 490px !important;
  }

  /* Case 4: Card top, Textblock below with exactly 20px gap */
  /* Card top: 300px. Height unscaled: 183px. Scaled: ~229px. Bottom: 529px. */
  /* Textblock top should be 529px + 20px = 549px */
  .scenario-case:nth-child(4) .scenario-textblock {
    top: 549px !important;
  }

  .scenario-textblock--with-btn {
    gap: 16px;
  }
}


/* ── Installation Section ────────────────────────────────── */
.installation-section {
  background-color: #FFFFFF;
  padding: 60px 20px 40px 20px;
  position: relative;
  z-index: 10;
}

.install-container {
  max-width: 480px;
  margin: 0 auto;
}

.install-title {
  font-family: var(--font-family-1), sans-serif;
  font-size: 26px;
  line-height: 32px;
  font-weight: 500;
  color: #333961;
  margin: 0 0 16px 0;
}

.install-subtitle {
  font-family: var(--font-family-4), sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: #6D7290;
  margin: 0 0 32px 0;
}

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

.install-step {
  display: flex;
  align-items: center;
  padding: 24px 20px;
  border-radius: 24px;
  gap: 16px;
}

.install-step--orange {
  background-color: #FFF3E8;
}

.install-step--green {
  background-color: #EAF7EE;
}

.step-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-text h4 {
  font-family: var(--font-family-4), sans-serif;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: #333961;
  margin: 0 0 8px 0;
}

.step-text p {
  font-family: var(--font-family-4), sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #555A7B;
  margin: 0;
}

.install-image-wrapper {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 32px;
}

.install-image {
  width: 100%;
  height: auto;
  display: block;
}

.install-image--desktop {
  display: none;
}

.install-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.badge-img {
  height: 45px;
  width: auto;
  border-radius: 6px;
}

/* ── Kit Section (Mobile) ────────────────────────────────── */
.kit-section {
  padding: 40px 20px;
  background-color: #FFFFFF;
}

.kit-container {
  max-width: 480px;
  margin: 0 auto;
}

.kit-title {
  font-family: var(--font-family-1), sans-serif;
  font-size: 28px;
  line-height: 34px;
  font-weight: 500;
  color: #333961;
  margin: 0 0 24px 0;
}

.kit-card {
  border-radius: 32px;
  display: flex;
  flex-direction: column;
}

.kit-image-wrapper {
  width: 100%;
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  font-size: 0;
}

.kit-image {
  width: 100%;
  height: auto;
  display: block;
}

.kit-content {
  background: linear-gradient(353deg, #FFE0D1 9.01%, #F3DBDD 52.57%, #CECAE3 70.59%, #B9D4FF 86.47%);
  border-radius: 0 0 32px 32px;
  padding: 24px;
}

.kit-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.kit-price-label {
  font-family: var(--font-family-4), sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333961;
}

.kit-price-value {
  font-family: var(--font-family-4), sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333961;
}

.kit-prices {
  margin-bottom: 24px;
}

.kit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kit-list-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kit-list-icon svg,
.kit-list-icon img {
  width: 100%;
  height: 100%;
}

.kit-list-text {
  font-family: var(--font-family-4), sans-serif;
  font-size: 15px;
  color: #333961;
}

.kit-list-dotted {
  flex-grow: 1;
  border-bottom: 1px dashed rgba(51, 57, 97, 0.2);
  margin: 0 8px;
  align-self: flex-end;
  margin-bottom: 6px;
}

.kit-list-qty {
  font-family: var(--font-family-4), sans-serif;
  font-size: 15px;
  color: #333961;
}

.kit-order-btn {
  width: 100%;
  background-color: #FF7A1C;
  color: #FFFFFF;
  font-family: var(--font-family-4), sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  margin-bottom: 16px;
}

.kit-note {
  text-align: center;
  font-family: var(--font-family-4), sans-serif;
  font-size: 13px;
  color: #333961;
  margin: 0;
  opacity: 0.8;
}

/* ── Popup Desktop View ──────────────────────────────────── */
@media (min-width: 1024px) {
  .popup-overlay {
    align-items: center;
    /* Center the modal on desktop instead of bottom-sheet */
  }

  .popup-container {
    max-width: 1300px;
    /* Much wider for desktop layout */
    margin: auto;
  }

  .popup-content {
    border-radius: 24px;
    /* Restore bottom radius */
    padding: 48px;
  }

  .popup-scroll-area {
    display: grid;
    grid-template-columns: 4fr 5fr;
    column-gap: 48px;
    row-gap: 16px;
    align-items: start;
    padding: 0;
  }

  .popup-hero-img {
    grid-column: 1;
    grid-row: 1 / 20;
    width: 100%;
    margin: 0;
  }

  /* ── Kit Section (Desktop) ───────────────────────────────── */
  @media (min-width: 1024px) {
    ::-webkit-scrollbar {
      width: 4px;
      height: 4px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.2);
      border-radius: 4px;
    }

    .kit-section {
      padding: 100px 40px;
      background: url('../assets/screen7img_desktop.png') center top no-repeat;
      background-size: 100% 100%;
    }

    .kit-container {
      max-width: 1280px;
      margin: 0 auto;
      display: flex;
      justify-content: flex-end;
    }

    .kit-desktop-right {
      width: 454px;
    }

    .kit-title {
      color: #FFFFFF;
      font-size: 36px;
      line-height: 44px;
      margin-bottom: 32px;
    }

    .kit-card {
      background: none;
      border-radius: 0;
    }

    .kit-image-wrapper {
      display: none;
    }

    .kit-content {
      border-radius: 32px;
      background: linear-gradient(353deg, rgba(255, 224, 209, 0.85) 9.01%, rgba(243, 219, 221, 0.85) 52.57%, rgba(206, 202, 227, 0.85) 70.59%, rgba(185, 212, 255, 0.85) 86.47%);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      display: flex;
      width: 454px;
      padding: 34px 40px;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 20px;
      box-sizing: border-box;
    }

    .kit-prices,
    .kit-list,
    .kit-order-btn,
    .kit-note {
      width: 100%;
      margin-bottom: 0;
    }

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

    .kit-price-row {
      margin-bottom: 0;
    }

    .kit-list {
      gap: 16px;
    }

    .kit-list-text {
      font-size: 16px;
    }

    .kit-list-qty {
      font-size: 16px;
    }
  }

  .popup-heading,
  .popup-heading-secondary,
  .popup-text,
  .popup-cards {
    grid-column: 2;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
  }

  .popup-heading {
    margin-top: 0;
    font-size: 24px;
  }

  .popup-heading-secondary {
    margin-top: 8px;
  }

  .popup-cards {
    margin-top: 16px;
    gap: 16px;
    justify-content: flex-start;
  }

  .popup-card {
    flex: 0 1 200px;
    /* Don't stretch infinitely, cap around 200px */
    max-width: 200px;
  }

  .popup-close-btn {
    top: -10px;
    right: -10px;
  }

  /* Restore scrollbar for desktop */
  .popup-scroll-area {
    -ms-overflow-style: auto;
    scrollbar-width: auto;
  }

  .popup-scroll-area::-webkit-scrollbar {
    display: block;
    width: 3px;
  }

  .popup-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
  }
}

/* ── Installation Section (Desktop) ──────────────────────── */
@media (min-width: 1024px) {
  .installation-section {
    padding: 40px 20px;
  }

  .install-container {
    max-width: 1280px;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    grid-template-areas:
      "video title"
      "video subtitle"
      "video steps"
      "video badges";
    gap: 0 80px;
    align-items: stretch;
  }

  .install-title {
    grid-area: title;
    font-size: 36px;
    line-height: 44px;
    margin-top: 24px;
    margin-bottom: 16px;
    align-self: start;
  }

  .install-subtitle {
    grid-area: subtitle;
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 40px;
    align-self: start;
  }

  .install-steps {
    grid-area: steps;
    gap: 20px;
    margin-bottom: 40px;
    align-self: start;
  }

  .install-step {
    padding: 24px 28px;
    gap: 20px;
  }

  .step-icon {
    width: 64px;
    height: 64px;
  }

  .step-text h4 {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 6px;
  }

  .step-text p {
    font-size: 15px;
    line-height: 22px;
  }

  .install-image-wrapper {
    grid-area: video;
    margin-bottom: 0;
    border-radius: 32px;
    display: flex;
    align-self: stretch;
  }

  .install-image--mobile {
    display: none;
  }

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

  .install-badges {
    grid-area: badges;
    justify-content: flex-start;
    align-self: end;
  }
}

/* ── Lead Form Popup ─────────────────────────────────────── */
#lead-popup,
#success-popup {
  align-items: center;
}

.lead-popup-container {
  position: relative;
  width: calc(100% - 40px);
  max-width: 400px;
  border-radius: 24px;
  background: linear-gradient(353deg, #FFE0D1 9.01%, #F3DBDD 52.57%, #CECAE3 70.59%, #B9D4FF 86.47%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 24px;
  box-sizing: border-box;
  text-align: left;
}

.lead-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.lead-close-btn img {
  width: 16px;
  height: 16px;
}

.lead-title {
  font-family: var(--font-family-1), sans-serif;
  font-size: 24px;
  line-height: 28px;
  color: #333961;
  margin: 0 0 16px 0;
  font-weight: 500;
}

.lead-text {
  font-family: var(--font-family-4), sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #333961;
  margin: 0 0 24px 0;
  opacity: 0.8;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-input {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-family-4), sans-serif;
  font-size: 15px;
  color: #333961;
  box-sizing: border-box;
  background: #FFFFFF;
}

.lead-input::placeholder {
  color: rgba(51, 57, 97, 0.4);
}

.lead-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-top: 4px;
}

.lead-checkbox {
  display: none;
}

.lead-checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #333961;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  box-sizing: border-box;
}

.lead-checkbox:checked+.lead-checkbox-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: #333961;
  border-radius: 50%;
}

.lead-checkbox-text {
  font-family: var(--font-family-4), sans-serif;
  font-size: 10px;
  line-height: 14px;
  color: #333961;
}

.lead-checkbox-text a {
  color: #333961;
  text-decoration: underline;
}

.lead-submit-btn {
  width: 100%;
  background-color: #FF7A1C;
  color: #FFFFFF;
  font-family: var(--font-family-4), sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.lead-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Fee Popup (Mobile) ──────────────────────────────────── */
.fee-popup-container {
  position: relative;
  width: calc(100% - 40px);
  max-width: 400px;
  border-radius: 32px;
  background: rgba(55, 55, 55, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 24px;
  box-sizing: border-box;
  text-align: left;
}

.fee-title {
  font-family: var(--font-family-1), sans-serif;
  font-size: 24px;
  line-height: 30px;
  color: #FFFFFF;
  margin: 0 0 24px 0;
  font-weight: 500;
}

.fee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fee-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fee-list-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fee-list-icon svg {
  width: 100%;
  height: 100%;
}

.fee-list-text {
  font-family: var(--font-family-4), sans-serif;
  font-size: 15px;
  color: #FFFFFF;
}

.hide-on-desktop {
  display: block;
}

/* ── Lead Form Popup (Desktop) ───────────────────────────── */
@media (min-width: 1024px) {
  .lead-popup-container {
    max-width: 680px;
    padding: 48px;
  }

  .lead-close-btn {
    top: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
  }

  .lead-close-btn img {
    width: 22px;
    height: 22px;
  }

  .lead-title {
    font-size: 36px;
    line-height: 44px;
    margin-bottom: 24px;
  }

  .lead-text {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 32px;
    max-width: 520px;
  }

  .lead-form {
    gap: 16px;
  }

  .lead-input {
    font-size: 16px;
    padding: 20px;
  }

  .lead-checkbox-label {
    margin-top: 8px;
    gap: 16px;
  }

  .lead-checkbox-text {
    font-size: 13px;
    line-height: 18px;
  }

  .lead-submit-btn {
    width: 300px;
    margin: 24px auto 0 auto;
    font-size: 18px;
    padding: 20px;
  }

  .hide-on-desktop {
    display: none;
  }

  .fee-popup-container {
    max-width: 680px;
    padding: 48px;
  }

  .fee-title {
    font-size: 36px;
    line-height: 44px;
    margin-bottom: 32px;
  }

  .fee-list {
    gap: 20px;
  }

  .fee-list-text {
    font-size: 18px;
  }
}