:root {
  --ink: #243038;
  --ink-soft: #4a5862;
  --mute: #6d7b85;
  --paper: #eef3f5;
  --paper-deep: #e2e9ed;
  --mist: #d5e0e6;
  --sky: #9eb6c4;
  --sage: #6f8578;
  --sage-deep: #587064;
  --line: rgba(36, 48, 56, 0.12);
  --white: #f8fbfc;
  --shadow: 0 18px 40px rgba(36, 48, 56, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(158, 182, 196, 0.35), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(111, 133, 120, 0.18), transparent 55%),
    linear-gradient(180deg, #f4f8fa 0%, var(--paper) 40%, #f1f5f7 100%);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(42rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture,
.hero-photo {
  width: 100%;
  height: 100%;
}

.hero-media picture {
  display: block;
  filter: brightness(0.75) saturate(0.88) contrast(0.96);
}

.hero-photo {
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.03);
  animation: drift 28s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 16, 20, 0.3) 0%, rgba(12, 16, 20, 0.2) 42%, rgba(12, 16, 20, 0.38) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(640px, calc(100% - 2.5rem));
  padding: 2rem 0;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 248, 236, 0.75),
    0 10px 28px rgba(20, 24, 28, 0.18);
  animation: rise 1.1s var(--ease) both;
}

.hero-kicker {
  margin: 0 0 1rem;
  color: rgba(255, 248, 240, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(18, 22, 26, 0.45);
}

.brand {
  margin: 0 0 1.15rem;
  width: min(420px, 86vw);
}

.brand-logo {
  width: 100%;
  height: auto;
  margin-inline: auto;
  filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(18, 22, 26, 0.35));
}

.hero-lead {
  margin: 0 0 1.7rem;
  max-width: 34ch;
  color: rgba(255, 248, 240, 0.94);
  font-size: clamp(1.02rem, 2.1vw, 1.12rem);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: balance;
  text-shadow: 0 1px 14px rgba(18, 22, 26, 0.4);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn-primary {
  background: #1f292e;
  color: #f7f4ef;
  box-shadow: 0 12px 28px rgba(20, 30, 36, 0.22);
}

.hero .btn-primary {
  background: rgba(247, 244, 239, 0.94);
  color: #1f292e;
  box-shadow: 0 12px 28px rgba(18, 22, 26, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #141b1f;
  box-shadow: 0 16px 32px rgba(20, 30, 36, 0.28);
}

.hero .btn-primary:hover {
  background: #ffffff;
  color: #141b1f;
}

.btn-large {
  min-height: 3.4rem;
  padding-inline: 1.7rem;
  font-size: 1.05rem;
}

.section {
  padding: 5.5rem 0;
}

.intro {
  padding-top: 4.5rem;
}

.prose,
.prose-narrow,
.about-text,
.section-lead {
  color: var(--ink-soft);
}

.prose {
  width: min(42rem, calc(100% - 2.5rem));
  max-width: 42rem;
  margin-inline: auto;
}

.prose > p,
.prose-narrow p,
.about-text p {
  margin: 0 0 1.25rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.prose > p:last-child,
.prose-narrow p:last-child,
.about-text p:last-child {
  margin-bottom: 0;
}

.prose-narrow {
  max-width: 38rem;
  margin-inline: auto;
}

h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.section-lead {
  margin: 0 0 2.5rem;
  font-size: 1.08rem;
}

.how {
  background: #e4ecef;
}

.place {
  background: #f7f5f1;
}

.signup {
  background: #ffffff;
}

.rhythm {
  display: grid;
  gap: 2.1rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.rhythm-item {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
}

.rhythm-icon {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sage-deep);
  box-shadow: 0 8px 20px rgba(36, 48, 56, 0.06);
}

.rhythm-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.rhythm-body h3 {
  margin: 0.15rem 0 0.65rem;
}

.rhythm-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.signup-inner > h2 {
  margin-bottom: 1.15rem;
}

.signup-lead {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.55;
}

.signup-form {
  display: grid;
  justify-items: center;
  text-align: center;
}

.signup-price {
  margin: 0 0 1.5rem;
}

.signup-price-main {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 0.55rem;
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--ink);
}

.signup-price-main > span:first-child {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.signup-price-main em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.signup-price-rub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.signup-price-month {
  margin: 0.6rem 0 0;
  color: var(--mute);
  font-size: 1.05rem;
}

.btn-signup {
  display: inline-flex;
  justify-content: center;
  width: min(100%, 20rem);
  min-height: 3.35rem;
  margin: 0 0 1.9rem;
  border-radius: 999px;
  background: #1f292e;
  color: #f7f4ef;
  box-shadow: 0 12px 28px rgba(18, 22, 26, 0.18);
}

.btn-signup:hover {
  transform: translateY(-2px);
  background: #141b1f;
}

.signup-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
  width: min(100%, 28rem);
  text-align: left;
}

.signup-perks li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.45;
}

.signup-perk-icon {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  color: var(--sage-deep);
}

.signup-perk-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.signup-notes {
  margin: 1.5rem 0 0;
  padding-top: 1.2rem;
  width: 100%;
  border-top: 1px solid var(--line);
  text-align: left;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.55;
}

.signup-notes p {
  margin: 0;
  text-align: left;
  text-wrap: pretty;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.75rem;
  align-items: center;
}

.about-placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: 1.25rem;
  background:
    linear-gradient(160deg, rgba(158, 182, 196, 0.35), rgba(111, 133, 120, 0.22)),
    linear-gradient(180deg, #d9e4ea, #c7d5cc);
  color: var(--ink-soft);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 3.2rem 0 2.8rem;
  border-top: none;
  background:
    linear-gradient(160deg, #7f9bb0 0%, #6a879c 45%, #5d7588 100%);
  color: rgba(255, 252, 248, 0.92);
}

.footer-inner {
  display: grid;
  gap: 1.35rem;
}

.footer-logo {
  width: min(240px, 70vw);
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-contacts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: rgba(255, 252, 248, 0.88);
  font-size: 0.98rem;
}

.footer-contacts a {
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.footer-contacts a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
  margin: 0.35rem 0 0;
  color: rgba(255, 252, 248, 0.7);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1%, -0.6%, 0);
  }
}

@media (max-width: 800px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .btn-signup {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .about-placeholder {
    max-width: 260px;
    margin-inline: auto;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .hero {
    align-items: start;
    place-items: start center;
  }

  .hero-media picture {
    filter: brightness(0.75) saturate(0.88) contrast(0.96);
  }

  .hero-photo {
    object-position: center 35%;
    animation: none;
    transform: none;
  }

  .hero-veil {
    background:
      linear-gradient(180deg, rgba(12, 16, 20, 0.3) 0%, rgba(12, 16, 20, 0.2) 42%, rgba(12, 16, 20, 0.38) 100%);
  }

  .hero-content {
    width: min(420px, calc(100% - 1.75rem));
    padding: 12vh 0 2rem;
  }

  .brand {
    width: min(340px, 88vw);
  }

  .hero-lead {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 2rem);
  }

  .hero-content {
    padding-top: 10vh;
  }

  .rhythm-item {
    grid-template-columns: 2.8rem 1fr;
    gap: 0.85rem;
  }

  .rhythm-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.85rem;
  }

  .rhythm-icon svg {
    width: 1.45rem;
    height: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-photo,
  .hero-content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
