/* Beehive — в стиле мобильного приложения (светлая amber/cream тема) */
:root {
  /* Фоны: как в приложении — крем, градиент amber50 → amber100 → amber200 */
  --color-bg: #F8F6F0;
  --color-bg-gradient-from: #FFF8E1;
  --color-bg-gradient-via: #FFECB3;
  --color-bg-gradient-to: #FFE082;
  --color-surface: #F5F0E8;
  --color-surface-hover: #F0EBE3;
  /* Текст: как AppColors.textPrimary / textSecondary */
  --color-text: #2D2A26;
  --color-text-muted: #6B6B6B;
  --color-text-tertiary: #9A9A9A;
  /* Акцент: amber700/amber800 как в приложении */
  --color-accent: #FFA000;
  --color-accent-hover: #FF8F00;
  --color-border: #E0DCD4;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(45, 42, 38, 0.08);
  --container: min(1120px, 100% - 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header — светлая шапка как в приложении */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 225, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav .btn {
  color: #fff;
}

.nav__login {
  margin-right: 0.5rem;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

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

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav.nav--open {
    display: flex;
    position: fixed;
    inset: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    overflow: auto;
  }

  .nav.nav--open a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav.nav--open .btn {
    margin-top: 1rem;
  }

  .header__burger {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 160, 0, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: rgba(255, 160, 0, 0.1);
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-block: 4rem 5rem;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
  color: var(--color-text);
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 42ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--color-bg-gradient-from) 0%,
    var(--color-bg-gradient-via) 50%,
    var(--color-bg-gradient-to) 100%
  );
  pointer-events: none;
}

/* Section */
.section {
  padding-block: 4rem;
}

.section__title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
}

/* Features */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.feature:hover {
  background: var(--color-surface-hover);
  border-color: rgba(255, 160, 0, 0.35);
  box-shadow: var(--shadow);
}

.feature__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.feature__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* CTA */
.cta {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.cta .section__title {
  color: var(--color-text);
}

.cta__inner {
  text-align: center;
}

.cta__text {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  max-width: 36ch;
  margin-inline: auto;
}

/* Footer */
.footer {
  padding-block: 2rem;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer__nav a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

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

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer .logo {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Doc pages (legal, privacy, user agreement) */
.page-doc {
  padding-block: 2rem 4rem;
}

.page-doc .doc {
  max-width: 720px;
  margin-inline: auto;
}

.doc h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.doc .doc__subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.doc .doc__meta {
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.doc h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  scroll-margin-top: 5rem;
}

.doc h2:first-of-type {
  margin-top: 1.5rem;
}

.doc h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.doc p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.doc p + p {
  margin-top: -0.25rem;
}

.doc strong {
  color: var(--color-text);
  font-weight: 600;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.doc li {
  margin-bottom: 0.35rem;
}

.doc hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.doc a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc a:hover {
  color: var(--color-accent-hover);
}

.doc .doc__footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Контакты */
.contacts-page .contacts-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 0;
}

.contacts-page .contacts-list li {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contacts-page .contacts-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.contacts-page .contacts-list a {
  font-size: 1.0625rem;
  text-decoration: none;
}

.contacts-page .contacts-list a:hover {
  text-decoration: underline;
}
