/* Flowpack landing v2 — Inter, clean layout */
:root {
  --mp-font: "Inter", sans-serif;
  --mp-text: #171524;
  --mp-muted: #5b5770;
  --mp-soft: #4a4660;
  --mp-accent: #7365ee;
  --mp-accent-2: #8842e0;
  --mp-bg: #f5f6f8;
  --mp-bg-hero: #f8f9fc;
  --mp-surface: #fff;
  --mp-dark: #393939;
  --mp-radius: 16px;
  --mp-radius-lg: 40px;
  --mp-radius-xl: 48px;
  --mp-shadow: 0 12px 40px rgba(23, 21, 36, 0.08);
  --mp-header-h: 88px;
  --mp-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--mp-header-h);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--mp-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--mp-text);
  background: var(--mp-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-width: 0;
}

/* modals.js adds body.area.screen-* — page-legacy forces min-width: 1200px on .screen-lg */
body.area,
body.area.screen-lg,
body.area.screen-md,
body.area.screen-sm,
body.area.screen-xs {
  min-width: 0 !important;
}

body.area .container,
body.area.screen-lg .container,
body.area.screen-md .container,
body.area.screen-sm .container {
  width: min(var(--mp-container), 100%) !important;
  max-width: 100% !important;
}

main {
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; }

.container {
  width: min(var(--mp-container), 100%);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  margin: 0 0 32px;
  text-align: center;
  font-family: var(--mp-font);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-synthesis: none;
}

.section-title__thin {
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-synthesis: none;
  font-variation-settings: "wght" 200;
}

.section-title--light { color: #fff; }

/* Buttons — page-legacy forces `.btn { width: 300px !important }` at ≤560px */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  border: 0;
  border-radius: var(--mp-radius);
  font-family: var(--mp-font);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(92deg, var(--mp-accent) 0%, var(--mp-accent-2) 100%);
  box-shadow: 0 12px 28px rgba(115, 101, 238, 0.3);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(115, 101, 238, 0.36);
}

.btn--lg {
  min-height: 54px;
  padding: 0 24px;
  font-size: 15px;
}

.btn--block { width: 100% !important; }

/* Kill legacy fixed 300px button width on our modern controls */
@media (max-width: 560px) {
  .btn.btn--primary,
  .btn.btn--offer,
  .btn.btn--review,
  .btn.btn--showroom,
  .btn.btn--loadmore,
  .btn.btn--photo-quiz,
  .btn.btn--block,
  .mp-hero__cta .btn {
    width: auto !important;
    max-width: 100%;
  }

  .btn.btn--block,
  .btn.btn--showroom,
  .btn.btn--photo-quiz,
  .mp-hero__cta .btn,
  .mp-hero__cta .btn--primary,
  .model-card__visual .btn--review,
  .head__drawer .btn--primary {
    width: 100% !important;
  }
}

.btn--review {
  min-height: 48px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(92deg, #5b4fe0 0%, #7a3fd8 100%);
  box-shadow: 0 8px 24px rgba(91, 79, 224, 0.35);
}

.btn--review__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  padding-left: 2px;
}

/* Header */
.head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--mp-header-h);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.head.is-solid {
  background: var(--mp-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.head.head_fixed {
  background: var(--mp-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.head__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: var(--mp-container);
  margin: 0 auto;
  padding: 0 20px;
}

.head__logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
  margin: 0 !important;
  justify-self: start;
  border-bottom: none !important;
  text-decoration: none !important;
}

.head__logo:hover {
  border-bottom: none !important;
  text-decoration: none !important;
}

.head__logo img {
  width: 200px;
  max-width: 100%;
  height: auto;
}

.head__logo-dark { display: block; }
.head__logo-light { display: none; }

.head.is-solid .head__logo-dark,
.head.head_fixed .head__logo-dark,
.head.is-open.is-solid .head__logo-dark,
.head.is-open.head_fixed .head__logo-dark { display: none; }

.head.is-solid .head__logo-light,
.head.head_fixed .head__logo-light,
.head.is-open.is-solid .head__logo-light,
.head.is-open.head_fixed .head__logo-light { display: block; }

.head__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  justify-self: center;
  grid-column: 2;
}

.head__nav a {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 10px;
  color: #000 !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, opacity 0.2s, border-color 0.2s;
}

.head.is-solid .head__nav a,
.head.head_fixed .head__nav a { color: #fff !important; }

.head__nav a:hover {
  opacity: 0.85;
  border-bottom: 1px solid #000;
}

.head.is-solid .head__nav a:hover,
.head.head_fixed .head__nav a:hover {
  border-bottom-color: #fff;
}

.head__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  justify-self: end;
  grid-column: 3;
  flex-shrink: 0;
}

.head__contacts a {
  margin: 0;
  color: #000 !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.head__contacts .head__mail {
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.head.is-solid .head__contacts--desk a,
.head.head_fixed .head__contacts--desk a { color: #fff !important; }

.head__contacts--desk a:hover {
  border-bottom-color: #000;
}

.head.is-solid .head__contacts--desk a:hover,
.head.head_fixed .head__contacts--desk a:hover {
  border-bottom-color: #fff;
}

.head__contacts--mobile { display: none; }

.head__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 40px;
  height: 40px;
  justify-self: end;
  grid-column: 3;
  position: relative;
  z-index: 201;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.head__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  border: 0;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s, background 0.2s;
}

.head.is-solid .head__burger span,
.head.head_fixed .head__burger span,
.head.is-open .head__burger span { background: #fff; }

.head__drawer { display: none; }

/* Hero */
.section-hero {
  padding: calc(var(--mp-header-h) + 48px) 0 72px;
  background-color: var(--mp-bg-hero);
  background-image: url("../img/hero-bg-subtle.jpg?v=opt1");
  background-image: image-set(
    url("../img/hero-bg-subtle.webp?v=opt1") type("image/webp"),
    url("../img/hero-bg-subtle.jpg?v=opt1") type("image/jpeg")
  );
  background-position: center;
  background-size: cover;
}

.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(248, 249, 252, 0.92) 0%, rgba(248, 249, 252, 0.5) 45%, rgba(248, 249, 252, 0.08) 100%);
}

.section-hero { position: relative; overflow: hidden; }
.section-hero > .container { position: relative; z-index: 1; }

.mp-hero {
  --bubble: 132px;
  --bubble-overlap: 34px;
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  grid-template-areas:
    "title visual"
    "bullets visual"
    "cta visual";
  column-gap: 32px;
  row-gap: 28px;
  align-items: start;
  min-width: 0;
}

.mp-hero__title {
  grid-area: title;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.mp-hero__title-main {
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.mp-hero__title-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 500;
  color: var(--mp-muted);
}

.mp-hero__title-sub b {
  color: var(--mp-accent);
  font-weight: 800;
}

.mp-hero__bullets {
  grid-area: bullets;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  color: #2a2740;
}

.mp-hero__bullets li {
  position: relative;
  padding-left: 28px;
}

.mp-hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(115, 101, 238, 0.12);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%237365ee'/%3E%3Cpath d='M4.6 8.2l2.1 2.1 4.7-4.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.mp-hero__cta {
  grid-area: cta;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 21, 36, 0.08);
}

.mp-hero__cta .btn--lg {
  font-size: 18px;
  min-height: 56px;
  line-height: 1.25;
}

.mp-hero__lead {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--mp-soft);
}

.mp-hero__lead strong { color: var(--mp-text); font-weight: 800; }

.mp-hero__visual {
  grid-area: visual;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.mp-hero__machines {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 680px;
  min-width: 0;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.mp-hero__machines > picture {
  display: block;
  min-width: 0;
  line-height: 0;
  flex: 0 1 auto;
}

.mp-hero__machines > picture:first-child {
  width: 58%;
  max-width: 400px;
}

.mp-hero__machines > picture:last-child {
  width: 38%;
  max-width: 255px;
}

.mp-hero__m {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 40px rgba(23, 21, 36, 0.12));
  mix-blend-mode: darken;
  user-select: none;
}

.mp-hero__m--hor,
.mp-hero__m--vert {
  max-width: none;
  max-height: none;
}

.mp-hero__bubbles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--bubble-overlap) * -1);
  width: min(100%, 680px);
  margin-top: -8px;
  padding: 0 8px 8px;
  position: relative;
  z-index: 2;
  min-height: calc(var(--bubble) * 2 - var(--bubble-overlap) + 16px);
}

.mp-hero__bubbles-row {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: center;
}

.mp-hero__bubbles-row--fan1 {
  padding-left: calc(var(--bubble) * 0.42);
  transform: rotate(-1.5deg);
}

.mp-hero__bubbles-row--fan2 {
  padding-left: calc(var(--bubble) * 0.14);
  transform: rotate(0.5deg);
}

.mp-hero__bubble {
  position: relative;
  flex: 0 0 var(--bubble);
  width: var(--bubble);
  height: var(--bubble);
  margin-left: calc(var(--bubble-overlap) * -1);
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 4px #fff,
    0 10px 22px rgba(23, 21, 36, 0.14);
  background: #fff;
  z-index: 1;
  transition: transform 0.2s ease;
}

.mp-hero__bubbles-row .mp-hero__bubble:first-child { margin-left: 0; }
.mp-hero__bubbles-row .mp-hero__bubble:nth-child(2) { z-index: 2; }
.mp-hero__bubbles-row .mp-hero__bubble:nth-child(3) { z-index: 3; }
.mp-hero__bubbles-row .mp-hero__bubble:nth-child(4) { z-index: 4; }
.mp-hero__bubbles-row .mp-hero__bubble:nth-child(5) { z-index: 5; }
.mp-hero__bubbles-row .mp-hero__bubble:nth-child(6) { z-index: 6; }
.mp-hero__bubbles-row--fan1 .mp-hero__bubble:first-child { transform: rotate(-10deg); }
.mp-hero__bubbles-row--fan1 .mp-hero__bubble:last-child { transform: rotate(10deg); }
.mp-hero__bubbles-row--fan2 .mp-hero__bubble:first-child { transform: rotate(-8deg); }
.mp-hero__bubbles-row--fan2 .mp-hero__bubble:last-child { transform: rotate(8deg); }

.mp-hero__bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Packs */
.section-packs {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #eef1fc 0%, var(--mp-bg) 100%);
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 30px;
}

.pack-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 30px;
  border-radius: var(--mp-radius-lg);
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow);
  box-sizing: border-box;
}

.pack-card__head {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: start;
}

.pack-card__icon {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.pack-card__title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.pack-card__title span {
  font-weight: 400;
  color: var(--mp-muted);
}

.pack-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--mp-text);
}

.pack-card__photo {
  margin-top: auto;
  overflow: hidden;
  border-radius: 18px;
  background: #f4f6fd;
}

.pack-card__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Quiz section shell */
#quiz.section-quiz {
  background: #eceef2;
}

.section-quiz {
  padding: 72px 0 48px;
  background: #eceef2;
}

@media (max-width: 720px) {
  .section-quiz {
    padding: 12px 0 0;
  }
}

.section-quiz .section-title {
  color: var(--mp-text);
}

.section-quiz .section-title .section-title__thin {
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-synthesis: none;
  font-variation-settings: "wght" 200;
}

.section-quiz .mpq-mount {
  max-width: 920px;
  margin: 0 auto;
}

#quiz {
  scroll-margin-top: var(--mp-header-h);
}

/* Models */
.section-models {
  padding: 88px 0 104px;
  background: linear-gradient(180deg, #f8f9fc 0%, #eef1fc 48%, #f8f9fc 100%);
  scroll-margin-top: var(--mp-header-h);
}

.section-models__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-models__head .section-title {
  margin-bottom: 18px;
}

.section-models__head .section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 999px;
  background: linear-gradient(92deg, var(--mp-accent) 0%, var(--mp-accent-2) 100%);
}

.section-models__lead {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--mp-soft);
}

.models-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.model-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 400px);
  gap: 40px 56px;
  align-items: center;
  padding: 44px 48px;
  border-radius: var(--mp-radius-lg);
  background: var(--mp-surface);
  box-shadow: var(--mp-shadow);
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.model-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--mp-accent) 0%, var(--mp-accent-2) 100%);
  opacity: 0.85;
}

.model-card--reverse {
  grid-template-columns: minmax(0, 400px) minmax(0, 1.05fr);
}

.model-card--reverse::before {
  inset: 0 0 0 auto;
}

.model-card--reverse .model-card__copy { order: 2; }
.model-card--reverse .model-card__visual { order: 1; }

.model-card__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.model-card__num {
  position: absolute;
  z-index: 0;
  top: -28px;
  left: -16px;
  margin: 0;
  font-size: clamp(104px, 12vw, 156px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #eef1fc;
  pointer-events: none;
  user-select: none;
}

.model-card__name,
.model-card__lead,
.model-card__sub,
.model-card__list {
  position: relative;
  z-index: 1;
}

.model-card__name {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.model-card__lead {
  margin: 0;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--mp-soft);
}

.model-card__sub {
  margin: 28px 0 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 21, 36, 0.08);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mp-muted);
}

.model-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mp-text);
}

.model-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mp-accent) 0%, var(--mp-accent-2) 100%);
  transform: translateY(-50%);
}

.model-card__list li + li { margin-top: 12px; }

.model-card__visual {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.model-card__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 62%, rgba(115, 101, 238, 0.14) 0%, rgba(115, 101, 238, 0.04) 34%, transparent 58%),
    radial-gradient(circle at 50% 50%, #eef3fc 0%, #f8faff 72%, #fff 100%);
  box-shadow: inset 0 0 0 1px rgba(115, 101, 238, 0.08);
}

.model-card__ball {
  position: absolute;
  inset: 8%;
  margin: auto;
  width: 84%;
  height: 84%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.model-card__machine {
  position: relative;
  z-index: 1;
  max-width: 86%;
  max-height: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 36px rgba(23, 21, 36, 0.14));
  mix-blend-mode: darken;
}

.model-card__visual .btn--review {
  position: relative;
  z-index: 2;
  margin-top: 0;
  min-width: min(100%, 280px);
}

.model-card__visual .btn--review:hover {
  transform: translateY(-1px);
}

/* Video modal */
.video-modal[hidden] { display: none !important; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 20, 0.75);
}

.video-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  background: transparent;
  overflow: visible;
}

.video-modal__close {
  position: absolute;
  bottom: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  margin-bottom: 12px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.video-modal__frame {
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive */
@media (max-width: 1199px) {
  .mp-hero {
    --bubble: 112px;
    --bubble-overlap: 28px;
  }

  .mp-hero__bubbles-row--fan1 { padding-left: calc(var(--bubble) * 0.34); }
  .mp-hero__bubbles-row--fan2 { padding-left: calc(var(--bubble) * 0.1); }
}

@media (max-width: 991px) {
  .mp-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "visual" "bullets" "cta";
    row-gap: 24px;
    --bubble: 100px;
    --bubble-overlap: 26px;
  }

  .mp-hero__machines { max-width: 100%; }
  .mp-hero__machines > picture:first-child { width: 56%; max-width: 360px; }
  .mp-hero__machines > picture:last-child { width: 38%; max-width: 235px; }
  .mp-hero__bubbles { max-width: 100%; }
  .mp-hero__bubbles-row--fan1 { padding-left: calc(var(--bubble) * 0.28); }
  .mp-hero__bubbles-row--fan2 { padding-left: calc(var(--bubble) * 0.08); }
  .mp-hero__bubbles-row .mp-hero__bubble:nth-child(n+6) { display: none; }

  .mp-hero__cta { max-width: none; width: 100%; }

  .packs-grid { grid-template-columns: minmax(0, 1fr); }

  .model-card,
  .model-card--reverse {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px;
    gap: 28px;
  }

  .model-card--reverse .model-card__copy,
  .model-card--reverse .model-card__visual { order: unset; }

  .model-card__num {
    top: -8px;
    left: 0;
    font-size: 72px;
  }

  .model-card__lead { max-width: none; }

  .model-card__visual,
  .model-card__stage {
    width: 100%;
    max-width: 100%;
  }

  .model-card__visual .btn--review {
    min-width: 0;
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.area.screen-xs .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .section-models {
    padding: 64px 0 80px;
  }

  .section-models__head {
    margin-bottom: 40px;
  }

  .model-card {
    padding: 24px 16px;
  }

  .model-card__copy,
  .model-card__visual,
  .model-card__list,
  .model-card__name,
  .model-card__lead,
  .model-card__sub {
    max-width: 100%;
  }

  .pack-card {
    padding: 20px 16px;
  }

  .pack-card__head {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .pack-card__icon {
    width: 56px;
    height: 56px;
  }

  .pack-card__title {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  /* page-legacy: .company .card { margin-left/right: -15px } */
  .company,
  .company .contacts,
  .company .card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .company .card {
    padding: 32px 16px !important;
  }

  .company .inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .company .inner li {
    overflow-wrap: anywhere;
  }
}


.head__drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 24px;
}

/* Beat page-legacy `.head a { color: #171524 !important }` */
.head .head__drawer-nav a,
.head .head__drawer-nav a:visited,
.head .head__drawer-nav a:hover,
.head .head__drawer-nav a:focus,
.head .head__drawer-nav a:active {
  width: 100%;
  margin: 0 !important;
  padding: 12px 16px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  background: transparent;
  border: none;
  border-bottom: none;
  border-radius: 0;
}

.head .head__drawer-nav a:hover,
.head .head__drawer-nav a:focus-visible {
  text-decoration: underline;
  background: transparent;
  border-bottom: none;
}

.head__drawer .btn--primary {
  margin: 0 !important;
  min-height: 54px;
  padding: 16px 24px !important;
  font-size: 14px;
  line-height: 1.35;
  border-radius: 36px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 320px;
}

.head__drawer .btn--primary:hover {
  transform: translateY(-1px);
}

@media (max-width: 1260px) {
  /* page-legacy.css: .head nav { display: flex } */
  .head .head__nav,
  .head .head__contacts--desk { display: none !important; }

  .head__burger { display: flex; }

  .head.is-open .head__drawer {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    inset: 0;
    z-index: 199;
    padding: calc(var(--mp-header-h) + 24px) 24px 32px;
    overflow-y: auto;
    background: rgba(33, 37, 41, 0.97);
  }

  .head.is-open .head__drawer[hidden] { display: flex !important; }

  .head__drawer .head__contacts--mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
  }

  .head .head__drawer .head__contacts--mobile a,
  .head .head__drawer .head__contacts--mobile a:visited,
  .head .head__drawer .head__contacts--mobile a:hover,
  .head .head__drawer .head__contacts--mobile a:focus,
  .head .head__drawer .head__contacts--mobile a:active {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    text-transform: none;
    border: none;
    border-bottom: none;
  }

  .head .head__drawer .head__contacts--mobile a:hover,
  .head .head__drawer .head__contacts--mobile a:focus-visible {
    text-decoration: underline;
    border: none;
    border-bottom: none;
  }

  .head__socials {
    display: flex;
    gap: 16px;
    margin-top: 24px;
  }

  .head .head__socials a,
  .head .head__socials a:hover,
  .head .head__socials a:focus,
  .head .head__socials a:active {
    margin: 0 !important;
    padding: 0;
    line-height: 0;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
  }

  .head__socials img {
    width: 52px;
    height: 52px;
    display: block;
  }

  .head__socials a:first-child img {
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  }

  .head.is-open .head__burger span:nth-child(1) {
    transform: translateY(9px) rotate(-45deg);
  }

  .head.is-open .head__burger span:nth-child(2) { opacity: 0; }

  .head.is-open .head__burger span:nth-child(3) {
    transform: translateY(-9px) rotate(45deg);
  }
}

@media (max-width: 767px) {
  :root { --mp-header-h: 72px; }

  .section-hero {
    padding-bottom: 48px;
    overflow: visible;
  }

  .section-hero > .container {
    overflow: visible;
  }

  .head__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
  }

  .head__logo {
    margin: 0 !important;
    flex: 0 1 auto;
    min-width: 0;
  }

  .head__logo img {
    width: 150px;
    max-width: min(150px, 58vw);
  }

  .head__burger {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .mp-hero {
    --bubble-overlap: 14px;
    --bubble: calc((100% + 3 * var(--bubble-overlap)) / 4);
  }

  .mp-hero__title-main {
    font-size: clamp(24px, 7.2vw, 30px);
  }

  .mp-hero__title-sub {
    font-size: clamp(14px, 4.2vw, 17px);
  }

  .mp-hero__visual {
    max-width: 100%;
    overflow: visible;
  }

  .mp-hero__machines {
    max-width: 100%;
    gap: 8px;
    overflow: visible;
  }

  .mp-hero__machines > picture:first-child {
    width: 55%;
    max-width: none;
  }

  .mp-hero__machines > picture:last-child {
    width: 40%;
    max-width: none;
  }

  .mp-hero__bubbles {
    width: 100%;
    max-width: 100%;
    margin-top: -4px;
    padding: 4px 0 12px;
    overflow: visible;
    --bubble: calc((100% + 3 * var(--bubble-overlap)) / 4);
  }

  .mp-hero__bubbles-row {
    width: 100%;
    justify-content: flex-start;
  }

  .mp-hero__bubbles-row--fan1,
  .mp-hero__bubbles-row--fan2 {
    padding-left: 0;
    transform: none;
  }

  .mp-hero__bubbles-row--fan1 .mp-hero__bubble:first-child,
  .mp-hero__bubbles-row--fan1 .mp-hero__bubble:last-child,
  .mp-hero__bubbles-row--fan2 .mp-hero__bubble:first-child,
  .mp-hero__bubbles-row--fan2 .mp-hero__bubble:last-child {
    transform: none;
  }

  .mp-hero__bubble {
    box-shadow:
      0 0 0 3px #fff,
      0 8px 18px rgba(23, 21, 36, 0.12);
  }

  .mp-hero__cta .btn,
  .mp-hero__cta .btn--primary {
    width: 100% !important;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 16px;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }

  .mp-hero__bubbles-row .mp-hero__bubble:nth-child(n+5) { display: none; }

  .pack-card { padding: 20px 16px; border-radius: 24px; }

  .pack-card__head {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .pack-card__icon { width: 56px; height: 56px; }

  .pack-card__title { font-size: 18px; }

  .section-title {
    font-size: clamp(22px, 6.5vw, 28px);
    overflow-wrap: anywhere;
  }
}

/* Photo gallery */
.section-photo {
  padding: 72px 0 80px;
  scroll-margin-top: var(--mp-header-h);
  background: rgb(238, 241, 252);
}

.section-photo .section-title--upper {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Loupe + darken on hover for all zoomable images (a.fancybox) */
a.fancybox {
  position: relative;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 18px;
}

.photo-grid:not(.is-expanded) .photo-card:nth-child(n + 11) {
  display: none;
}

.photo-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-card__link {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--mp-surface);
  box-shadow: 0 4px 18px rgba(23, 21, 36, 0.06);
}

.photo-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-card__caption {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--mp-text);
}

.photo-grid__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.photo-grid__actions[hidden] {
  display: none !important;
}

.btn--loadmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 220px;
  padding: 12px 24px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--mp-accent);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn--loadmore img {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.btn--loadmore:hover {
  color: #1945e6;
}

.btn--loadmore:hover img {
  transform: scale(1.08);
}

.photo-quiz-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.btn--photo-quiz {
  width: min(640px, 100%);
  min-height: 64px;
  padding: 18px 32px;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  box-shadow: 0 14px 32px rgba(115, 101, 238, 0.32);
}

@media (max-width: 1099px) {
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .section-photo {
    padding: 56px 0 64px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .photo-grid:not(.is-expanded) .photo-card:nth-child(n + 5) {
    display: none;
  }

  .photo-card__caption {
    font-size: 14px;
  }

  .photo-quiz-cta {
    margin-top: 28px;
  }

  .btn--photo-quiz {
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
    font-size: 16px;
  }
}

/* Contacts — white card, dark logo and icons */
.company {
  overflow: hidden;
}

.company .contacts {
  max-width: 100%;
}

.company .card {
  color: #1f2128;
  box-sizing: border-box;
}

.company .inner {
  color: #1f2128;
}

.company .inner > img {
  filter: none;
}

.company .inner ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.company .inner li {
  color: #1f2128;
  background-position: left center;
  min-height: 20px;
}

.company .inner li.list {
  background-image: url("../img/contact-list-light.svg");
  background-size: auto 16px;
}

.company .inner li.marker {
  background-image: url("../img/contact-marker-light.svg");
  background-size: auto 16px;
}

.company .inner li.inn {
  background-image: url("../img/contact-inn-light.svg");
  background-size: auto 16px;
}

.company .inner li.phone {
  background-image: url("../img/contact-phone-light.svg");
  background-size: auto 16px;
}

.company .inner li.mail {
  background-image: url("../img/contact-mail-light.svg");
  background-size: auto 16px;
}

.company .icons {
  margin-left: 0;
  padding-left: 0;
}

@media (max-width: 991px) {
  .company .card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 40px 24px !important;
    width: 100%;
  }

  .company .inner {
    margin-left: 0 !important;
    margin-right: 0;
    max-width: none;
    width: 100%;
  }

  .company .map {
    width: 100%;
    overflow: hidden;
  }
}

.company .icons img {
  filter: none;
}

.company .icons a:first-child img {
  box-shadow: 0 0 0 1px #e1e6ef;
  border-radius: 50%;
}

.company a {
  color: #1f2128 !important;
}

.company a:hover {
  color: #7365ee !important;
}

/* Footer */
.site-footer {
  padding: 20px 0 60px;
  background: #fff;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #020025;
}

.site-footer__policy {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #020025;
  text-decoration: none;
}

.site-footer__policy:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__copy {
    margin-bottom: 10px;
  }
}

/* Skip layout/paint for offscreen sections until near viewport */
.section-models,
.section-offers,
.section-photo,
.section-about,
.section-service,
.section-showroom,
.company {
  content-visibility: auto;
  contain-intrinsic-size: 1px 920px;
}

.section-catalog-cta {
  content-visibility: auto;
  contain-intrinsic-size: 1px 680px;
}


/* SEO / a11y helpers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10000;
  padding: 10px 14px;
  background: #0b1f44;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
.section-about address,
.company address {
  font-style: normal;
}
