/* TeMa Landing — премиальная ясность, фирменные цвета */

:root {
  --coral: #FF758C;
  --cyan: #56CFE1;
  --lime: #B8E986;
  --bg-dark: #1A1726;
  --surface: #252235;
  --text: #1A1A2E;
  --text-soft: #5C5A6E;
  --text-on-dark: #F0EFF5;
  --text-muted-dark: #9B97AD;
  --white: #FFFFFF;
  --line: rgba(26, 26, 46, 0.1);
  --gradient: linear-gradient(135deg, var(--coral) 0%, var(--cyan) 55%, var(--lime) 100%);
  --gradient-hero: linear-gradient(145deg, #ffe0e6 0%, #dff5fa 42%, #eaf8d4 100%);
  --radius: 14px;
  --radius-lg: 20px;
  --shell: min(1080px, 90vw);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: 'Golos Text', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* ── Типографика ── */
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.label--light { color: rgba(255, 255, 255, 0.55); }

h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 28rem;
}

.section-desc {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 32rem;
}

.section-head { margin-bottom: 3rem; }
.section-head .section-desc { margin-inline: 0; }

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}

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

.btn--primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(86, 207, 225, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 8px 28px rgba(86, 207, 225, 0.38);
  transform: translateY(-1px);
}

.btn--quiet {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}

.btn--quiet:hover {
  border-color: rgba(86, 207, 225, 0.45);
  background: rgba(86, 207, 225, 0.06);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}

.btn--outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn.disabled { opacity: 0.45; pointer-events: none; }

/* ── Шапка ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img { border-radius: 10px; }

.nav {
  display: flex;
  gap: 2rem;
  margin-right: auto;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  padding: 7rem 0 5rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text .lead { margin: 1.5rem 0 2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Карточка входа — узнаваемый экран приложения */
.hero-card {
  display: flex;
  justify-content: center;
}

.app-card {
  width: 100%;
  max-width: 360px;
  padding: 2.25rem 2rem 1.75rem;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 64px rgba(26, 23, 38, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  text-align: center;
  color: var(--text-on-dark);
}

.app-card__logo {
  border-radius: 18px;
  margin-bottom: 0.75rem;
}

.app-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35rem;
}

.app-card__hint {
  font-size: 0.82rem;
  color: var(--text-muted-dark);
  margin-bottom: 1.5rem;
}

.app-card__field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text-muted-dark);
  font-size: 0.9rem;
  text-align: left;
  margin-bottom: 1rem;
}

.app-card__field svg { flex-shrink: 0; opacity: 0.5; }

.app-card__btn {
  padding: 0.85rem;
  background: var(--gradient);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.app-card__note {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  opacity: 0.8;
}

/* ── Highlights ── */
.highlights {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.highlight__num {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.highlight h3 {
  margin-bottom: 0.4rem;
}

.highlight p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ── Секции ── */
.section {
  padding: 5.5rem 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark h2 { color: var(--white); }
.section--dark .section-desc { color: var(--text-muted-dark); }

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.feature:nth-child(odd) { border-right: 1px solid var(--line); }
.feature:nth-last-child(-n+2) { border-bottom: none; }

.feature:hover { background: rgba(86, 207, 225, 0.04); }

.feature__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(86, 207, 225, 0.1);
  color: var(--cyan);
}

.feature__icon svg { width: 22px; height: 22px; }

.feature h3 { margin-bottom: 0.35rem; }
.feature p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.55; }

/* ── Steps ── */
.steps {
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 36rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step:last-child { border-bottom: none; padding-bottom: 0; }
.step:first-child { padding-top: 0; }

.step__n {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.step h3 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  line-height: 1.55;
}

/* ── Download ── */
.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.dl-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.dl-card:hover {
  border-color: rgba(86, 207, 225, 0.35);
  box-shadow: 0 12px 40px rgba(26, 23, 38, 0.06);
}

.dl-card__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dl-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(86, 207, 225, 0.1);
  color: var(--cyan);
}

.dl-card__icon svg { width: 24px; height: 24px; }

.dl-card__sub {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 0.1rem;
}

.dl-card__text {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.25rem;
}

.dl-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(86, 207, 225, 0.1);
  color: #2a8a9a;
}

.tag--muted {
  background: rgba(26, 26, 46, 0.05);
  color: var(--text-soft);
  font-weight: 500;
}

.tag--live {
  background: rgba(184, 233, 134, 0.2);
  color: #5a8a3a;
}

/* ── Footer ── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.footer-brand img { border-radius: 8px; }

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--cyan); }

/* ── Появление при скролле ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

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

/* ── Адаптив ── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-text .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }

  .highlights-grid,
  .downloads {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(odd) { border-right: none; }
  .feature:nth-last-child(2) { border-bottom: 1px solid var(--line); }

  .nav { display: none; }
}

@media (max-width: 600px) {
  .header-inner { height: 4rem; }
  .hero { padding-top: 5.5rem; }
  .app-card { padding: 1.75rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .btn, .feature, .dl-card { transition: none; }
}
