:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #101827;
  --muted: #5b6474;
  --border: rgba(148, 163, 184, 0.16);
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.06);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.08), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.07), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 48%, #f8fafc 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* -------------------------------------------------
   Base public pages (bot.food-coach.ru root + /legal)
   ------------------------------------------------- */

main:not(.landing-main) {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

main:not(.landing-main) > header {
  margin-bottom: 28px;
}

main:not(.landing-main) > header h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

main:not(.landing-main) > footer {
  margin-top: 24px;
}

p {
  color: var(--muted);
}

h1, h2, h3 {
  color: var(--text);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  padding: 22px;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #344155;
  font-size: 0.84rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.price {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.label {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.small {
  font-size: 0.92rem;
  color: #6b7280;
}

.card-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.card-link-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

/* -------------------------------------------------
   Landing page styles (food-coach.ru)
   ------------------------------------------------- */

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(14px);
}

.bg-orb-a {
  top: 56px;
  right: -70px;
  width: 280px;
  height: 280px;
  background: rgba(37, 99, 235, 0.08);
}

.bg-orb-b {
  top: 520px;
  left: -100px;
  width: 260px;
  height: 260px;
  background: rgba(124, 58, 237, 0.06);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.12), transparent 38%);
  pointer-events: none;
}

.landing-main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 18px 4px 8px;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.18);
}

.brand-texts {
  display: inline-flex;
  flex-direction: column;
}

.brand {
  display: block;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.section {
  width: min(980px, 100%);
  margin: 0 auto 74px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, 0.97fr);
  gap: 46px;
  align-items: center;
  padding-top: 30px;
}

.hero-copy {
  max-width: 620px;
}

.pill,
.chips-list li,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #344155;
  font-size: 0.84rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.35rem, 5vw, 3.95rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 30px;
}

.hero-link {
  color: #475569;
  font-weight: 600;
}

.hero-link:hover {
  color: var(--accent);
}

.chips-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 24px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 0.95rem;
}

.trust-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-preview {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-wrap {
  position: relative;
  width: 100%;
  max-width: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-back {
  position: absolute;
  inset: 40px 34px auto;
  height: 76%;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.08));
  transform: rotate(-8deg);
  filter: blur(0.5px);
}

.device-back.back-2 {
  inset: 54px 48px auto;
  height: 70%;
  transform: rotate(8deg);
  opacity: 0.7;
}

.side-card {
  position: absolute;
  z-index: 2;
  width: 170px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.side-card-top {
  top: 72px;
  right: -8px;
}

.side-card-bottom {
  bottom: 86px;
  left: -12px;
}

.side-card-label {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 0.78rem;
}

.mock-phone {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 420px;
}

.mock-phone-frame {
  border-radius: 38px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,249,255,0.95));
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
}

.mock-phone-topbar {
  display: flex;
  justify-content: center;
  padding: 4px 0 12px;
}

.mock-notch {
  width: 92px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.mock-screen {
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.mock-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mock-app-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.mock-app-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.mock-card {
  background: var(--surface-strong);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.mock-card-primary {
  background: linear-gradient(180deg, #ecf4ff 0%, #ffffff 100%);
}

.mock-kicker {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.mock-big {
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
  color: #0f172a;
}

.mock-muted {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
}

.mock-progress {
  margin-top: 12px;
  height: 8px;
  background: #dbeafe;
  border-radius: 999px;
  overflow: hidden;
}

.mock-progress-fill {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
}

.mock-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.mock-pill-row span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mini-panel {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(226,232,240,0.92);
}

.mini-panel-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.icon-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.icon-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.icon-orange {
  background: linear-gradient(135deg, #f59e0b, #fb7185);
}

.icon-teal {
  background: linear-gradient(135deg, #06b6d4, #14b8a6);
}

.mini-panel-title,
.mini-panel-line,
.mock-line {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
}

.mini-panel-title {
  width: 74%;
  margin-bottom: 8px;
}

.mini-panel-line.short {
  width: 52%;
}

.mini-panel-line.medium {
  width: 68%;
}

.mock-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mock-app-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.mock-texts {
  flex: 1;
}

.mock-line {
  margin-bottom: 8px;
}

.mock-line-title {
  width: 60%;
}

.mock-line-short {
  width: 42%;
}

.mock-line-medium {
  width: 75%;
}

.mock-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.mock-nav span {
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: #dbe3ee;
}

.mock-nav span.active {
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fact-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.fact-label {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.87rem;
}

.section-head {
  max-width: 680px;
  margin-bottom: 20px;
}

.eyebrow {
  margin-bottom: 14px;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.72rem, 3vw, 2.42rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section p,
.section li {
  color: var(--muted);
}

.feature-grid,
.faq-grid,
.split-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.glass-card,
.faq-card,
.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.feature-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -34px;
  bottom: -62px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.05);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.feature-violet {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

.feature-green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.feature-orange {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-card {
  padding: 28px;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.steps-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.steps-list li + li {
  margin-top: 14px;
}

.steps-list span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 700;
}

.prose-card {
  padding: 34px;
}

.check-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-card {
  padding: 22px;
}

.faq-card h3 {
  margin: 0 0 0.55rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.24);
}

.cta-panel p,
.cta-panel h2 {
  color: #fff;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.btn-ghost {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.82);
  color: #1d4ed8;
}

.btn-ghost:hover {
  background: #ffffff;
}

.btn-white {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #ffffff;
  color: #1d4ed8;
}

.btn-white:hover {
  background: #eff6ff;
}

.link-light {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  justify-content: center;
  padding: 6px 0 0;
  color: #64748b;
}

.landing-footer a {
  color: #64748b;
}

@media (max-width: 980px) {
  .hero,
  .split-grid,
  .cta-panel,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .side-card {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .landing-main,
  main:not(.landing-main) {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .landing-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1 1 auto;
  }

  .hero {
    padding-top: 12px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .feature-grid,
  .quick-facts,
  .mock-grid,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .glass-card,
  .faq-card,
  .prose-card,
  .cta-panel,
  .card {
    padding: 22px 18px;
  }

  .mock-phone {
    max-width: 100%;
  }

  .hero-preview {
    min-height: auto;
  }
}
