/*!
 * Лендинг ShareMyTrip — docs/design.md, этап W/L1
 */
:root {
  --bg: #f3f6f4;
  --ink: #14231c;
  --muted: #4d6358;
  --accent: #1b6b4a;
  --accent-soft: #2e8b65;
  --mint: #7bc4a0;
  --surface: #0e1512;
  --card: #ffffff;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: #fff;
  padding: 0.5rem 1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #f5faf7;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.is-ready .hero__media img {
  transform: scale(1);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14, 21, 18, 0.35) 0%, rgba(14, 21, 18, 0.78) 72%, rgba(14, 21, 18, 0.92) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(27, 107, 74, 0.25), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto 12vh;
  padding: 0 0.25rem;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.is-ready .hero__content {
  opacity: 1;
  transform: translateY(0);
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero__lead {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: rgba(245, 250, 247, 0.88);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.35rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-soft);
}

.btn--ghost {
  background: transparent;
  color: #f5faf7;
  border-color: rgba(245, 250, 247, 0.45);
}

.btn--ghost:hover {
  border-color: #fff;
}

.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.cta-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: rgba(245, 250, 247, 0.7);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
}

.section__inner {
  width: min(64rem, 100%);
  margin: 0 auto;
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__text {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.section--why {
  background:
    linear-gradient(180deg, #e8f0eb 0%, var(--bg) 100%);
}

.why-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  max-width: 40rem;
}

.why-list li {
  padding-left: 0;
}

.why-list strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.why-list span {
  color: var(--muted);
}

/* —— Mockups —— */
.section--look {
  background: var(--surface);
  color: #e8f0eb;
}

.section--look .section__title {
  color: #f5faf7;
}

.section--look .section__text {
  color: rgba(232, 240, 235, 0.75);
}

.mock-row {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: end;
}

@media (max-width: 800px) {
  .mock-row {
    grid-template-columns: 1fr;
    max-width: 18rem;
    margin-inline: auto;
  }
}

.mock {
  margin: 0;
}

.mock figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: rgba(232, 240, 235, 0.7);
  text-align: center;
}

.mock__frame {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(123, 196, 160, 0.25);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
  background: #000;
}

.mock__frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* —— Privacy —— */
.section--privacy .section__inner {
  display: grid;
  gap: 1rem;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid rgba(20, 35, 28, 0.08);
  background: #eef2f0;
}

.site-footer__inner {
  width: min(64rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.site-footer__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero .cta-note a {
  color: var(--mint);
}
