/* Стили SEO-страниц. Переменные и базовые классы берутся из styles.css. */

.lp { background: var(--bg); color: var(--text); }
.lp-main { display: block; }
.lp [id] { scroll-margin-top: 84px; }

.lp-header { position: sticky; top: 0; }
.lp-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.lp-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s; }
.lp-nav a:not(.btn):hover { color: var(--cream); }
.lp-nav .btn { font-size: 14px; }

@media (max-width: 820px) {
  .lp-nav a:not(.btn) { display: none; }
}

/* Герой */
.lp-hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero) center right / cover no-repeat;
  opacity: 0.22;
  mask-image: linear-gradient(to right, transparent, #000 65%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 65%);
}
.lp-hero > .container { position: relative; }
.lp-hero h1 {
  max-width: 18ch;
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--cream-2);
  text-wrap: balance;
}
.lp-lead { max-width: 54ch; margin: 20px 0 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); line-height: 1.6; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Хлебные крошки */
.lp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.lp-crumbs a { color: var(--muted); text-decoration: none; }
.lp-crumbs a:hover { color: var(--cream); }
.lp-crumb-cur { color: var(--text); }

/* Секции */
.lp-section { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.lp-narrow { max-width: 760px; }
.lp-section h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  color: var(--cream);
  text-wrap: balance;
}
.lp-section p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--text); max-width: 68ch; }
.lp-intro p { color: var(--muted); }

.lp-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 68ch; }
.lp-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.55; }
.lp-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mocha-2);
  box-shadow: 0 0 0 4px rgba(122, 83, 67, 0.18);
}

/* Карточки направлений (хаб) */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.lp-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.lp-card:hover { border-color: var(--line-2); transform: translateY(-4px); background: var(--surface-2); }
.lp-card h3 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 23px; color: var(--cream-2); }
.lp-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.lp-card-go { margin-top: auto; color: var(--cream); font-weight: 600; font-size: 14px; }

/* FAQ */
.lp-faq { display: grid; gap: 10px; }
.lp-faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 4px 20px;
}
.lp-faq summary {
  padding: 16px 0;
  font-weight: 600;
  font-size: 17px;
  color: var(--cream-2);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--mocha-2); font-size: 22px; transition: transform 0.2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* Форма-CTA */
.lp-cta { padding: clamp(48px, 7vw, 88px) 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.lp-cta-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.lp-cta-text h2 { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; color: var(--cream); text-wrap: balance; }
.lp-cta-text p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 46ch; }
.lp-ticks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.lp-ticks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--text); }
.lp-ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; color: var(--cream);
  font-weight: 700;
}

.lp-form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-form .field { display: grid; gap: 6px; }
.lp-form .field > span { font-size: 13px; color: var(--muted); }
.lp-form .field em { font-style: normal; }
.lp-form input, .lp-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.lp-form input:focus, .lp-form textarea:focus { outline: 2px solid var(--mocha-2); outline-offset: 1px; border-color: transparent; }
.lp-form textarea { resize: vertical; }
.lp-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.lp-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lp-form-note { margin: 0; font-size: 14px; min-height: 1.2em; }
.lp-form-note.ok { color: #9cc79a; }
.lp-form-note.bad { color: #e0917a; }

/* Ещё на сайте */
.lp-related { background: var(--bg-2); }
.lp-links { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.lp-links a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.lp-links a:hover { background: var(--surface); border-color: var(--cream); }

@media (max-width: 720px) {
  .lp-cta-grid { grid-template-columns: 1fr; }
}

/* Правовые страницы */
.lp-legal-wrap { padding: clamp(36px, 6vw, 64px) 0 clamp(56px, 8vw, 88px); }
.lp-legal-wrap h1 { margin: 16px 0 4px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(30px, 5vw, 46px); line-height: 1.05; color: var(--cream-2); text-wrap: balance; }
.lp-updated { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.lp-legal-wrap h2 { margin: 32px 0 12px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(21px, 3vw, 28px); color: var(--cream); }
.lp-legal-wrap p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: var(--text); max-width: 70ch; }
.lp-legal-wrap .lp-list { margin: 4px 0 14px; }
.lp-legal-wrap .lp-list li { font-size: 15.5px; }
