/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f4f0ea;
  --border: #e6e0d6;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #c8792b;
  --accent-dark: #a55f1a;
  --accent-soft: #fdf3e7;
  --radius: 16px;
  --radius-lg: 24px;
}

/* ===== БАЗА ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s;
}

a:hover {
  color: var(--accent-dark);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ТИПОГРАФИКА ===== */
h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

h4 {
  font-size: 1.1rem;
}

/* ===== СЕКЦИИ ===== */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.975rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 8px 0;
}

/* ===== ХЕДЕР ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.header.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #e0a256);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.925rem;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-phone {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-trust-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}

.hero-trust-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.hero-card h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.hero-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-list li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}

.hero-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}
/* ===== КАРТОЧКИ УСЛУГ ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.service p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-meta {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.service-price {
  font-weight: 700;
  font-size: 1.05rem;
}

.service-price small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===== ШАГИ ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 18px;
}

.step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== КАЛЬКУЛЯТОР ===== */
.calc {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  max-width: 820px;
  margin: 0 auto;
}

.calc-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.calc-progress-item {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-2);
  transition: 0.25s;
}

.calc-progress-item.active {
  background: var(--accent);
}

.calc-progress-item.done {
  background: var(--accent);
  opacity: 0.5;
}

.calc-step {
  display: none;
}

.calc-step.active {
  display: block;
}

.calc-sub {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.calc-option {
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: #ffffff;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: 0.2s;
}

.calc-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.calc-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.calc-option strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.calc-option small {
  color: var(--muted);
  font-size: 0.8rem;
}

.calc-field {
  margin-bottom: 20px;
}

.calc-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.range-value {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.calc-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
}

.calc-result {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fbe9d1 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
  border: 1px solid #f0d9bd;
}

.calc-result-label {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.calc-result-price {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.calc-result-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.calc-breakdown {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.925rem;
  border-bottom: 1px solid var(--border);
}

.calc-breakdown-row:last-child {
  border-bottom: none;
  font-weight: 700;
  padding-top: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.checkbox-row:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.checkbox-row input {
  width: auto;
  accent-color: var(--accent);
}

.checkbox-row b {
  color: var(--accent);
}

/* ===== FAQ ===== */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item.open {
  border-color: var(--accent);
}

.faq-q {
  width: 100%;
  padding: 22px 24px;
  font-weight: 600;
  font-size: 1.025rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  color: var(--text);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: 0.25s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s, padding 0.35s;
  padding: 0 24px;
  color: var(--muted);
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 24px 22px;
}
/* ===== КОНТАКТЫ ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-card h3 {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.contact-item-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-item-value {
  font-weight: 600;
}

.contact-item-value a {
  color: var(--text);
}

/* ===== ФОРМА ===== */
form .form-field {
  margin-bottom: 16px;
}

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

form input,
form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--text);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

/* ===== БАННЕРЫ ===== */
.banner {
  background: linear-gradient(135deg, #2a2118 0%, #1a1410 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.banner-content {
  max-width: 620px;
}

.banner h2 {
  color: #ffffff;
}

.banner p {
  color: rgba(255, 255, 255, 0.7);
}

.banner-light {
  background: linear-gradient(135deg, var(--accent-soft), #fbe9d1);
  border: 1px solid #f0d9bd;
}

.banner-light h2 {
  color: var(--text);
}

.banner-light p {
  color: var(--muted);
}

/* ===== ФУТЕР ===== */
.footer {
  background: #1a1410;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  padding: 6px 0;
  font-size: 0.925rem;
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== СЛУЖЕБНЫЕ БЛОКИ ===== */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--muted);
}

.page-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  z-index: 1;
}

.timeline-body h4 {
  margin-bottom: 6px;
}

.timeline-body p {
  color: var(--muted);
  font-size: 0.925rem;
}

.honest {
  background: #fff8f0;
  border: 1px solid #f0d9bd;
  border-radius: var(--radius-lg);
  padding: 32px;
}

.honest h3 {
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.honest ul {
  list-style: none;
}

.honest li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid #f0d9bd;
}

.honest li:last-child {
  border-bottom: none;
}

.honest li::before {
  content: "&#10005;";
  position: absolute;
  left: 0;
  color: #d94b3d;
  font-weight: 700;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
  }

  .burger {
    display: flex;
  }

  .nav-phone,
  .nav-cta .btn {
    display: none;
  }

  .calc {
    padding: 24px;
  }

  .banner {
    padding: 28px;
    flex-direction: column;
    text-align: center;
  }

  .banner-content {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px;
  }
}