/* Per-section layout */

/* ============================================================== HERO */

/*
 * The hero owns the first screen outright: it fills the viewport so nothing
 * from the section below is in frame before the visitor scrolls. Capped so it
 * doesn't stretch absurdly tall on a portrait monitor, and svh so a phone's
 * address bar sliding away doesn't leave a gap.
 */
.hero {
  position: relative;
  min-height: 656px;
  height: clamp(656px, 100svh, 1000px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: #1b1613;
}

/*
 * The photo is framed off its top edge — that's where the dark surround and
 * the warm centre glow sit in the Figma plate.
 */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  z-index: 0;
}

/* Portrait cut of the loop, shown only when the video is refused */
.hero__fallback {
  object-position: center;
}

.hero__fallback[hidden] {
  display: none;
}

/* iOS draws a play button over a video it refused to autoplay; the poster
   is meant to read as a still, so hide it. */
.hero__bg::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/*
 * Darkens the backdrop across its full height, not just a fade at the bottom.
 * Originally measured against a rendered Figma screenshot, whose composite
 * runs roughly 55% dark even near the logo and climbs to opaque at the base.
 *
 * The band behind the title and the lead was then deepened when the still
 * became a video. A photograph has one fixed brightness to calibrate against;
 * this montage swings from a dark misty field to a near-white shot of curd —
 * measured across the clip, the strip where the text sits ranges from 24 to
 * 178 in luminance. The old values held up on the dark scenes and went thin
 * on the bright ones. Raising the middle costs nothing on the dark frames,
 * where the backdrop is already close to the overlay's own colour and the
 * extra alpha changes almost nothing, and it is what keeps the white type
 * readable when the bright shots come around.
 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(35, 35, 35, 0.58) 0%,
    rgba(35, 35, 35, 0.66) 35%,
    rgba(35, 35, 35, 0.76) 65%,
    rgba(35, 35, 35, 0.94) 100%
  );
}

.hero__bar {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 14px var(--gutter) 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero__logo {
  width: 132px;
  height: auto;
}

.hero__lang {
  position: absolute;
  top: 44px;
  right: var(--gutter);
}

/*
 * Centred in whatever height is left under the bar, biased slightly high —
 * optical centre, not mathematical, so the block doesn't read as sinking.
 */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vh, 40px);
  width: min(1000px, 100% - (var(--gutter) * 2));
  margin-block: auto;
  padding-block: 24px clamp(48px, 9vh, 104px);
  text-align: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 64px;
  color: var(--c-white);
}

.hero__lead {
  max-width: 533px;
  font-size: 15px;
  line-height: 20px;
  color: var(--c-white);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3vh, 36px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  color: var(--c-white);
  opacity: 0.5;
  transition: opacity var(--dur-base) var(--ease-out);
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1023px) {
  .hero__title {
    font-size: 48px;
    line-height: 52px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 560px;
    height: clamp(560px, 100svh, 900px);
  }

  .hero__bar {
    padding-top: 24px;
  }

  .hero__logo {
    width: 96px;
  }

  .hero__lang {
    top: 24px;
  }

  .hero__title {
    font-size: clamp(30px, 8.6vw, 38px);
    line-height: 1.16;
  }

  .hero__lead {
    font-size: 14px;
  }
}

/* ========================================================== PILLARS */

.pillars {
  position: relative;
  padding-bottom: var(--section-pb);
}

.pillars__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar__media {
  position: relative;
  width: 100%;
  aspect-ratio: 270 / 331;
  border-radius: 32px;
  overflow: hidden;
}

.pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Darkens the lower half so the title reads over the photo */
.pillar__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(35, 35, 35, 0) 38.52%, rgba(35, 35, 35, 0.9) 100%);
}

/*
 * The title straddles the photo's bottom edge in the design — it starts 21px
 * above the card bottom and runs past it onto the dark canvas.
 */
.pillar__title {
  position: relative;
  z-index: 2;
  margin-top: -21px;
  font-family: var(--font-deco);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  text-align: center;
  color: var(--c-white);
}

/*
 * Berkshire Swash (--font-deco) ships no Cyrillic glyphs whatsoever, so on the
 * Russian pages these four titles would drop to whatever serif the OS happens
 * to supply — a different face on every visitor's machine. Kurale is the
 * display serif already carrying every other heading on the site and it does
 * have Cyrillic, so it takes over here. Slightly less decorative, but it stays
 * inside the type system instead of leaving it.
 */
:lang(ru) .pillar__title {
  font-family: var(--font-display);
}

.pillar__flourish {
  margin-top: 11px;
  color: var(--c-white);
}

.pillar__text {
  margin-top: 10px;
  max-width: 234px;
  font-size: 17px;
  line-height: 20px;
  text-align: center;
  color: var(--c-white);
}

@media (max-width: 1023px) {
  .pillars__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
}

@media (max-width: 767px) {
  .pillars {
    padding-bottom: 64px;
  }

  .pillars__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pillar__title {
    font-size: 28px;
  }
}

/* ============================================================== WHY */
/*
 * Desktop: the section pins while three content steps advance in place.
 * The pin wrapper is sized by JS to 3 viewport-heights of scroll distance.
 */

/*
 * Transparent on purpose: the run-wide sticky pattern behind it must show
 * through. It used to carry an opaque backer and its own pattern layer, which
 * is exactly what put a visible seam at the pillars boundary.
 */
.why {
  position: relative;
  padding-block: var(--section-pt-lead);
  overflow: hidden;
}

.why__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 56px;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.why__col {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 628px;
  flex: none;
}

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

.why__title {
  max-width: 450px;
}

.why__steps {
  position: relative;
}

.why__step {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
}

/* Unpinned (mobile, or no JS) the steps simply follow one another */
.why__steps {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* `display: flex` above would otherwise beat the UA rule for [hidden] */
.why__step[hidden] {
  display: none;
}

.why__step-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 32px;
  color: #ffb000;
}

.why__step-intro {
  font-size: 17px;
  line-height: 28px;
  color: var(--c-white);
}

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

.why__item {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--c-white);
}

.why__num {
  flex: none;
  font-weight: 500;
  font-size: 16px;
  opacity: 0.6;
}

.why__item p {
  font-size: 17px;
  line-height: 28px;
}

.why__item strong {
  font-weight: 700;
}

.why__outro {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 36px;
  color: var(--c-white);
}

.why__media {
  position: relative;
  width: 540px;
  height: 560px;
  flex: none;
  border-radius: 32px;
}

.why__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.why__media img[data-active='true'] {
  opacity: 1;
}

.why__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(to bottom, rgba(35, 35, 35, 0) 38.52%, rgba(35, 35, 35, 0.9) 100%);
  pointer-events: none;
}

/* Notch silhouette for the 540 x 560 media panel */
.notched--why {
  -webkit-mask-image:
    radial-gradient(circle 31.5px at -2.31% 20.63%, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at 101.76% 21.88%, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at 13.8% -2.41%, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at 66.76% 101.16%, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at 82.69% 100.09%, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at 51.76% -0.09%, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at -1.2% 38.48%, #0000 98%, #000 100%),
    radial-gradient(circle 11.5px at 10.09% 100.09%, #0000 98%, #000 100%);
  mask-image:
    radial-gradient(circle 31.5px at -2.31% 20.63%, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at 101.76% 21.88%, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at 13.8% -2.41%, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at 66.76% 101.16%, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at 82.69% 100.09%, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at 51.76% -0.09%, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at -1.2% 38.48%, #0000 98%, #000 100%),
    radial-gradient(circle 11.5px at 10.09% 100.09%, #0000 98%, #000 100%);
}

/* Step indicator on the right rail */
.why__rail {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.why__rail-nums {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 17px;
  line-height: 28px;
  color: var(--c-white);
}

.why__rail-nums span {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.why__rail-nums span[data-active='true'] {
  opacity: 1;
}

.why__rail-track {
  position: relative;
  width: 1px;
  background: #535353;
}

.why__rail-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 50px;
  background: #e1e1e1;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.why__scroll-hint {
  position: absolute;
  bottom: 31px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--c-white);
}

.why__scroll-hint p {
  font-size: 13px;
  opacity: 0.6;
}

.why__scroll-hint svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1279px) {
  .why__inner {
    gap: 40px;
  }

  .why__col {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .why__media {
    width: 420px;
    height: 480px;
  }
}

/*
 * The stage counter sits 24px in from the screen edge, but the gutter here is
 * only ~4vw, so on a landscape iPad (1080px) the photo ran under the counter.
 * Keep the photo clear of it.
 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .why__inner {
    padding-right: max(var(--gutter), 72px);
  }
}

@media (max-width: 1023px) {
  .why {
    padding-block: 80px;
  }

  .why__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .why__col {
    width: 100%;
    gap: 32px;
  }

  .why__media {
    width: 100%;
    height: 380px;
    order: 2;
  }

  .why__rail {
    position: static;
    transform: none;
    align-self: flex-start;
    order: 3;
  }
}

@media (max-width: 767px) {
  .why__step-title {
    font-size: 22px;
    line-height: 28px;
  }

  .why__item p,
  .why__step-intro {
    font-size: 15px;
    line-height: 24px;
  }

  .why__outro {
    font-size: 20px;
    line-height: 28px;
  }

  .why__media {
    height: 300px;
  }
}

/* ========================================================== NUMBERS */

.numbers {
  padding-block: var(--section-pt) var(--section-pb);
}

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

.numbers__grid {
  display: grid;
  grid-template-columns: 362fr 356fr 450fr;
  gap: 16px;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 307px;
  padding: 40px;
  border-radius: var(--radius-card);
  background: var(--c-cream);
  color: var(--c-ink);
}

.stat--dark {
  background: var(--c-ink);
  color: var(--c-white);
}

.stat__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 32px;
}

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

.stat--dark .stat__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.stat__value {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}

.stat__label {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.3;
}

.stat__hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--c-ink-60);
}

.stat--dark .stat__hint {
  color: var(--c-white-60);
}

@media (max-width: 1023px) {
  .numbers__grid {
    grid-template-columns: 1fr 1fr;
  }

  .numbers__grid > :last-child {
    grid-column: span 2;
    /* Full width, it no longer needs the height that matches a three-up row */
    min-height: 0;
  }

  .stat--dark .stat__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .numbers {
    padding-block: 64px 48px;
  }

  .numbers__inner {
    gap: 40px;
  }

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

  .numbers__grid > :last-child {
    grid-column: auto;
  }

  .stat {
    min-height: 0;
    padding: 28px 24px;
  }

  .stat--dark .stat__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================ STICKY PATTERN (different + benefits) */

/* ======================================================== DIFFERENT */

.different {
  position: relative;
  overflow: hidden;
}

.different__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  padding-block: var(--section-pt) var(--section-pt-lead);
  text-align: center;
}

.different__title {
  max-width: 532px;
}

.different__claim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.different__kicker {
  font-weight: 500;
  font-size: 24px;
  color: var(--c-white);
}

/*
 * Holds the cycling gold word on its own line, centred under the kicker.
 * "Vindem" used to sit here as a sibling text node and now reads at the end
 * of the kicker above, so this row carries a single child; it stays its own
 * element for the 60px size, which the 24px kicker does not share.
 *
 * The rule that used to style that sibling (`> span:first-child`, white and
 * weight 500) is deliberately gone: with the sibling removed it would have
 * matched the slot itself and stripped the gold off the word.
 */
.different__line {
  display: flex;
  justify-content: center;
  font-size: 60px;
  line-height: 1.15;
}

/*
 * The gold word cycles through a list on its own timer. The words share one
 * grid cell so only the active one is seen, and the slot is locked to the
 * width of the longest so the line never re-flows as they swap.
 *
 * Grid stacking rather than absolute positioning: grid items stay in flow and
 * keep the line box, so the row is as tall as the words. Positioned words are
 * taken out of flow and collapse the row to nothing.
 *
 * Centred, not left-aligned as it was when it followed "Vindem" on the same
 * line — the slot is now on its own beneath the kicker, and its width is
 * fixed to the longest word, so anything shorter would sit visibly off to
 * the left of the sentence it belongs under.
 */
.different__slot {
  display: grid;
  align-items: start;
  justify-items: center;
  font-weight: 700;
  color: var(--c-gold);
  text-align: center;
}

.different__slot span {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
}

/* Without JS exactly one word is marked active in the markup, so it shows */
.different__slot span[data-active='true'] {
  opacity: 1;
}

.different__note {
  max-width: 720px;
  font-size: 17px;
  line-height: 28px;
  color: var(--c-white-60);
}

.different__note strong {
  font-weight: 700;
  color: var(--c-white);
}

@media (max-width: 767px) {
  .different__inner {
    gap: 64px;
    padding-block: 64px 96px;
  }

  .different__kicker {
    font-size: 18px;
  }

  .different__line {
    font-size: 34px;
    gap: 8px;
  }

  .different__note {
    font-size: 15px;
    line-height: 24px;
  }
}

/* ========================================================= BENEFITS */

.benefits {
  position: relative;
  padding-block: var(--section-pt) var(--section-pb);
  overflow: hidden;
}

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

/* Sits inside .container, so the cap has to include the gutters */
.benefits__head {
  max-width: calc(600px + var(--gutter) * 2);
}

/*
 * Full-bleed conveyor: the cards run continuously past both viewport edges.
 * No padding on the track and no transition on the transform — the belt is
 * driven frame by frame, and a transition would smear every step of it.
 */
.benefits__viewport {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  /* Edges dissolve instead of cutting, so the loop has no hard seam */
  -webkit-mask: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.benefits__viewport.is-dragging {
  cursor: grabbing;
}

.benefits__track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: none;
  width: clamp(240px, 22vw, 324px);
  aspect-ratio: 324 / 370;
  padding: 0 20px 20px;
  border-radius: 32px;
  overflow: hidden;
}

.benefit img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(35, 35, 35, 0) 0%, rgba(35, 35, 35, 0.9) 80%);
}

.benefit p {
  position: relative;
  z-index: 1;
  font-size: 17px;
  line-height: 20px;
  text-align: center;
  color: var(--c-white);
}

.benefits__nav {
  display: flex;
  gap: 16px;
}

.benefits__btn {
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 2px solid var(--c-white-60);
  border-radius: var(--radius-btn);
  color: var(--c-white);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.benefits__btn:hover:not(:disabled) {
  border-color: var(--c-white);
}

.benefits__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.benefits__btn svg {
  width: 20px;
  height: 20px;
}

.benefits__btn--next svg {
  transform: scaleX(-1);
}

@media (max-width: 767px) {
  .benefits {
    padding-block: 64px;
  }

  .benefit {
    width: 244px;
  }
}

/* ============================================================== FIT */

.fit {
  padding-block: var(--section-pt) var(--section-pb);
}

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

.fit__grid {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 800px;
}

.fit__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  flex: 1 1 0;
  min-width: 0;
  padding: 64px 40px 80px;
  border-radius: var(--radius-card);
  background: var(--c-cream);
  color: var(--c-ink);
}

.fit__card--yes {
  padding-block: 64px;
  background: var(--c-dark);
  color: var(--c-white);
}

.fit__card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 32px;
  text-align: center;
}

.fit__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.fit__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.3;
}

.fit__list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}

.fit__card--no svg {
  color: var(--c-error);
}

.fit__card--yes svg {
  color: var(--c-success);
}

/*
 * Notch silhouette shared by both comparison cards. Their height depends on
 * content, so the bottom bites are anchored with calc() rather than a ratio.
 */
.notched--fit {
  -webkit-mask-image:
    radial-gradient(circle 31.5px at 86.5px -9.5px, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at calc(100% + 9.5px) 122.5px, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at 360.5px calc(100% - 0.5px), #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at 279.5px -0.5px, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at -6.5px 145.5px, #0000 98%, #000 100%),
    radial-gradient(circle 11.5px at 54.5px calc(100% + 0.5px), #0000 98%, #000 100%);
  mask-image:
    radial-gradient(circle 31.5px at 86.5px -9.5px, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at calc(100% + 9.5px) 122.5px, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at 360.5px calc(100% - 0.5px), #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at 279.5px -0.5px, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at -6.5px 145.5px, #0000 98%, #000 100%),
    radial-gradient(circle 11.5px at 54.5px calc(100% + 0.5px), #0000 98%, #000 100%);
}

.fit__cta {
  margin-top: auto;
}

@media (max-width: 767px) {
  .fit {
    padding: 64px 0;
  }

  .fit__grid {
    flex-direction: column;
  }

  .fit__card {
    padding: 40px 24px 56px;
    gap: 32px;
  }

  .fit__card--yes {
    padding-block: 40px;
  }
}

/* ============================================================= TEAM */

.team {
  position: relative;
  padding-block: var(--section-pt-lead) var(--section-pb);
  overflow: hidden;
}

.team__inner {
  position: relative;
  z-index: 1;
}

.team__head {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  margin-bottom: 56px;
}

.team__headings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 550px;
  flex: none;
}

.team__intro {
  width: 550px;
  flex: none;
  padding-top: 13px;
  font-size: 15px;
  line-height: 20px;
  color: var(--c-white-70);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.member {
  position: relative;
  aspect-ratio: 392 / 315;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.member::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(35, 35, 35, 0) 40%, rgba(35, 35, 35, 0.85) 100%);
}

.member__meta {
  position: absolute;
  left: 32px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.member__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--c-white);
}

.member__role {
  margin-top: 4px;
  font-size: 13px;
  line-height: 16px;
  color: var(--c-white-70);
}

@media (max-width: 1023px) {
  .team__head {
    flex-direction: column;
    gap: 24px;
  }

  .team__headings,
  .team__intro {
    width: auto;
  }

  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .team {
    padding-block: 64px;
  }

  .team__grid {
    grid-template-columns: 1fr;
  }

  .member__meta {
    left: 20px;
    right: 20px;
  }
}

/* ======================================================== LOCATIONS */

.locations {
  position: relative;
  padding-block: var(--section-pt) var(--section-pb);
  overflow: hidden;
}

.locations__inner {
  position: relative;
  z-index: 1;
}

.locations__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 56px;
  text-align: center;
}

.locations__lead {
  max-width: 533px;
  font-size: 15px;
  line-height: 20px;
  color: var(--c-white-70);
}

/* Desktop: two card columns flanking the map. The map tucks slightly under
   both columns, as it does in the design. */
.locations__layout {
  display: grid;
  grid-template-columns: 294px 1fr 294px;
  align-items: start;
}

/*
 * The map dissolves into the section instead of ending on a hard rectangle.
 * Figma vignettes it inside its frame; the exported SVG carries no such fade,
 * so without this the landmass reads as a flat grey plate cut to a box.
 */
.locations__map {
  position: relative;
  align-self: center;
  margin-left: -18px;
  margin-right: -24px;
}

/*
 * The mask sits on the map image alone. On the container it also faded the
 * pins, so the ones nearer the edge (Bălți, Suceava) read dimmer than the rest.
 */
.locations__map img {
  /*
   * The ellipse is kept near half the box so the fade actually finishes
   * inside it. Sized much larger, the falloff completes past the element's
   * own edge and the map ends on a visible rectangle again — which is the
   * thing this mask exists to avoid. The middle stop stretches the falloff
   * so it reads as a dissolve rather than a ring.
   */
  -webkit-mask: radial-gradient(ellipse 54% 52% at 50% 46%, #000 30%, rgba(0, 0, 0, 0.45) 70%, transparent 100%);
  mask: radial-gradient(ellipse 54% 52% at 50% 46%, #000 30%, rgba(0, 0, 0, 0.45) 70%, transparent 100%);
  width: 100%;
  height: auto;
}

/* Pins are overlaid in HTML (not baked into the SVG) so they stay editable */
.map__pins {
  position: absolute;
  inset: 0;
}

.map__pins > * {
  position: absolute;
}

/*
 * A pin is one link anchored on the city itself: a ringed dot at the exact
 * point, and above it a gold callout whose tail points down at the dot, with
 * the store count tucked onto its corner. Everything is sized in em off
 * .map__pins so the whole set scales down together on small screens.
 */
.map__pins {
  font-size: 14px;
}

.map__pin {
  width: 0;
  height: 0;
  color: var(--c-ink);
}

.map__pin:hover,
.map__pin:focus-visible {
  z-index: 1;
  outline: none;
}

.map__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.45em;
  height: 1.45em;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.map__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--c-white);
}

.map__tag {
  position: absolute;
  left: 0;
  bottom: 1.3em;
  display: block;
  padding: 0.45em 0.85em;
  border-radius: 0.6em;
  background: var(--c-gold);
  translate: -50% 0;
  transform-origin: 50% 100%;
  transition: scale var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

/* The tail */
.map__tag::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% -1px;
  border: 0.45em solid transparent;
  border-bottom: 0;
  border-top-color: var(--c-gold);
}

.map__pin:hover .map__tag,
.map__pin:focus-visible .map__tag {
  scale: 1.08;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.map__pin:focus-visible .map__tag {
  outline: 2px solid var(--c-white);
  outline-offset: 2px;
}

.map__label {
  display: block;
  font-size: 1em;
  line-height: 1.2;
  white-space: nowrap;
}

.map__badge {
  position: absolute;
  left: -0.85em;
  top: -0.85em;
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border: 0.15em solid var(--c-dark);
  border-radius: 50%;
  background: var(--c-error);
  color: var(--c-white);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1;
}

/* Iași sits below its dot in the design, so its callout hangs downward */
.map__pin--below .map__tag {
  top: 1.3em;
  bottom: auto;
  transform-origin: 50% 0;
}

.map__pin--below .map__tag::after {
  top: auto;
  bottom: 100%;
  translate: -50% 1px;
  border: 0.45em solid transparent;
  border-top: 0;
  border-bottom-color: var(--c-gold);
}

.map__pin--below .map__badge {
  top: auto;
  bottom: -0.85em;
}

@media (max-width: 767px) {
  .map__pins {
    font-size: 10px;
  }
}

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

.location {
  display: block;
  padding: 20px 24px;
  border-radius: 20px;
  background: #2b2b2b;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.location:hover {
  background: #343434;
  transform: translateY(-2px);
}

.location__city {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
  color: var(--c-white);
}

.location__street {
  margin-top: 2px;
  font-size: 16px;
  line-height: 20px;
  color: var(--c-white-70);
}

.location__hours {
  margin-top: 4px;
  font-size: 13px;
  line-height: 16px;
  color: var(--c-white-60);
}

.locations__outro {
  max-width: 533px;
  margin: 72px auto 0;
  text-align: center;
}

.locations__outro-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 36px;
  color: var(--c-white);
}

.locations__outro-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 20px;
  color: var(--c-white-70);
}

.locations__outro .btn {
  margin-top: 40px;
}

.locations__outro-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--c-white-60);
}

/* Mobile: the cards become a draggable, auto-scrolling ticker */
.locations__ticker {
  display: none;
}

@media (max-width: 1023px) {
  .locations__layout {
    grid-template-columns: 1fr;
  }

  .locations__map {
    margin-inline: 0;
  }

  .locations__col {
    display: none;
  }

  .locations__ticker {
    display: block;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 24px;
    overflow: hidden;
    cursor: grab;
    /* Horizontal swipes belong to the belt; vertical ones still scroll the page */
    touch-action: pan-y;
  }

  .locations__ticker.is-dragging {
    cursor: grabbing;
  }

  .locations__ticker-track {
    display: flex;
    gap: 12px;
    width: max-content;
    will-change: transform;
  }

  .locations__ticker .location {
    width: 260px;
    flex: none;
  }
}

@media (max-width: 767px) {
  .locations {
    padding-block: 64px;
  }

  .locations__outro {
    margin-top: 48px;
  }

  .locations__outro-title {
    font-size: 22px;
    line-height: 30px;
  }
}

/* =========================================================== FOOTER */

/*
 * The sheet is painted on the <footer> itself — no 100vw trick, so a desktop
 * scrollbar can't push the page sideways. It is capped at the Figma's 1200px
 * content width and centred; below that it runs edge to edge.
 */
.site-footer {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
  margin-top: var(--section-pt);
  background: var(--c-white);
  color: var(--c-ink);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  font-family: var(--font-body);
}

.site-footer__card {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
  padding-block: clamp(40px, 4vw, 56px) clamp(24px, 2.5vw, 32px);
}

/*
 * Only the top edge keeps the puzzle bite — that is the edge still meeting the
 * dark canvas. Positions are percentages so they stay distributed at any width.
 */
.notched--footer {
  -webkit-mask-image:
    radial-gradient(circle 31.5px at 7.2% -9.5px, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at 23.3% -0.5px, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at 76.4% -0.5px, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at 58.5% -6px, #0000 98%, #000 100%);
  mask-image:
    radial-gradient(circle 31.5px at 7.2% -9.5px, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at 23.3% -0.5px, #0000 98%, #000 100%),
    radial-gradient(circle 17.5px at 76.4% -0.5px, #0000 98%, #000 100%),
    radial-gradient(circle 31.5px at 58.5% -6px, #0000 98%, #000 100%);
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  gap: 46px;
}

.site-footer__logo {
  width: 105px;
  height: auto;
  flex: none;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 251px;
  flex: 1 1 auto;
}

.site-footer__cols {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  width: 428px;
  flex: none;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__label {
  font-size: 13px;
  line-height: 16px;
  color: var(--c-dark);
  opacity: 0.4;
}

.site-footer__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__text,
.site-footer a {
  font-size: 15px;
  line-height: 20px;
  color: var(--c-ink);
}

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

.site-footer__ext {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-footer__ext svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__legal {
  max-width: 295px;
  font-size: 12px;
  line-height: 16px;
  color: var(--c-dark);
  opacity: 0.6;
}

.site-footer__credit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.site-footer__credit span {
  font-size: 12px;
  line-height: 16px;
  color: var(--c-dark);
  opacity: 0.6;
}

.site-footer__credit img {
  width: 63px;
  height: auto;
}

@media (max-width: 1023px) {
  .site-footer__top {
    flex-wrap: wrap;
    gap: 32px;
  }

  .site-footer__cols {
    width: 100%;
    justify-content: flex-start;
    gap: 64px;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 64px;
  }

  .site-footer__card {
    gap: 40px;
    padding: 28px 24px 20px;
  }

  .site-footer__contact {
    width: auto;
  }

  .site-footer__cols {
    flex-direction: column;
    gap: 28px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .site-footer__credit {
    align-items: flex-start;
  }
}
