/* ================= БАЗА ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark: #2d4a2b;
  --green: #4a7c3e;
  --green-light: #6b9b5a;
  --sand: #d9c9a8;
  --sand-light: #f5efe2;
  --graphite: #2c2c2c;
  --gray: #6b6b6b;
  --gray-light: #e8e8e8;
  --white: #ffffff;
  --bg: #fafaf7;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--green-dark); }
h1 { font-size: clamp(28px, 5vw, 52px); margin-bottom: 20px; }
h2 { font-size: clamp(24px, 4vw, 40px); margin-bottom: 16px; text-align: center; }
h3 { font-size: clamp(18px, 2.5vw, 24px); margin-bottom: 12px; }

section { padding: 70px 0; }
.section-subtitle { text-align: center; color: var(--gray); font-size: 18px; max-width: 750px; margin: 0 auto 50px; }

/* ================= КНОПКИ ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.3;
  font-family: inherit;
  text-decoration: none;
  /*white-space: nowrap;*/
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: transparent; color: var(--green-dark); border: 2px solid var(--green); }
.btn-secondary:hover { background: var(--green); color: var(--white); }
.btn-tg { background: #229ED9; color: var(--white); }
.btn-tg:hover { background: #1a8ec1; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 20px 40px; font-size: 18px; }

/* ================= STICKY HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-light);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--green-dark);
}
.logo-icon { font-size: 28px; }
.header-nav { display: flex; gap: 24px; }
.header-nav a { color: var(--graphite); font-size: 15px; transition: var(--transition); }
.header-nav a:hover { color: var(--green); }
.header-contacts { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-weight: 700;
  font-size: 17px;
  color: var(--green-dark);
  white-space: nowrap;
}
.header-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  white-space: nowrap;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
  background:
    linear-gradient(rgba(45,74,43,0.5), rgba(45,74,43,0.6)),
    url('./hero.jpg') center/cover no-repeat;
  color: var(--white);
}
.hero h1 { color: var(--white); }
.hero-overhead {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}
.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  margin-bottom: 30px;
  opacity: 0.95;
  max-width: 700px;
}
.hero-bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
  max-width: 750px;
}
.hero-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.hero-bullet-icon { font-size: 22px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(255,255,255,0.95);
  color: var(--green-dark);
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow);
}

/* ================= ПРОБЛЕМЫ ================= */
.pains {
  background: var(--sand-light);
}
.pains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.pain-card {
  background: var(--white);
  padding: 30px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pain-icon { font-size: 42px; margin-bottom: 16px; }
.pain-card h3 { margin-bottom: 10px; }
.pain-card p { color: var(--gray); font-size: 15px; }
.pains-note {
  text-align: center;
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--green);
  font-size: 17px;
  max-width: 900px;
  margin: 0 auto 30px;
}
.pains .btn { display: block; margin: 0 auto; max-width: 380px; }

/* ================= ОФФЕР ================= */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}
.offer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.offer-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  align-self: flex-start;
}
.offer-card h3 { font-size: 26px; margin-bottom: 14px; }
.offer-card .desc { color: var(--gray); margin-bottom: 24px; }
.offer-list { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.offer-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--gray-light);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}
.offer-list li:last-child { border-bottom: none; }
.offer-list .price { font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.packages { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; flex-grow: 1; }
.package {
  padding: 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  transition: var(--transition);
}
.package:hover { border-color: var(--green); }
.package-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.package-name { font-weight: 700; font-size: 17px; color: var(--green-dark); }
.package-price { font-weight: 700; color: var(--green); white-space: nowrap; }
.package-desc { font-size: 14px; color: var(--gray); }
.offer-note { font-size: 13px; color: var(--gray); text-align: center; margin-top: 40px; font-style: italic; }

/* ================= КВИЗ ================= */
.quiz {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
}
.quiz h2 { color: var(--white); }
.quiz .section-subtitle { color: rgba(255,255,255,0.85); }
.quiz-box {
  background: var(--white);
  color: var(--graphite);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.quiz-progress {
  height: 6px;
  background: var(--gray-light);
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 12.5%;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.quiz-counter { color: var(--gray); font-size: 14px; margin-bottom: 8px; }
.quiz-question { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--green-dark); }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
}
.quiz-option:hover { border-color: var(--green-light); background: var(--sand-light); }
.quiz-option.selected { border-color: var(--green); background: var(--sand-light); }
.quiz-option input { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; flex-shrink: 0; }
.quiz-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: inherit;
  transition: var(--transition);
  margin-bottom: 12px;
}
.quiz-input:focus { outline: none; border-color: var(--green); }
.quiz-hint { font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.quiz-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 20px; }
.quiz-nav .btn { flex: 1; max-width: 200px; }
.quiz-back { background: transparent; color: var(--gray); border: 2px solid var(--gray-light); }
.quiz-back:hover { background: var(--gray-light); color: var(--graphite); }
.quiz-checkbox { display: flex; align-items: stretch; gap: 10px; font-size: 13px; color: var(--gray); margin-bottom: 16px; cursor: pointer; }
.quiz-checkbox input { margin-top: 3px; flex-shrink: 0; accent-color: var(--green); }
.quiz-bonus {
  background: var(--sand-light);
  border-left: 4px solid var(--green);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}
.quiz-success { text-align: center; padding: 30px 10px; }
.quiz-success-icon { font-size: 64px; margin-bottom: 16px; }
.quiz-success h3 { font-size: 28px; margin-bottom: 12px; }
.quiz-error { color: #c0392b; font-size: 14px; margin-top: 10px; min-height: 20px; }

/* ================= ПРЕИМУЩЕСТВА ================= */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.adv-card {
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 4px solid var(--green);
  transition: var(--transition);
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.adv-icon { font-size: 40px; margin-bottom: 14px; }
.adv-card h3 { font-size: 19px; margin-bottom: 10px; }
.adv-card p { color: var(--gray); font-size: 15px; }

/* ================= ЭТАПЫ ================= */
.steps { background: var(--sand-light); }
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step-card {
  background: var(--white);
  padding: 30px 24px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow);
  counter-increment: step;
}
.step-card::before {
  content: counter(step);
  position: absolute;
  top: -20px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  box-shadow: var(--shadow);
}
.step-card.highlight { background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%); color: var(--white); }
.step-card.highlight h3, .step-card.highlight p { color: var(--white); }
.step-card.highlight::before { background: var(--white); color: var(--green-dark); }
.step-card h3 { font-size: 18px; margin: 8px 0; }
.step-card p { color: var(--gray); font-size: 15px; }
.steps-note {
  background: var(--white);
  padding: 24px 30px;
  border-radius: var(--radius);
  border-left: 5px solid var(--green);
  margin-top: 40px;
  font-size: 17px;
  text-align: center;
}

/* ================= КЕЙСЫ ================= */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.case-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  cursor: ew-resize;
}
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-img .after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 3px solid var(--white);
}
.case-img .after-img img { width: 200%; }
.case-img .case-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.case-img .label-before { right: 12px; }
.case-img .label-after { left: 12px; }
.case-body { padding: 24px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.case-body h3 { font-size: 22px; }
.case-body p { color: var(--gray); font-size: 14px; margin-bottom: 10px; }
.case-footer {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-light);
  margin-top: 12px;
}
.case-footer span { color: var(--gray); }
.case-footer strong { color: var(--green-dark); }
.cases-cta { text-align: center; }

/* ================= УСЛУГИ АККОРДЕОН ================= */
.services-accordion { max-width: 900px; margin: 0 auto; }
.service-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.service-toggle {
  width: 100%;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--green-dark);
  font-family: inherit;
}
.service-toggle::after {
  content: '+';
  font-size: 24px;
  transition: var(--transition);
}
.service-item.open .service-toggle::after { transform: rotate(45deg); }
.service-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.service-item.open .service-body { max-height: 500px; }
.service-body-inner { padding: 0 24px 20px; color: var(--gray); font-size: 15px; }
.service-body-inner em { color: var(--green-dark); font-style: normal; font-weight: 600; }

/* ================= ЦИФРЫ ================= */
.numbers { background: var(--green-dark); color: var(--white); padding: 60px 0; }
.numbers h2 { color: var(--white); }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}
.number-item .num {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--sand);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.number-item p { color: rgba(255,255,255,0.85); font-size: 15px; }

/* ================= FAQ ================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  font-family: inherit;
}
.faq-question::after {
  content: '↓';
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-question::after { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--gray); font-size: 15px; line-height: 1.7; }

/* ================= ФИНАЛЬНЫЙ CTA ================= */
.final-cta {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  text-align: center;
}
.final-cta h2 { color: var(--white); }
.final-cta .section-subtitle { color: rgba(255,255,255,0.9); }
.final-form {
  max-width: 480px;
  margin: 30px auto 0;
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  color: var(--graphite);
}
.final-form input {
  /*width: 100%;*/
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-family: inherit;
  transition: var(--transition);
}
.final-form input:focus { outline: none; border-color: var(--green); }
.final-form .quiz-checkbox { color: var(--gray); margin: 12px 0 16px; text-align: left; }
.final-form .quiz-error { text-align: left; }
.alt-contacts {
  margin-top: 30px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.alt-contacts a {
  color: var(--white);
  /*text-decoration: underline;*/
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

/* ================= ФУТЕР ================= */
.footer {
  background: var(--graphite);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 20px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 16px; }
.footer p, .footer a { color: rgba(255,255,255,0.7); line-height: 1.8; }
.footer a:hover { color: var(--sand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ================= МОБИЛЬНАЯ STICKY-ПАНЕЛЬ ================= */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  z-index: 90;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  gap: 6px;
  box-sizing: border-box;
}
.mobile-bar a {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 4px;
  text-align: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.1;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-bar a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}
.mobile-bar .mb-call { background: var(--green); }
.mobile-bar .mb-tg   { background: #229ED9; }
.mobile-bar .mb-email { background: var(--green-dark); }
.mobile-bar .mb-quiz { background: var(--graphite); }

/* Очень узкие экраны (iPhone SE и подобные) */
@media (max-width: 360px) {
  .mobile-bar a {
    font-size: 11px;
    padding: 8px 2px;
  }
  .mobile-bar a svg { width: 18px; height: 18px; }
}

/* ================= POP-UP EXIT ================= */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}
.popup-overlay.active { display: flex; }

/* ================= ПОПАП ЗАЯВКИ И УСПЕХА ================= */
.lead-modal,
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.lead-modal.active,
.success-modal.active {
  display: flex;
}

.lead-modal__box,
.success-modal__box {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px 28px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--graphite);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  border-top: 4px solid var(--gold, var(--green));
}

.success-modal__box {
  width: min(100%, 560px);
}

.lead-modal__box h3 {
  margin-bottom: 10px;
  text-align: center;
  justify-content: center;
}

.lead-modal__box p {
  margin-bottom: 18px;
  color: var(--gray);
  text-align: center;
}

.lead-modal__box input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-family: inherit;
  transition: var(--transition);
}

.lead-modal__box input[type="tel"]:focus {
  outline: none;
  border-color: var(--green);
}

.lead-modal__consent {
  margin: 12px 0 16px;
  text-align: left;
}

.lead-modal__close,
.success-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--sand-light);
  color: var(--green-dark);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lead-modal__close:hover,
.success-modal__close:hover {
  background: var(--gray-light);
}
.popup-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: fadeIn 0.4s ease;
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
}
.popup-box h3 { font-size: 22px; margin-bottom: 12px; }
.popup-box p { color: var(--gray); margin-bottom: 20px; }
.popup-box input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-family: inherit;
}
.popup-box input:focus { outline: none; border-color: var(--green); }
.popup-decline {
  background: none;
  border: none;
  color: var(--gray);
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  margin-top: 12px;
  font-family: inherit;
}

/* ================= МОБИЛКА ================= */
@media (max-width: 900px) {
  section { padding: 50px 0; }
  .header-nav { display: none; }
  .header-phone, .header-email { display: none; }
  .header-contacts .btn { padding: 10px 16px; font-size: 14px; }
  .offer-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero { min-height: auto; padding: 40px 0 60px; }
  .hero-trust { position: static; margin-top: 30px; display: inline-block; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 80px; }
  .quiz-box { padding: 28px 20px; }
  .quiz-nav .btn { padding: 14px 16px; font-size: 14px; }
}

@media (max-width: 480px) {
  .mobile-bar a { font-size: 11px; padding: 8px 2px; }
  .mobile-bar a svg { width: 18px; height: 18px; }
  .hero-bullets { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .quiz-question { font-size: 19px; }
  .case-img { height: 200px; }
  .offer-card { padding: 28px 22px; }
  .final-form { padding: 24px 20px; }
}


/* ================= БЛОК "ОБ АВТОРЕ" ================= */
.section-author {
  background: linear-gradient(180deg, var(--white) 0%, #f4f1ea 100%);
}
.author-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

/* Фото */
.author-photo {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}
.author-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(45, 74, 43, 0.18);
}
.author-photo-badge {
  position: absolute;
  right: -20px;
  bottom: 30px;
  background: var(--green);
  color: var(--white);
  padding: 18px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(45, 74, 43, 0.3);
}
.author-photo-badge .badge-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.author-photo-badge .badge-text {
  display: block;
  font-size: 13px;
  opacity: 0.95;
  line-height: 1.2;
}

/* Контент */
.author-content .section-title {
  margin: 8px 0 4px;
}
.author-role {
  font-size: 17px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 24px;
}
.author-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}
.author-text strong {
  color: var(--graphite);
  font-weight: 700;
}

/* Факты */
.author-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid rgba(45, 74, 43, 0.12);
  border-bottom: 1px solid rgba(45, 74, 43, 0.12);
}
.fact-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.fact-label {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.4;
}

/* Цитата + CTA */
.author-sign {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.sign-text {
  /*flex: 1 1 280px;*/
  border-left: 3px solid var(--green);
  padding-left: 16px;
}
.sign-text p {
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--graphite);
  margin-bottom: 6px;
}
.sign-text span {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
}

/* Адаптив */
@media (max-width: 900px) {
  .author-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .author-photo-badge {
    right: 16px;
    bottom: 16px;
    padding: 14px 18px;
  }
  .author-photo-badge .badge-num { font-size: 28px; }
  .author-photo-badge .badge-text { font-size: 12px; }
  .author-facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .author-sign { flex-direction: column; align-items: stretch; }
  .author-sign .btn { width: 100%; text-align: center; }
}






.tg-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}
.tg-icon-mono {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn .tg-icon,
.btn .tg-icon-mono {
  width: 20px;
  height: 20px;
}
.mobile-bar .tg-icon,
.mobile-bar .tg-icon-mono {
  width: 22px;
  height: 22px;
  margin: 0;
}





/* ================= ПОРТФОЛИО ================= */
.portfolio {
  background: linear-gradient(180deg, var(--sand-light) 0%, var(--bg) 100%);
}
.portfolio-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
  align-items: start;
}
.portfolio-intro h2 {
  text-align: left;
  margin-bottom: 0;
}
.portfolio-intro p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.7;
}

/* Проект */
.project {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
  align-items: stretch;
}

/* Слайдер фото */
.project-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 480px;
  background: var(--gray-light);
}
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
}
.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: zoom-in;
}
.slider-slide.active { opacity: 1; }
.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--graphite);
  z-index: 5;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.slider-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.08); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 4;
}
.slider-dots {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active { background: var(--white); width: 24px; border-radius: 4px; }

/* Карточка информации */
.project-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.project-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
}
.project-specs {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 20px 30px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
}
.spec-label {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 4px;
}
.spec-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--graphite);
}
.project-desc {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Видео-блок */
.project-videos {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.video-thumb {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--graphite);
  transition: var(--transition);
  flex-shrink: 0;
}
.video-thumb:hover { transform: scale(1.05); box-shadow: var(--shadow-hover); }
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.video-thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 16px solid var(--white);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.video-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 14px 6px 6px;
  text-align: center;
}

.project-cta {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.project-cta .btn { /*flex: 1;*/ padding: 14px 18px; font-size: 15px; }

/* Лайтбокс */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox-content {
  max-width: 95%;
  max-height: 95vh;
  position: relative;
}
.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 92vh;
  display: block;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* Адаптив портфолио */
@media (max-width: 900px) {
  .portfolio-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .project { grid-template-columns: 1fr; gap: 0; margin-bottom: 30px; }
  .project-slider { min-height: 320px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .slider-track { min-height: 320px; }
  .project-info { border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 28px 24px; }
  .project-info h3 { font-size: 22px; }
  .project-specs { grid-template-columns: 1fr 1fr; gap: 16px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: -45px; right: 5px; font-size: 32px; }
}
@media (max-width: 480px) {
  .project-specs { grid-template-columns: 1fr; gap: 12px; }
  .project-cta { flex-direction: column; }
  .video-thumb { width: 80px; height: 80px; }
}


/* ================= ЮРИДИЧЕСКИЕ ССЫЛКИ И COOKIE ================= */
.legal-consent {
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
}

.legal-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
}

.legal-consent a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.popup-consent {
  text-align: left;
  margin: 4px 0 14px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}

.footer-legal a {
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal a:hover {
  color: var(--sand);
}

.cookie-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: min(360px, calc(100vw - 40px));
  padding: 16px;
  background: var(--white);
  color: var(--graphite);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cookie-notice.is-visible {
  display: flex;
}

.cookie-notice__text {
  font-size: 13px;
  line-height: 1.45;
}

.cookie-notice__text a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice__btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  align-self: flex-end;
}

.cookie-notice__btn:hover {
  background: var(--green-dark);
}

@media (max-width: 640px) {
  .cookie-notice {
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: min(340px, calc(100vw - 24px));
  }

  .cookie-notice__btn {
    width: 100%;
    align-self: stretch;
  }
}


/* ================= СТРАНИЦЫ ДОКУМЕНТОВ ================= */
.legal-page {
  padding: 48px 0 72px;
  background: var(--bg);
}

.legal-page .container {
  max-width: 860px;
}

.legal-page h1 {
  color: var(--green-dark);
  margin: 20px 0 24px;
}

.legal-page h2 {
  text-align: left;
  font-size: 22px;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-page p {
  margin-bottom: 14px;
  color: var(--graphite);
}

.legal-page a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}

.legal-note {
  margin-top: 32px;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: var(--sand-light);
  border-radius: 8px;
  font-size: 14px;
}

/* ================= ТЕЛЕФОН ПОД CTA И ИКОНКА СТУДИИ ================= */
.logo-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.footer h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-title-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex-shrink: 0;
}

.cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.cta-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 700;
  /*text-decoration: underline;*/
  text-underline-offset: 3px;
}

.cta-phone::before {
  content: '📞';
  margin-right: 6px;
  text-decoration: none;
}

.cta-phone-light {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.cta-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  text-align: center;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}


.cta-email-light {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.hero-ctas .cta-item {
  align-items: stretch;
}

.project-cta .cta-item {
  flex: 1;
}

.project-cta .cta-item .btn {
  width: 100%;
}

.offer-card > .cta-phone {
  margin-top: 10px;
}

.popup-box .cta-phone {
  margin: 10px 0 0;
}

@media (max-width: 480px) {
  .hero-ctas .cta-item,
  .project-cta .cta-item {
    width: 100%;
  }
}


/* =========================================================
   ПРЕМИУМ СТИЛИ, ЛАНДШАФТНАЯ СТУДИЯ
   Добавлено поверх текущей верстки без изменения логики сайта
   ========================================================= */
:root {
  --moss-deep: #1f3a2e;
  --moss: #3d5c47;
  --moss-light: #6b8a6e;
  --champagne: #c9b88c;
  --champagne-light: #f4ede0;
  --gold: #b08d57;
  --ink: #1a1a1a;
  --cream: #faf8f3;
  --gray-line: #e5e2dc;
  --shadow-sm: 0 2px 8px rgba(31, 58, 46, 0.06);
  --shadow: 0 10px 34px rgba(31, 58, 46, 0.09);
  --shadow-hover: 0 18px 54px rgba(31, 58, 46, 0.16);
  --shadow-deep: 0 28px 80px rgba(31, 58, 46, 0.22);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 22px;
  --transition: all 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* совместимость со старыми переменными */
  --green-dark: var(--moss-deep);
  --green: var(--moss);
  --green-light: var(--moss-light);
  --sand: var(--champagne);
  --sand-light: var(--champagne-light);
  --bg: var(--cream);
  --gray-light: var(--gray-line);
}

html { scroll-padding-top: 92px; }
body {
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--graphite);
  background:
    radial-gradient(circle at 10% 0%, rgba(201, 184, 140, 0.18), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, var(--cream) 44%, #f5efe2 100%);
  font-feature-settings: 'ss01', 'cv01', 'cv11';
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 58, 46, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 58, 46, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 75%);
}
.container { max-width: 1240px; padding: 0 28px; }
section { padding: 105px 0; position: relative; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--moss-deep);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(38px, 5.8vw, 72px); font-weight: 600; margin-bottom: 26px; }
h2 { font-size: clamp(32px, 4.2vw, 54px); margin-bottom: 18px; }
h3 { font-size: clamp(22px, 2.5vw, 30px); }
.section-subtitle {
  max-width: 760px;
  margin-bottom: 62px;
  color: rgba(44,44,44,.72);
  font-size: 17px;
  font-weight: 400;
}
.section-subtitle::after,
.portfolio-intro h2::after {
  content: '';
  display: block;
  width: 84px;
  height: 1px;
  margin: 28px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.portfolio-intro h2::after { margin-left: 0; }

/* кнопки */
.btn {
  border-radius: var(--radius-sm);
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: transform .75s ease;
}
.btn:hover::before { transform: translateX(110%); }
.btn-primary {
  background: linear-gradient(135deg, var(--moss-deep), var(--moss));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(31, 58, 46, .22);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--moss), var(--moss-deep)); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(31,58,46,.28); }
.btn-secondary {
  color: var(--moss-deep);
  border: 1px solid rgba(31,58,46,.34);
  background: rgba(255,255,255,.42);
}
.btn-secondary:hover { background: var(--moss-deep); color: var(--white); border-color: var(--moss-deep); }
.btn-tg { background: linear-gradient(135deg, #2AABEE, #229ED9); box-shadow: 0 10px 24px rgba(34,158,217,.24); }
.btn-lg { padding: 18px 38px; font-size: 14px; }

/* header */
.header {
  padding: 14px 0;
  background: rgba(250, 248, 243, .9);
  border-bottom: 1px solid rgba(201,184,140,.28);
  box-shadow: 0 10px 34px rgba(31,58,46,.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.logo {
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .01em;
}
.logo-icon {
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid rgba(31,58,46,.42);
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow-sm);
}
.header-nav { gap: 30px; }
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .025em;
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}
.header-nav a:hover::after { width: 100%; }
.header-phone, .header-email { color: var(--moss-deep); }
.header-email { font-size: 13px; opacity: .88; }

/* hero */
.hero {
  min-height: 92vh;
  padding: 90px 0;
  background:
    linear-gradient(90deg, rgba(17, 31, 24, .78) 0%, rgba(17, 31, 24, .58) 45%, rgba(17, 31, 24, .38) 100%),
    linear-gradient(180deg, rgba(31,58,46,.18), rgba(31,58,46,.62)),
    url('./hero.jpg') center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 18%, rgba(201,184,140,.22), transparent 30%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { max-width: 940px; color: var(--white); text-shadow: 0 4px 30px rgba(0,0,0,.2); }
.hero-overhead {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  margin-bottom: 28px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: var(--champagne-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero-overhead::before { content: ''; width: 24px; height: 1px; background: var(--champagne); }
.hero-subtitle {
  max-width: 760px;
  margin-bottom: 42px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic;
  line-height: 1.48;
  color: var(--champagne-light);
}
.hero-bullets { gap: 18px 24px; max-width: 880px; }
.hero-bullet {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.95);
}
.hero-bullet-icon { filter: saturate(.85); }
.hero-trust {
  right: 42px;
  bottom: 42px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  color: var(--moss-deep);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(201,184,140,.34);
}

/* карточки */
.pains, .steps, .portfolio { background: linear-gradient(180deg, var(--champagne-light), var(--cream)); }
.pain-card, .offer-card, .adv-card, .step-card, .case-card, .service-item, .faq-item, .project-info, .final-form, .popup-box, .quiz-box {
  border: 1px solid var(--gray-line);
  box-shadow: var(--shadow);
}
.pain-card, .offer-card, .adv-card, .step-card, .case-card, .service-item, .faq-item, .project-info, .final-form, .popup-box {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
}
.pain-card, .adv-card, .step-card { padding: 38px 30px; }
.pain-card:hover, .offer-card:hover, .adv-card:hover, .case-card:hover, .project-info:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(176,141,87,.55);
}
.pain-icon, .adv-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--champagne-light);
  border: 1px solid rgba(176,141,87,.28);
  font-size: 28px;
}
.pains-note, .steps-note, .quiz-bonus {
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}

/* offer */
.offer-grid { gap: 34px; }
.offer-card { padding: 48px 42px; overflow: visible; }
.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 42px;
  right: 42px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.offer-badge {
  border-radius: 0;
  padding: 7px 0;
  background: transparent !important;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.offer-list li { border-bottom: 1px solid var(--gray-line); padding: 14px 0; }
.offer-list .price, .package-price { color: var(--moss-deep); font-family: var(--font-serif); font-size: 18px; }
.package { border: 1px solid var(--gray-line); background: var(--cream); padding: 22px; }
.package:hover { background: var(--white); border-color: var(--gold); transform: translateX(5px); }
.package-name { font-family: var(--font-serif); font-size: 21px; }

/* quiz and forms */
.quiz, .final-cta, .numbers {
  background:
    radial-gradient(circle at 85% 0%, rgba(201,184,140,.20), transparent 30%),
    linear-gradient(135deg, var(--moss-deep), var(--moss));
}
.quiz::before, .final-cta::before, .numbers::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .35;
}
.quiz .container, .final-cta .container, .numbers .container { position: relative; z-index: 1; }
.quiz-box, .final-form, .popup-box { border-top: 4px solid var(--gold); }
.quiz-progress { height: 3px; border-radius: 0; }
.quiz-progress-bar { background: linear-gradient(90deg, var(--moss), var(--gold)); border-radius: 0; }
.quiz-counter { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.quiz-question { font-family: var(--font-serif); font-size: 30px; font-weight: 600; }
.quiz-option, .quiz-input, .final-form input, .popup-box input {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.quiz-option:hover, .quiz-option.selected { border-color: var(--moss-deep); background: var(--champagne-light); }
.quiz-option.selected { box-shadow: inset 3px 0 0 var(--gold); }
.quiz-checkbox input, .quiz-option input { accent-color: var(--moss); }
.legal-consent a { color: var(--moss-deep); }

/* advantages */
.advantages { background: linear-gradient(180deg, var(--cream), #fffdf8); }
.adv-card { border-top: 0; position: relative; }
.adv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* steps */
.step-card::before {
  background: var(--moss-deep);
  box-shadow: 0 10px 24px rgba(31,58,46,.22);
}
.step-card.highlight {
  background: linear-gradient(135deg, var(--moss-deep), var(--moss));
  border-color: rgba(201,184,140,.42);
}
.step-card.highlight::before { color: var(--moss-deep); background: var(--champagne-light); }

/* portfolio */
.portfolio-intro { align-items: center; }
.portfolio-intro p { font-size: 17px; color: rgba(44,44,44,.72); }
.project-slider {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(201,184,140,.35);
}
.slider-btn {
  background: rgba(250,248,243,.9);
  color: var(--moss-deep);
  border: 1px solid rgba(176,141,87,.28);
}
.slider-dot.active { background: var(--gold); }
.slider-counter { background: rgba(31,58,46,.78); border: 1px solid rgba(201,184,140,.28); }
.project-info { padding: 42px 36px; }
.project-specs { border-bottom: 1px solid var(--gray-line); }
.spec-label { letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-size: 10px; font-weight: 700; }
.video-thumb { border-radius: var(--radius-sm); border: 1px solid rgba(201,184,140,.35); }
.lightbox { background: rgba(12, 20, 15, .94); backdrop-filter: blur(8px); }

/* cases, accordions, numbers */
.case-img .case-label { border-radius: 2px; background: rgba(31,58,46,.82); letter-spacing: .1em; }
.service-toggle, .faq-question { font-family: var(--font-serif); font-size: 22px; }
.service-toggle::after, .faq-question::after { color: var(--gold); }
.number-item .num { font-family: var(--font-serif); font-weight: 700; color: var(--champagne); }
.number-item p { letter-spacing: .03em; }

/* author */
.section-author { background: linear-gradient(180deg, #fffdf8 0%, var(--champagne-light) 100%); }
.author-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-deep); border: 1px solid rgba(201,184,140,.35); }
.author-photo-badge { background: linear-gradient(135deg, var(--moss-deep), var(--moss)); border: 1px solid rgba(201,184,140,.38); }
.author-role { color: var(--gold); letter-spacing: .04em; }
.fact-num { font-family: var(--font-serif); color: var(--moss-deep); font-size: 34px; }
.sign-text { border-left-color: var(--gold); }

/* contacts, email, footer */
.cta-phone, .cta-email { color: var(--moss-deep); font-weight: 700; }
.cta-phone-light, .cta-email-light { color: var(--white); }
.footer {
  background: linear-gradient(135deg, #16271f, #243a30);
  border-top: 1px solid rgba(201,184,140,.2);
}
.footer h4 { font-family: var(--font-serif); font-size: 22px; }
.footer a:hover, .footer-legal a:hover { color: var(--champagne); }
.footer-bottom, .footer-legal { border-top-color: rgba(201,184,140,.16); }
.footer-title-icon { filter: brightness(1.3); }
.cookie-notice {
  border: 1px solid rgba(201,184,140,.38);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-deep);
}
.cookie-notice__btn { background: linear-gradient(135deg, var(--moss-deep), var(--moss)); }

/* mobile bar */
.mobile-bar {
  background: rgba(250,248,243,.96);
  border-top: 1px solid rgba(201,184,140,.32);
  box-shadow: 0 -10px 32px rgba(31,58,46,.14);
  backdrop-filter: blur(14px);
}
.mobile-bar a { border-radius: 12px; font-size: 11px; letter-spacing: .02em; }
.mobile-bar .mb-call { background: linear-gradient(135deg, var(--moss), var(--moss-deep)); }
.mobile-bar .mb-email { background: linear-gradient(135deg, var(--moss-deep), #16271f); }
.mobile-bar .mb-quiz { background: linear-gradient(135deg, var(--gold), #947747); }

/* accessibility and focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .header-contacts { gap: 10px; }
  .header-email { display: none; }
  .header-nav { gap: 18px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 78px; }
  section { padding: 68px 0; }
  .container { padding: 0 20px; }
  .header { padding: 10px 0; }
  .logo { font-size: 18px; }
  .logo-icon { width: 36px; height: 36px; padding: 7px; }
  .hero { min-height: auto; padding: 64px 0 80px; }
  .hero-subtitle { font-size: 20px; }
  .hero-trust { border-radius: var(--radius-sm); }
  .offer-card, .project-info, .quiz-box, .final-form { padding: 32px 24px; }
  .project-slider { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .project-info { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .portfolio-intro h2::after { margin-left: auto; }
}
@media (max-width: 520px) {
  h1 { font-size: clamp(34px, 10vw, 48px); }
  h2 { font-size: clamp(30px, 8vw, 42px); }
  .hero-overhead { font-size: 10px; letter-spacing: .16em; padding: 8px 12px; }
  .hero-overhead::before { width: 16px; }
  .btn { width: 100%; padding: 15px 18px; }
  .header-contacts .btn { width: auto; }
  .hero-bullet { font-size: 14px; }
  .pain-card, .adv-card, .step-card { padding: 30px 22px; }
  .offer-list li, .package-header { /* flex-direction: column; */ align-items: flex-start; gap: 6px; }
  .quiz-question { font-size: 25px; }
  .service-toggle, .faq-question { font-size: 19px; }
}


/* ================= ОТКРЫТЫЙ БЛОК УСЛУГ ПОД РАСЧИСТКУ ================= */
.services-open {
  background: linear-gradient(180deg, var(--bg) 0%, var(--champagne-light) 100%);
}

.services-open .section-subtitle {
  max-width: 760px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 44px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  min-height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--moss-deep), var(--gold));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--champagne);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-main {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-color: rgba(176, 141, 87, 0.35);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--champagne-light);
  margin-bottom: 22px;
  font-size: 28px;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.service-price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--gray-line);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--moss-deep);
}

.services-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.services-cta span,
.cases-cta-label {
  display: inline-block;
  margin-top: 14px;
  color: var(--gray);
  font-size: 15px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 34px;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 28px 22px;
  }
}


/* ================= ПРЕМИАЛЬНЫЕ SVG ИКОНКИ ВМЕСТО ЭМОДЗИ ================= */
.ui-icon,
.inline-icon,
.meta-icon,
.heading-icon,
.btn-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.16em;
  flex-shrink: 0;
}

.inline-icon,
.meta-icon,
.btn-icon {
  margin-right: 7px;
}

.heading-icon {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  color: var(--gold);
  vertical-align: -0.18em;
}

.hero-bullet-icon,
.pain-icon,
.adv-icon,
.service-card-icon,
.quiz-success-icon {
  color: var(--gold);
}

.hero-bullet-icon .ui-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.45;
}

.pain-icon .ui-icon,
.adv-icon .ui-icon,
.service-card-icon .ui-icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.45;
}

.service-card-icon .ui-icon {
  width: 34px;
  height: 34px;
}

.quiz-success-icon .ui-icon {
  width: 58px;
  height: 58px;
  stroke-width: 1.25;
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.offer-badge .ui-icon {
  width: 15px;
  height: 15px;
}

.offer-badge-dark {
  background: transparent !important;
  color: var(--gold);
}

.package-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.package-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.12);
}

.package-dot-standard { background: var(--moss-light); }
.package-dot-business { background: var(--moss); }
.package-dot-luxe { background: var(--gold); }

.case-meta span,
.case-footer span,
.footer-contact-line,
.alt-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-icon,
.footer-contact-line .inline-icon,
.alt-contacts .inline-icon {
  color: var(--gold);
  stroke-width: 1.5;
}

.steps-note {
  /* display: flex; */
  /* align-items: flex-start; */
  justify-content: center;
  gap: 10px;
}

.steps-note .inline-icon {
  color: var(--gold);
  width: 22px;
  height: 22px;
  margin-top: 2px;
  margin-right: 0;
}

.quiz-bonus {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.quiz-bonus .inline-icon {
  color: var(--gold);
  width: 22px;
  height: 22px;
  margin-right: 0;
  margin-top: 1px;
}

.cta-email .inline-icon,
.cta-phone .inline-icon {
  color: currentColor;
}

.cta-phone::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-right: 6px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2A19.8 19.8 0 0 1 3 5.2 2 2 0 0 1 5.1 3h3a2 2 0 0 1 2 1.7c.1.9.4 1.9.7 2.8a2 2 0 0 1-.5 2.1L9.1 10.9a16 16 0 0 0 4 4l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2.1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2A19.8 19.8 0 0 1 3 5.2 2 2 0 0 1 5.1 3h3a2 2 0 0 1 2 1.7c.1.9.4 1.9.7 2.8a2 2 0 0 1-.5 2.1L9.1 10.9a16 16 0 0 0 4 4l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.popup-box h3,
.offer-card h3,
.step-card.highlight h3 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.popup-box h3 {
  justify-content: center;
}

@media (max-width: 640px) {
  .steps-note {
    text-align: left;
    justify-content: flex-start;
  }
}


/* ================= ЛОГОТИПЫ КОНЦЕПЦИЯ 3 ================= */
.logo.logo-header {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.logo-horizontal {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
}

.header .logo-horizontal {
  max-width: 360px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.footer-brand {
  display: inline-block;
  max-width: 240px;
}

.logo-vertical {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.14));
}

.header-inner {
  gap: 24px;
}

.header-nav {
  flex: 1 1 auto;
  justify-content: center;
}

.header-contacts {
  flex-shrink: 0;
}

.footer-brand-col p {
  max-width: 320px;
}

@media (max-width: 1180px) {
  .header .logo-horizontal {
    max-width: 300px;
  }
}

@media (max-width: 900px) {
  .header .logo-horizontal {
    max-width: 210px;
  }

  .footer-brand {
    max-width: 200px;
  }
}

@media (max-width: 520px) {
  .header .logo-horizontal {
    max-width: 175px;
  }

  .footer-brand-col {
    align-items: center;
    text-align: center;
  }

  .footer-brand-col p {
    max-width: 100%;
  }
}


/* ================= ФУТЕР ПОД ГЕРБ, СТАТУСНАЯ ВЕРСИЯ ================= */
.footer {
  position: relative;
  padding: 78px 0 28px;
  background:
    radial-gradient(circle at top center, rgba(201,184,140,.14), transparent 26%),
    linear-gradient(135deg, #122019 0%, #1a2d24 46%, #22382d 100%);
  border-top: 1px solid rgba(201,184,140,.34);
}

.footer::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(240px, calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,184,140,.95), transparent);
}

.footer-grid {
  grid-template-columns: 1.25fr .95fr .8fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 36px;
}

.footer-grid > div:not(.footer-brand-col) {
  padding-top: 20px;
}

.footer-brand-col {
  position: relative;
  padding: 30px 28px;
  border-radius: 24px;
  border: 1px solid rgba(201,184,140,.24);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  box-shadow: 0 20px 48px rgba(0,0,0,.18);
  overflow: hidden;
}

.footer-brand-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(201,184,140,.18), transparent 34%);
  pointer-events: none;
}

.footer-brand {
  max-width: 230px;
  margin-bottom: 4px;
}

.logo-vertical {
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.18));
}

.footer-brand-col p {
  max-width: 360px;
  color: rgba(244, 239, 226, .82);
  line-height: 1.75;
}

.footer h4 {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,184,140,.14);
  color: var(--champagne-light);
  font-size: 20px;
  letter-spacing: .02em;
}

.footer p, .footer a {
  color: rgba(244,239,226,.72);
}

.footer-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.footer a:hover, .footer-legal a:hover {
  color: var(--champagne-light);
}

.footer-bottom {
  padding-top: 18px;
  color: rgba(244,239,226,.54);
}

.footer-legal {
  padding-top: 14px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid > div:not(.footer-brand-col) {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .footer {
    padding: 66px 0 24px;
  }

  .footer-brand-col {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .footer-brand {
    max-width: 185px;
  }
}


/* ================= ФУТЕР, УТОЧНЕННАЯ КОМПОЗИЦИЯ ================= */
.footer {
  background:
    linear-gradient(180deg, rgba(201,184,140,.08), transparent 48px),
    linear-gradient(135deg, #102019 0%, #183126 52%, #20392d 100%);
  padding: 72px 0 28px;
}

.footer::before {
  top: 18px;
  width: min(180px, calc(100% - 64px));
  opacity: .9;
}

.footer-grid {
  grid-template-columns: minmax(300px, 360px) minmax(280px, 1fr) minmax(220px, .9fr);
  gap: 44px;
  margin-bottom: 34px;
}

.footer-grid > div:not(.footer-brand-col) {
  padding-top: 8px;
}

.footer-brand-col {
  gap: 14px;
  max-width: 360px;
  padding: 22px 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(201,184,140,.42);
  background: linear-gradient(180deg, #f7f2e8 0%, #eee4d0 100%);
  box-shadow: 0 18px 44px rgba(0,0,0,.16);
}

.footer-brand-col::after {
  background: radial-gradient(circle at top right, rgba(201,184,140,.16), transparent 30%);
}

.footer-brand {
  max-width: 150px;
  margin: 0 0 6px;
}

.logo-vertical {
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.10));
}

.footer-brand-col p {
  max-width: none;
  color: #33473b;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

.footer h4 {
  color: rgba(255,248,233,.96);
  font-size: 21px;
  margin-bottom: 16px;
  padding-bottom: 10px;
}

.footer p,
.footer a {
  color: rgba(255,255,255,.84);
}

.footer-contact-line {
  gap: 12px;
  margin-bottom: 8px;
}

.footer-contact-line .inline-icon,
.footer p > .inline-icon {
  color: var(--gold);
}

.footer p br + a,
.footer p br + span {
  display: inline-block;
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 16px;
  color: rgba(255,255,255,.62);
}

.footer-legal a {
  color: rgba(255,255,255,.78);
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: minmax(260px, 320px) 1fr 1fr;
    gap: 30px;
  }

  .footer-brand-col {
    max-width: 320px;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand-col {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .footer {
    padding: 64px 0 24px;
  }

  .footer-brand-col {
    padding: 20px 18px 22px;
  }

  .footer-brand {
    max-width: 132px;
    margin: 0 auto 6px;
  }

  .footer-brand-col p {
    text-align: center;
  }
}


/* ================= ТОЧЕЧНЫЕ ПРАВКИ 23.05 ================= */
.footer-brand-col {
  max-width: 200px;
}

.project-videos {
  gap: 5px;
}

.step-card h3,
.step-card.highlight h3 {
  font-size: 25px;
}

.adv-card h3 {
  font-size: 25px;
}

.offer-list .price,
.package-price {
  font-size: 20px;
}

@media (max-width: 900px) {
  .header-inner {
    justify-content: center;
    position: relative;
  }

  .header .logo-header {
    margin: 0 auto;
  }

  .header-contacts {
    display: none;
  }
}


/* ================= ШАПКА, ПЕРЕОРГАНИЗАЦИЯ МЕНЮ И КОНТАКТОВ ================= */
.header-inner {
  gap: 22px;
}

.header .logo-horizontal {
  max-width: 330px;
}

.header-nav {
  gap: 24px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.header-nav a {
  white-space: nowrap;
  line-height: 1.2;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-contact-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 145px;
}

.header-contact-stack .header-phone {
  font-size: 18px;
  line-height: 1.15;
}

.header-contact-stack .header-email {
  font-size: 12px;
  line-height: 1.2;
  opacity: .82;
}

.header-calc-btn {
  min-width: 150px;
  padding-left: 26px;
  padding-right: 26px;
}

@media (max-width: 1240px) {
  .header .logo-horizontal {
    max-width: 300px;
  }

  .header-nav {
    gap: 20px;
  }

  .header-calc-btn {
    min-width: 136px;
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 1120px) {
  .header .logo-horizontal {
    max-width: 260px;
  }

  .header-nav {
    gap: 16px;
  }

  .header-contact-stack .header-phone {
    font-size: 16px;
  }

  .header-calc-btn {
    min-width: 124px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 900px) {
  .header .logo-horizontal {
    max-width: 210px;
  }

  .header-contacts {
    display: none;
  }

  .header-inner {
    justify-content: center;
  }
}


/* ================= ФУТЕР В СТИЛЕ РЕФЕРЕНСА ================= */
.footer {
  position: relative;
  padding: 76px 0 26px;
  background:
    linear-gradient(180deg, rgba(198,166,92,.06) 0%, rgba(198,166,92,0) 56px),
    radial-gradient(circle at 50% 0%, rgba(198,166,92,.10), transparent 220px),
    linear-gradient(90deg, #061a13 0%, #0a261b 38%, #103624 60%, #0a251a 100%);
  border-top: 1px solid rgba(198,166,92,.22);
}

.footer::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 236px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,166,92,.95), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 465px 1fr 300px;
  gap: 34px;
  align-items: start;
  margin-bottom: 34px;
}

.footer-brand-col {
  max-width: 300px;
  /* min-height: 506px; */
  padding: 28px 28px 30px;
  border-radius: 28px;
  border: 1px solid rgba(198,166,92,.18);
  background: linear-gradient(90deg, rgba(16,39,30,.78), rgba(41,60,47,.50));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(2px);
  gap: 18px;
  align-items: flex-start;
}

.footer-brand-col::after {
  display: none;
}

.footer-brand {
  display: block;
  max-width: 238px;
  margin: 0 auto 0 6px;
}

.logo-vertical {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.08));
}

.footer-brand-col p {
  max-width: 320px;
  margin-top: 2px;
  color: rgba(244,239,226,.82);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}

.footer-grid > div:not(.footer-brand-col) {
  padding-top: 28px;
}

.footer h4 {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(198,166,92,.16);
  color: rgba(255,247,228,.94);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
}

.footer p,
.footer a {
  color: rgba(244,239,226,.86);
}

.footer a {
  text-decoration: none;
}

.footer-contact-line,
.footer p > .tg-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: rgba(244,239,226,.86);
}

.footer-contact-line .inline-icon,
.footer p > .inline-icon,
.footer p > .tg-icon {
  color: rgba(198,166,92,.96);
}

.footer-contact-line a,
.footer p > a {
  color: rgba(244,239,226,.86);
}

.footer p br {
  line-height: 1.1;
}

.footer-bottom {
  border-top: 1px solid rgba(198,166,92,.12);
  padding-top: 18px;
  color: rgba(244,239,226,.62);
}

.footer-legal {
  border-top: 1px solid rgba(198,166,92,.12);
  padding-top: 18px;
}

.footer-legal a {
  color: rgba(244,239,226,.78);
}

@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: minmax(340px, 420px) 1fr 240px;
    gap: 28px;
  }

  .footer-brand-col {
    max-width: 300px;
    /* min-height: 470px; */
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid > div:not(.footer-brand-col) {
    padding-top: 0;
  }

  .footer-brand-col {
    max-width: 100%;
    min-height: auto;
    padding: 24px 22px;
  }

  .footer-brand {
    max-width: 200px;
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .footer {
    padding: 64px 0 24px;
  }

  .footer::before {
    width: 170px;
  }

  .footer-brand-col {
    border-radius: 22px;
    padding: 22px 18px;
  }

  .footer-brand {
    max-width: 170px;
    margin: 0 auto;
  }

  .footer-brand-col p {
    max-width: 100%;
    text-align: center;
  }
}


/* ================= ФУТЕР, ПРАВКИ ОПИСАНИЯ И TELEGRAM ================= */
.footer-brand-col {
  max-width: 300px;
}

.footer-brand-col p {
  display: none;
}

.footer-description {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(244,239,226,.72);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

.footer-tg-line {
  color: rgba(244,239,226,.86);
}

.footer-tg-icon {
  color: rgba(198,166,92,.96);
  fill: currentColor;
  stroke: none;
  width: 18px;
  height: 18px;
  padding: 3px;
  border: 1px solid rgba(198,166,92,.42);
  border-radius: 50%;
  background: rgba(198,166,92,.08);
}

@media (max-width: 900px) {
  .footer-brand-col {
    max-width: 300px;
  }
}

@media (max-width: 520px) {
  .footer-brand-col {
    max-width: 100%;
  }

  .footer-description {
    text-align: center;
  }
}


/* ================= ФИКС МОБИЛЬНОЙ ПАНЕЛИ, БЕЗ ГОРИЗОНТАЛЬНОЙ ПРОКРУТКИ ================= */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

.mobile-bar {
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  padding-left: max(4px, env(safe-area-inset-left));
  padding-right: max(4px, env(safe-area-inset-right));
  gap: 4px;
}

.mobile-bar a {
  flex: 1 1 0;
  min-width: 0;
  max-width: 25%;
  padding-left: 2px;
  padding-right: 2px;
  overflow: hidden;
}

.mobile-bar a span {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-bar a svg,
.mobile-bar .tg-icon,
.mobile-bar .tg-icon-mono {
  max-width: 20px;
  max-height: 20px;
  margin: 0;
}

@media (max-width: 360px) {
  .mobile-bar {
    gap: 3px;
    padding-left: 3px;
    padding-right: 3px;
  }

  .mobile-bar a {
    font-size: 10px;
    padding-left: 1px;
    padding-right: 1px;
  }
}


/* ================= ОТКЛЮЧЕНИЕ ЗАКРЕПЛЕНИЯ ШАПКИ ================= */
.header {
  position: relative !important;
  top: auto !important;
}

@media (max-width: 900px) {
  .header {
    position: relative !important;
    top: auto !important;
  }
}


/* ================= ФИНАЛЬНЫЕ ПРАВКИ: МОБИЛЬНЫЙ БЛОК, КЕЙСЫ, TELEGRAM ================= */
.step-card h3 {
  font-size: 25px;
}

.adv-card h3 {
  font-size: 25px;
}

.case-body h3 {
  font-size: 22px;
}

.tg-icon {
  color: var(--gold);
  fill: currentColor;
  stroke: none;
}

.btn-tg .tg-icon {
  color: var(--white);
}

@media (max-width: 900px) {
  .author-facts {
    justify-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .author-facts .fact {
    max-width: 320px;
  }
}


/* ================= ПРАВКА HERO: УБРАНО НАЛОЖЕНИЕ ПЛАШКИ ================= */
.hero-trust {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  max-width: fit-content;
}

.hero .container {
  padding-bottom: 0;
}

@media (max-width: 640px) {
  .hero-trust {
    max-width: 100%;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
