/* ============================================
   CLIENT-FIRST — BASE
   ============================================ */

/* --------------------------------------------
   0. FONTS (@font-face) — из storylove.kz
   -------------------------------------------- */
@font-face {
  font-family: 'Gilroy';
  src: url('fonts/Gilroy-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('fonts/Gilroy-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'lastochka';
  src: url('fonts/lastochka.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Champignon';
  src: url('fonts/Champignon.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------
   1. RESET
   -------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--text-size-base);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-background);
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------
   2. VARIABLES (tokens)
   -------------------------------------------- */
:root {
  /* fonts */
  --font-primary: 'Gilroy', Arial, sans-serif;          /* основной текст / заголовки */
  --font-accent: 'Gilroy', Arial, sans-serif;           /* акцентные тексты */
  --font-display: 'lastochka', 'Gilroy', cursive;       /* декоративный (рукописный, если нужен) */

  /* colors — будут уточняться по макетам */
  --color-text: #0d0d0d;
  --color-text-muted: #5b5b5b;
  --color-background: #ffffff;
  --color-primary: #0d0d0d;
  --color-border: #e6e6e6;

  /* brand (storylove) */
  --color-mahogany: #570907;   /* тёмно-красный — заголовки/кнопка */
  --color-cabsav: #4e0820;     /* бордовый — подзаголовок */
  --color-pampas: #f2efea;     /* фон */
  --color-fairpink: #ffede5;   /* светло-розовый текст */
  --color-burgundy: #6a0909;   /* тёмно-бордовый (кнопка whatsapp) */

  /* base type */
  --text-size-base: 1rem;        /* 16px */
}

/* --------------------------------------------
   3. LAYOUT — page wrapper
   -------------------------------------------- */
.page-wrapper {
  overflow: clip;
}

.main-wrapper {
  position: relative;
}

/* --------------------------------------------
   4. GLOBAL — padding & containers
   -------------------------------------------- */
.padding-global {
  padding-left: 5%;
  padding-right: 5%;
}

.container-large {
  width: 100%;
  max-width: 80rem;     /* 1280px */
  margin-left: auto;
  margin-right: auto;
}

.container-medium {
  width: 100%;
  max-width: 64rem;     /* 1024px */
  margin-left: auto;
  margin-right: auto;
}

.container-small {
  width: 100%;
  max-width: 48rem;     /* 768px */
  margin-left: auto;
  margin-right: auto;
}

.container-xlarge {
  width: 100%;
  max-width: 90rem;     /* 1440px */
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------
   5. SECTION PADDING (vertical spacing)
   -------------------------------------------- */
.padding-section-small {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.padding-section-medium {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.padding-section-large {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* --------------------------------------------
   6. SPACING UTILITIES
   -------------------------------------------- */
.margin-0    { margin: 0rem; }
.margin-tiny   { margin: 0.5rem; }
.margin-xsmall { margin: 1rem; }
.margin-small  { margin: 1.5rem; }
.margin-medium { margin: 2rem; }
.margin-large  { margin: 3rem; }
.margin-xlarge { margin: 4rem; }
.margin-xxlarge{ margin: 5rem; }
.margin-huge   { margin: 6rem; }

.margin-bottom { margin-top: 0; margin-right: 0; margin-left: 0; }
.margin-bottom.margin-tiny   { margin-bottom: 0.5rem; }
.margin-bottom.margin-xsmall { margin-bottom: 1rem; }
.margin-bottom.margin-small  { margin-bottom: 1.5rem; }
.margin-bottom.margin-medium { margin-bottom: 2rem; }
.margin-bottom.margin-large  { margin-bottom: 3rem; }
.margin-bottom.margin-xlarge { margin-bottom: 4rem; }

.margin-top { margin-bottom: 0; margin-right: 0; margin-left: 0; }
.margin-top.margin-xsmall { margin-top: 1rem; }
.margin-top.margin-small  { margin-top: 1.5rem; }
.margin-top.margin-medium { margin-top: 2rem; }
.margin-top.margin-large  { margin-top: 3rem; }

/* --------------------------------------------
   7. MAX-WIDTH UTILITIES
   -------------------------------------------- */
.max-width-xsmall { max-width: 20rem; }
.max-width-small  { max-width: 24rem; }
.max-width-medium { max-width: 35rem; }
.max-width-large  { max-width: 48rem; }
.max-width-full   { max-width: 100%; }

.align-center { margin-left: auto; margin-right: auto; }

/* --------------------------------------------
   8. TYPOGRAPHY UTILITIES
   -------------------------------------------- */
.text-size-tiny   { font-size: 0.75rem; }
.text-size-small  { font-size: 0.875rem; }
.text-size-regular{ font-size: 1rem; }
.text-size-medium { font-size: 1.25rem; }
.text-size-large  { font-size: 1.5rem; }

.heading-style-h1 { font-size: 3.5rem; line-height: 1.1; font-weight: 700; }
.heading-style-h2 { font-size: 2.75rem; line-height: 1.15; font-weight: 700; }
.heading-style-h3 { font-size: 2rem; line-height: 1.2; font-weight: 700; }
.heading-style-h4 { font-size: 1.5rem; line-height: 1.3; font-weight: 600; }
.heading-style-h5 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; }
.heading-style-h6 { font-size: 1rem; line-height: 1.4; font-weight: 600; }

.text-weight-light  { font-weight: 300; }
.text-weight-normal { font-weight: 400; }
.text-weight-medium { font-weight: 500; }
.text-weight-semibold { font-weight: 600; }
.text-weight-bold   { font-weight: 700; }

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

.text-color-muted { color: var(--color-text-muted); }

/* font-family utilities */
.text-font-accent  { font-family: var(--font-accent); font-weight: 400; }
.text-font-display { font-family: var(--font-display); font-weight: 400; }

/* --------------------------------------------
   9. BUTTONS
   -------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.85;
}

.button.is-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* --------------------------------------------
   10. RESPONSIVE BREAKPOINTS
   1440 base / 991 tablet / 767 mobile-landscape / 479 mobile-portrait
   -------------------------------------------- */

/* Tablet */
@media screen and (max-width: 991px) {
  .padding-section-large  { padding-top: 5rem; padding-bottom: 5rem; }
  .padding-section-medium { padding-top: 4rem; padding-bottom: 4rem; }

  .heading-style-h1 { font-size: 2.75rem; }
  .heading-style-h2 { font-size: 2.25rem; }
  .heading-style-h3 { font-size: 1.75rem; }
}

/* Mobile landscape */
@media screen and (max-width: 767px) {
  .padding-global { padding-left: 1.25rem; padding-right: 1.25rem; }

  .padding-section-large  { padding-top: 4rem; padding-bottom: 4rem; }
  .padding-section-medium { padding-top: 3rem; padding-bottom: 3rem; }

  .heading-style-h1 { font-size: 2.25rem; }
  .heading-style-h2 { font-size: 1.875rem; }
}

/* Mobile portrait */
@media screen and (max-width: 479px) {
  .heading-style-h1 { font-size: 2rem; }
  .heading-style-h2 { font-size: 1.625rem; }
}

/* ============================================
   SECTIONS — добавляются ниже по мере верстки
   ============================================ */

/* --------------------------------------------
   SECTION: HERO
   -------------------------------------------- */
.section_hero {
  background-color: var(--color-pampas);
}

.hero_layout {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* left content */
.hero_content {
  flex: 0 0 48%;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero_logo-link {
  display: inline-block;
  margin-bottom: 3rem;
}

.hero_logo {
  width: 15.8rem;        /* ~253px */
  height: auto;
}

.hero_heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 3.25rem;    /* крупнее, как на storylove */
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-mahogany);
  margin-bottom: 2rem;
}

.hero_subheading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.25rem;    /* 20px */
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--color-cabsav);
  margin-bottom: 2.5rem;
}

.hero_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 38rem;      /* ~611px */
  padding: 1.5rem 2rem;
  background-color: var(--color-mahogany);
  color: var(--color-pampas);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.625rem;   /* 26px */
  line-height: 1.55;
  text-transform: uppercase;
  border-radius: 47px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero_button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* right visual */
.hero_visual {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.hero_video {
  position: relative;
  width: 100%;
  aspect-ratio: 1002 / 554;
  background-color: #000000;
  border-radius: 18px;
  overflow: hidden;
}

.hero_video-poster,
.hero_video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero_video-media {
  cursor: pointer;
}

.hero_play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 18px;
  border-radius: 50%;
  background-color: rgba(97, 97, 252, 0.64);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero_play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: rgba(97, 97, 252, 0.8);
}

.hero_play-icon {
  width: 36px;
  height: 36px;
}

/* decorative handwritten badge */
.hero_badge {
  position: absolute;
  top: -1.5rem;
  right: -1rem;
  pointer-events: none;
  z-index: 2;
}

.hero_badge-line {
  display: block;
  font-family: var(--font-display); /* lastochka — рукописный на плашке */
  font-weight: 400;
  font-size: 2.5rem;     /* 40px */
  line-height: 1;
  color: var(--color-mahogany);
  white-space: nowrap;
}

.hero_badge-line.is-personal {
  transform: rotate(-23deg);
}

.hero_badge-line.is-stories {
  margin-top: 0.25rem;
  margin-left: 1.25rem;
  transform: rotate(-26deg);
}

/* hero — tablet */
@media screen and (max-width: 991px) {
  .hero_layout {
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
  }

  .hero_content,
  .hero_visual {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .hero_badge {
    top: -1rem;
    right: 0.5rem;
  }
}

/* hero — mobile */
@media screen and (max-width: 767px) {
  .hero_layout {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero_logo {
    width: 12rem;
  }

  .hero_logo-link {
    margin-bottom: 2rem;
  }

  .hero_heading {
    font-size: 2.5rem;
  }

  .hero_subheading {
    font-size: 1.125rem;
  }

  .hero_button {
    font-size: 1.375rem;
    padding: 1.125rem 1.5rem;
    max-width: 100%;
  }

  .hero_badge-line {
    font-size: 2rem;
  }
}

@media screen and (max-width: 479px) {
  .hero_heading {
    font-size: 2rem;
  }
}

/* --------------------------------------------
   SECTION: CASES (какие истории оживляем)
   -------------------------------------------- */
.section_cases {
  position: relative;
  background-color: var(--color-pampas);
  padding-top: 5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

/* крупные полупрозрачные звёзды в фоне */
.section_cases::before,
.section_cases::after {
  content: "\2726";
  position: absolute;
  color: var(--color-mahogany);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

.section_cases::before {
  top: 2rem;
  left: -1.5rem;
  font-size: 14rem;
  transform: rotate(-12deg);
}

.section_cases::after {
  content: "\2665";   /* сердце в фоне */
  bottom: 1rem;
  right: -2rem;
  font-size: 18rem;
  transform: rotate(10deg);
}

.cases_header {
  position: relative;
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 3rem;
}

/* акцент-звезда над заголовком */
.cases_deco {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-mahogany);
  margin-bottom: 1rem;
}

.cases_heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-mahogany);
}

.cases_subheading {
  margin-top: 1rem;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--color-cabsav);
}

.cases_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* контент над фоновыми звёздами */
.section_cases .container-xlarge {
  position: relative;
  z-index: 1;
}

.cases_card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  background-color: var(--color-mahogany);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* декоративная звезда в углу карточки */
.cases_card::after {
  content: "\2726";
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-pampas);
  opacity: 0.35;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.cases_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(87, 9, 7, 0.25);
}

/* чётные карточки — сердце вместо звезды */
.cases_card:nth-child(2n)::after {
  content: "\2665";
}

.cases_card:hover::after {
  transform: scale(1.2);
  opacity: 0.65;
}

.cases_card:hover:nth-child(2n+1)::after {
  transform: rotate(90deg) scale(1.2); /* звёзды крутим, сердца просто увеличиваем */
}

.cases_title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--color-pampas);
  margin-bottom: 0.75rem;
}

.cases_text {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-pampas);
  opacity: 0.9;
}

/* cases — tablet */
@media screen and (max-width: 991px) {
  .cases_grid { grid-template-columns: repeat(2, 1fr); }
  .cases_heading { font-size: 2.25rem; }
}

/* cases — mobile */
@media screen and (max-width: 600px) {
  .cases_grid { grid-template-columns: 1fr; }
  .cases_heading { font-size: 1.875rem; }
  .cases_title { font-size: 1.5rem; }
}

/* --------------------------------------------
   SHARED: play button (видео)
   -------------------------------------------- */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 18px;
  border-radius: 50%;
  background-color: rgba(97, 97, 252, 0.64);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.play-button_icon {
  width: 36px;
  height: 36px;
}

/* --------------------------------------------
   SECTION: WORKS (наши работы)
   -------------------------------------------- */
.section_works {
  position: relative;
  background-color: var(--color-mahogany);
  padding-top: 6rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

/* фестонный (фигурный) край сверху */
.works_scallop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background-color: var(--color-pampas);
  z-index: 2;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% 22px no-repeat,
    radial-gradient(circle 22px at 22px 0, #000 0 22px, transparent 22px) bottom left / 44px 22px repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% 22px no-repeat,
    radial-gradient(circle 22px at 22px 0, #000 0 22px, transparent 22px) bottom left / 44px 22px repeat-x;
}

/* header */
.works_header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.works_heart {
  width: 9rem;          /* ~144px */
  height: auto;
  margin-bottom: 0.5rem;
}

.works_heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 3.0625rem; /* 49px */
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-pampas);
}

/* grid */
.works_grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.works_card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: block;
  background-color: #000000;
  border: 1px solid var(--color-mahogany);
  padding: 3px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 522 / 300;
}

.works_poster,
.works_video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.works_video {
  cursor: pointer;
}

.works_card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: rgba(97, 97, 252, 0.8);
}

/* кастомный плеер: прячем кнопку во время проигрывания */
.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.works_star {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 1.9375rem; /* 31px */
  line-height: 1;
}

/* works — tablet */
@media screen and (max-width: 991px) {
  .works_grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .works_card {
    width: 100%;
    flex: none;
  }

  .works_star {
    display: none;
  }
}

/* works — mobile */
@media screen and (max-width: 767px) {
  .works_heading {
    font-size: 2.25rem;
  }

  .works_heart {
    width: 7rem;
  }

  .play-button {
    width: 60px;
    height: 60px;
    padding: 15px;
  }

  .play-button_icon {
    width: 30px;
    height: 30px;
  }
}

/* --------------------------------------------
   SECTION: REACTIONS (реакции клиентов)
   -------------------------------------------- */
.section_reactions {
  background-color: var(--color-pampas);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.reactions_heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 2.5625rem;   /* 41px */
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-mahogany);
  margin-bottom: 2.5rem;
}

.reactions_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.reactions_item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reactions_card {
  position: relative;
  display: block;
  width: 100%;
  background-color: #000000;
  border: 5px solid var(--color-mahogany);
  border-radius: 28px;
  padding: 8px;
  overflow: hidden;
  aspect-ratio: 322 / 467;
}

.reactions_poster,
.reactions_video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.reactions_video {
  cursor: pointer;
}

.reactions_card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: rgba(97, 97, 252, 0.8);
}

.reactions_caption {
  margin-top: 1.25rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.5rem;      /* 24px */
  line-height: 1.2;
  text-align: center;
  color: var(--color-mahogany);
}

/* reactions — tablet */
@media screen and (max-width: 991px) {
  .reactions_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
  }
}

/* reactions — mobile */
@media screen and (max-width: 767px) {
  .reactions_heading {
    font-size: 2rem;
  }

  .reactions_caption {
    font-size: 1.25rem;
    margin-top: 1rem;
  }
}

@media screen and (max-width: 479px) {
  .reactions_grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --------------------------------------------
   SECTION: PROCESS (мультфильм за 1 день)
   -------------------------------------------- */
.section_process {
  background-color: var(--color-mahogany);
  padding-top: 4rem;
  padding-bottom: 4rem;
  color: var(--color-pampas);
}

/* header */
.process_header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.process_title-group {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex: 1 1 auto;
}

.process_kicker {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 3.375rem;   /* 54px */
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-pampas);
}

.process_big {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-pampas);
  margin-left: 0;
}

.process_whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.75rem 0.4rem 0.4rem;
  background-color: var(--color-pampas);
  border: 1px solid var(--color-burgundy);
  border-radius: 30px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.process_whatsapp:hover {
  transform: translateY(-2px);
}

.process_whatsapp-icon {
  width: 50px;
  height: 50px;
}

.process_whatsapp-text {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.8125rem;  /* 29px */
  color: var(--color-burgundy);
}

/* stage — масштабируемая сцена (десктоп) */
.process_stage {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 88.125rem;  /* 1410px */
  margin: 0 auto;
  aspect-ratio: 1410 / 700;
}

.process_snake {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* точка в начале линии (отдельный круг, не тянется как SVG) */
.process_line-dot {
  position: absolute;
  left: 0.14%;
  top: 33%;
  width: 1.6cqw;
  height: 1.6cqw;
  background-color: var(--color-pampas);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* стрелка в конце линии */
.process_line-arrow {
  position: absolute;
  left: 99.86%;
  top: 99.7%;
  width: 0;
  height: 0;
  border-left: 0.9cqw solid transparent;
  border-right: 0.9cqw solid transparent;
  border-top: 1.3cqw solid var(--color-pampas);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.process_step {
  position: absolute;
}

/* позиции шагов (в % сцены) */
.process_step-1 { left: 2.4%;  top: 11%;  width: 22%; }
.process_step-2 { left: 27.6%; top: 53%;  width: 23.4%; }
.process_step-3 { left: 52.6%; top: 11%;  width: 21%; }
.process_step-4 { left: 76.4%; top: 53%;  width: 23%; }

.process_num {
  display: block;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 7.1cqw;     /* ~100px на сцене 1410 */
  line-height: 1;
  color: #ffffff;
  opacity: 0.35;
}

.process_step-title {
  margin-top: 0.4cqw;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 2cqw;       /* ~28px на сцене 1410 */
  line-height: 1.15;
  color: var(--color-pampas);
}

.process_step-text {
  margin-top: 0.6cqw;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1cqw;       /* ~14px */
  line-height: 1.25;
  color: var(--color-pampas);
}

/* process — tablet/mobile: вертикальный стек */
@media screen and (max-width: 991px) {
  .process_kicker { font-size: 2.25rem; }
  .process_big { font-size: 3rem; }

  .process_stage {
    container-type: normal;
    aspect-ratio: auto;
    max-width: 36rem;
  }

  .process_snake,
  .process_line-dot,
  .process_line-arrow { display: none; }

  .process_step {
    position: static;
    width: 100% !important;
    padding-left: 1.75rem;
    margin-bottom: 2.5rem;
    border-left: 2px dashed rgba(242, 239, 234, 0.4);
    /* цифра слева, заголовок справа, описание снизу */
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.85rem;
    align-items: center;
  }

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

  .process_num {
    grid-column: 1;
    grid-row: 1;
    font-size: 3.5rem;
  }

  .process_step-title {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    font-size: clamp(1.05rem, 4.6vw, 1.6rem); /* влезает в 1 строку на любом экране */
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
  }

  /* переносы внутри заголовков отключаем — нужна 1 строка */
  .process_step-title br { display: none; }

  .process_step-text {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.6rem;
    font-size: 1rem;
  }
}

@media screen and (max-width: 767px) {
  .process_header { gap: 1rem 1.25rem; }
  .process_kicker { font-size: 1.75rem; }
  .process_big { font-size: 2.5rem; }
  .process_whatsapp-text { font-size: 1.25rem; }
  .process_whatsapp-icon { width: 40px; height: 40px; }
}

/* --------------------------------------------
   SECTION: NUMBERS (цифры / статистика)
   -------------------------------------------- */
.section_numbers {
  position: relative;
  background-color: var(--color-pampas);
  padding-top: 7rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

/* фигурный край сверху (бордовые «капли» вниз) */
.numbers_scallop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background-color: var(--color-mahogany);
  z-index: 2;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% 22px no-repeat,
    radial-gradient(circle 22px at 22px 0, #000 0 22px, transparent 22px) bottom left / 44px 22px repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% 22px no-repeat,
    radial-gradient(circle 22px at 22px 0, #000 0 22px, transparent 22px) bottom left / 44px 22px repeat-x;
}

.numbers_heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 3.4375rem;   /* 55px */
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-mahogany);
  margin-bottom: 2.5rem;
}

.numbers_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.numbers_item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.numbers_star {
  font-size: 2.9375rem;   /* 47px */
  line-height: 1;
  color: var(--color-mahogany);
  margin-bottom: 0.75rem;
}

.numbers_value {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 4.8125rem;   /* 77px */
  line-height: 1.1;
  color: var(--color-mahogany);
}

.numbers_label {
  margin-top: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1.375rem;    /* 22px */
  line-height: 1.3;
  color: #000000;
}

/* numbers — tablet */
@media screen and (max-width: 991px) {
  .numbers_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }

  .numbers_value { font-size: 3.75rem; }
}

/* numbers — mobile */
@media screen and (max-width: 767px) {
  .numbers_heading { font-size: 2.5rem; }
  .numbers_star { font-size: 2.25rem; }
  .numbers_value { font-size: 3rem; }
  .numbers_label { font-size: 1.125rem; }
}

@media screen and (max-width: 479px) {
  .numbers_grid { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------
   SECTION: FAQ (аккордеон)
   -------------------------------------------- */
.section_faq {
  background-color: var(--color-mahogany);
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.faq_heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.3125rem;   /* 21px */
  line-height: 1;
  text-align: center;
  color: #ffffff;
  margin-bottom: 2rem;
}

.faq_list {
  width: 100%;
}

.faq_item {
  border-top: 1px solid rgba(238, 238, 238, 0.45);
}

.faq_item:last-child {
  border-bottom: 1px solid rgba(238, 238, 238, 0.45);
}

.faq_trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.6875rem 0;   /* 27px */
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.faq_question {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9375rem;   /* 15px */
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-pampas);
}

/* + / − icon */
.faq_icon {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.faq_icon::before,
.faq_icon::after {
  content: "";
  position: absolute;
  background-color: var(--color-pampas);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.faq_icon::before {  /* horizontal */
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq_icon::after {   /* vertical */
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq_item.is-open .faq_icon::after {
  opacity: 0;
  transform: translateX(-50%) rotate(90deg);
}

/* плавное раскрытие через grid-template-rows */
.faq_answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.faq_item.is-open .faq_answer {
  grid-template-rows: 1fr;
}

.faq_answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq_answer-inner p {
  padding: 0 3.125rem 1.75rem 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-pampas);
  opacity: 0.9;
}

/* faq — mobile */
@media screen and (max-width: 767px) {
  .faq_trigger {
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .faq_answer-inner p {
    padding-right: 0;
    padding-bottom: 1.25rem;
  }
}

/* --------------------------------------------
   SECTION: CTA (заказ через whatsapp)
   -------------------------------------------- */
.section_cta {
  background-color: var(--color-pampas);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.cta_card {
  position: relative;
  width: 100%;
  max-width: 21rem;       /* ~334px */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.5rem 2rem;
  border: 2px solid var(--color-mahogany);
  border-radius: 29px;
}

.cta_butterfly {
  position: absolute;
  top: -1.25rem;
  right: -0.5rem;
  width: 65px;
  height: auto;
  transform: rotate(-12deg);
  pointer-events: none;
}

.cta_text {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.3125rem;   /* ~21px */
  line-height: 1.35;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-burgundy);
  margin-bottom: 0.75rem;
}

.cta_arrow {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--color-burgundy);
  margin-bottom: 1rem;
}

.cta_whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  max-width: 16.375rem;   /* ~262px */
  padding: 0.4rem;
  background-color: var(--color-pampas);
  border: 2px solid var(--color-burgundy);
  border-radius: 30px;
  transition: transform 0.2s ease;
}

.cta_whatsapp:hover {
  transform: translateY(-2px);
}

.cta_whatsapp-icon {
  width: 31px;
  height: 31px;
}

.cta_whatsapp-text {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.65rem;     /* ~26px */
  color: var(--color-burgundy);
}

/* cta — mobile */
@media screen and (max-width: 479px) {
  .cta_text { font-size: 1.125rem; }
  .cta_whatsapp-text { font-size: 1.375rem; }
}
