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

.hero {
  position: relative;
  padding: 24px var(--pad-x) 24px;
  max-width: var(--container);
  margin: 0 auto;
  height: calc(100svh - 76px);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__main {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: stretch;
  min-height: 0;
}

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.hero__badge { margin-bottom: 22px; align-self: flex-start; }

.hero__h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.028em;
  color: var(--ink-dark);
  margin-bottom: 22px;
  max-width: 640px;
}

.hero__pitch {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: 26px;
  max-width: 540px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero__trust li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__trust li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mid);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}
.hero__num span {
  background: linear-gradient(135deg, var(--accent-mid) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* hero__title-stage / hero__lead-stage – удалены, rotation работает через
   process-bar внизу и floating-card на фото справа. */

.hero__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__cta-or {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-light);
}

.hero__cta-phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-dark);
  border-bottom: 1.5px solid var(--accent-mid);
  padding-bottom: 1px;
  transition: color .25s var(--ease-out);
}
.hero__cta-phone:hover { color: var(--accent-mid); }

.hero__right {
  position: relative;
  height: 100%;
}

.hero__photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #1F2A20;
}

.hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out);
}
.hero__photo.is-active { opacity: 1; transform: scale(1); }
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__photo--1 { background: linear-gradient(135deg, #4F5A48 0%, #1F2A20 50%, #0F1410 100%); }
.hero__photo--2 { background: linear-gradient(150deg, #6A7A5F 0%, #2A3826 50%, #131A14 100%); }
.hero__photo--3 { background: linear-gradient(160deg, #88A07A 0%, #3A4830 40%, #1A2218 100%); }
.hero__photo--4 { background: linear-gradient(140deg, #A8C094 0%, #4A5838 50%, #1F2A1A 100%); }
.hero__photo--5 { background: linear-gradient(125deg, #B8D0A4 0%, #5A6A48 40%, #2A3522 100%); }

.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.30) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.hero__photo-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  max-width: calc(100% - 32px);
}
.hero__photo-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-mid);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: dot-blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
.hero__photo-card-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.hero__photo-frame {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: rgba(22,20,18,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bg);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.hero__photo-frame span { color: var(--accent); }

.hero__process {
  position: relative;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}

.hero__process-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__process-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-dark);
  letter-spacing: -0.01em;
}
.hero__process-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-muted);
}

.hero__process-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.hero__step {
  cursor: pointer;
  padding: 16px 0 0;
  text-align: left;
  background: none;
  border: none;
}

.hero__step-track {
  position: relative;
  height: 3px;
  background: var(--line-strong);
  border-radius: 2px;
  margin-bottom: 14px;
  overflow: hidden;
}
.hero__step-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent-mid);
  border-radius: 2px;
  transition: transform .8s var(--ease-out);
  box-shadow: 0 0 12px var(--accent-glow);
  will-change: transform;
}
.hero__step.is-completed .hero__step-fill,
.hero__step.is-active .hero__step-fill { transform: scaleX(1); }

.hero__step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  transition: color .3s;
}
.hero__step.is-active .hero__step-num,
.hero__step.is-completed .hero__step-num { color: var(--accent-mid); }

.hero__step-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color .3s;
}
.hero__step:hover .hero__step-name { color: var(--ink-dark); }
.hero__step.is-active .hero__step-name { color: var(--ink-dark); font-weight: 700; }


/* ========================================================================
   SERVICES
   ======================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Точки-пагинация каруселей (услуги / материалы / портфолио) —
   только на мобиле (см. responsive.css) */
.carousel-dots { display: none; }

.service-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}

.service-card__media {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.service-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.service-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 2;
}
.service-card__media--asphalt { background: linear-gradient(135deg, #2A2A28 0%, #4F4F4A 50%, #1F1F1D 100%); }
.service-card__media--paver   { background: linear-gradient(135deg, #6A7456 0%, #3D4730 50%, #1F2618 100%); }
.service-card__media--curb    { background: linear-gradient(135deg, #7A6F5C 0%, #4F4630 50%, #2A2418 100%); }
.service-card__media--border  { background: linear-gradient(135deg, #5C6F4D 0%, #3A4828 50%, #1E2814 100%); }

.service-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(22,20,18,0.5);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}

.service-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink-dark);
}

.service-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-mid);
  letter-spacing: 0;
}
.service-card__price b {
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-dark);
  margin-right: 4px;
}

.service-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  flex: 1;
}

.service-card__features {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.service-card__features li {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-dark);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.service-card__features li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%232EA86A' stroke-width='2'%3E%3Cpath d='M2 6L5 9L10 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ========================================================================
   BENTO GRID — Почему мы
   ======================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: minmax(200px, 1fr) minmax(200px, 1fr) minmax(280px, auto);
  gap: 16px;
  perspective: 1400px;
}

.bento__card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
  /* will-change ставится из JS только на время hover — экономит видеопамять */
}

/* Spotlight: фиксированный круг-градиент, который двигается через transform
   (композитится на GPU) вместо перерисовки radial-gradient каждый кадр */
.bento__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(61,214,140,0.12), transparent);
  transform: translate3d(calc(var(--mx, 0px) - 310px), calc(var(--my, 0px) - 310px), 0);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

@media (hover: hover) {
  .bento__card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(46,168,106,0.35);
  }
  .bento__card:hover::before { opacity: 1; will-change: transform; }
}

.bento__card > * { position: relative; z-index: 2; }
.bento__card .bento__feature-bg { z-index: 0; }

.bento__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink-dark);
  margin-bottom: 10px;
}

.bento__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.bento__body { margin-top: auto; padding-top: 12px; }

.bento__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bento__tag--dark {
  background: rgba(245,245,244,0.12);
  color: var(--accent);
  border: 1px solid rgba(245,245,244,0.18);
}

/* === GRID positioning === */
.bento__card--feature  { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.bento__card--foreman  { grid-column: 3;          grid-row: 1; }
.bento__card--price    { grid-column: 4;          grid-row: 1; }
.bento__card--payment  { grid-column: 3;          grid-row: 2; }
.bento__card--materials{ grid-column: 4;          grid-row: 2; }
.bento__card--map      { grid-column: 1 / span 4; grid-row: 3; }

/* ===== 1. FEATURE — Гарантия 3 года ===== */
.bento__card--feature {
  background: var(--bg-dark);
  color: var(--ink);
  border-color: transparent;
  padding: 32px;
  position: relative;
}
.bento__card--feature .bento__title { color: var(--ink); font-size: 24px; }
.bento__card--feature .bento__desc { color: rgba(245,245,244,0.7); font-size: 14px; }

.bento__feature-bg {
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  pointer-events: none;
}
.bento__ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0.15;
  transform: scale(0.6);
  animation: ringPulse 3.5s ease-out infinite;
}
.bento__ring--2 { animation-delay: 1.2s; }
.bento__ring--3 { animation-delay: 2.4s; }
@keyframes ringPulse {
  0%   { transform: scale(0.55); opacity: 0.35; }
  70%  { transform: scale(1.05); opacity: 0; }
  100% { transform: scale(1.1);  opacity: 0; }
}

.bento__feature-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.bento__feature-shield {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(61,214,140,0.15);
  border: 1px solid rgba(61,214,140,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.bento__feature-shield svg { width: 22px; height: 22px; }

.bento__feature-num {
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  position: relative;
  z-index: 2;
}

/* === Sparkles вокруг "3" === */
.bento__sparkles {
  position: absolute;
  top: 50%;
  left: clamp(40px, 6vw, 80px);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
}
.bento__sparkle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  /* одна тень вместо двух — визуально почти то же, repaint дешевле */
  box-shadow: 0 0 22px rgba(61,214,140,0.65);
  transform-origin: 0 0;
  animation: sparkleOrbit 8s linear infinite;
}
.bento__sparkle--1 { animation-duration:  7s; animation-delay: 0s;    --r: clamp(70px, 9vw, 130px); }
.bento__sparkle--2 { animation-duration:  9s; animation-delay: -1.4s; --r: clamp(80px, 11vw, 150px); background: rgba(255,255,255,0.95); box-shadow: 0 0 10px rgba(255,255,255,0.6); width: 4px; height: 4px; }
.bento__sparkle--3 { animation-duration: 11s; animation-delay: -2.8s; --r: clamp(60px, 8vw, 110px); }
.bento__sparkle--4 { animation-duration: 13s; animation-delay: -4.2s; --r: clamp(90px, 13vw, 175px); width: 3px; height: 3px; background: rgba(255,255,255,0.85); box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.bento__sparkle--5 { animation-duration: 10s; animation-delay: -5.6s; --r: clamp(50px, 7vw, 95px); width: 5px; height: 5px; }

@keyframes sparkleOrbit {
  0%   { transform: rotate(0)    translateX(var(--r, 100px)) rotate(0)    scale(1);   opacity: 0.95; }
  25%  {                                                                  scale(0.6); opacity: 0.4; }
  50%  { transform: rotate(180deg) translateX(var(--r, 100px)) rotate(-180deg) scale(1); opacity: 0.95; }
  75%  {                                                                  scale(0.6); opacity: 0.4; }
  100% { transform: rotate(360deg) translateX(var(--r, 100px)) rotate(-360deg) scale(1); opacity: 0.95; }
}

.bento__card--feature:hover .bento__sparkle { animation-duration: 4s; }
.bento__feature-num-digit {
  font-size: clamp(120px, 14vw, 200px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 60px var(--accent-glow);
}
.bento__feature-num-unit {
  font-size: 22px;
  font-weight: 600;
  color: rgba(245,245,244,0.7);
}

.bento__feature-body { position: relative; z-index: 2; margin-top: 8px; }
.bento__feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.bento__feature-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245,245,244,0.7);
}

.bento__feature-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(245,245,244,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: rgba(245,245,244,0.72);
  position: relative;
  z-index: 2;
}
.bento__feature-foot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: dot-blink 2s ease-in-out infinite;
}

/* ===== 2. FOREMAN — Прораб на объекте ===== */
.bento__card--foreman { padding: 0; overflow: hidden; }
.bento__card--foreman .bento__body { padding: 22px 22px 22px; }

.bento__foreman-scene {
  position: relative;
  flex: 1;
  background: linear-gradient(160deg, #4F5A48 0%, #2A3826 60%, #131A14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  overflow: hidden;
}
.bento__foreman-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cg fill='%23000' fill-opacity='0.10'%3E%3Crect x='0' y='0' width='12' height='12'/%3E%3Crect x='16' y='16' width='12' height='12'/%3E%3C/g%3E%3C/svg%3E");
}

.bento__foreman-helmet {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  color: var(--accent);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}
.bento__foreman-helmet svg { width: 100%; height: 100%; }
.bento__foreman-pulse {
  position: absolute;
  inset: -10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: ringPulse 2.8s ease-out infinite;
}

.bento__foreman-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.bento__foreman-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: dot-blink 1.6s ease-in-out infinite;
}

/* ===== 3. PRICE — Фикс-смета ===== */
.bento__card--price .bento__body { padding-top: 12px; }

.bento__price-stage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 4px;
}

.bento__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-warm);
  font-family: var(--font-display);
  font-size: 12px;
  position: relative;
  color: var(--ink-muted);
  transition: opacity .6s var(--ease-out);
}

.bento__price-row--strike {
  text-decoration: line-through;
  text-decoration-color: rgba(220,90,90,0.6);
  text-decoration-thickness: 2px;
  opacity: 0.6;
}
.bento__price-row--strike .bento__price-amount { color: rgba(220,90,90,0.85); }

.bento__price-row--accent {
  background: var(--accent-soft);
  color: var(--accent-mid);
  font-weight: 700;
  border: 1px solid rgba(46,168,106,0.25);
}
.bento__price-row--accent .bento__price-amount {
  color: var(--accent-mid);
  font-size: 16px;
  font-weight: 800;
}

.bento__price-label { letter-spacing: 0; }
.bento__price-amount { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== 4. PAYMENT — оплата по этапам ===== */
.bento__card--payment .bento__body { padding-top: 18px; }

.bento__payment-flow {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 4px 8px;
}

.bento__pay-step {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 12px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-muted);
  padding: 5px 0;
  transition: color .35s;
}

.bento__pay-step.is-done { color: var(--ink-dark); }
.bento__pay-step.is-done .bento__pay-amount { color: var(--accent-mid); }
.bento__pay-step.is-active { color: var(--ink-dark); font-weight: 600; }
.bento__pay-step.is-active .bento__pay-amount { color: var(--accent-mid); font-weight: 700; }

.bento__pay-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg-card);
  position: relative;
  transition: all .35s;
}
.bento__pay-step.is-done .bento__pay-dot,
.bento__pay-step.is-active .bento__pay-dot {
  border-color: var(--accent-mid);
  background: var(--accent-mid);
}
.bento__pay-step.is-done .bento__pay-dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--bg-card);
  line-height: 1;
}
.bento__pay-step.is-active .bento__pay-dot {
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pay-pulse 1.6s ease-in-out infinite;
}
@keyframes pay-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 6px rgba(46,168,106,0.25); }
}

.bento__pay-line {
  width: 2px;
  height: 8px;
  background: var(--line-strong);
  margin-left: 7px;
}

.bento__pay-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

/* ===== 5. MATERIALS — marquee ===== */
.bento__card--materials { padding: 0; overflow: hidden; }
.bento__card--materials .bento__body { padding: 18px 22px 22px; }

.bento__marquee {
  flex: 1;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1F2A22 100%);
  overflow: hidden;
  position: relative;
  min-height: 90px;
}
.bento__marquee::before, .bento__marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  z-index: 2;
  pointer-events: none;
}
.bento__marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
}
.bento__marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-dark) 0%, transparent 100%);
}

.bento__marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: bentoMarquee 24s linear infinite;
  padding: 0 20px;
}
@keyframes bentoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.bento__cert {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(61,214,140,0.10);
  color: var(--accent);
  border: 1px solid rgba(61,214,140,0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== 6. MAP — Алматы и пригороды ===== */
.bento__card--map {
  padding: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
}

.bento__map-stage {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(46,168,106,0.1) 0%, transparent 60%),
    var(--bg-warm);
  min-height: 280px;
  overflow: hidden;
}

.bento__map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink-dark);
}

.bento__map-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent-mid);
  pointer-events: none;
}

.bento__route {
  stroke-dasharray: 6 5;
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
.bento__card--map.is-revealed .bento__route { opacity: 0.55; }
.bento__card--map.is-revealed .bento__route[data-route="kaskelen"] { transition-delay: 0.4s; }
.bento__card--map.is-revealed .bento__route[data-route="talgar"]   { transition-delay: 0.7s; }
.bento__card--map.is-revealed .bento__route[data-route="uzynagash"]{ transition-delay: 1.0s; }
.bento__card--map.is-revealed .bento__route[data-route="issyk"]    { transition-delay: 1.3s; }

.bento__map-distances {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bento__dist {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--accent-mid);
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(46,168,106,0.3);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bento__card--map.is-revealed .bento__dist {
  opacity: 1;
}
.bento__card--map.is-revealed .bento__dist[data-route="kaskelen"]  { transition-delay: 0.9s; }
.bento__card--map.is-revealed .bento__dist[data-route="talgar"]    { transition-delay: 1.2s; }
.bento__card--map.is-revealed .bento__dist[data-route="uzynagash"] { transition-delay: 1.5s; }
.bento__card--map.is-revealed .bento__dist[data-route="issyk"]     { transition-delay: 1.8s; }

.bento__map-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Pin — flex-column из dot и label.
   Центр DOT (не всего pin'а) должен оказаться ровно на координатах left/top.
   Так SVG-маршруты приходят точно в точку. Для этого по Y сдвигаем pin вверх
   только на полу-высоту dot: translate -7px (default) / -9px (primary).
   Высота label при этом не влияет на позицию dot. */
.bento__pin {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  opacity: 0;
  --tx: 0px;
  --ty: 0px;
  transform: translate(calc(-50% + var(--tx)), calc(-7px + var(--ty))) scale(0.4);
  transform-origin: center top;
  transition: opacity .55s var(--ease-out), transform .22s ease-out;
}
.bento__pin--primary {
  transform: translate(calc(-50% + var(--tx)), calc(-9px + var(--ty))) scale(0.4);
}
.bento__card--map.is-revealed .bento__pin {
  opacity: 1;
  transform: translate(calc(-50% + var(--tx)), calc(-7px + var(--ty))) scale(1);
}
.bento__card--map.is-revealed .bento__pin--primary {
  transform: translate(calc(-50% + var(--tx)), calc(-9px + var(--ty))) scale(1);
}
.bento__card--map.is-revealed .bento__pin[data-pin="almaty"]    { transition-delay: 0.2s; }
.bento__card--map.is-revealed .bento__pin[data-pin="kaskelen"]  { transition-delay: 0.6s; }
.bento__card--map.is-revealed .bento__pin[data-pin="talgar"]    { transition-delay: 0.9s; }
.bento__card--map.is-revealed .bento__pin[data-pin="uzynagash"] { transition-delay: 1.2s; }
.bento__card--map.is-revealed .bento__pin[data-pin="issyk"]     { transition-delay: 1.5s; }

.bento__pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-mid);
  border: 3px solid var(--bg-card);
  box-shadow: 0 4px 12px rgba(22,20,18,0.18);
  position: relative;
  z-index: 2;
  transition: transform .25s var(--ease-out);
}
.bento__pin--primary .bento__pin-dot {
  width: 18px;
  height: 18px;
  background: var(--ink-dark);
  border-color: var(--accent);
}

.bento__pin-pulse {
  position: absolute;
  /* top = полу-высота dot, чтобы центр pulse совпал с центром dot */
  top: 7px;
  left: 50%;
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent-mid);
  border-radius: 50%;
  opacity: 0;
  animation: pinPulse 2s ease-out infinite;
  z-index: 1;
  transform: translate(-50%, -50%);
}
.bento__pin--primary .bento__pin-pulse { top: 9px; }
@keyframes pinPulse {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.bento__pin-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-dark);
  background: var(--bg-card);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s, transform .25s;
  box-shadow: var(--shadow-sm);
}
.bento__pin--primary .bento__pin-label {
  opacity: 1;
  transform: translateY(0);
  background: var(--ink-dark);
  color: var(--bg);
  border-color: var(--ink-dark);
  font-weight: 700;
}

.bento__pin:hover .bento__pin-dot,
.bento__pin.is-active .bento__pin-dot { transform: scale(1.35); }
.bento__pin:hover .bento__pin-label,
.bento__pin.is-active .bento__pin-label { opacity: 1; transform: translateY(0); }
.bento__card--map.is-revealed .bento__pin:hover { z-index: 5; }

.bento__map-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: var(--bg-card);
  position: relative;
}

.bento__map-info .bento__title { font-size: 24px; margin-bottom: 0; }
.bento__map-info .bento__desc { font-size: 14px; }

.bento__map-stat {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bento__map-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--accent-mid);
  font-variant-numeric: tabular-nums;
}
.bento__map-stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-muted);
}


/* ========================================================================
   PAVEMENT — разрез дорожной одежды (слои)
   ======================================================================== */

.pavement {
  max-width: 720px;
  margin: 0 auto;
}

/* ===== Разрез: вертикальный стек слоёв ===== */
.pavement__cut {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  background: var(--ink-dark);
}

.layer {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .55s var(--ease-out);
}
.layer + .layer { box-shadow: inset 0 1px 0 rgba(0,0,0,0.3); }

/* высоты ~пропорционально толщине слоёв */
.layer--surface { height: 66px; }
.layer--bedding { height: 42px; }
.layer--base    { height: 116px; }
.layer--sand    { height: 84px; }
.layer--soil    { height: 76px; }

/* ===== Текстуры материалов (CSS-only) ===== */
.layer--surface {
  background-color: #6f6e6a;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.28) 0 1.5px, transparent 1.5px 46px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 1.5px, transparent 1.5px 33px),
    linear-gradient(180deg, rgba(255,255,255,0.10), transparent 45%);
}
.layer--bedding {
  background-color: #97948c;
  background-image: radial-gradient(rgba(0,0,0,0.10) 0.5px, transparent 1px);
  background-size: 6px 6px;
}
.layer--base {
  background-color: #494844;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.16) 0 4px, transparent 5px),
    radial-gradient(circle at 45% 68%, rgba(255,255,255,0.10) 0 5px, transparent 6px),
    radial-gradient(circle at 72% 26%, rgba(0,0,0,0.32) 0 4px, transparent 5px),
    radial-gradient(circle at 88% 72%, rgba(255,255,255,0.12) 0 3px, transparent 4px),
    radial-gradient(circle at 30% 88%, rgba(0,0,0,0.28) 0 4px, transparent 5px);
  background-size: 70px 70px, 90px 90px, 80px 80px, 60px 60px, 100px 100px;
}
.layer--sand {
  background-color: #8c8475;
  background-image: radial-gradient(rgba(0,0,0,0.13) 0.5px, transparent 1px);
  background-size: 5px 5px;
}
.layer--soil {
  background-color: #38302a;
  background-image:
    radial-gradient(circle at 25% 42%, rgba(0,0,0,0.4) 0 6px, transparent 8px),
    radial-gradient(circle at 70% 62%, rgba(0,0,0,0.35) 0 5px, transparent 7px),
    linear-gradient(180deg, #3a322b 0%, #251f1a 100%);
  background-size: 120px 120px, 100px 100px, 100% 100%;
}

/* ===== Подпись на слое ===== */
.layer__cap {
  position: relative;
  z-index: 2;
  margin-left: clamp(14px, 2vw, 24px);
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(22,20,18,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
}
.layer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.layer__thk {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-variant-numeric: tabular-nums;
}

/* ===== Бейдж глубины ===== */
.pavement__depth {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: rgba(22,20,18,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  opacity: 0;
  transition: opacity .6s var(--ease-out) .9s;
}
.pavement.is-built .pavement__depth { opacity: 1; }
.pavement__depth-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.pavement__depth-cap {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

/* ===== Сборка снизу вверх при попадании в viewport ===== */
.pavement.is-built .layer { opacity: 1; transform: translateY(0); }
.pavement.is-built .layer--soil    { transition-delay: 0s; }
.pavement.is-built .layer--sand    { transition-delay: .12s; }
.pavement.is-built .layer--base    { transition-delay: .24s; }
.pavement.is-built .layer--bedding { transition-delay: .36s; }
.pavement.is-built .layer--surface { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .layer { opacity: 1; transform: none; transition: filter .3s var(--ease-out); }
  .pavement__depth { opacity: 1; transition: none; }
}


/* ========================================================================
   CALCULATOR
   ======================================================================== */

.calc {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.calc__form {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.calc__result {
  background: var(--bg-dark);
  color: var(--ink);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.calc__result::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.calc__result-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(245,245,244,0.6);
  text-transform: uppercase;
  position: relative;
}

.calc__result-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.calc__result-value span { color: var(--accent); }
.calc__result-value small {
  display: block;
  font-size: 0.34em;
  font-weight: 500;
  color: rgba(245,245,244,0.55);
  margin-top: 8px;
  letter-spacing: 0;
}

.calc__result-note {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245,245,244,0.7);
  position: relative;
}


/* ========================================================================
   MATERIALS CATALOG
   ======================================================================== */

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.material {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-dark);
  cursor: pointer;
  transition: transform .35s var(--ease-out);
}
.material > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.material::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}

.material__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 50%, rgba(22,20,18,0.75) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--bg);
}
.material__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.material__price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  color: var(--accent);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

@media (hover: hover) {
  .material:hover { transform: scale(1.02); }
}


/* ========================================================================
   PORTFOLIO
   ======================================================================== */

.portfolio-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 32vw, 400px);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 28px;
  margin: -4px -4px 0;
  cursor: grab;
  scroll-behavior: smooth;
  scrollbar-width: auto;
  scrollbar-color: var(--accent-mid) rgba(22,20,18,0.08);
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.portfolio-track img,
.portfolio-track svg { -webkit-user-drag: none; user-select: none; }
.portfolio-track:active { cursor: grabbing; }

.portfolio-track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}
.portfolio-track.is-dragging .portfolio-item {
  pointer-events: none;
}
.portfolio-track.is-dragging .portfolio-item__overlay {
  pointer-events: none;
}

.portfolio-track::-webkit-scrollbar { height: 12px; }
.portfolio-track::-webkit-scrollbar-track {
  background: rgba(22,20,18,0.08);
  border-radius: 6px;
  margin: 0 8px;
}
.portfolio-track::-webkit-scrollbar-thumb {
  background: var(--accent-mid);
  border-radius: 6px;
  border: 2px solid var(--bg-warm);
  background-clip: padding-box;
  transition: background .25s;
}
.portfolio-track::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  background-clip: padding-box;
}
.portfolio-track::-webkit-scrollbar-thumb:active {
  background: var(--accent);
}

.portfolio-item {
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--ink-dark);
  cursor: pointer;
  transition: transform .35s var(--ease-out);
}
.portfolio-item > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.75) 100%);
  color: var(--bg);
}

.portfolio-item__tag {
  align-self: flex-start;
  background: var(--accent-mid);
  color: var(--ink-dark);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portfolio-item__body { display: flex; flex-direction: column; gap: 6px; }

.portfolio-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.portfolio-item__meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(245,245,244,0.8);
}

@media (hover: hover) {
  .portfolio-item:hover { transform: translateY(-4px); }
}



/* ========================================================================
   REVIEWS
   ======================================================================== */

.reviews-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.reviews-rating__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink-dark);
  font-variant-numeric: tabular-nums;
}
.reviews-rating__num small {
  font-weight: 600;
  font-size: 0.5em;
  color: var(--ink-muted);
  margin-left: 4px;
}
.reviews-rating__stars {
  display: inline-flex;
  gap: 3px;
  color: var(--accent-mid);
  margin: 2px 0 4px;
}
.reviews-rating__stars svg { width: 16px; height: 16px; }
.reviews-rating__label {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-muted);
}

/* Marquee track */
.reviews-track {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.reviews-row {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
  cursor: grab;
  -webkit-user-select: none;
          user-select: none;
}
.reviews-row.is-dragging {
  cursor: grabbing;
}

/* Fallback-анимация на случай отключённого JS */
.reviews-row--forward { animation: reviewsScroll 90s linear infinite; }
.reviews-row--reverse { animation: reviewsScrollReverse 105s linear infinite; }

@keyframes reviewsScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes reviewsScrollReverse {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Card */
.review {
  position: relative;
  flex-shrink: 0;
  width: clamp(300px, 28vw, 380px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
  overflow: hidden;
}

@media (hover: hover) {
  .review:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(46,168,106,0.3);
  }
}

/* Dark card variant – для визуального ритма в карусели */
.review--dark {
  background: var(--bg-dark);
  border-color: transparent;
  color: var(--ink);
}
.review--dark .review__text { color: var(--ink); }
.review--dark .review__meta { color: rgba(245,245,244,0.55); }
.review--dark .review__foot { border-top-color: rgba(245,245,244,0.10); }
.review--dark .review__quote-icon { color: rgba(61,214,140,0.18); }
.review--dark .review__stars { color: var(--accent); }
@media (hover: hover) {
  .review--dark:hover { border-color: rgba(61,214,140,0.35); box-shadow: 0 20px 40px -16px rgba(0,0,0,0.55); }
}

.review__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent-mid);
  margin-bottom: -2px;
}
.review__stars svg { width: 14px; height: 14px; }

.review__quote-icon {
  position: absolute;
  top: 8px;
  right: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 84px;
  line-height: 0.8;
  color: var(--accent-soft);
  pointer-events: none;
  user-select: none;
}

.review__text {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-dark);
  letter-spacing: -0.005em;
  flex: 1;
}

.review__foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.review__tag {
  align-self: flex-start;
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

.review__meta {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}


/* ========================================================================
   FAQ
   ======================================================================== */

.faq {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-dark);
  transition: color .25s;
}
.faq-item__head:hover { color: var(--accent-mid); }

.faq-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mid);
  transition: transform .35s var(--ease-out), background .25s;
}
.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--accent-mid);
  color: var(--bg);
}

.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease-out);
}
.faq-item.is-open .faq-item__body {
  grid-template-rows: 1fr;
}
.faq-item__body-inner {
  overflow: hidden;
}
.faq-item__body p {
  padding-bottom: 24px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 70ch;
}


/* ========================================================================
   GEOGRAPHY
   ======================================================================== */

.geo {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.geo__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.geo__tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--bg-warm);
  color: var(--ink-dark);
  border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
  cursor: default;
}
.geo__tag--primary {
  background: var(--ink-dark);
  color: var(--bg);
  border-color: var(--ink-dark);
}
.geo__tag--accent {
  background: var(--accent-soft);
  color: var(--accent-mid);
  border-color: rgba(46,168,106,0.25);
}

.geo__note {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}
.geo__note b { color: var(--ink-dark); font-weight: 600; }


/* ========================================================================
   CTA / FORM
   ======================================================================== */

.cta {
  background: var(--bg-dark);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  color: var(--ink);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -45%;
  right: -20%;
  width: 75%;
  aspect-ratio: 1;          /* строго круг (не эллипс) → мягкий «шар» света без углов */
  background: radial-gradient(circle at center,
              rgba(61,214,140,0.40) 0%,
              rgba(61,214,140,0.14) 45%,
              transparent 72%);
  filter: blur(36px);       /* размывает край → плавный засвет, никакой угловатости */
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  position: relative;
}

.cta__lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245,245,244,0.75);
  position: relative;
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.cta__form input, .cta__form select, .cta__form textarea {
  background: rgba(245,245,244,0.05);
  border: 1px solid rgba(245,245,244,0.15);
  color: var(--ink);
}
/* Выпадающий popup селекта рендерится браузером на белом фоне.
   Без этого правила светлый текст select наследуется опциями
   и сливается с белым фоном popup. */
.cta__form select option {
  background: var(--bg-card);
  color: var(--ink-dark);
}
.cta__form input::placeholder,
.cta__form textarea::placeholder { color: rgba(245,245,244,0.4); }
.cta__form input:focus, .cta__form select:focus, .cta__form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Пометка «необязательно» в лейбле */
.cta__form .form-field__opt {
  font-weight: 400;
  color: rgba(245,245,244,0.45);
  font-size: 12px;
}

/* Сообщение об ошибке: место зарезервировано (min-height), показ через
   opacity — без layout shift при появлении/исчезновении ошибки */
.cta__form .form-field__error {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.35;
  color: #FF8C7A;
  margin-top: 2px;
  min-height: 1.35em;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cta__form .form-field.is-invalid input {
  border-color: #DC5A5A;
  box-shadow: 0 0 0 4px rgba(220,90,90,0.18);
}
.cta__form .form-field.is-invalid .form-field__error {
  opacity: 1;
}

.cta__success {
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  color: var(--accent);
  padding: 16px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  display: none;
}
.cta__success.is-show { display: block; }


/* ========================================================================
   CONTACTS + MAP
   ======================================================================== */

.contacts {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
}

.contacts__info {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contacts__row-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contacts__row-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-dark);
  letter-spacing: -0.01em;
}
.contacts__row-value a:hover { color: var(--accent-mid); }

.contacts__socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.contacts__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  background: var(--bg-warm);
  color: var(--ink-dark);
  border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.contacts__social:hover {
  background: var(--accent-mid);
  color: var(--ink-dark);
  border-color: var(--accent-mid);
}
.contacts__social svg { width: 16px; height: 16px; }

.contacts__map {
  position: relative;
  min-height: 360px;
  background: var(--bg-warm);
}
.contacts__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  inset: 0;
}


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

.site-footer {
  background: var(--bg-dark);
  color: var(--ink-soft);
  padding: clamp(48px, 6vw, 72px) 0 32px;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x) 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand .site-header__logo {
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 12px;
}
.footer-brand .site-header__logo::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path d='M32 2L51 17L32 30L13 17Z' fill='%23F5F5F4'/><path d='M53 23L60 37L41 51L34 37Z' fill='%23F5F5F4'/><path d='M32 41L51 55L32 62L13 55Z' fill='%23F5F5F4'/><path d='M11 23L4 37L23 51L30 37Z' fill='%23F5F5F4'/><path d='M32 28L40 36L32 44L24 36Z' fill='%233DD68C'/></svg>");
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245,245,244,0.6);
  max-width: 360px;
  margin-bottom: 18px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,245,244,0.5);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(245,245,244,0.85);
  transition: color .25s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(245,245,244,0.4);
}
.footer-bottom a:hover { color: var(--accent); }
