/* =========================================================
   ЛАБОРАТОРИЯ ЖЕЛАНИЙ — стиль №4 «Розовый закат»
   Палитра:
     --bg:         #fff1f2   (нежно-розовый фон)
     --bg-2:       #ffe4e6   (светло-розовый, приподнятые блоки)
     --rose:       #e11d48   (основной розово-красный акцент)
     --rose-deep:  #881337   (глубокий розовый для заголовков)
     --rose-soft:  #fda4af   (мягкий hover)
     --ink:        #1f0a14   (основной текст, почти чёрный с тёплым оттенком)
     --muted:      #6b3a4a   (вторичный текст)
     --line:       rgba(225, 29, 72, 0.18)  (границы)
   ========================================================= */

:root {
  --bg: #fff1f2;
  --bg-2: #ffe4e6;
  --bg-3: #fecdd3;
  --rose: #e11d48;
  --rose-deep: #881337;
  --rose-soft: #fda4af;
  --ink: #1f0a14;
  --muted: #6b3a4a;
  --line: rgba(225, 29, 72, 0.18);

  --max: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 18px;
  --radius-lg: 28px;

  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "DM Serif Display", "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Dancing Script", "Caveat", cursive;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  padding: 10px 16px;
  background: var(--rose);
  color: white;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}
.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--footer {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--bg);
}

.section__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
}

/* Центрирование заголовков внутри обычных секций (Польза, Доверие) */
.section:not(.cta):not(.section--footer) {
  text-align: center;
}
.section:not(.cta):not(.section--footer) .section__title {
  margin-left: auto;
  margin-right: auto;
}
.section:not(.cta):not(.section--footer) .section__eyebrow {
  /* сохраняем inline-block, но центрируем через обёртку */
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--rose-deep);
  margin-bottom: 56px;
  max-width: 18ch;
}
.section__title--small {
  font-size: clamp(22px, 3.2vw, 30px);
  margin-bottom: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 60%;
  object-fit: cover;
  object-position: center 60%;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  filter: blur(0px) saturate(1.05);
  mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 241, 242, 0.6) 0%,
    rgba(255, 241, 242, 0.2) 30%,
    rgba(255, 241, 242, 0.2) 70%,
    rgba(255, 241, 242, 0.95) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  opacity: 0;
  animation: rise 0.9s 0.1s forwards;
}
.hero__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.15);
}
.hero__brand-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 9vw, 88px);
  line-height: 1.05;
  color: var(--rose-deep);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s 0.3s forwards;
}
.hero__title em {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
  font-size: 1.1em;
  line-height: 0.9;
}
.hero__title-accent {
  position: relative;
  display: inline-block;
  color: var(--rose);
  font-style: italic;
  font-family: var(--font-display);
}
.hero__title-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.18em;
  background: var(--rose-soft);
  opacity: 0.7;
  z-index: -1;
  border-radius: 999px;
}
.hero__lead {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 auto 40px;
  opacity: 0;
  animation: rise 0.9s 0.55s forwards;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  animation: rise 0.9s 0.75s forwards;
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: rise 0.9s 1.1s forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--rose) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero__scroll-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  min-height: 48px;
}
.btn--primary {
  background: var(--rose);
  color: white;
  box-shadow: 0 10px 30px -10px rgba(225, 29, 72, 0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--rose-deep);
  box-shadow: 0 16px 40px -10px rgba(225, 29, 72, 0.7);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--rose-deep);
  border-color: var(--rose);
}
.btn--ghost:hover {
  background: var(--bg-2);
  border-color: var(--rose-deep);
}
.btn--large {
  padding: 18px 40px;
  font-size: 17px;
}

/* ===== CARDS (Польза) ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.card {
  position: relative;
  padding: 36px 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -8px rgba(225, 29, 72, 0.1);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--rose-soft);
  box-shadow: 0 24px 50px -20px rgba(225, 29, 72, 0.25);
}
.card__num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--rose-soft);
  margin-bottom: 16px;
  line-height: 1;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--rose-deep);
}
.card__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== QUOTES ===== */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 64px;
}
@media (min-width: 820px) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.quote {
  padding: 28px 28px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -10px; left: 20px;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  color: var(--rose);
  opacity: 0.18;
}
.quote__text {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 16px;
}
.quote__text em { color: var(--rose); font-style: italic; }
.quote__cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--rose);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: center;
  padding: 36px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
.stat { padding: 8px 0; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1;
  color: var(--rose);
  margin-bottom: 8px;
}
.stat__label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  background:
    radial-gradient(600px 400px at 50% 0%, rgba(225, 29, 72, 0.12), transparent 60%),
    var(--bg);
}
.cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.cta__eyebrow {
  background: var(--rose);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.cta__subtitle {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.cta .btn { margin-top: 4px; }
.cta__note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ===== CONTACTS / FOOTER ===== */
.footer__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.footer__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.15);
}
.contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 720px) {
  .contacts { grid-template-columns: repeat(3, 1fr); }
}
.contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.contact:hover {
  border-color: var(--rose);
  transform: translateY(-2px);
}
.contact__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
}
.contact__value {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
  transition: color 0.2s ease;
}
.contact__value:hover { color: var(--rose); }

.copyright {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
  margin-top: 16px;
}
.copyright--small {
  font-size: 11px;
  opacity: 0.7;
}
.copyright a { color: var(--rose); text-decoration: underline; text-underline-offset: 2px; }
.copyright a:hover { color: var(--rose-deep); }

/* ===== ANIMATIONS ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__brand, .hero__title, .hero__lead, .hero__actions, .hero__scroll {
    opacity: 1;
    transform: none;
  }
}
