@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Manrope:wght@300;400;500;600&display=swap');

/* ---------- Темы ---------- */
:root, html[data-theme="sage"] {
  --bg-start: #EEF0EB;
  --bg-end: #E1E5DD;
  --text-color: #2C302E;
  --text-muted: #59635F;
  --card-bg: rgba(252, 253, 251, 0.82);
  --card-secondary: #E7EBE2;
  --accent: #4A6B5D;
  --accent-hover: #3A5549;
  --accent-warm: #9E6B55;
  --border: #D2D8CD;
  --border-light: #DCE1D7;
  --header-bg: rgba(238, 240, 235, 0.8);
  --footer-bg: rgba(220, 225, 216, 0.65);
  --mobile-nav-bg: rgba(238, 240, 235, 0.98);
  --shadow-soft: 0 4px 20px rgba(44, 48, 46, 0.05);
  --shadow-hover: 0 12px 40px rgba(44, 48, 46, 0.09);
}

html[data-theme="mist"] {
  --bg-start: #EDEEEF;
  --bg-end: #DFE2E0;
  --text-color: #2C302E;
  --text-muted: #5E6462;
  --card-bg: rgba(252, 253, 253, 0.82);
  --card-secondary: #E6E9E7;
  --accent: #4A6B5D;
  --accent-hover: #3A5549;
  --accent-warm: #9E6B55;
  --border: #D0D5D2;
  --border-light: #DDE1DF;
  --header-bg: rgba(237, 238, 239, 0.8);
  --footer-bg: rgba(223, 226, 224, 0.65);
  --mobile-nav-bg: rgba(237, 238, 239, 0.98);
}

html[data-theme="sand"] {
  --bg-start: #F4F1EA;
  --bg-end: #E9E4D8;
  --text-color: #2C302E;
  --text-muted: #5E5348;
  --card-bg: rgba(255, 252, 247, 0.85);
  --card-secondary: #EFE8DC;
  --accent: #8C5A3C;
  --accent-hover: #724A30;
  --accent-warm: #9E6B55;
  --border: #D9D0C1;
  --border-light: #E6DFD3;
  --header-bg: rgba(244, 241, 234, 0.8);
  --footer-bg: rgba(233, 228, 216, 0.65);
  --mobile-nav-bg: rgba(244, 241, 234, 0.98);
}

html[data-theme="stone"] {
  --bg-start: #E9ECEE;
  --bg-end: #DADFE2;
  --text-color: #2C302E;
  --text-muted: #556066;
  --card-bg: rgba(250, 252, 253, 0.82);
  --card-secondary: #E0E5E8;
  --accent: #4F5E66;
  --accent-hover: #3E4B52;
  --accent-warm: #9E6B55;
  --border: #C9D0D4;
  --border-light: #D6DDE0;
  --header-bg: rgba(233, 236, 238, 0.8);
  --footer-bg: rgba(218, 223, 226, 0.65);
  --mobile-nav-bg: rgba(233, 236, 238, 0.98);
}

html[data-theme="olive"] {
  --bg-start: #EFF2E8;
  --bg-end: #E0E6D6;
  --text-color: #2C302E;
  --text-muted: #596351;
  --card-bg: rgba(252, 253, 250, 0.82);
  --card-secondary: #E8EDE1;
  --accent: #5A6B4A;
  --accent-hover: #48573B;
  --accent-warm: #9E6B55;
  --border: #D2D8C8;
  --border-light: #DDE2D5;
  --header-bg: rgba(239, 242, 232, 0.8);
  --footer-bg: rgba(224, 230, 214, 0.65);
  --mobile-nav-bg: rgba(239, 242, 232, 0.98);
}

html[data-theme="milk"] {
  --bg-start: #FAF9F6;
  --bg-end: #F1EEE7;
  --text-color: #2C302E;
  --text-muted: #5A5F5B;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-secondary: #F3F1EC;
  --accent: #4A6B5D;
  --accent-hover: #3A5549;
  --accent-warm: #9E6B55;
  --border: #E5E0D6;
  --border-light: #EDE9E1;
  --header-bg: rgba(250, 249, 246, 0.8);
  --footer-bg: rgba(241, 238, 231, 0.6);
  --mobile-nav-bg: rgba(250, 249, 246, 0.98);
}

/* ---------- Базовые стили ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: linear-gradient(145deg, var(--bg-start) 0%, var(--bg-end) 100%);
  background-attachment: fixed;
  color: var(--text-color);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  line-height: 1.28;
  color: var(--text-color);
  letter-spacing: -0.005em;
}

a { color: var(--accent); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--accent-hover); }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.4s ease;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; height: 76px; }

.logo a {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: 0.005em;
}

.nav-links { display: flex; list-style: none; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.burger { display: none; cursor: pointer; border: none; background: none; padding: 6px; }
.burger div { width: 24px; height: 1.5px; background-color: var(--text-color); margin: 6px 0; transition: 0.3s; border-radius: 2px; }

/* ---------- Main ---------- */
main { flex: 1; padding: 72px 0 80px; }

.hero { text-align: center; margin-bottom: 72px; }
.hero h1 { font-size: 2.4rem; margin-bottom: 12px; font-weight: 500; }

/* Крупный подзаголовок (исправлен) */
.hero-lead {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-color);
  max-width: 820px;
  margin: 0 auto 44px;
  letter-spacing: -0.005em;
}

/* ВОТ ЭТО ПРАВИЛО ДЕЛАЕТ ПЕРЕНОС СТРОКИ */
.hero-lead .lead-line {
  display: block;
}

.hero-img {
  width: 100%;
  max-width: 820px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

/* ---------- Cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 36px 32px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--border); }
.card h3 { margin-bottom: 14px; font-size: 1.4rem; font-weight: 600; }
.card p, .card ul { margin-bottom: 18px; font-size: 0.93rem; color: var(--text-muted); flex-grow: 1; }
.card ul { padding-left: 18px; }
.card li { margin-bottom: 7px; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  margin-top: auto;
  align-self: flex-start;
}
.btn:hover { background: var(--accent); color: #fff; }

/* ---------- Content ---------- */
.page-title { font-size: 2.4rem; margin-bottom: 40px; font-weight: 500; }
.content-section {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 44px 48px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  margin-bottom: 32px;
}
.content-section h2 { font-size: 1.75rem; margin-top: 36px; margin-bottom: 18px; font-weight: 600; }
.content-section h2:first-child { margin-top: 0; }
.content-section p { margin-bottom: 20px; color: var(--text-muted); }
.content-section ul, .content-section ol { margin-bottom: 20px; padding-left: 22px; color: var(--text-muted); }
.content-section li { margin-bottom: 9px; }

/* ---------- Method ---------- */
.method-layout { display: flex; gap: 44px; align-items: flex-start; margin-bottom: 40px; flex-wrap: wrap; }
.method-text { flex: 1; min-width: 300px; }
.method-image { flex: 0 0 280px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--border-light); }
.method-image img { width: 100%; height: auto; display: block; object-fit: cover; }

/* ---------- Price ---------- */
.price-block { background: var(--card-secondary); padding: 28px 30px; border-radius: 12px; margin-bottom: 20px; border-left: 3px solid var(--accent-warm); }
.price-block h3 { margin-bottom: 8px; color: var(--accent); font-size: 1.25rem; }

/* ---------- Contacts ---------- */
.contact-info { font-size: 1.05rem; margin-bottom: 32px; color: var(--text-muted); }
.contact-info p { margin-bottom: 14px; }

/* ---------- Footer ---------- */
footer {
  background: var(--footer-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
  transition: background 0.4s ease;
}
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-col h4 { margin-bottom: 14px; font-size: 1.05rem; font-weight: 600; }
.footer-col p, .footer-col a { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 7px; display: block; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-light); text-align: center; font-size: 0.82rem; color: #7C847F; }

/* ---------- Переключатель оттенков ---------- */
.theme-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 200;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: background 0.3s ease;
}
.theme-label { margin-right: 4px; font-weight: 500; letter-spacing: 0.02em; }
.theme-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.theme-btn:hover { transform: scale(1.1); }
.theme-btn.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 0 0 2px rgba(255, 255, 255, 0.8);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-lead { font-size: 1.4rem; }
  .page-title { font-size: 1.9rem; }
  .content-section { padding: 28px 24px; }
  .nav-links {
    position: absolute;
    right: 0;
    top: 76px;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(12px);
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    display: none;
    gap: 16px;
  }
  .nav-links.nav-active { display: flex; }
  .burger { display: block; }
  .burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 5px); }
  .burger.toggle .line2 { opacity: 0; }
  .burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -5px); }
  .method-layout { flex-direction: column; gap: 28px; }
  .method-image { flex: 0 0 auto; width: 100%; max-width: 400px; }
  .btn { align-self: stretch; }
  .theme-switcher { bottom: 12px; right: 12px; padding: 6px 10px; gap: 6px; }
  .theme-btn { width: 18px; height: 18px; }
  .theme-label { display: none; }
}
/* Стиль для вводного абзаца на странице согласия */
.content-section .lead-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-color);
  background: var(--card-secondary);
  padding: 24px 28px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  margin-bottom: 36px;
  font-style: normal;
}

/* На мобильных делаем отступы чуть меньше */
@media (max-width: 768px) {
  .content-section .lead-text {
    font-size: 1.1rem;
    padding: 20px;
    margin-bottom: 28px;
  }
}
/* Аккуратное подчеркивание для ссылок внутри текста */
.content-section p a,
.content-section li a {
  text-decoration: underline;
  text-underline-offset: 3px; /* Отодвигает линию от букв, чтобы текст "дышал" */
  text-decoration-thickness: 1px; /* Делает линию тонкой и элегантной */
  text-decoration-color: var(--accent); /* Цвет линии в тон акценту */
  transition: color 0.25s ease, text-decoration-color 0.25s ease, text-decoration-thickness 0.25s ease;
}

/* При наведении делаем линию чуть толще и меняем цвет (наследуется от стандартного a:hover) */
.content-section p a:hover,
.content-section li a:hover {
  text-decoration-thickness: 2px;
}
/* Всплывающее уведомление о копировании */
.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}
.copy-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
