/*
 * Общий вид лендингов клиентов. Файл один на всех: поправили здесь — изменилось у всех клиентов сразу.
 * Стиль: небо на рассвете (персик → коралл → сирень), кремовый фон, крупные жирные заголовки.
 */
:root {
  --cream: #fff7ec;
  --cream-2: #fdeedd;
  --ink: #16204a;
  --ink-soft: #454d6e;
  --line: rgba(22, 32, 74, 0.14);
  --peach: #ff9d5c;
  --coral: #ff5c78;
  --lilac: #8a63ff;
  --sky: linear-gradient(165deg, #ffb066 0%, #ff7a6b 38%, #ff5c9a 64%, #8a63ff 100%);
  --sun: linear-gradient(120deg, #ff7a3d 0%, #ff4f79 100%);
  --radius: 28px;
  --head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

h3 {
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Зерно, как на открытке ---------- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Кнопка заявки ---------- */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 68px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 14px 32px -12px rgba(22, 32, 74, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out infinite;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -12px rgba(22, 32, 74, 0.6);
}

.cta svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.cta--light {
  background: #fff;
  color: var(--ink);
}

.hint {
  margin-top: 12px;
  font-size: 16px;
  opacity: 0.8;
}

@keyframes shine {
  0%,
  60% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

/* ---------- Шапка ---------- */
.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
}

.brand {
  font-family: var(--head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand span {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  opacity: 0.75;
}

.top-cta {
  flex: none;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--sky);
  padding: 104px 0 56px;
  color: var(--ink);
}

.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.75;
  pointer-events: none;
}

.cloud--1 {
  width: 420px;
  height: 260px;
  top: -80px;
  left: -120px;
  background: radial-gradient(circle at 40% 40%, #fff3d6, rgba(255, 220, 190, 0) 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

.cloud--2 {
  width: 520px;
  height: 320px;
  right: -180px;
  top: 30%;
  background: radial-gradient(circle at 50% 50%, #ffd9f0, rgba(255, 200, 230, 0) 70%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.cloud--3 {
  width: 600px;
  height: 300px;
  left: 10%;
  bottom: -160px;
  background: radial-gradient(circle at 50% 50%, #e7dcff, rgba(210, 190, 255, 0) 70%);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(60px, 24px) scale(1.12);
  }
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 36px;
}

.pill {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid rgba(22, 32, 74, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  font-size: 16px;
  font-weight: 600;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(50px, 13.5vw, 112px);
}

.hero h1 em,
.final h2 em {
  font-style: normal;
  color: #fff;
}

.hero-text {
  margin-top: 22px;
  max-width: 34ch;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
}

.hero-actions {
  margin-top: 30px;
}

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-2);
  box-shadow: 0 30px 60px -30px rgba(22, 32, 74, 0.55);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: breathe 22s ease-in-out infinite alternate;
}

@keyframes breathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09);
  }
}

.hero .photo {
  aspect-ratio: 4 / 5;
  border: 6px solid rgba(255, 255, 255, 0.55);
}

/* ---------- Акция ---------- */
.promo {
  padding: 56px 0 0;
}

.promo-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--sun);
  color: #fff;
  box-shadow: 0 30px 60px -34px rgba(255, 79, 121, 0.9);
}

.promo-badge {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(72px, 20vw, 150px);
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.promo-card h2 {
  font-size: clamp(32px, 6vw, 52px);
}

.promo-card p {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 500;
}

.promo-card .cta {
  margin-top: 8px;
  justify-self: start;
}

/* ---------- Заголовки блоков ---------- */
.section {
  padding: 80px 0;
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}

.section h2 {
  font-size: clamp(40px, 8vw, 76px);
  max-width: 16ch;
}

/* ---------- Услуги ---------- */
.services .photo {
  margin-top: 36px;
  aspect-ratio: 3 / 2;
}

.cards {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.card {
  padding: 28px 26px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card-num {
  font-family: var(--head);
  font-weight: 800;
  font-size: 18px;
  color: var(--lilac);
}

.card h3 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.05;
}

.card p {
  margin-top: 10px;
  color: var(--ink-soft);
}

/* ---------- Почему мы ---------- */
.why {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.why .kicker {
  color: var(--peach);
}

.why .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
}

.reasons {
  display: grid;
  gap: 30px;
  margin-top: 36px;
}

.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.reason-num {
  min-width: 40px;
  text-align: center;
  font-family: var(--head);
  font-weight: 800;
  font-size: 58px;
  line-height: 0.85;
  background: var(--sky);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reason h3 {
  font-size: 28px;
  line-height: 1.05;
}

.reason p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.why .photo {
  aspect-ratio: 3 / 2;
  box-shadow: none;
}

.why-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  right: -300px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 154, 0.45), rgba(138, 99, 255, 0) 65%);
  filter: blur(20px);
  animation: drift 20s ease-in-out infinite alternate;
}

/* ---------- Как это происходит ---------- */
.steps {
  margin-top: 36px;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 26px 28px 96px;
  border-radius: var(--radius);
  background: var(--cream-2);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sun);
  color: #fff;
  font-family: var(--head);
  font-weight: 800;
  font-size: 24px;
}

.step h3 {
  font-size: 27px;
  line-height: 1.05;
}

.step p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* ---------- Финал ---------- */
.final {
  position: relative;
  overflow: hidden;
  background: var(--sky);
  padding: 96px 0 110px;
  text-align: center;
}

.final .wrap {
  position: relative;
  z-index: 2;
}

.final h2 {
  font-size: clamp(46px, 11vw, 104px);
  max-width: 14ch;
  margin: 0 auto;
}

.final p {
  margin: 22px auto 0;
  max-width: 30ch;
  font-size: 22px;
  font-weight: 500;
}

.final .cta {
  margin-top: 34px;
}

.final .hint {
  margin-top: 12px;
  font-size: 16px;
}

.footer {
  padding: 28px 0 110px;
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Кнопка внизу экрана на телефоне ---------- */
.sticky {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  transform: translateY(140%);
  transition: transform 0.35s ease;
}

.sticky .cta {
  width: 100%;
}

.sticky.show {
  transform: none;
}

/* ---------- Плавное появление при прокрутке ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.hero .reveal:nth-child(2) {
  transition-delay: 0.15s;
}

/* ---------- Компьютер ---------- */
@media (min-width: 900px) {
  body {
    font-size: 20px;
  }

  .wrap {
    padding: 0 40px;
  }

  .hero {
    padding: 140px 0 96px;
  }

  .hero .wrap {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 56px;
  }

  .promo-card {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 48px;
    padding: 56px;
  }

  .promo-card .cta {
    grid-column: 2;
  }

  .services .photo {
    aspect-ratio: 21 / 9;
  }

  .section {
    padding: 120px 0;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .why .wrap {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 64px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step {
    padding: 96px 28px 32px;
  }

  .step::before {
    left: 28px;
    top: 28px;
  }

  .sticky {
    display: none;
  }

  .footer {
    padding-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
