:root {
  --bg:        #faf6f0;
  --bg-warm:   #f3eadc;
  --ink:       #2a1e14;
  --ink-soft:  #5a4a3a;
  --accent:    #c96e4a;
  --accent-d:  #a85536;
  --olive:     #8a9a5b;
  --line:      #e5d8c5;
  --radius:    20px;
  --radius-sm: 12px;
  --shadow:    0 10px 40px rgba(120, 80, 50, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .btn, .contact-btn, label { font-family: 'Inter', -apple-system, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 640px; }

/* HERO */
.hero { background: linear-gradient(180deg, #f7efe3 0%, var(--bg) 100%); padding: 80px 0 100px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.photo-frame { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-warm); box-shadow: var(--shadow); position: relative; display: flex; align-items: center; justify-content: center; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-frame.empty .photo-placeholder { display: block; }
.photo-placeholder { display: none; text-align: center; color: var(--ink-soft); font-size: 48px; line-height: 1.2; }
.photo-placeholder small { font-size: 14px; font-family: 'Inter', sans-serif; opacity: 0.7; }
.hero-text h1 { font-size: 42px; line-height: 1.2; font-weight: 600; color: var(--ink); margin-bottom: 24px; letter-spacing: -0.5px; }
.hero-sub { font-size: 20px; color: var(--ink-soft); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* КНОПКИ */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; border-radius: var(--radius-sm); font-size: 17px; font-weight: 600; cursor: pointer; border: none; transition: transform .15s, box-shadow .2s, background .2s; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(201, 110, 74, 0.3); }
.btn-primary:hover { background: var(--accent-d); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(168, 85, 54, 0.35); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { background: var(--bg-warm); color: var(--ink); border-color: var(--ink-soft); }
.btn-block { width: 100%; }

/* СЕКЦИИ */
.section { padding: 90px 0; }
.section-warm { background: var(--bg-warm); }
.section h2 { font-size: 34px; font-weight: 600; margin-bottom: 40px; letter-spacing: -0.3px; color: var(--ink); }
.section-lead { font-size: 19px; color: var(--ink-soft); margin-bottom: 40px; max-width: 720px; }

/* ПОЧЕМУ Я */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; color: var(--ink); }
.about-text strong { color: var(--accent-d); }
.about-note { font-style: italic; color: var(--ink-soft); border-left: 3px solid var(--olive); padding-left: 20px; margin-top: 32px; }
.about-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow); position: relative; display: flex; align-items: center; justify-content: center; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about-photo.empty .photo-placeholder { display: block; }

/* ПРИНЦИПЫ */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.principle { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); transition: transform .2s; }
.principle:hover { transform: translateY(-4px); }
.principle-icon { font-size: 36px; margin-bottom: 16px; }
.principle h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.principle p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ДОКУМЕНТЫ */
.docs-list { display: flex; flex-direction: column; gap: 60px; max-width: 800px; margin: 0 auto; }
.doc-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s; }
.doc-card:hover { transform: translateY(-4px); }
.doc-img-link { display: block; background: var(--bg-warm); }
.doc-img-link img { width: 100%; height: auto; display: block; transition: opacity .2s; }
.doc-img-link:hover img { opacity: 0.94; }
.doc-caption { padding: 28px 32px 32px; }
.doc-caption h3 { font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 600; color: var(--accent-d); margin-bottom: 12px; line-height: 1.35; }
.doc-caption p { font-size: 17px; color: var(--ink); line-height: 1.65; font-style: italic; }

/* ОТЗЫВЫ */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
blockquote { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); font-style: italic; font-size: 17px; line-height: 1.7; color: var(--ink); position: relative; }
blockquote::before { content: '“'; font-size: 60px; color: var(--accent); opacity: 0.3; position: absolute; top: 8px; left: 20px; font-family: Georgia, serif; line-height: 1; }
blockquote cite { display: block; margin-top: 16px; font-style: normal; font-size: 14px; color: var(--ink-soft); font-family: 'Inter', sans-serif; }

/* ФОРМА */
.section-form { background: var(--bg-warm); }
.lead-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink); }
.field .opt { color: var(--ink-soft); font-weight: 400; font-size: 14px; }
.field input, .field textarea { font-family: inherit; font-size: 17px; padding: 14px 18px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; width: 100%; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201, 110, 74, 0.1); }
.field input.error { border-color: #d04949; }
.form-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 4px; font-family: 'Inter', sans-serif; }
.form-success { padding: 20px; background: #e8f0d8; border-radius: var(--radius-sm); color: #4a5a1f; font-family: 'Inter', sans-serif; text-align: center; }

/* ФУТЕР */
.footer { background: var(--ink); color: #e8dcc8; padding: 70px 0 40px; text-align: center; }
.footer-title { color: #fff; font-size: 28px; font-weight: 600; margin-bottom: 12px; }
.footer-lead { color: #b8a88c; margin-bottom: 32px; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 40px; }
.contact-btn { display: inline-flex; align-items: center; padding: 14px 26px; background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-sm); color: #fff; font-weight: 500; font-size: 16px; transition: background .2s, border-color .2s, transform .15s; }
.contact-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: #fff; transform: translateY(-2px); }
.footer-copy { font-size: 14px; color: #8a7a60; font-family: 'Inter', sans-serif; }
.footer-copy a { color: #b8a88c; }
.footer-copy a:hover { color: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.section, .hero { animation: fadeUp 0.6s ease both; }

@media (max-width: 820px) {
  .hero-inner, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 50px 0 70px; }
  .hero-text h1 { font-size: 30px; }
  .hero-sub { font-size: 18px; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 26px; }
  .photo-frame, .about-photo { max-width: 320px; margin: 0 auto; }
  .btn { padding: 14px 24px; font-size: 16px; }
  .docs-list { gap: 40px; }
  .doc-caption { padding: 20px 22px 24px; }
  .doc-caption h3 { font-size: 17px; }
  .doc-caption p { font-size: 16px; }
}

/* -------- СЕМЬЯ -------- */
.section-family { background: var(--bg); }


/* ===== Меню в hero ===== */
.hero-nav {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  margin-bottom: 24px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.hero-nav a {
  color: var(--ink-soft); text-decoration: none;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.hero-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 720px) {
  .hero-nav { font-size: 14px; gap: 4px 16px; margin-bottom: 18px; padding-bottom: 14px; }
}

/* ===== Отзывы — звёзды и подпись ===== */
.review-stars { color: #e8a417; font-size: 18px; letter-spacing: 2px; margin-bottom: 12px; }
blockquote cite { display: flex; flex-direction: column; gap: 2px; }
blockquote cite b { color: var(--ink); font-weight: 600; }
blockquote cite span { color: var(--ink-soft); font-size: 13px; }

/* ═══════ ЕДИНАЯ СИММЕТРИЯ ВСЕХ СЕКЦИЙ ═══════ */
/* Всё внутри .container — прижато к левому краю */

.section h2 {
  font-size: 34px;
  margin: 0 0 24px 0;
  max-width: 900px;
}

.section-lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 40px 0;
  max-width: 900px;
  text-align: left;
}

.photo-frame, .about-photo { width: 100%; }

.family-photo-wrap {
  max-width: 900px;
  margin: 0;
}
.family-photo-wrap img {
  max-height: 520px;
  object-fit: cover;
  object-position: center 40%;
  width: 100%;
  height: auto;
  display: block;
}

.docs-list {
  max-width: 900px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.reviews {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.lead-form {
  max-width: 640px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 820px) {
  .section h2 { font-size: 26px; }
  .section-lead { font-size: 17px; }
  .docs-list { gap: 40px; }
  .family-photo-wrap img { max-height: none; }
}


/* ═══════════════════════════════════════════════════════════
   Как с вами связаться — 5 цветных кнопок-бренда
   Цвета — официальные. При наведении — темнее на ~15%.
   Активная — с белой обводкой. Работает во всех браузерах.
   ═══════════════════════════════════════════════════════════ */







/* Базовая кнопка */








/* Цвета брендов */
   /* 📞 Позвонить — терракота */


     /* 💬 WhatsApp */


     /* ✈️ Telegram */


     /* 🅱️ ВКонтакте */


    /* 🅼 MAX */


@media (max-width: 720px) {
  
  
}

/* ═══════════════════════════════════════════════════════════
   Как с вами связаться — современные кнопки-мессенджеры
   Градиенты, тени, скругления, анимации. 2026
   ═══════════════════════════════════════════════════════════ */

.field-contact > label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px 0;
}

.field-hint {
  font-size: 14px;
  color: var(--ink-soft);
  margin: -4px 0 10px 0;
  line-height: 1.5;
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Базовая кнопка */
.contact-opt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: #999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all .2s ease;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.contact-opt::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left .5s;
}

.contact-opt:hover::before {
  left: 100%;
}

.contact-opt input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: #fff;
  cursor: pointer;
  filter: brightness(2.5) saturate(0);
}
.contact-opt.is-selected input[type="radio"] {
  accent-color: #000;
  filter: brightness(0);
}

.contact-opt span {
  display: inline;
  white-space: nowrap;
}

.contact-opt:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.contact-opt.is-selected {
  outline: 3px solid #000;
  outline-offset: 2px;
  transform: translateY(-2px);
}

/* Цвета брендов */
.contact-opt--call {
  background: linear-gradient(135deg, #c96e4a, #a8553a);
}
.contact-opt--call:hover {
  background: linear-gradient(135deg, #a8553a, #8b4429);
}

.contact-opt--wa {
  background: linear-gradient(135deg, #25D366, #1fa855);
}
.contact-opt--wa:hover {
  background: linear-gradient(135deg, #1fa855, #188f45);
}

.contact-opt--tg {
  background: linear-gradient(135deg, #229ED9, #1b7fb0);
}
.contact-opt--tg:hover {
  background: linear-gradient(135deg, #1b7fb0, #166a94);
}

.contact-opt--vk {
  background: linear-gradient(135deg, #0077FF, #005fcc);
}
.contact-opt--vk:hover {
  background: linear-gradient(135deg, #005fcc, #004aa3);
}

.contact-opt--max {
  background: linear-gradient(135deg, #7B4DFF, #6038cc);
}
.contact-opt--max:hover {
  background: linear-gradient(135deg, #6038cc, #4e2eb3);
}

@media (max-width: 720px) {
  .contact-options { gap: 8px; }
  .contact-opt { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
}


/* ═══ Согласие на обработку ПД ═══ */
.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color .15s;
  margin-top: 8px;
}
.consent-field:hover { border-color: var(--ink-soft); }
.consent-field.error {
  border-color: #d04949;
  background: #fff5f5;
}
.consent-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 2px 0 0 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-field span { display: inline; }
.consent-field a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.consent-field a:hover { color: var(--accent-d); }
.form-note--error {
  color: #d04949 !important;
  font-weight: 500;
  margin-top: 6px;
}
