/* Первый экран */

.hero {
  position: relative;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: clip;
}

.hero::before {
  position: absolute;
  top: -10%;
  right: -12%;
  width: min(860px, 78vw);
  height: 120%;
  background: url("../assets/flow-light.webp") center right / cover no-repeat;
  content: "";
  opacity: 0.7;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 65% 50%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 65% 50%, #000 20%, transparent 72%);
}

.hero::after {
  position: absolute;
  top: 10%;
  right: 4%;
  width: 52vw;
  height: 52vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  content: "";
  filter: blur(10px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.12);
}

.hero__title {
  max-width: 13ch;
  margin-top: 22px;
}

.hero__title-line {
  display: block;
  margin-bottom: -0.04em;
  padding-bottom: 0.04em;
  overflow: hidden;
}

.hero__title-line > span {
  display: block;
}

.hero__lead {
  max-width: 47ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.3vw, 1.18rem);
  line-height: 1.55;
}

.hero__line {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1.04rem, 1.3vw, 1.18rem);
  font-weight: 600;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 44ch;
  margin-top: 20px;
  color: var(--ink-label);
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero__note .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--ok);
}

/* Появление первого экрана: строки заголовка выходят из-под маски. */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero__badge,
  html.js .hero__lead,
  html.js .hero__line,
  html.js .hero__actions,
  html.js .hero__note {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }

  html.js .hero__title-line > span {
    transform: translate3d(0, 106%, 0);
  }

  html.js.is-ready .hero__badge,
  html.js.is-ready .hero__lead,
  html.js.is-ready .hero__line,
  html.js.is-ready .hero__actions,
  html.js.is-ready .hero__note {
    opacity: 1;
    transform: none;
    transition:
      opacity 700ms var(--ease-out),
      transform 700ms var(--ease-out);
  }

  html.js.is-ready .hero__title-line > span {
    transform: none;
    transition: transform 1000ms var(--ease-out);
  }

  html.js.is-ready .hero__badge {
    transition-delay: 80ms;
  }

  html.js.is-ready .hero__title-line:first-child > span {
    transition-delay: 140ms;
  }

  html.js.is-ready .hero__title-line:last-child > span {
    transition-delay: 230ms;
  }

  html.js.is-ready .hero__lead {
    transition-delay: 380ms;
  }

  html.js.is-ready .hero__line {
    transition-delay: 440ms;
  }

  html.js.is-ready .hero__actions {
    transition-delay: 500ms;
  }

  html.js.is-ready .hero__note {
    transition-delay: 560ms;
  }

  html.js .hero__badge .dot {
    animation: badge-pulse 2.6s var(--ease-out) infinite;
  }

  html.js.is-ready .stage-frame {
    animation: stage-in 900ms var(--ease-out) both;
  }

  html.js.is-ready .stage-layer--main .stage-frame {
    animation-delay: 180ms;
  }

  html.js.is-ready .stage-layer--platform .stage-frame {
    animation-delay: 320ms;
  }

  html.js .chip--price {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  html.js .hero-collage__chips .chip {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  html.js.is-ready .chip--price {
    opacity: 1;
    transform: none;
    transition:
      opacity 500ms var(--ease-out) 520ms,
      transform 500ms var(--ease-out) 520ms;
  }

  html.js.is-ready .hero-collage__chips .chip {
    opacity: 1;
    transform: none;
    transition:
      opacity 500ms var(--ease-out) 600ms,
      transform 500ms var(--ease-out) 600ms;
  }
}

@keyframes badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.12);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(31, 122, 77, 0.04);
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Витрина: два слоя и мягкий параллакс. */

.hero-collage {
  position: relative;
  padding-bottom: 4px;
}

.hero-collage__glow {
  position: absolute;
  top: 10%;
  left: 8%;
  width: 84%;
  height: 74%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 190, 0.55), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

.stage-layer {
  transform: translate3d(
    calc(var(--px, 0px) * var(--depth, 1)),
    calc(var(--py, 0px) * var(--depth, 1)),
    0
  );
  transition: transform 0.45s var(--ease-out);
  will-change: transform;
}

.stage-layer--main {
  --depth: 1;
  position: relative;
  z-index: 2;
  width: 88%;
  margin-top: clamp(144px, calc(11vw + 46px), 200px);
}

.stage-layer--platform {
  --depth: 1.7;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 46%;
}

.stage-frame--main {
  box-shadow: var(--shadow-lift);
}

.stage-frame--platform {
  box-shadow: var(--shadow-md);
}

.stage-frame--platform .stage-frame__bar {
  height: 24px;
  padding-inline: 9px;
}

.stage-frame--platform .stage-frame__url {
  font-size: 0.56rem;
}

.hero-collage__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-collage__chips .chip {
  min-height: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.chip--price {
  position: absolute;
  top: calc(clamp(144px, calc(11vw + 46px), 200px) - 42px);
  left: 0;
  z-index: 4;
  min-height: 36px;
  padding: 6px 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
}

/* Бегущая строка */

.marquee {
  position: relative;
  padding-block: 14px;
  overflow: hidden;
  background: var(--ink);
  color: var(--dark-ink);
}

.marquee::before,
.marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(32px, 6vw, 96px);
  content: "";
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--ink), transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 15s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  flex: none;
  gap: 30px;
  align-items: center;
  padding-right: 30px;
}

.marquee__item {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-on-dark);
}

@keyframes marquee {
  to {
    transform: translateX(-25%);
  }
}

/* Пакеты */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.plan--featured {
  border: 1px solid rgba(201, 61, 28, 0.6);
  background: var(--ink);
  background-image: radial-gradient(120% 70% at 50% 0%, rgba(201, 61, 28, 0.24), transparent 60%);
  color: var(--dark-ink);
  box-shadow: var(--shadow-lift);
}

.plan--featured .plan__desc,
.plan--featured .plan__list li,
.plan--featured .plan__term,
.plan--featured .plan__price span {
  color: var(--dark-soft);
}

.plan--featured .plan__list {
  border-top-color: var(--dark-line);
}

.plan--featured .plan__list .icon {
  color: #7BE0AE;
}

.plan--featured .plan__badge {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px -10px rgba(201, 61, 28, 0.9);
}

.plan__badge {
  position: absolute;
  top: -15px;
  left: 24px;
}

.plan__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.plan__desc {
  min-height: 3.2em;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.1vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan__price span {
  color: var(--ink-label);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.plan__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.plan__list .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--ok);
}

.plan__term {
  margin-top: 18px;
  color: var(--ink-label);
  font-size: 0.78rem;
  line-height: 1.4;
}

.plan__cta {
  margin-top: auto;
  padding-top: 22px;
}

.plans-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: none;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Как начать */

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.step {
  position: relative;
  padding: 26px 2px 0;
  border-top: 1px solid var(--line-strong);
  background: transparent;
}

.step::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out) var(--reveal-delay, 0ms);
}

.step.is-visible::before {
  transform: scaleX(1);
}

.step__num {
  display: block;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
  -webkit-text-stroke: 1px var(--accent);
}

.step h3 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.step p {
  max-width: 30ch;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* Работы */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.work-card:first-child {
  grid-column: 1 / -1;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.work-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.work-card:first-child .work-card__media {
  aspect-ratio: 16 / 7;
}

.work-card__media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 19, 14, 0.16));
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.work-card:hover .work-card__media::after,
.work-card:focus-visible .work-card__media::after {
  opacity: 1;
}

.work-card__view {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--accent);
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.92);
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.work-card__view .icon {
  width: 18px;
  height: 18px;
}

.work-card:hover .work-card__view,
.work-card:focus-visible .work-card__view {
  opacity: 1;
  transform: none;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease);
}

.work-card__media--phone {
  background: linear-gradient(160deg, #FFF8F0, #FFE9DA);
}

.work-card__device {
  position: absolute;
  top: 18px;
  bottom: 8px;
  left: 50%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 5px solid var(--surface);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
}

.work-card__device img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-position: center top;
}

.work-card:hover .work-card__media img,
.work-card:focus-visible .work-card__media img {
  transform: scale(1.04);
}

.work-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.work-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.work-card__text {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.work-card__tags {
  margin-top: 2px;
}

.work-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--ink-label);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-card__foot .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}

.work-card:hover .work-card__foot .icon,
.work-card:focus-visible .work-card__foot .icon {
  transform: translate(3px, -3px);
}

/* Широкая карточка: описание слева, ссылка справа. */
@media (min-width: 861px) {
  .work-card:first-child .work-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    align-items: baseline;
    column-gap: 32px;
    row-gap: 5px;
    padding: 18px 24px 20px;
  }

  .work-card:first-child .work-card__text,
  .work-card:first-child .work-card__tags {
    grid-column: 1;
  }

  .work-card:first-child .work-card__tags {
    margin-top: 2px;
  }

  .work-card:first-child .work-card__foot {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    margin-top: 0;
    padding-top: 0;
    white-space: nowrap;
  }
}

/* Почему я */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.why-card {
  padding: 22px 2px 0;
  border-top: 1px solid var(--line-strong);
}

.why-card .icon-box {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.why-card:hover .icon-box,
.why-card:focus-within .icon-box {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

.why-card h3 {
  margin-top: 18px;
  font-size: 1.03rem;
  line-height: 1.3;
}

.why-card p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.89rem;
  line-height: 1.5;
}

/* Платформа */

.platform {
  position: relative;
  padding-block: var(--section-y);
  border-block: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
}

.platform::before {
  position: absolute;
  inset: 0;
  background: url("../assets/flow-light.webp") center / cover no-repeat;
  content: "";
  opacity: 0.55;
  pointer-events: none;
}

.platform > .container {
  position: relative;
  z-index: 1;
}

.platform__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.platform h2 {
  max-width: 15ch;
  margin-top: 14px;
}

.platform__text {
  max-width: 48ch;
  margin-top: 20px;
  color: var(--ink-soft);
}

.platform__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.platform__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.platform__list .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--ok);
}

.platform__actions {
  margin-top: 28px;
}

.platform__media {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.platform__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.platform__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

/* Поддержка */

.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.table tfoot td:first-child {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
}

.table__star {
  margin-right: 4px;
  color: var(--accent);
  font-weight: 700;
}

.support-note {
  max-width: none;
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* FAQ */

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

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 18px 4px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent-hover);
}

.faq__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent);
}

.faq__icon::before,
.faq__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 0.2s var(--ease);
}

.faq__icon::before {
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.faq__body {
  max-width: 72ch;
  padding: 0 36px 22px 4px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@supports (interpolate-size: allow-keywords) {
  .faq__item {
    interpolate-size: allow-keywords;
  }

  .faq__item::details-content {
    height: 0;
    overflow: hidden;
    transition:
      height 0.25s var(--ease-out),
      content-visibility 0.25s allow-discrete;
  }

  .faq__item[open]::details-content {
    height: auto;
  }
}

.faq__item[open] summary {
  color: var(--accent-hover);
}

/* Разбор */

.contact-band {
  position: relative;
  padding-block: var(--section-y);
  background: var(--dark);
  color: var(--dark-ink);
  overflow: hidden;
}

.contact-band::before {
  position: absolute;
  inset: 0;
  background: url("../assets/flow-dark.webp") center / cover no-repeat;
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.contact-band::after {
  position: absolute;
  bottom: -0.36em;
  left: 2%;
  color: transparent;
  content: "15";
  font-family: var(--font-display);
  font-size: clamp(13rem, 30vw, 27rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.8;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(255, 252, 246, 0.09);
}

.contact-band > .container {
  position: relative;
  z-index: 1;
}

.contact-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.contact-band h2 {
  max-width: 17ch;
  margin-top: 16px;
  color: var(--dark-ink);
}

.contact-band__text {
  max-width: 47ch;
  margin-top: 20px;
  color: var(--dark-soft);
}

.contact-band__note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: var(--dark-soft);
  font-size: 0.84rem;
}

.contact-band__note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7BE0AE;
  box-shadow: 0 0 0 4px rgba(123, 224, 174, 0.14);
}

.contact-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form .btn {
  margin-top: 4px;
}

.contact-form__alt {
  max-width: none;
  margin-top: 2px;
  color: var(--ink-label);
  font-size: 0.84rem;
  text-align: center;
}

.contact-form__alt a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: var(--accent-hover);
  font-weight: 600;
}

.contact-form__alt svg {
  width: 14px;
  height: 14px;
}

/* Подвал */

.site-footer {
  padding-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer__col h2 {
  margin-bottom: 14px;
  color: var(--ink-label);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer__col li + li {
  margin-top: 4px;
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover,
.footer__col a:focus-visible {
  color: var(--accent-hover);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 44px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-label);
  font-size: 0.78rem;
}

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

.footer__meta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Адаптивность */

@media (max-width: 1024px) {
  .stage-layer--main {
    width: 90%;
  }

  .stage-layer--platform {
    width: 48%;
  }

  .plan {
    padding: 26px 22px 22px;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__title {
    max-width: 15ch;
  }

  .hero::before {
    top: auto;
    right: -30%;
    bottom: -10%;
    width: 120vw;
    height: 70%;
  }

  .hero-collage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 620px;
  }

  .stage-layer {
    transform: none;
  }

  .stage-layer--main {
    width: 100%;
    margin-top: 0;
  }

  .stage-layer--platform {
    display: none;
  }

  .stage-frame--main .stage-frame__media {
    aspect-ratio: 16 / 11;
  }

  .hero-collage__chips {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .chip--price {
    position: static;
    min-height: 32px;
    padding: 4px 11px;
    box-shadow: var(--shadow-sm);
    color: var(--ink-label);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }

  .plan-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .plan__desc {
    min-height: 0;
  }

  .step {
    padding-top: 22px;
  }

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

  .work-card:first-child .work-card__media {
    aspect-ratio: 16 / 9;
  }

  .platform__grid,
  .contact-band__grid {
    grid-template-columns: 1fr;
  }

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

  .footer__bottom {
    margin-top: 36px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: 56px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__badge {
    font-size: 0.74rem;
  }

  .stage-frame--main .stage-frame__media {
    aspect-ratio: 4 / 3;
  }

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

  .work-card:first-child .work-card__media {
    aspect-ratio: 16 / 10;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .why-card {
    padding-top: 18px;
  }

  .why-card h3 {
    font-size: 0.97rem;
  }

  .why-card p {
    font-size: 0.85rem;
  }

  .step {
    padding: 22px 2px 0;
  }

  .table-card {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .table tr {
    margin-bottom: 10px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .table td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
  }

  .table td + td {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
  }

  .table td::before {
    padding-top: 2px;
    color: var(--ink-label);
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .table tfoot {
    display: block;
  }

  .table tfoot tr {
    display: block;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .table tfoot td,
  .table tfoot td:first-child {
    display: block;
    padding: 14px 18px;
    border: 0;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-2);
    font-size: 0.82rem;
    white-space: normal;
  }

  .table tfoot td::before {
    content: none;
  }

  .footer__grid {
    gap: 24px;
  }

  .contact-band__note {
    align-items: flex-start;
  }
}

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

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

  .hero-collage {
    grid-template-columns: 1fr;
  }

  .stage-frame--main .stage-frame__media {
    aspect-ratio: 16 / 11;
  }

  .hero-collage__chips {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    width: auto;
    flex-wrap: wrap;
    animation: none;
  }

  .marquee__group {
    flex-wrap: wrap;
    padding-block: 4px;
  }

  .marquee__group[aria-hidden="true"] {
    display: none;
  }

  .plan:hover,
  .work-card:hover {
    transform: none;
  }

  .work-card:hover .work-card__media img {
    transform: none;
  }
}
