/* Главная страница: навигатор, первая встреча, мини-тест, форма записи. Цвета — из style.css. */
:root {
  --gold: #C59E6E;
  --gold-light: #CEB08A;
  --ink: #0D0D0D;
}

/* Hero */
.hero-v3 { padding: 56px 0 72px; }
.hero-v3 .hero-title { font-size: 2.6rem; }
.hero-v3 .hero-lead { margin-bottom: 22px; }
.hero-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-pills li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-full);
  background: var(--bg-card); border: 1px solid var(--border-color);
  font-size: 0.9rem; font-weight: 600; color: var(--primary); line-height: 1.3;
}
.hero-pills li span { font-weight: 400; color: var(--text-muted); }
.hero-pills svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.hero-note { margin-top: 14px; font-size: 0.88rem; color: var(--text-light); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); color: var(--ink); }
.btn-block { width: 100%; padding: 14px; }

.section-tight { padding: 0 0 80px; }
.section-more { text-align: center; margin-top: 28px; font-weight: 600; }

/* Навигатор */
.nav-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.nav-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.nav-card:hover, .nav-card.is-open { border-color: var(--gold); box-shadow: var(--shadow-md); }
.nav-card-head {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 20px; background: none; border: 0; cursor: pointer; font: inherit; color: var(--primary);
}
.nav-card-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.nav-card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-card-title { flex: 1; font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.nav-card-arrow { flex: none; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.nav-card.is-open .nav-card-arrow { transform: rotate(45deg); }
.nav-card-body { padding: 0 20px 20px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; }
.nav-card-body p { margin-bottom: 10px; }
.nav-card-body .btn { margin-top: 6px; }
.nav-card-other { padding: 20px; background: transparent; border-style: dashed; box-shadow: none; }
.nav-card-other .nav-card-title { display: block; margin-bottom: 6px; color: var(--primary); }
.nav-card-other p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 12px; }

/* Первая встреча */
.meeting-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md);
}
.step-num {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: Georgia, serif;
}
.step-title { font-size: 1.05rem; color: var(--primary); margin-bottom: 4px; }
.step p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.6; }
.video-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--ink); }
.video-card img, .video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 24px; text-align: center; background: linear-gradient(180deg, rgba(13,13,13,0) 30%, rgba(13,13,13,.82) 100%);
}
.video-card-play {
  width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold-light); background: rgba(13,13,13,.45);
  display: flex; align-items: center; justify-content: center; margin-bottom: auto; margin-top: auto;
}
.video-card-play svg { width: 26px; height: 26px; fill: var(--gold-light); margin-left: 3px; }
.video-card-title { color: #FFF8EE; font-weight: 600; font-size: 1rem; }

/* Мини-тест */
.quiz {
  max-width: 760px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 40px 44px;
}
.quiz-head { text-align: center; margin-bottom: 22px; }
.quiz-head .section-title { font-size: 1.9rem; margin-bottom: 8px; }
.quiz-progress { height: 4px; background: var(--border-subtle); border-radius: 4px; overflow: hidden; margin-bottom: 26px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.quiz-count { font-size: 0.82rem; color: var(--text-light); margin-bottom: 6px; }
.quiz-q { font-family: Georgia, serif; font-size: 1.35rem; color: var(--primary); margin-bottom: 18px; line-height: 1.35; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  text-align: left; padding: 14px 18px; border-radius: var(--radius-md); border: 1px solid var(--border-color);
  background: var(--bg-page); font: inherit; font-size: 0.97rem; color: var(--text-main); cursor: pointer; transition: all .15s;
}
.quiz-option:hover, .quiz-option:focus-visible { border-color: var(--gold); background: #fff; outline: none; }
.quiz-option.is-chosen { border-color: var(--accent); background: var(--accent-light); }
.quiz-nav { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.quiz-back { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; }
.quiz-back[hidden] { display: none; }
.quiz-result { text-align: center; }
.quiz-result-label { display: inline-block; padding: 6px 14px; border-radius: var(--radius-full); background: var(--accent-light); color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 14px; }
.quiz-result h3 { font-family: Georgia, serif; font-size: 1.5rem; color: var(--primary); margin-bottom: 12px; }
.quiz-result p { color: var(--text-muted); margin: 0 auto 12px; max-width: 600px; }
.quiz-result .quiz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.quiz-disclaimer { font-size: 0.8rem; color: var(--text-light); margin-top: 18px !important; }
.quiz-noscript { text-align: center; color: var(--text-muted); }

/* Сертификаты */
.certs-head { text-align: center; max-width: 640px; margin: 0 auto 22px; color: var(--text-muted); }
.certs-title { font-family: Georgia, serif; font-size: 1.5rem; color: var(--primary); margin-bottom: 6px; }
.certs-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cert-thumb {
  width: 100%; height: 200px; object-fit: contain; background: var(--bg-card); padding: 6px;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: zoom-in; transition: border-color .2s, transform .2s;
}
.cert-thumb:hover { border-color: var(--gold); transform: translateY(-2px); }
.certs-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

/* Блог */
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.article-tags span { font-size: 0.75rem; color: var(--text-muted); background: var(--bg-page); border: 1px solid var(--border-subtle); padding: 2px 8px; border-radius: var(--radius-full); }
.blog-footer { text-align: center; margin-top: 32px; }
.tg-invite {
  margin-top: 44px; display: flex; align-items: center; gap: 22px; padding: 28px 32px;
  background: var(--ink); color: #CBCBCB; border-radius: var(--radius-lg);
}
.tg-invite-icon { flex: none; width: 60px; height: 60px; border-radius: 50%; background: rgba(206,176,138,.12); color: var(--gold-light); display: flex; align-items: center; justify-content: center; }
.tg-invite-text { flex: 1; }
.tg-invite-text h3 { color: var(--gold-light); font-family: Georgia, serif; font-size: 1.35rem; margin-bottom: 4px; }
.tg-invite-text p { font-size: 0.93rem; }

/* Форма записи */
.booking-grid { align-items: start; }
.quick-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.qc-btn {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: var(--radius-full); font-weight: 600; font-size: 0.92rem; color: #fff;
}
.qc-btn:hover { color: #fff; filter: brightness(1.08); }
.qc-wa { background: #1DA851; }
.qc-tg { background: #1C8ADB; }
.qc-call { background: var(--ink); color: var(--gold-light); }
.qc-call:hover { color: var(--gold-light); }
.contact-label { font-size: 0.85rem; color: var(--text-light); }
.contact-value { font-weight: 700; color: var(--primary); }
.contact-value a { color: var(--primary); }
.contact-map { font-size: 0.85rem; font-weight: 600; }
fieldset.form-group { border: 0; padding: 0; min-width: 0; }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { flex: 1 1 160px; position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; text-align: center; padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-color); background: var(--bg-page); font-size: 0.93rem; font-weight: 600; color: var(--text-main); transition: all .15s;
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent-light); color: var(--primary); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-consent { font-size: 0.75rem; color: var(--text-light); margin-top: 10px; text-align: center; }
.booking-form .is-flash { animation: bf-flash 1.4s ease; }
@keyframes bf-flash { 0%, 60% { box-shadow: 0 0 0 3px rgba(197,158,110,.45); } 100% { box-shadow: none; } }

/* Адаптивность */
@media (max-width: 992px) {
  .nav-cards { grid-template-columns: 1fr 1fr; }
  .meeting-grid { grid-template-columns: 1fr; }
  .certs-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero-v3 { padding: 32px 0 56px; }
  .hero-v3 .hero-title { font-size: 1.85rem; }
  .hero-v3 .hero-lead { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }
  .hero-v3 .hero-image-wrapper { margin-bottom: 20px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 0 0 56px; }
  .section-title { font-size: 1.7rem; }
  .nav-cards { grid-template-columns: 1fr; }
  .nav-card-head { padding: 16px; }
  .nav-card-body { padding: 0 16px 16px; }
  .quiz { padding: 26px 18px; }
  .quiz-head .section-title { font-size: 1.5rem; }
  .quiz-q { font-size: 1.15rem; }
  .certs-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cert-thumb { height: 130px; padding: 4px; }
  .tg-invite { flex-direction: column; text-align: center; padding: 24px 20px; }
  .booking-grid { padding: 22px 16px; gap: 28px; }
  .booking-info-title { font-size: 1.6rem; }
}

/* Шапка: пункты меню не переносятся на средних экранах */
.nav-link { white-space: nowrap; }
@media (max-width: 1200px) {
  .nav-menu { gap: 16px; }
  .nav-link { font-size: 0.9rem; }
  .brand-subtitle { display: none; }
}
@media (max-width: 1060px) and (min-width: 769px) {
  .phone-link { display: none; }
}

/* Совместное фото в hero — вертикальный кадр */
.hero-v3 .hero-image { aspect-ratio: 1000 / 1120; max-height: 600px; object-position: center top; }
.hero-v3 .hero-image-wrapper { max-width: 500px; justify-self: center; width: 100%; }

/* Совместный портрет на месте видео-визитки */
.portrait-card { aspect-ratio: 1024 / 945; }
.portrait-card .video-card-overlay { background: linear-gradient(180deg, rgba(13,13,13,0) 55%, rgba(13,13,13,.8) 100%); }

/* Портреты специалистов (вырезаны из совместного фото) */
.specialist-img-alexander { object-position: 28% 30%; }
.specialist-img-elena { object-position: 72% 30%; }

/* Как мы работаем онлайн */
.online-box {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px 40px; align-items: start;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 32px;
}
.online-title { font-size: 1.6rem; margin: 8px 0 12px; }
.online-head p { color: var(--text-muted); line-height: 1.65; }
.online-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.online-list li { position: relative; padding-left: 24px; color: var(--text-muted); line-height: 1.6; }
.online-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.online-list strong { color: var(--primary); }
.online-box > .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 768px) {
  .online-box { grid-template-columns: 1fr; padding: 22px; }
  .online-title { font-size: 1.35rem; }
  .online-box > .btn { justify-self: stretch; text-align: center; }
}

/* Онлайн-запись по Google Календарю (booking.js) */
.bk-tabs[hidden], .bk-widget[hidden], .booking-form[hidden] { display: none !important; }
.booking-grid > div { min-width: 0; }
.bk-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 14px; background: var(--bg-card, #fff); border: 1px solid var(--border-color); border-radius: var(--radius-full, 999px); }
.bk-tab { flex: 1; padding: 10px 8px; white-space: nowrap; border: 0; border-radius: var(--radius-full, 999px); background: transparent; font: inherit; font-size: .95em; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.bk-tab.is-on { background: var(--primary); color: #fff; }
.bk-step + .bk-step { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.bk-label { font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.bk-tz { font-weight: 400; font-size: .85em; color: var(--text-muted); }
.bk-services { display: grid; gap: 8px; }
.bk-service { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: left; font: inherit; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; color: var(--primary); }
.bk-service span { color: var(--text-muted); font-size: .88em; }
.bk-service.is-on { border-color: var(--accent); background: var(--accent-light); box-shadow: inset 0 0 0 1px var(--accent); }
.bk-place { margin-top: 10px; }
.bk-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.bk-day { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0; font: inherit; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; color: var(--primary); }
.bk-day span, .bk-day small { font-size: .75em; color: var(--text-muted); }
.bk-day b { font-size: 1.15em; }
.bk-day:disabled { opacity: .35; cursor: default; }
.bk-day.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.bk-day.is-on span, .bk-day.is-on small { color: rgba(255,255,255,.75); }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin-top: 10px; }
.bk-time { padding: 9px 4px; font: inherit; font-weight: 600; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; color: var(--primary); line-height: 1.2; }
.bk-time small { display: block; font-weight: 400; font-size: .75em; color: var(--text-muted); }
.bk-time.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bk-time.is-on small { color: rgba(255,255,255,.8); }
.bk-service:focus-visible, .bk-day:focus-visible, .bk-time:focus-visible, .bk-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-muted { color: var(--text-muted); font-size: .92em; }
.bk-error { color: #a33; }
.bk-done { text-align: center; padding: 10px 0; }
.bk-done-icon { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-light); color: var(--accent); font-size: 26px; font-weight: 700; }
.bk-done h3 { margin: 0 0 10px; }
.tg-invite + .tg-invite { margin-top: 16px; }
.bk-number { margin-top: 14px; padding: 10px 14px; background: var(--accent-light); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 1.05rem; color: var(--primary); }
.bk-number b { font-size: 1.2rem; letter-spacing: .04em; }

/* Отзывы — лента, листается вправо-влево (свайпом или стрелками) */
.reviews-controls { display: flex; justify-content: flex-end; gap: 8px; margin: -8px 0 12px; }
.rv-nav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-color); background: #fff; color: var(--primary); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.rv-nav:hover { border-color: var(--accent); color: var(--accent); }
.rv-nav:disabled { opacity: .35; cursor: default; }
#reviews .reviews-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding-bottom: 10px; scrollbar-width: thin; }
#reviews .review-img { flex: 0 0 220px; width: 220px; height: 320px; scroll-snap-align: start; }
@media (max-width: 600px) {
  #reviews .reviews-grid { gap: 10px; }
  #reviews .review-img { flex-basis: 62vw; width: 62vw; height: 300px; }
}
