/* ==========================================================================
   Cup'D — секции главной: дизайн-карусель, форма, этапы, локации
   Геометрия снята с макета «01 · Главная — desktop 1920».
   ========================================================================== */

/* В макете заголовки и лиды секций сдвинуты от края контейнера на 238 px */
.sec-indent { margin-left: 17%; }

/* ------------------------------------------------------ Дизайн станции -- */

.design {
  background: var(--c-surface);
  padding-block: var(--section-gap);
}

.design__title {
  margin-left: 17%;
  font-size: clamp(22px, 2.08vw, 40px);
}

.design__lead {
  max-width: 420px;
  margin: 80px 0 0 17%;
  font-size: var(--fs-body);
  line-height: 1.12;
}

/* --- Карусель ------------------------------------------------------------ */

.slider { margin-top: 60px; }

.slider__viewport { overflow: hidden; }

.slider__track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s var(--ease-out);
}

.dcard {
  flex: 0 0 calc((100% - 40px) / 3);
  display: flex;
  flex-direction: column;
  border: 1px solid #4d4d4d;
}

.dcard__media {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 20px;
  overflow: hidden;
}

.dcard__media img {
  max-height: 260px;
  width: auto;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease-out);
}

.dcard:hover .dcard__media img { transform: scale(1.06); }

.dcard__body {
  padding: 18px 22px 24px;
  background: #353535;
}

.dcard__name {
  font-size: clamp(16px, 1.25vw, 24px);
  font-weight: 600;
  letter-spacing: var(--display-tracking);
  text-transform: none;
}

.dcard__text {
  margin: 10px 0 18px;
  font-size: var(--fs-small);
  line-height: 1.35;
}

.slider__nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.slider__btn {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--c-stroke-soft);
  color: var(--c-white);
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.slider__btn svg { width: 34px; height: 16px; }
.slider__btn:hover { border-color: var(--c-yellow); color: var(--c-yellow); }
.slider__btn[disabled] { opacity: 0.3; cursor: default; }
.slider__btn[disabled]:hover { border-color: var(--c-stroke-soft); color: var(--c-white); }

/* --- Нужен индивидуальный дизайн ----------------------------------------- */

.design__custom {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 50px 0 0 17%;
}

.design__custom-icon {
  display: block;
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  color: var(--c-yellow);
}

.design__custom-icon svg { width: 100%; height: 100%; }

.design__custom-title {
  font-size: clamp(17px, 1.46vw, 28px);
  font-weight: 600;
  letter-spacing: var(--display-tracking);
  line-height: 1.16;
  text-transform: none;
}

.design__custom-text {
  max-width: 330px;
  margin: 12px 0 22px;
  font-size: var(--fs-small);
  line-height: 1.3;
}

/* ------------------------------------- Форма «Готовы запустить бизнес?» -- */

/* Чёрный клин поверх серой подложки: наклон снят с макета — 114 px на 1920 */
.startform {
  position: relative;
  margin-top: -2px;
  padding-block: 180px 120px;
  background: var(--c-bg);
  clip-path: polygon(0 0, 100% 5.94vw, 100% 100%, 0 100%);
}

.startform__inner { position: relative; }

.startform__box {
  position: relative;
  z-index: 2;
  width: min(571px, 100%);
  margin-left: 17%;
}

.startform__title { font-size: clamp(26px, 2.6vw, 50px); }

.startform__lead {
  margin: 42px 0 32px;
  font-size: var(--fs-body);
  line-height: 1.12;
}

.startform__ghost {
  right: 4%;
  top: 42%;
  font-size: clamp(40px, 5.2vw, 100px);
  text-align: left;
}

/* --- Поля формы ---------------------------------------------------------- */

.lform {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.field { display: block; }

.field input {
  width: 100%;
  padding: 17px 20px;
  border: 1px solid var(--c-stroke-soft);
  background: transparent;
  color: var(--c-white);
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.field input::placeholder { color: var(--c-grey-2); }
.field input:focus { outline: none; border-color: var(--c-yellow); }
.field input:user-invalid { border-color: #e0523f; }

.lform .btn { align-self: flex-start; margin-top: 10px; }

.lform__note {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin-top: 8px;
  font-size: var(--fs-small);
  line-height: 1.3;
}

.lform__status { margin-top: 6px; font-size: var(--fs-small); line-height: 1.3; }
.lform__status.is-ok { color: var(--c-yellow); }
.lform__status.is-err { color: #e0523f; }
.lform.is-sending { opacity: 0.6; pointer-events: none; }

/* --------------------------------------------------------------- Этапы -- */

.stages {
  background: var(--c-surface);
  padding-block: 0 var(--section-gap);
}

/* Белая плашка-флаг — полигон восстановлен по точкам обводки из макета */
.stages__banner {
  position: relative;
  width: 60.9%;
  min-width: 560px;
  margin-left: -33px;
  padding: 2.4% 0 0 27.7%;
  background: var(--c-white);
  aspect-ratio: 1197 / 170;
  clip-path: polygon(0 0, 78.2% 11.4%, 100% 65.7%, 52.1% 100%, 0 4.2%);
}

.stages__title {
  color: #000;
  font-size: clamp(18px, 2.08vw, 40px);
  line-height: 1.12;
}

.stages__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: column;   /* в макете 01,02 — слева, 03,04 — справа */
  gap: 40px 80px;
  margin-top: 60px;
}

.stage {
  border-top: 1px solid var(--c-stroke);
  padding-top: 18px;
}

/* при раскладке по колонкам в верхнем ряду стоят 1-й и 3-й элементы */
.stage:nth-child(1),
.stage:nth-child(3) { border-top: 0; padding-top: 0; }

.stage__num {
  display: block;
  color: var(--c-yellow);
  font-family: var(--f-display);
  font-size: clamp(20px, 1.87vw, 36px);
  font-weight: 800;
  letter-spacing: var(--display-tracking);
  line-height: 1.1;
}

.stage__title {
  margin-top: 10px;
  font-size: clamp(16px, 1.25vw, 24px);
  font-weight: 600;
  letter-spacing: var(--display-tracking);
  text-transform: none;
}

.stage__text { margin-top: 10px; font-size: var(--fs-small); line-height: 1.35; }

.stage__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.stage__list li {
  position: relative;
  padding-left: 16px;
  font-size: var(--fs-small);
  line-height: 1.3;
}

.stage__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--c-white);
}

/* ------------------------------------------------------------ Локации -- */

.locations {
  background: var(--c-surface);
  padding-block: 0 var(--section-gap);
}

.loc__title {
  margin-left: 17%;
  font-size: clamp(22px, 2.08vw, 40px);
}

.loc__lead {
  max-width: 460px;
  margin: 76px 0 0 17%;
  font-size: var(--fs-body);
  line-height: 1.12;
}

.loc__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 46px;
}

.loc { margin: 0; }

.loc img {
  width: 100%;
  height: 193px;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out),
              filter var(--dur-base) var(--ease-out);
}

.loc:hover img { transform: scale(1.05); filter: brightness(1.12); }

.loc__name {
  margin-top: 12px;
  font-family: var(--f-display);
  font-size: var(--fs-cta);
  font-weight: 500;
  letter-spacing: var(--display-tracking);
  line-height: 1.2;
  text-transform: uppercase;
}

.loc__more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* -------------------------------------------------------------- Адаптив -- */

@media (max-width: 1100px) {
  .loc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dcard { flex: 0 0 calc((100% - 20px) / 2); }
  .stages__grid { gap: 32px 40px; }
}

@media (max-width: 900px) {
  .sec-indent,
  .design__title,
  .design__lead,
  .design__custom,
  .loc__title,
  .loc__lead,
  .startform__box { margin-left: 0; }

  .design__lead,
  .loc__lead { margin-top: 28px; }

  .startform {
    padding-block: 120px 90px;
    clip-path: polygon(0 0, 100% 6vw, 100% 100%, 0 100%);
  }

  .startform__ghost { display: none; }
}

@media (max-width: 767px) {
  .dcard { flex: 0 0 100%; }
  .slider__btn { width: 46px; height: 46px; }
  .slider__btn svg { width: 24px; height: 12px; }

  .stages__grid { grid-template-columns: 1fr; grid-auto-flow: row; gap: 26px; }
  .stage:nth-child(3) { border-top: 1px solid var(--c-stroke); padding-top: 18px; }

  .stages__banner {
    width: 92%;
    min-width: 0;
    margin-left: -12px;
    padding: 3% 0 0 16%;
  }

  .loc img { height: 140px; }
  .design__custom { gap: 14px; }
  .design__custom-icon { width: 52px; height: 52px; }
}

/* ------------------------------------------------- Коллекция вкусов ----- */

.flavors {
  background: var(--c-bg);
  padding-block: var(--section-gap);
  overflow: hidden;
}

.flavors__inner {
  position: relative;
  min-height: 880px;
}

/* Напитки разбросаны вокруг текста и частично уходят за края — как в макете */
.fphoto {
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.flavors__count {
  position: absolute;
  left: 59.14%;
  top: 3.1%;
  z-index: 1;
  color: rgba(255, 255, 255, 0.08);
  font-family: var(--f-display);
  font-size: clamp(48px, 5.2vw, 100px);
  font-weight: 800;
  letter-spacing: var(--display-tracking);
  line-height: 1;
}

.flavors__text {
  position: relative;
  z-index: 2;
  width: min(571px, 100%);
  margin-left: 17%;
}

.flavors__title { font-size: clamp(22px, 2.08vw, 40px); }

.flavors__lead {
  margin-top: 30px;
  font-size: var(--fs-body);
  line-height: 1.12;
}

.fcats { margin-top: 30px; max-width: 525px; }

.fcat {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 16px;
}

.fcat + .fcat { border-top: 1px solid var(--c-stroke); }

.fcat__icon {
  display: grid;
  place-items: center;
  width: 81px;
  height: 81px;
  flex-shrink: 0;
  border: 2px solid var(--c-yellow);
  border-radius: 50%;
  color: var(--c-white);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.fcat__icon svg { width: 51px; height: 51px; }

.fcat:hover .fcat__icon { background: var(--c-yellow); color: #000; }

/* min-width:0 — иначе длинное описание не переносится и вылезает за край */
.fcat__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.fcat__name {
  font-family: var(--f-display);
  font-size: clamp(16px, 1.46vw, 28px);
  font-weight: 500;
  letter-spacing: var(--display-tracking);
  line-height: 1.16;
}

.fcat__text { font-size: var(--fs-small); line-height: 1.15; color: var(--c-grey); }

@media (max-width: 1100px) {
  .flavors__inner { min-height: 760px; }
  .fcat__icon { width: 62px; height: 62px; }
  .fcat__icon svg { width: 38px; height: 38px; }
}

@media (max-width: 900px) {
  .flavors__text { margin-left: 0; }
}
