/* ===== ШРИФТЫ ===== */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;700&family=Nunito:wght@400;600;700;800&display=swap');

/* ===== ТЕМЫ ===== */
:root,
html.theme-warm {
  --bg: #FDF6EC;
  --block: #F5E6D3;
  --block-rgba: rgba(245, 230, 211, 0.85);
  --header: #F7D9C4;
  --accent: #A8C99A;
  --accent-hover: #8FBF7F;
  --error: #F5A9A9;
  --text: #5C4B3A;
  --text-muted: #8A7A6A;
  --border: #C9B89A;
  --shadow: 0 2px 8px rgba(92, 75, 58, 0.08);
}

html.theme-dark {
  --bg: #2A2520;
  --block: #3A322A;
  --block-rgba: rgba(58, 50, 42, 0.85);
  --header: #4A3F35;
  --accent: #C9A876;
  --accent-hover: #D9B886;
  --error: #D48A8A;
  --text: #F0E6D8;
  --text-muted: #B8A898;
  --border: #5A4E42;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.theme-pink {
  --bg: #FDF0F0;
  --block: #F8DCDC;
  --block-rgba: rgba(248, 220, 220, 0.85);
  --header: #F5C4C4;
  --accent: #D48A8A;
  --accent-hover: #C47878;
  --error: #E0A0A0;
  --text: #6B3A3A;
  --text-muted: #A87878;
  --border: #D9A9A9;
  --shadow: 0 2px 8px rgba(107, 58, 58, 0.1);
}

html.theme-blue {
  --bg: #F0F2F8;
  --block: #E0E4F0;
  --block-rgba: rgba(224, 228, 240, 0.85);
  --header: #D0D6E8;
  --accent: #8A9BC4;
  --accent-hover: #7386B8;
  --error: #D49A9A;
  --text: #3A4258;
  --text-muted: #7A8298;
  --border: #B8BED8;
  --shadow: 0 2px 8px rgba(58, 66, 88, 0.1);
}

/* ===== СБРОС ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  background: var(--block-rgba);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: 'Comfortaa', cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.nav a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ТЕМ ===== */
.theme-switcher {
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: background-color 0.4s ease, border-color 0.4s ease;
  margin-left: auto;
}

.theme-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.theme-dot:hover { transform: scale(1.15); }

.theme-dot.active {
  border-color: var(--text);
  transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--accent);
}

.theme-dot[data-theme="warm"] { background: linear-gradient(135deg, #FDF6EC 50%, #A8C99A 50%); }
.theme-dot[data-theme="dark"] { background: linear-gradient(135deg, #2A2520 50%, #C9A876 50%); }
.theme-dot[data-theme="pink"] { background: linear-gradient(135deg, #FDF0F0 50%, #D48A8A 50%); }
.theme-dot[data-theme="blue"] { background: linear-gradient(135deg, #F0F2F8 50%, #8A9BC4 50%); }

/* ===== HERO ===== */
.hero { padding: 100px 0 80px; text-align: center; }
.hero-badge { margin-bottom: 32px; }

.badge {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.4s ease;
}

.hero h1 {
  font-family: 'Comfortaa', cursive;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-note {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: #FFFFFF; }

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 201, 154, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--block-rgba);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 18px;
  font-size: 14px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 8px;
}

.btn-small:hover { background: var(--accent-hover); }

/* ===== СКРИНШОТЫ ===== */
.screenshots {
  padding: 60px 0;
  background: var(--block-rgba);
  transition: background-color 0.4s ease;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.screenshot-item { text-align: center; }

.screenshot-item img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(92, 75, 58, 0.15);
}

.screenshot-caption {
  font-family: 'Comfortaa', cursive;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 12px;
}

/* ===== ЗАГОЛОВКИ ===== */
.features h2,
.for-whom h2,
.why h2,
.faq h2,
.access h2,
.pricing h2 {
  font-family: 'Comfortaa', cursive;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ===== ФИЧИ ===== */
.features { padding: 80px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--block-rgba);
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.25s ease, background-color 0.4s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(92, 75, 58, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-hover);
  margin-bottom: 16px;
  display: inline-block;
}

.feature h3 {
  font-family: 'Comfortaa', cursive;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.feature p { color: var(--text-muted); font-size: 14px; }

/* ===== ДЛЯ КОГО ===== */
.for-whom { padding: 80px 0; }

.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.for-whom-item {
  background: var(--block-rgba);
  padding: 28px 24px;
  border-radius: 16px;
  transition: all 0.25s ease, background-color 0.4s ease;
}

.for-whom-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(92, 75, 58, 0.12);
}

.for-whom-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-hover);
  margin-bottom: 12px;
  display: inline-block;
}

.for-whom-item h3 {
  font-family: 'Comfortaa', cursive;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.for-whom-item p { color: var(--text-muted); font-size: 14px; }

/* ===== ПОЧЕМУ МЫ ===== */
.why {
  padding: 80px 0;
  background: var(--block-rgba);
  transition: background-color 0.4s ease;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  gap: 16px;
  background: var(--bg);
  padding: 24px;
  border-radius: 16px;
  transition: background-color 0.4s ease;
}

.why-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-hover);
  flex-shrink: 0;
  margin-top: 4px;
}

.why-item h3 {
  font-family: 'Comfortaa', cursive;
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--text);
}

.why-item p { color: var(--text-muted); font-size: 14px; }

/* ===== ТАРИФЫ ===== */
.pricing {
  padding: 80px 0;
  background: var(--block-rgba);
  transition: background-color 0.4s ease;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.25s ease, background-color 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(92, 75, 58, 0.15);
  border-color: var(--accent);
}

.pricing-card-featured {
  border-color: var(--accent);
  border-width: 3px;
  box-shadow: 0 8px 24px rgba(168, 201, 154, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #FFFFFF;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-name {
  font-family: 'Comfortaa', cursive;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
}

.pricing-price {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-amount {
  display: block;
  font-family: 'Comfortaa', cursive;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-hover);
  line-height: 1;
}

.pricing-period {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features .check {
  color: var(--accent-hover);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features strong {
  color: var(--accent-hover);
}

.pricing-card .btn-buy {
  width: 100%;
  text-align: center;
}

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 32px;
}

/* ===== FAQ ===== */
.faq { padding: 80px 0; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--block-rgba);
  border-radius: 12px;
  padding: 20px 24px;
  transition: background-color 0.2s ease;
}

.faq-item:hover { background: var(--header); }

.faq-item summary {
  font-family: 'Comfortaa', cursive;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent-hover);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--block-rgba);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== СТРАНИЦЫ ===== */
.page { padding: 80px 0; }

.page h1 {
  font-family: 'Comfortaa', cursive;
  font-size: 36px;
  margin-bottom: 8px;
  color: var(--text);
}

.page-date {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.page h2 {
  font-family: 'Comfortaa', cursive;
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.page p, .page li {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text);
}

.page ul { padding-left: 24px; }

.page code {
  background: var(--block-rgba);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open { display: flex; }

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background: var(--bg);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--block);
  color: var(--text);
}

.modal-title {
  font-family: 'Comfortaa', cursive;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

.modal-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ===== ФОРМА ПОКУПКИ ===== */
.buy-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.buy-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.buy-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  background: var(--block-rgba);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.buy-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.buy-form input[type="email"] + input[type="email"] {
  margin-top: 10px;
}

.buy-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.buy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  cursor: pointer;
  margin-top: 8px;
}

.buy-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.buy-consent a { color: var(--accent-hover); }

.buy-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 16px;
}

.buy-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.buy-error {
  color: var(--error);
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
  .hero h1 { font-size: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 16px; }
  .theme-switcher { order: 10; margin-left: 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .screenshots-grid,
  .features-grid,
  .for-whom-grid,
  .why-list { grid-template-columns: 1fr; }
  .nav a:not(.btn-small) { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-content { flex-direction: column; text-align: center; }
  .modal-content { padding: 32px 24px; }
  .pricing-amount { font-size: 32px; }
  .modal-title { font-size: 20px; }
}