/* =============================================
   yurizhdanov.ru — общие стили
   Цвета: тёмно-синий #1e2d4f, акцент #e8b86d (золото), белый #ffffff
   Шрифты: Lora (заголовки), PT Sans (тело)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --navy:   #1e2d4f;
  --navy2:  #263561;
  --gold:   #e8b86d;
  --gold2:  #d4a055;
  --white:  #ffffff;
  --light:  #f4f6fa;
  --text:   #1a1a2e;
  --muted:  #6b7a99;
  --border: #dce2ef;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(30,45,79,0.10);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'PT Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Типографика ---- */
h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  line-height: 1.3;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--navy2); text-decoration: underline; }
a:hover { color: var(--gold2); }

/* ---- Контейнер ---- */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Шапка (nav) ---- */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}
.nav-logo {
  color: var(--white);
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo:hover { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* ---- Hero ---- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero .name-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

/* ---- Кнопки ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold2);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,184,109,0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ---- Секции ---- */
.section { padding: 4rem 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p  { color: rgba(255,255,255,0.82); }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p  { color: var(--muted); margin: 0; }

/* ---- Симптомы / проблемы ---- */
.pain-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
}
.pain-list li {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 0.85rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  box-shadow: var(--shadow);
}

/* ---- Этапы прогрессии ---- */
.stages {
  display: grid;
  gap: 1.5rem;
  counter-reset: stage;
}
.stage {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.stage-num {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.1rem;
}
.stage-body strong { display: block; margin-bottom: 0.3rem; }

/* ---- Аккордеон ---- */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.accordion-btn::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gold2);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.accordion-item.open .accordion-btn::after { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding-bottom: 1.1rem;
  color: var(--text);
  line-height: 1.7;
}
.accordion-item.open .accordion-body { display: block; }

/* ---- Не будет ---- */
.no-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  max-width: 580px;
}
.no-list li { padding-left: 1.4rem; position: relative; }
.no-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #c0392b;
  font-size: 0.8rem;
  top: 0.22em;
}

/* ---- Отзывы (карточки) ---- */
.reviews-grid {
  display: grid;
  gap: 1.5rem;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.review-card p { margin-bottom: 0.6rem; }
.review-author {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
  margin-top: 0.8rem;
}
.review-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

/* ---- Цены ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: var(--gold);
  position: relative;
}
.price-card .price-amount {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0.5rem 0;
}
.price-card .price-unit { color: var(--muted); font-size: 0.9rem; }
.price-card p { font-size: 0.92rem; color: var(--muted); margin: 0.5rem 0 0; }
.price-free { font-size: 1.4rem; color: var(--gold2); font-weight: 700; }

/* ---- Форма ---- */
.contact-section { padding: 4rem 0; }
.form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 540px;
  margin: 0 auto;
}
.form-intro { margin-bottom: 1.5rem; color: var(--muted); font-size: 0.95rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #fafbfd;
}
.form-group input:focus {
  outline: none;
  border-color: var(--navy2);
  background: var(--white);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.form-check input[type="checkbox"] {
  margin-top: 0.22em;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--navy2);
  cursor: pointer;
}
.form-check label { font-size: 0.88rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.form-check a { color: var(--navy2); }
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.8rem;
}
.telegram-alt {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.telegram-alt a { color: var(--navy2); font-weight: 700; }

/* Сообщения формы */
#form-success, #form-error {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.8rem;
  font-size: 0.95rem;
}
#form-success { background: #eaf7ee; color: #1a6b3a; border: 1px solid #b2dfca; }
#form-error   { background: #fdecea; color: #a33; border: 1px solid #f5c6c6; }

/* ---- Гарантии ---- */
.guarantee-box {
  background: var(--light);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.8rem;
}
.guarantee-box ul { margin: 0.5rem 0 0 1.2rem; }
.guarantee-box li { margin-bottom: 0.4rem; }

/* ---- Подвал ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 2rem 0;
  font-size: 0.85rem;
  margin-top: 4rem;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  list-style: none;
}
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }

/* ---- Cookie-баннер ---- */
#cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: rgba(255,255,255,0.88);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 999;
  max-width: 90vw;
  text-align: left;
}
#cookie-banner button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ---- Страницы-документы ---- */
.doc-page { padding: 3rem 0 4rem; }
.doc-page h1 { margin-bottom: 2rem; }
.doc-page h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.doc-page p, .doc-page li { font-size: 0.97rem; }
.doc-page ul, .doc-page ol { margin: 0.5rem 0 1rem 1.4rem; }
.doc-page li { margin-bottom: 0.35rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-size: 0.9rem; }

/* ---- Мобильная адаптация ---- */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  #cookie-banner { flex-direction: column; text-align: center; }
  .site-footer .container { gap: 0.9rem; }
}
