/* ═══════════════════════════════════════════
   Евгения Чурилова — Лендинг-прокладка
   Палитра: молочный · беж · песок · шоколад · вино
   ═══════════════════════════════════════════ */

:root {
  /* Цвета */
  --color-milk: #FAF7F2;
  --color-cream: #F3EDE4;
  --color-sand: #D4C4A8;
  --color-beige: #E8DFD0;
  --color-chocolate: #3D2B1F;
  --color-graphite: #2C2825;
  --color-brown: #6B5344;
  --color-wine: #6B2D3C;
  --color-wine-dark: #4E1F2B;
  --color-caramel: #B8956A;
  --color-gold: #C4A062;
  --color-white: #FFFFFF;
  --color-text: #3A322C;
  --color-text-muted: #7A6E64;
  --color-text-light: rgba(255, 255, 255, 0.88);
  --color-text-faint: rgba(255, 255, 255, 0.65);

  /* Типографика */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Размеры */
  --container-max: 1120px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 4px 24px rgba(61, 43, 31, 0.08);
  --shadow-card: 0 8px 32px rgba(61, 43, 31, 0.1);
  --transition: 0.25s ease;
}

/* ─── Reset & Base ─── */

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-milk);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── Layout ─── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section--cream {
  background: var(--color-cream);
}

.section--dark {
  background: var(--color-chocolate);
  color: var(--color-text-light);
}

.section--accent {
  background: linear-gradient(160deg, var(--color-wine) 0%, var(--color-wine-dark) 100%);
  color: var(--color-white);
}

.section--final {
  background: linear-gradient(135deg, var(--color-chocolate) 0%, #2A1E16 100%);
  color: var(--color-white);
  padding: 5rem 0;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-chocolate);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section__title--light {
  color: var(--color-white);
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-top: -0.75rem;
  margin-bottom: 2rem;
  max-width: 560px;
}

.section__subtitle--light {
  color: var(--color-text-faint);
}

.section__closing {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-brown);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-beige);
  line-height: 1.5;
}

.section__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--color-wine);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(107, 45, 60, 0.3);
}

.btn--primary:hover {
  background: var(--color-wine-dark);
  box-shadow: 0 6px 24px rgba(107, 45, 60, 0.4);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-chocolate);
  border: 1.5px solid var(--color-beige);
  box-shadow: var(--shadow-soft);
}

.btn--secondary:hover {
  border-color: var(--color-sand);
  box-shadow: var(--shadow-card);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--full {
  width: 100%;
}

/* ─── Hero ─── */

.hero {
  background: var(--color-milk);
  padding: 2rem 0 3rem;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-caramel);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-chocolate);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  max-width: 480px;
  line-height: 1.6;
}

.hero__note {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-caramel);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__photo-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero__photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(196, 160, 98, 0.25);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 1;
}

.hero__photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
}

/* ─── Pain List ─── */

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pain-list__item {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: 1.5;
}

.pain-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-wine);
  opacity: 0.7;
}

/* ─── Cards Grid ─── */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 223, 208, 0.6);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-caramel);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.card__text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* ─── Difference Block ─── */

.difference__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 680px;
  color: var(--color-text-light);
}

.difference__fit-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

/* ─── Fit List ─── */

.fit-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.fit-list--light .fit-list__item,
.fit-list--light li {
  color: var(--color-text-light);
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
}

.fit-list--light li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

.fit-list--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.fit-list__item {
  position: relative;
  padding: 1rem 1.25rem 1rem 2.5rem;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-beige);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--transition);
}

.fit-list__item::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--color-wine);
  font-size: 0.875rem;
  font-weight: 600;
}

.fit-list__item:hover {
  border-color: var(--color-sand);
}

/* ─── Steps ─── */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.step {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.1875rem;
  top: 3.75rem;
  bottom: 0;
  width: 1px;
  background: var(--color-sand);
}

.step__marker {
  flex-shrink: 0;
  width: 2.375rem;
  height: 2.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-wine);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.step__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-chocolate);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ─── Platform Cards ─── */

.platform-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.platform-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.platform-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.platform-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.platform-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.platform-card__icon--tg {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.platform-card__icon--vk {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.platform-card__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.platform-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-faint);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.platform-card .btn--primary {
  background: var(--color-white);
  color: var(--color-wine);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.platform-card .btn--primary:hover {
  background: var(--color-cream);
  color: var(--color-wine-dark);
}

/* ─── About ─── */

.about {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.about__visual {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about__photo {
  width: 100%;
  border-radius: var(--radius-md);
}

.about__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-caramel);
  margin-bottom: 0.5rem;
}

.about__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--color-chocolate);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.about__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.about__text--secondary {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ─── Reviews Gallery ─── */

.reviews-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.review-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-white);
  border: 1px solid var(--color-beige);
}

.review-card__img {
  width: 100%;
  height: auto;
}

/* ─── Final CTA ─── */

.final-cta {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

.final-cta__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-faint);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 520px;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 1rem;
}

.final-cta__note {
  font-size: 0.875rem;
  color: var(--color-text-faint);
}

.final-cta__visual {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.final-cta__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Footer ─── */

.footer {
  background: var(--color-graphite);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem 0;
  text-align: center;
}

.footer__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.footer__role {
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.footer__copy {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════
   TABLET (≥ 640px)
   ═══════════════════════════════════════════ */

@media (min-width: 640px) {
  .section {
    padding: 5rem 0;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__photo-wrap {
    max-width: 380px;
  }

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

  .card--wide {
    grid-column: span 2;
  }

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

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

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

  .final-cta__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .final-cta__actions .btn {
    min-width: 200px;
  }
}

/* ═══════════════════════════════════════════
   DESKTOP (≥ 960px)
   ═══════════════════════════════════════════ */

@media (min-width: 960px) {
  .container {
    padding: 0 2rem;
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .hero__content {
    flex: 1;
    min-width: 0;
  }

  .hero__visual {
    flex: 0 0 42%;
    justify-content: flex-end;
  }

  .hero__photo-wrap {
    max-width: 420px;
  }

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

  .card--wide {
    grid-column: span 1;
  }

  .cards-grid .card:nth-child(4) {
    grid-column: 1 / 2;
  }

  .cards-grid .card:nth-child(5) {
    grid-column: 2 / 4;
  }

  .about {
    flex-direction: row;
    gap: 3.5rem;
    align-items: center;
  }

  .about__visual {
    flex: 0 0 45%;
    max-width: none;
  }

  .about__content {
    flex: 1;
  }

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

  .reviews-gallery .review-card:nth-child(4),
  .reviews-gallery .review-card:nth-child(5) {
    grid-column: span 1;
  }

  .final-cta {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
  }

  .final-cta__content {
    flex: 1;
  }

  .final-cta__actions {
    justify-content: flex-start;
    margin: 0 0 1rem;
  }

  .final-cta__visual {
    width: 200px;
    height: 200px;
  }
}

/* ═══════════════════════════════════════════
   LARGE DESKTOP (≥ 1200px)
   ═══════════════════════════════════════════ */

@media (min-width: 1200px) {
  .hero__title {
    font-size: 3.125rem;
  }

  .section {
    padding: 6rem 0;
  }
}

/* ═══════════════════════════════════════════
   АНИМАЦИИ (лёгкие, только CSS + IO)
   ═══════════════════════════════════════════ */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPhotoIn {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero__badge {
  animation: heroFadeUp 0.55s ease both;
}

.hero__title {
  animation: heroFadeUp 0.55s 0.08s ease both;
}

.hero__subtitle {
  animation: heroFadeUp 0.55s 0.16s ease both;
}

.hero__note {
  animation: heroFadeUp 0.55s 0.22s ease both;
}

.hero__actions {
  animation: heroFadeUp 0.55s 0.28s ease both;
}

.hero__hint {
  animation: heroFadeUp 0.55s 0.34s ease both;
}

.hero__photo-wrap {
  animation: heroPhotoIn 0.7s 0.12s ease both;
}

/* Появление при скролле */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.05s; }
.reveal--delay-2 { transition-delay: 0.1s; }
.reveal--delay-3 { transition-delay: 0.15s; }
.reveal--delay-4 { transition-delay: 0.2s; }
.reveal--delay-5 { transition-delay: 0.25s; }

/* Кнопки — мягкий отклик */
.btn {
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98) translateY(0);
}

/* Производительность: секции ниже первого экрана */
.section--lazy {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Без анимаций — для доступности */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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