/* ===== Базовые настройки ===== */
:root {
  --green-900: #12332b;
  --green-700: #1d5446;
  --green-100: #e6f0ec;
  --gold: #b98a3e;
  --gold-dark: #956c28;
  --ink: #1f2a27;
  --muted: #5b6763;
  --bg: #faf8f4;
  --white: #ffffff;
  --line: #e3ded4;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 51, 43, 0.08);
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--gold-dark); }

h1, h2, h3 { font-family: var(--font-head); color: var(--green-900); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding: 72px 0; }
.section--alt { background: var(--white); border-block: 1px solid var(--line); }
.section--green { background: var(--green-900); color: #e9f1ee; }
.section--green h2, .section--green h3 { color: #fff; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.section-head { margin-bottom: 40px; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 600; margin-bottom: 10px;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, background .2s, color .2s; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-dark); color: #fff; }
.btn--ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn--ghost:hover { background: var(--green-700); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--green-900); }

/* ===== Шапка ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.logo strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--green-900); }
.logo span { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-700); border-bottom-color: var(--gold); }
.header-phone { font-weight: 700; text-decoration: none; color: var(--green-900); white-space: nowrap; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 1.3rem; cursor: pointer; color: var(--green-900);
}

/* ===== Первый экран ===== */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(185, 138, 62, .18), transparent 60%),
    linear-gradient(180deg, var(--green-100), var(--bg));
  padding: 84px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px;
}
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { padding: 12px 0 12px 34px; position: relative; border-bottom: 1px dashed var(--line); }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before {
  content: "✓"; position: absolute; left: 0; top: 11px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700); font-weight: 700; text-align: center; line-height: 24px; font-size: .9rem;
}

/* ===== Цифры ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; color: var(--gold); line-height: 1.1; }
.stat span { font-size: .95rem; color: #cfe0da; }

/* ===== Карточки ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-4px); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 16px;
}
.card p { color: var(--muted); margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 14px; color: var(--gold-dark); font-weight: 600; }

/* ===== Шаги ===== */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #fff;
  font-family: var(--font-head); font-size: 1.3rem; display: grid; place-items: center;
}
.step p { color: var(--muted); }

/* ===== Страницы-подзаголовки ===== */
.page-hero { background: var(--green-100); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 720px; margin: 0; font-size: 1.1rem; }

/* ===== Услуги ===== */
.service-block { padding: 40px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block h2 { display: flex; align-items: center; gap: 12px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; columns: 2; column-gap: 40px; }
.checklist li { padding: 6px 0 6px 28px; position: relative; break-inside: avoid; }
.checklist li::before { content: "•"; color: var(--gold); position: absolute; left: 8px; font-size: 1.4rem; line-height: 1.3; }
.price-tag { display: inline-block; background: var(--green-100); color: var(--green-900); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; }

/* ===== Цены ===== */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--font-head); font-size: 1.5rem; color: var(--green-900); margin: 6px 0 14px; }
.price-card .price small { font-size: .95rem; color: var(--muted); font-family: var(--font-body); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.price-card li { padding: 7px 0 7px 26px; position: relative; color: var(--ink); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 700; }
.price-card--featured { border: 2px solid var(--gold); position: relative; }
.badge { position: absolute; top: -13px; right: 20px; background: var(--gold); color: #fff; font-size: .78rem; padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.note { background: #fff8e8; border: 1px solid #ecd9a8; border-radius: 12px; padding: 16px 20px; color: #6b5420; font-size: .95rem; }

/* ===== Обо мне ===== */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.photo-placeholder {
  aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(145deg, var(--green-700), var(--green-900));
  color: #fff; display: grid; place-items: center; text-align: center; padding: 20px; font-size: .95rem; box-shadow: var(--shadow);
}
.about-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--gold); }
.timeline li { padding: 0 0 22px 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.timeline strong { color: var(--green-900); }

/* ===== FAQ ===== */
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
details.faq summary { cursor: pointer; font-weight: 600; padding: 18px 28px 18px 0; list-style: none; position: relative; color: var(--green-900); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.6rem; color: var(--gold); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .answer { padding: 0 0 18px; color: var(--muted); }

/* ===== Формы и контакты ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-list a, .contact-list span { font-size: 1.15rem; font-weight: 600; }
form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
form input[type="text"], form input[type="tel"], form input[type="email"], form select, form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #cfc8ba; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
form textarea { min-height: 110px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { outline: 3px solid rgba(185, 138, 62, .35); border-color: var(--gold); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #e6f4ea; color: #1d5b32; }
.form-status.err { display: block; background: #fdeaea; color: #8a2020; }
.hp { position: absolute; left: -9999px; }

/* ===== Призыв ===== */
.cta { text-align: center; }
.cta p { max-width: 640px; margin-inline: auto 0; margin: 0 auto 26px; color: #cfe0da; }

/* ===== Подвал ===== */
.site-footer { background: #0d261f; color: #b9cbc5; padding: 52px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); }
.site-footer a { color: #b9cbc5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.copyright { border-top: 1px solid #1f3d34; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Текстовые страницы ===== */
.prose { max-width: 800px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }

/* ===== Мобильная версия ===== */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid .photo-placeholder, .about-grid .about-photo { max-width: 320px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .header-phone { display: none; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; align-items: flex-start; padding: 18px 4%; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; font-size: 1.05rem; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 48px; }
  .grid--3, .grid--2, .steps, .footer-grid { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .btn { width: 100%; text-align: center; }
  .stat strong { font-size: 2.1rem; }
}
@media print { .site-header, .site-footer, .cta { display: none; } }

/* ===== Приёмы из референсов (Osome, Advis, Land-book) ===== */
.trust-line { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: var(--muted); }
.trust-line li { position: relative; padding-left: 22px; }
.trust-line li::before { content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 700; }

.signature { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.signature .avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--green-900); color: var(--gold);
  display: grid; place-items: center; font-family: var(--font-head); font-size: 1.1rem; letter-spacing: .04em;
}
.signature strong { display: block; color: var(--green-900); line-height: 1.3; }
.signature span:not(.avatar) { font-size: .9rem; color: var(--muted); }

.mini-list { list-style: none; padding: 0; margin: 14px 0 0; }
.mini-list li { padding: 5px 0 5px 22px; position: relative; color: var(--ink); font-size: .96rem; }
.mini-list li::before { content: "•"; position: absolute; left: 6px; color: var(--gold); font-size: 1.2rem; line-height: 1.4; }

.situations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.situations a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-weight: 500; line-height: 1.4; transition: transform .2s, border-color .2s;
}
.situations a span { color: var(--gold-dark); font-size: 1.3rem; flex: none; }
.situations a:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--green-900); }

/* Плавающая кнопка связи */
.float-cta {
  position: fixed; left: 50%; bottom: 18px; z-index: 40; display: flex; gap: 10px; padding: 8px;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 34px rgba(18, 51, 43, .18);
  transform: translate(-50%, 160%); transition: transform .3s ease;
}
.float-cta.show { transform: translate(-50%, 0); }
.float-cta .btn { width: auto; padding: 11px 24px; font-size: .98rem; background-clip: padding-box; }
.float-cta .btn--ghost { background: #fff; }

@media (max-width: 960px) { .situations { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .situations { grid-template-columns: 1fr; }
  .float-cta { left: 12px; right: 12px; bottom: 12px; transform: translateY(160%); border-radius: 18px; }
  .float-cta.show { transform: translateY(0); }
  .float-cta .btn { flex: 1; text-align: center; padding: 13px 10px; }
  .site-footer { padding-bottom: 96px; }
}