:root {
  --bg: #e3e5e8;
  --blue: #0e73b6;
  --blue-soft: #30b8d4;
  --ink: #101218;
  --ink-soft: #2e3441;
  --paper-tint: rgba(255, 255, 255, 0.9);
  --line: rgba(16, 18, 24, 0.15);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at top, #f6f8fa 0%, var(--bg) 40%, #d8dbe0 100%);
  color: var(--ink);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
.hero__subtitle,
.hero__kicker,
.sticker {
  font-family: "Tektur", sans-serif;
  margin: 0;
  text-wrap: balance;
}

p,
li,
small,
label,
textarea,
input,
button,
a {
  font-family: "Manrope", sans-serif;
}

.page {
  width: min(1240px, 100% - 2rem);
  margin: 0 auto;
  padding: 1.25rem 0 3.2rem;
}

.hero {
  text-align: center;
  padding: 1.2rem 0 1.4rem;
}

.hero__kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff6920;
  background: #141f2a;
  padding: 0.3rem 0.7rem;
  transform: rotate(-1.5deg);
}

.hero h1 {
  font-size: clamp(2rem, 5.8vw, 4.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-size: clamp(1.08rem, 2.8vw, 2.15rem);
  text-transform: uppercase;
  margin-bottom: 1.05rem;
}

.hero__seo {
  margin: 0 auto 1.2rem;
  max-width: 82ch;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cta {
  border: 0;
  border-radius: 999px;
  padding: 0.86rem 1.3rem;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), filter 220ms ease;
}

.cta:active {
  transform: scale(0.97);
}

.cta--primary {
  background: var(--blue);
  color: #f2f9ff;
}

.cta--secondary {
  background: #1a222d;
  color: #f4f7fb;
}

.cta--telegram {
  background: linear-gradient(135deg, #23a1dc 0%, #1c6fb8 100%);
  color: #ffffff;
  width: 100%;
  justify-content: center;
}

.cta--telegram.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.grid-wrap {
  padding-top: 0.4rem;
}

.montage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.card {
  min-height: clamp(220px, 29vw, 360px);
  border: 1px solid var(--line);
  isolation: isolate;
  position: relative;
  overflow: hidden;
  transition: filter 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 14, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out);
  z-index: 2;
}

.card.is-pressing::after {
  opacity: 1;
}

.card.is-pressing .card__inner {
  filter: blur(1.6px) brightness(0.78);
  transition: filter 180ms var(--ease-out);
}

.card:focus-visible {
  outline: 3px solid rgba(48, 184, 212, 0.75);
  outline-offset: -3px;
}

.card--blue {
  background: var(--blue);
}

.card--paper {
  background-color: #f3f5f8;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    url("./assets/paper-rotated.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.card__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: clamp(0.9rem, 2.2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
}

.card__inner > * {
  transition: transform 5s var(--ease-out), color 420ms ease, filter 420ms ease, opacity 420ms ease;
  transform: scale(1);
}

.card h2 {
  font-size: clamp(1.55rem, 3.2vw, 3rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.card p,
.card li {
  margin: 0;
  line-height: 1.35;
  font-size: clamp(0.88rem, 1.65vw, 1.15rem);
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.card--blue h2,
.card--blue p,
.card--blue li {
  color: #bfd8ea;
}

.card--paper h2,
.card--paper p,
.card--paper li {
  color: #52657a;
}

.sticker {
  width: max-content;
  text-transform: uppercase;
  font-size: clamp(1.65rem, 3vw, 3.5rem);
  line-height: 0.92;
  font-weight: 800;
  padding: 0.5rem 0.74rem;
  color: #0c1016;
}

.sticker--cyan {
  background: linear-gradient(120deg, #57c6d0 0%, #2cb7c4 100%);
  transform: rotate(-11deg);
}

.sticker--pink {
  background: linear-gradient(140deg, #ff2de5 0%, #f400ce 100%);
  transform: rotate(11deg);
}

.sticker--orange {
  background: linear-gradient(125deg, #ff7e2a 0%, #ff5b00 100%);
  color: #fff;
  transform: rotate(-8deg);
}

.asset {
  width: 100%;
  height: auto;
  filter: grayscale(0.42) saturate(0.66) brightness(0.92) contrast(0.9);
}

.asset--hands {
  align-self: center;
  margin-top: auto;
  width: 108%;
  max-width: none;
  margin-left: -4%;
  margin-bottom: -1.7rem;
}

.asset--folder {
  align-self: flex-end;
  max-width: 57%;
}

.asset--light {
  width: clamp(92px, 42%, 280px);
  align-self: flex-end;
}

.card--services ul {
  margin-top: auto;
}

.card--metric h2 {
  font-size: clamp(2rem, 4.5vw, 4.15rem);
}

.card--metric p {
  font-size: clamp(0.9rem, 1.45vw, 1.04rem);
}

.card--price p {
  font-weight: 700;
}

.card--engagement h2 {
  font-size: clamp(1.25rem, 2.45vw, 2.35rem);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__inner > * {
    transform: scale(1.1);
  }

  .card:hover .asset {
    filter: none;
  }

  .card--blue:hover h2,
  .card--blue:hover p,
  .card--blue:hover li {
    color: #f7fdff;
  }

  .card--paper:hover h2,
  .card--paper:hover p,
  .card--paper:hover li {
    color: #090d13;
  }
}

.card:active .card__inner > * {
  transform: scale(1.055);
  transition-duration: 260ms;
}

.contacts {
  margin-top: 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(14, 115, 182, 0.12), rgba(255, 255, 255, 0.92));
  padding: 1.05rem;
  display: grid;
  gap: 0.75rem;
}

.contacts h2 {
  font-size: clamp(1.3rem, 2.1vw, 2rem);
}

.contacts p {
  margin: 0;
  max-width: 70ch;
  line-height: 1.45;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease;
  z-index: 20;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 16, 0.78);
  backdrop-filter: blur(5px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 520px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 26px 82px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 23, 28, 0.98) 0%, rgba(15, 16, 19, 0.98) 100%);
  color: #f5f7fa;
  transform: scale(0.95);
  transition: transform 260ms var(--ease-out);
}

.modal.is-open .modal__panel {
  transform: scale(1);
}

.modal__panel--video {
  padding: 0.75rem 0.8rem 0.9rem;
}

.modal__panel--calc {
  width: min(94vw, 640px);
  padding: 0.9rem 1rem 1.1rem;
}

.modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.62rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #eef2f5;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal__close:active {
  transform: scale(0.96);
}

.modal__panel h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.2rem, 2.7vw, 1.8rem);
  text-transform: uppercase;
}

.video-shell {
  width: min(100%, 410px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #090d13;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.calc {
  display: grid;
  gap: 0.95rem;
}

.calc__lead {
  margin: 0 0 0.9rem;
  color: #d8dde3;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field span {
  line-height: 1.38;
  color: #edf2f7;
}

.field strong {
  color: #69dcff;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3c4b57 0%, #1f7cb9 50%, #12b7d1 100%);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: -6px;
  background: #f4f8fb;
  border: 2px solid #0982cc;
}

input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3c4b57 0%, #1f7cb9 50%, #12b7d1 100%);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #0982cc;
  border-radius: 50%;
  background: #f4f8fb;
}

.result {
  border-radius: 14px;
  padding: 0.75rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.35rem;
}

.result p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.result small {
  color: #c4cbd4;
  line-height: 1.34;
}

.result__total-line {
  display: grid;
  gap: 0.35rem;
}

.result__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.result__prices strong {
  color: #7ce4ff;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  line-height: 1.1;
}

.result__old-price {
  color: #afb8c4;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.result__discount {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  width: max-content;
  max-width: 100%;
  padding: 0.42rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 215, 255, 0.28);
  background: linear-gradient(130deg, rgba(0, 168, 214, 0.2), rgba(0, 102, 180, 0.2));
}

.result__discount.is-pop {
  animation: discountPop 430ms var(--ease-out);
}

.result__discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  font-weight: 800;
  color: #021a2c;
  background: linear-gradient(145deg, #95efff, #45d1ff);
  text-transform: uppercase;
  font-size: 0.77rem;
}

.result__discount-text {
  margin: 0;
  color: #d6f6ff;
  line-height: 1.2;
  font-size: 0.9rem;
}

@keyframes discountPop {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(3px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.field--textarea textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 10, 13, 0.55);
  color: #f2f6fc;
  resize: vertical;
}

.calc__actions {
  display: grid;
  gap: 0.4rem;
}

.calc__actions .cta {
  width: 100%;
}

.calc__submit-status {
  margin: 0;
  min-height: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #b9c8d9;
}

.calc__submit-status.is-success {
  color: #8df5c9;
}

.calc__submit-status.is-error {
  color: #ff9ea6;
}

@media (max-width: 1100px) {
  .montage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    min-height: clamp(220px, 37vw, 340px);
  }
}

@media (max-width: 680px) {
  .page {
    width: min(1240px, 100% - 1rem);
    padding-top: 0.65rem;
  }

  .hero {
    padding-top: 0.65rem;
  }

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

  .card {
    min-height: 230px;
  }

  .asset--hands {
    width: 104%;
    margin-left: -2%;
    margin-bottom: -1.2rem;
  }

  .modal__panel--calc {
    max-height: 92vh;
    overflow: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card__inner > *,
  .cta,
  .modal,
  .modal__panel {
    transition-duration: 120ms !important;
  }
}
