/* Лендинг «В холодильнике». Статическая страница вне Telegram, поэтому
   переменные --tg-theme-* здесь не применяются — в отличие от
   frontend/src/styles.css. Палитра зафиксирована в спеке. */

:root {
  --bg: #fdfbf7;
  --surface: #ffffff;
  --text: #1f1d1a;
  --text-dim: #6b6560;
  --accent: #2e9e6b;
  --cta: #f2994a;
  --border: #ebe6de;
  --radius: 16px;
  --maxw: 1080px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 19px; }

p { margin: 0 0 12px; }

a { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.lead {
  color: var(--text-dim);
  font-size: clamp(17px, 2.2vw, 20px);
}

/* Кнопка самодостаточна: не наследует ширину и отступы ни от чего.
   В приложении та же ошибка уже стоила вёрстки (см. «Грабли» в CLAUDE.md). */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(31, 29, 26, 0.1);
}

.btn-cta {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}

/* ---- Hero ---- */

.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero-note {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-dim);
}

/* ---- Футер ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 15px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}

/* ---- Как это работает ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--text-dim);
}

/* ---- Возможности ---- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.feature-icon {
  font-size: 30px;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
}

/* ---- Скриншоты экранов: горизонтальная карусель ----
   Реальные скриншоты приложения (тёмная тема Telegram) на светлом фоне.
   Скрины разной высоты (1514–1570 px), поэтому фиксируем ЕДИНУЮ высоту
   картинки и width:auto — низ ряда выравнивается, ширины почти равны.
   Лента горизонтальная со снапом: на мобиле свайп, на десктопе скролл;
   тяжёлую рамку телефона не рисуем — у скрина уже есть шапка окна Telegram. */

.shots {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* лента бледит до краёв контейнера — крайние скрины не липнут к бортам,
     на мобиле видно, что можно листать */
  margin: 0 -20px;
  padding: 4px 20px 20px;
  scroll-padding: 0 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  margin: 0;
  text-align: center;
}

.shot img {
  display: block;
  height: 440px;
  width: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(31, 29, 26, 0.16);
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

.shot img:hover { transform: translateY(-2px); }

/* ---- Lightbox: увеличение скриншота по клику ---- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(31, 29, 26, 0.82);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.shot figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-dim);
}

.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

/* ---- Тариф ---- */

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

.price-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.price-amount {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 6px 0 2px;
}

.price-period { color: var(--text-dim); margin-bottom: 20px; }

.price-badge {
  display: inline-block;
  background: rgba(46, 158, 107, 0.12);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 15px;
  font-weight: 600;
}

.price-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
}

.price-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.price-list li:last-child { border-bottom: 0; }

/* ---- FAQ ---- */

.faq { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--text-dim);
  font-weight: 400;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .steps { grid-template-columns: 1fr; }
  /* карусель адаптивна сама; на узких экранах скрины пониже и лента плотнее */
  .shots { gap: 16px; }
  .shot img { height: 380px; }
}
