/* =====================================================================
   Премиум-слой страниц услуг: типографика, первый экран, калькулятор,
   подбор формата, этапы, отзывы, мобильная панель. Поверх style/service/site.
   ===================================================================== */

/* ---------- Типографика и ритм ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.dark .eyebrow, .pcalc__result .eyebrow { color: var(--gold-2); }
.hero--service .h2, .section .h2 { letter-spacing: -.01em; }

/* ---------- Первый экран ---------- */
.hero--service { min-height: 760px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: center; }
.hero__eyebrow {
  margin: 22px 0 -6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2);
  display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold-2); }
.hero__price {
  display: inline-block; margin-top: 20px; padding: 10px 16px;
  border: 1px solid rgba(199,160,114,.45); border-radius: 999px;
  background: rgba(24,31,41,.45); backdrop-filter: blur(6px);
  font-size: 13.5px; color: rgba(255,255,255,.92);
}
.hero__link { display: inline-flex; align-items: center; }

.hero-card {
  position: relative; z-index: 2; padding: 30px 28px 24px;
  background: linear-gradient(160deg, rgba(39,50,63,.82), rgba(24,31,41,.9));
  border: 1px solid rgba(199,160,114,.35); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px); color: #fff;
}
.hero-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 14px; pointer-events: none;
  background: linear-gradient(135deg, rgba(199,160,114,.7), transparent 40%, transparent 60%, rgba(199,160,114,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.hero-card__kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.hero-card__title { font-family: var(--serif-display); font-size: 27px; line-height: 1.15; margin: 8px 0 20px; }
.hero-card__field { display: block; margin-bottom: 14px; }
.hero-card__field span { display: block; font-size: 12.5px; color: rgba(255,255,255,.65); margin-bottom: 6px; }
.hero-card__field select {
  width: 100%; height: 48px; padding: 0 40px 0 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff;
  font: inherit; font-size: 15px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-2) 50%), linear-gradient(135deg, var(--gold-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat;
  transition: border-color .2s, background-color .2s;
}
.hero-card__field select:hover, .hero-card__field select:focus { border-color: var(--gold-2); outline: none; background-color: rgba(255,255,255,.1); }
.hero-card__field option { color: var(--text); }
.hero-card .btn { margin-top: 6px; height: 52px; }
.hero-card__note { margin-top: 12px; font-size: 12px; text-align: center; color: rgba(255,255,255,.55); }

/* ---------- Полоса доверия ---------- */
.trustbar-wrap { box-shadow: 0 10px 30px rgba(30,39,51,.05); position: relative; z-index: 3; }
.trustbar b { font-variant-numeric: tabular-nums; }

/* ---------- «Коротко» ---------- */
.intro__lead.answer-box {
  position: relative; background: linear-gradient(180deg, #fffdf9, var(--cream));
  border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px;
  padding: 26px 28px; font-family: var(--serif); font-size: 17.5px; box-shadow: var(--shadow);
}

/* ---------- Карточки «кому подходит» ---------- */
.fitgrid__col { border-radius: 12px; transition: transform .3s, box-shadow .3s; }
.fitgrid__col:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fitgrid__col--no { background: #faf7f2; }

/* ---------- Подбор формата ---------- */
.quiz { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; padding: 0; overflow: hidden; border-radius: 16px; }
.quiz__intro { padding: 44px 40px; background: var(--navy); color: #fff; position: relative; }
.quiz__intro .h2 { color: #fff; }
.quiz__intro .sub { color: rgba(255,255,255,.7); }
.quiz__intro .eyebrow { color: var(--gold-2); }
.quiz__intro::after {
  content: "?"; position: absolute; right: 26px; bottom: -40px; font-family: var(--serif-display);
  font-size: 220px; line-height: 1; color: rgba(199,160,114,.12); pointer-events: none;
}
.quiz__progress { display: flex; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; }
.quiz__progress li { width: 42px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); transition: background .3s; }
.quiz__progress li.is-on { background: var(--gold-2); }
.quiz__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; min-height: 340px; }
.quiz__step { border: 0; margin: 0; padding: 0; animation: qIn .35s ease; }
.quiz__q { font-family: var(--serif-display); font-size: 26px; line-height: 1.2; margin-bottom: 20px; padding: 0; }
.quiz__q span { display: block; font-family: var(--sans, inherit); font-size: 12px; letter-spacing: .16em; color: var(--muted); margin-bottom: 6px; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__opt input { position: absolute; opacity: 0; pointer-events: none; }
.quiz__opt span {
  display: flex; align-items: center; min-height: 64px; padding: 14px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; line-height: 1.35;
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.quiz__opt span:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.quiz__opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.quiz__opt input:checked + span { border-color: var(--gold); background: var(--cream); box-shadow: inset 0 0 0 1px var(--gold); }
.quiz__result { animation: qIn .4s ease; }
.quiz__name { font-family: var(--serif-display); font-size: 36px; line-height: 1.1; color: var(--navy); }
.quiz__why { margin-top: 12px; color: var(--muted); font-size: 15.5px; max-width: 460px; }
.quiz__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.quiz__restart { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Калькулятор ---------- */
.pcalc {
  display: grid; grid-template-columns: 1.2fr 1fr; margin: 8px 0 18px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff;
}
.pcalc__controls { padding: 34px 34px 30px; }
.pcalc__label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt span {
  display: block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13.5px; cursor: pointer; transition: all .2s; background: #fff;
}
.seg__opt span:hover { border-color: var(--gold); }
.seg__opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.range { display: block; margin-bottom: 24px; }
.range__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; margin-bottom: 12px; }
.range__head output { font-family: var(--serif-display); font-size: 24px; color: var(--gold-dark); }
.range input[type=range] {
  --p: 50%; width: 100%; height: 4px; appearance: none; -webkit-appearance: none; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) var(--p), var(--line) var(--p));
}
.range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  border: 2px solid var(--gold); box-shadow: 0 4px 12px rgba(171,130,80,.35); transition: transform .15s;
}
.range input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.pcalc__result {
  padding: 34px; background: radial-gradient(ellipse at 100% 0%, #34404f 0%, var(--navy) 70%); color: #fff;
  display: flex; flex-direction: column;
}
.pcalc__kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.pcalc__sum { font-family: var(--serif-display); font-size: clamp(34px, 3.6vw, 46px); line-height: 1.05; margin-top: 10px; font-variant-numeric: tabular-nums; }
.pcalc__meta { margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.pcalc__split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0; background: rgba(255,255,255,.12); border-radius: 10px; overflow: hidden; }
.pcalc__split div { background: rgba(24,31,41,.6); padding: 14px 16px; }
.pcalc__split span, .pcalc__split small { display: block; font-size: 12px; color: rgba(255,255,255,.55); }
.pcalc__split b { display: block; font-family: var(--serif-display); font-weight: 500; font-size: 21px; margin: 4px 0 2px; color: var(--gold-2); }
.pcalc__result .btn { margin-top: auto; height: 52px; }
.pcalc__note { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.5); }
.rate-details { margin-top: 10px; }
.rate-details summary { cursor: pointer; color: var(--gold-dark); font-size: 15px; padding: 8px 0; list-style: none; }
.rate-details summary::-webkit-details-marker { display: none; }
.rate-details summary::before { content: "+"; display: inline-block; width: 22px; color: var(--gold); font-size: 18px; }
.rate-details[open] summary::before { content: "−"; }

/* ---------- Этапы подбора ---------- */
.psteps { margin-top: 44px; }
.psteps__tabs { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding-bottom: 22px; }
.psteps__tabs::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.psteps__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1; }
.psteps__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .45s cubic-bezier(.4,0,.2,1); }
.psteps__tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  background: none; border: 0; padding: 6px 4px; cursor: pointer; font: inherit; color: var(--muted); transition: color .2s;
}
.psteps__n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-family: var(--serif-display); font-size: 20px; color: var(--muted);
  transition: all .3s;
}
.psteps__t { font-size: 14px; line-height: 1.35; }
.psteps__tab:hover { color: var(--text); }
.psteps__tab:hover .psteps__n { border-color: var(--gold); color: var(--gold-dark); }
.psteps__tab.is-done .psteps__n { border-color: var(--gold); color: var(--gold-dark); background: var(--cream); }
.psteps__tab.is-active { color: var(--text); }
.psteps__tab.is-active .psteps__n { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(30,39,51,.25); }
.psteps__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
.psteps__panel {
  margin-top: 28px; padding: 30px 34px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); max-width: 820px; animation: qIn .35s ease;
}
.psteps__when { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }
.psteps__panel .h3 { margin-bottom: 10px; }
.psteps__panel p:last-child { color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ---------- Отзывы ---------- */
.reviews-section { background: linear-gradient(180deg, var(--cream), #fff); }
.rslider { margin-top: 32px; }
.rslider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, calc((100% - 48px) / 3)); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 20px; scrollbar-width: none;
}
.rslider__track::-webkit-scrollbar { display: none; }
.rcard {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column;
  padding: 34px 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.rcard__mark { position: absolute; top: 4px; right: 22px; font-family: var(--serif-display); font-size: 110px; line-height: 1; color: rgba(180,138,87,.18); }
.rcard__text {
  font-family: var(--serif); font-size: 15.5px; line-height: 1.7; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden;
}
.rcard__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; font-weight: 500; }
.rcard__avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--gold-2); font-family: var(--serif-display); font-size: 19px;
}
.rslider__nav { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rslider__btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 18px; color: var(--text); transition: all .2s;
}
.rslider__btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.rslider__nav .link-arrow { margin-left: auto; }

/* ---------- Гарантии ---------- */
.terms__row { border-radius: 12px; border-top: 2px solid var(--gold); transition: transform .3s, box-shadow .3s; }
.terms__row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- Поиск по FAQ ---------- */
.faq-search { position: relative; max-width: 560px; margin: 20px 0 8px; }
.faq-search input {
  width: 100%; height: 52px; padding: 0 140px 0 48px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239a7444' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l4 4'/%3E%3C/svg%3E") 18px center no-repeat;
  font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.faq-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(180,138,87,.12); }
.faq-search__count { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); }

/* ---------- Нижняя панель (телефон) ---------- */
.mbar { display: none; }
@media (max-width: 900px) {
  .mbar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px;
    padding: 6px; border-radius: 14px; background: rgba(24,31,41,.94); backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px rgba(0,0,0,.3); transform: translateY(140%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  }
  .mbar.is-on { transform: none; }
  .mbar__btn {
    display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 10px;
    border: 0; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
  }
  .mbar__btn .ico { width: 16px; height: 16px; }
  .mbar__btn--gold { background: linear-gradient(180deg, #c29a69, #ab8250); }
  body { padding-bottom: 72px; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr 340px; gap: 40px; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .quiz, .pcalc { grid-template-columns: 1fr; }
  .quiz__intro, .quiz__body, .pcalc__controls, .pcalc__result { padding: 28px 22px; }
  .quiz__intro::after { font-size: 150px; bottom: -24px; }
  .psteps__tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 128px; overflow-x: auto; scrollbar-width: none; }
  .psteps__tabs::-webkit-scrollbar { display: none; }
  .psteps__panel { padding: 24px 22px; }
  .rslider__track { grid-auto-columns: 86%; }
}
@media (max-width: 560px) {
  .quiz__opts { grid-template-columns: 1fr; }
  .quiz__opt span { min-height: 54px; }
  .pcalc__split { grid-template-columns: 1fr; }
  .hero__price { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz__step, .quiz__result, .psteps__panel { animation: none; }
  .psteps__bar span, .mbar { transition: none; }
}

/* ---------- Точка фокуса кадра (вместо inline object-position) ---------- */
.focus-62-50 { object-position: 62% 50%; }
.focus-60-40 { object-position: 60% 40%; }
.focus-60-55 { object-position: 60% 55%; }
.focus-30-40 { object-position: 30% 40%; }
.focus-50-30 { object-position: 50% 30%; }
.focus-50-32 { object-position: 50% 32%; }
.focus-45-40 { object-position: 45% 40%; }
.focus-40-55 { object-position: 40% 55%; }

/* ---------- Главная ---------- */
.answer-box--lead {
  max-width: 980px; margin: 0 auto; padding: 26px 30px; font-family: var(--serif); font-size: 18px; line-height: 1.65;
  background: linear-gradient(180deg, #fffdf9, var(--cream)); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow);
}
.hero--home .hero__grid { align-items: center; }

/* Спрайт иконок: скрыт классом, а не inline-стилем (строгий CSP) */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Шапка страницы / статьи с обложкой ----------
   Картинка подключается сама, если есть файл: страницы – assets/img/pages/<slug>.webp, статьи – assets/img/articles/<последняя часть адреса>.webp (3:2). */
.page-hero.has-cover .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.page-hero.has-cover .page-hero__title { font-size: clamp(30px, 3.4vw, 46px); }
.ahero__media { aspect-ratio: 3 / 2; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); outline: 1px solid rgba(199,160,114,.35); outline-offset: 8px; }

/* ---------- Карточка статьи с обложкой ---------- */
.post--cover { padding-top: 0; overflow: hidden; }
.post__cover { aspect-ratio: 3 / 2; margin: 0 -28px 4px; }
.post--cover .post__cover img { transition: transform .6s; }
.post--cover:hover .post__cover img { transform: scale(1.04); }

@media (max-width: 1000px) {
  .page-hero.has-cover .container { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ahero__media { max-width: 640px; }
}

/* ---------- Тематические иконки (components/icons.php) ---------- */
.post__kicker, .page-hero--article .page-hero__kicker, .keypoints__title { display: inline-flex; align-items: center; gap: 8px; }
.post__kicker .ico, .keypoints__title .ico { width: 18px; height: 18px; color: var(--gold); }
.page-hero--article .page-hero__kicker .ico { width: 20px; height: 20px; }
.post--cover .post__kicker { margin-top: 6px; }
.nav .mega a { display: flex; align-items: center; gap: 10px; }
.nav .mega a .ico { width: 16px; height: 16px; color: var(--gold); opacity: .8; }
.nav .mega a.mega__more .ico { display: none; }

/* ---------- Фото: команда, основатель, документы ---------- */
.focus-50-25 { object-position: 50% 25%; }
.team-card { display: flex; flex-direction: column; gap: 6px; }
.team-card__photo { aspect-ratio: 4 / 5; margin: -20px -20px 10px; border-radius: 12px 12px 0 0; }
.team-card__initial { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; font-family: var(--serif-display); font-size: 28px; color: var(--gold-dark); background: var(--cream); border: 1px solid var(--line); }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.doc-card { margin: 0; padding: 18px; }
.doc-card img { display: block; width: 100%; height: auto; border-radius: 6px; }
.doc-card figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.doc-card a { color: var(--gold-dark); }
@media (max-width: 640px) { .docs-grid { grid-template-columns: minmax(0, 1fr); } }

/* длинные адреса-ссылки в текстах (политика, статьи) переносятся, а не растягивают страницу на телефоне */
.prose a, .prose p, .prose li { overflow-wrap: anywhere; }

/* /czeny/: скидки под тарифами и состав подбора */
.discounts__title { text-align: center; margin: 40px 0 16px; }
.discounts { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.discount { border: 1px solid var(--gold-2); border-radius: var(--radius); padding: 18px 20px; background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.discount b { color: var(--gold-dark); font-size: 18px; font-weight: 600; }
.discount span { font-size: 14px; }
.incl__lead { color: rgba(255,255,255,.66); margin-top: 12px; max-width: 640px; }
.incl { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; }
.incl li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.incl .ico { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold-2); }
@media (max-width: 640px) { .discounts, .incl { grid-template-columns: minmax(0, 1fr); } }

/* ===== /nynnysoiskatelyam/: страница для нянь ===== */
.nn-kicker { display: inline-block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.dark .nn-kicker { color: var(--gold-2); }
.nn-head { max-width: 760px; margin-bottom: 48px; }
.nn-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.nn-head__lead { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.dark .nn-head__lead { color: rgba(255,255,255,.7); }

/* аккредитация: карточка на стыке с hero */
.nn-accr { position: relative; z-index: 2; margin-top: -36px; }
.nn-accr__card { display: flex; gap: 22px; align-items: center; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px 32px; }
.nn-accr__icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--gold-2); border-radius: 50%; color: var(--gold); }
.nn-accr__icon .ico { width: 26px; height: 26px; }
.nn-accr__title { font-family: var(--serif-display); font-size: 22px; line-height: 1.3; color: var(--text); }
.nn-accr__meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* обращение основателя */
.nn-letter__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.nn-letter__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.nn-letter__photo img { width: 100%; height: 100%; object-fit: cover; }
.nn-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.nn-fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.nn-fact__big { display: block; font-family: var(--serif-display); font-size: 52px; line-height: 1; color: var(--gold-dark); font-weight: 500; }
.nn-fact__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--beige); color: var(--gold-dark); }
.nn-fact__icon .ico { width: 24px; height: 24px; }
.nn-fact p { margin-top: 14px; font-size: 14px; line-height: 1.55; }
.nn-quote { margin: 32px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold-2); }
.nn-quote p { font-size: 16px; line-height: 1.7; font-style: italic; color: var(--text); }
.nn-sign { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.nn-sign b { font-family: var(--serif-display); font-size: 21px; font-weight: 500; }
.nn-sign span { font-size: 13.5px; color: var(--muted); }

/* 5 уровней сертификации */
.nn-levels__label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.nn-levels__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.nn-level { position: relative; border: 1px solid var(--navy-line); border-radius: var(--radius); background: rgba(255,255,255,.03); padding: 28px 22px 26px; transition: border-color .25s, transform .25s; }
.nn-level:hover { border-color: rgba(199,160,114,.55); transform: translateY(-2px); }
.nn-level__num { position: absolute; top: 18px; right: 20px; font-family: var(--serif-display); font-size: 22px; color: rgba(199,160,114,.55); }
.nn-level__icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(199,160,114,.55); border-radius: 50%; color: var(--gold-2); }
.nn-level__icon .ico { width: 22px; height: 22px; }
.nn-level h3 { margin-top: 22px; font-size: 16px; font-weight: 500; line-height: 1.35; color: #fff; }
.nn-level p { margin-top: 10px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.62); }

/* стоимость */
.nn-cost__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.nn-cost__text > p { margin: 16px 0 28px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.nn-cost__text .nn-cost__link { margin: 18px 0 0; font-size: 13.5px; }
.nn-cost__link a { color: var(--gold-dark); text-decoration: underline; }
.nn-price { background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px 32px 28px; }
.nn-price__row, .nn-price__total { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.nn-price__row span { font-size: 14.5px; }
.nn-price__row b { white-space: nowrap; font-weight: 500; }
.nn-price__total { border-bottom: 0; padding-bottom: 0; }
.nn-price__total span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nn-price__total b { font-family: var(--serif-display); font-size: 34px; font-weight: 500; color: var(--gold-dark); white-space: nowrap; }

/* услуги для нянь */
.nn-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nn-service { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px 28px; transition: box-shadow .25s, transform .25s; }
.nn-service:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.nn-service__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--beige); color: var(--gold-dark); }
.nn-service__icon .ico { width: 24px; height: 24px; }
.nn-service h3 { margin-top: 22px; font-family: var(--serif-display); font-size: 24px; font-weight: 500; line-height: 1.2; }
.nn-service p { margin-top: 14px; font-size: 14px; line-height: 1.65; color: var(--muted); flex: 1; }
.nn-service__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.nn-service__price { font-family: var(--serif-display); font-size: 28px; font-weight: 500; color: var(--gold-dark); white-space: nowrap; }

@media (max-width: 1100px) {
  .nn-levels__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nn-letter__grid, .nn-cost__grid { gap: 48px; }
}
@media (max-width: 900px) {
  .nn-letter__grid, .nn-cost__grid { grid-template-columns: minmax(0, 1fr); }
  .nn-letter__photo { max-width: 420px; }
  .nn-services { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .nn-accr { margin-top: -24px; }
  .nn-accr__card { flex-direction: column; align-items: flex-start; padding: 22px 20px; gap: 16px; }
  .nn-accr__title { font-size: 19px; }
  .nn-levels__grid, .nn-facts { grid-template-columns: minmax(0, 1fr); }
  .nn-head { margin-bottom: 32px; }
  .nn-fact__big { font-size: 44px; }
  .nn-price { padding: 6px 20px 22px; }
  .nn-price__total b { font-size: 28px; }
  .nn-service { padding: 26px 22px 22px; }
  .nn-letter__grid { gap: 32px; }
  .nn-letter__photo { max-width: 240px; aspect-ratio: 1 / 1; }
  .nn-levels__grid { gap: 10px; }
  .nn-level { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 16px 44px 16px 16px; }
  .nn-level__icon { width: 44px; height: 44px; grid-row: span 2; align-self: start; }
  .nn-level h3 { margin-top: 0; font-size: 15px; }
  .nn-level p { grid-column: 2; margin-top: 4px; }
  .nn-level h3:last-child { grid-row: span 2; }
  .nn-level__num { top: 50%; transform: translateY(-50%); right: 16px; font-size: 18px; }
}

/* ===== /vakansii/: вакансии для нянь ===== */
.vac-more { margin-top: 44px; }
.vac-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.vac-count { font-size: 14px; color: var(--muted); }
.vac-count b { font-family: var(--serif-display); font-size: 34px; font-weight: 500; color: var(--gold-dark); margin-right: 4px; }
.vac-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.vac-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px 28px; transition: box-shadow .25s, border-color .25s; scroll-margin-top: 100px; }
.vac-card:hover { box-shadow: var(--shadow-lg); }
.vac-card--hot { border-top: 2px solid var(--gold); }
.vac-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vac-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.vac-tag { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .03em; color: var(--muted); background: var(--cream); }
.vac-tag--hot { border-color: var(--gold); background: var(--gold); color: #fff; }
.vac-card__date { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.vac-card__title { margin-top: 20px; font-family: var(--serif-display); font-size: 27px; font-weight: 500; line-height: 1.2; }
.vac-card__salary { margin-top: 10px; font-size: 19px; font-weight: 600; color: var(--gold-dark); }
.vac-card__salary span { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.vac-card__meta { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.vac-card__meta li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.vac-card__meta .ico { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--gold); }
.vac-card__more { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.vac-card__more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gold-dark); }
.vac-card__more summary::-webkit-details-marker { display: none; }
.vac-card__more summary::after { content: "+"; font-size: 18px; line-height: 1; transition: transform .2s; }
.vac-card__more[open] summary::after { transform: rotate(45deg); }
.vac-card__about { margin-top: 14px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.vac-card__more h4 { margin-top: 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.vac-card__more ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; line-height: 1.55; }
.vac-card__more li::marker { color: var(--gold); }
.vac-card__foot { margin-top: 24px; }
.vac-empty { text-align: center; max-width: 560px; margin: 0 auto; padding: 48px 32px; border: 1px dashed var(--gold-2); border-radius: var(--radius); }
.vac-empty p { margin-bottom: 22px; color: var(--muted); }
.vac-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vac-steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.vac-steps__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-2); font-family: var(--serif-display); font-size: 21px; color: var(--gold-dark); }
.vac-steps h3 { margin-top: 18px; font-size: 17px; font-weight: 500; }
.vac-steps p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) {
  .vac-list, .vac-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .vac-card { padding: 24px 20px 22px; }
  .vac-card__title { font-size: 23px; }
  .vac-card__foot .btn { width: 100%; }
}

/* /vakansii/: условия работы прямо на странице */
.vac-terms__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.vac-terms__grid .nn-fact p { font-size: 15px; }
.vac-terms__cert { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; margin-top: 56px; align-items: start; }
.vac-terms__h3 { font-family: var(--serif-display); font-size: 24px; font-weight: 500; margin-bottom: 20px; }
.vac-terms__levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vac-terms__levels li { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.vac-terms__levels b { display: block; font-weight: 500; }
.vac-terms__levels span:not(.vac-terms__icon) { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.vac-terms__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--beige); color: var(--gold-dark); }
.vac-terms__icon .ico { width: 20px; height: 20px; }
.vac-terms__btn { margin-top: 24px; }
.vac-terms__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .vac-terms__cert { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 640px) { .vac-terms__grid { grid-template-columns: minmax(0, 1fr); } .vac-terms__btn { width: 100%; } .vac-terms__cert { margin-top: 40px; } }

/* ===== Анкета няни (/vakansii/#anketa) ===== */
.anketa { max-width: 880px; margin: 0 auto; display: grid; gap: 20px; }
.anketa .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.anketa__step { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); padding: 28px 32px 30px; min-width: 0; }
.anketa__step legend { float: left; width: 100%; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-family: var(--serif-display); font-size: 24px; font-weight: 500; }
.anketa__step legend + * { clear: both; }
.anketa__num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #fff; font-family: var(--serif); font-size: 15px; }
.anketa__hint { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.anketa__row--email { display: flex; gap: 14px; align-items: flex-end; margin-top: 16px; }
.anketa__row--email .anketa__field { flex: 1; }
.anketa__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.anketa__field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.anketa__field--wide { grid-column: 1 / -1; }
.anketa__field input, .anketa__field select, .anketa__field textarea { width: 100%; padding: 12px 14px; border: 1px solid #d9ccb9; border-radius: var(--radius); background: #fff; font: 15px/1.4 var(--serif); color: var(--text); }
.anketa__field textarea { resize: vertical; }
.anketa__field input:focus, .anketa__field select:focus, .anketa__field textarea:focus { outline: 2px solid rgba(180, 138, 87, .3); border-color: var(--gold); }
.anketa .is-invalid { border-color: #b3473c; background: #fff7f6; }
.anketa__offer { border-left: 2px solid var(--gold); background: var(--cream); padding: 16px 20px; margin-bottom: 18px; }
.anketa__offer p { margin: 0; }
.anketa__offer-meta { margin-top: 4px !important; font-size: 13px; color: var(--muted); }
.anketa__offer a { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--gold-dark); text-decoration: underline; }
.anketa__check { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.anketa__check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.anketa__check a { color: var(--gold-dark); text-decoration: underline; }
.anketa__code { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: end; }
.anketa__code input { font-size: 22px; letter-spacing: .3em; text-align: center; }
.anketa__submit { margin-top: 24px; }
.anketa__msg { margin-top: 12px; font-size: 14px; min-height: 1px; }
.anketa__msg.is-ok { color: #2f6b32; }
.anketa__msg.is-err { color: #a5392f; }
.anketa__demo { margin-top: 18px; padding: 10px 14px; border: 1px dashed var(--gold-2); font-size: 13px; color: var(--muted); }
.anketa__done { max-width: 640px; margin: 0 auto; text-align: center; border: 1px solid var(--line); border-top: 2px solid var(--gold); background: var(--card); box-shadow: var(--shadow-lg); padding: 40px 32px; }
.anketa__done-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: #fff; }
.anketa__done-icon .ico { width: 28px; height: 28px; }
.anketa__done h3 { margin-top: 16px; font-family: var(--serif-display); font-size: 30px; font-weight: 500; }
.anketa__done p { margin-top: 10px; }
@media (max-width: 640px) {
  .anketa__step { padding: 22px 18px 24px; }
  .anketa__step legend { font-size: 21px; }
  .anketa__grid, .anketa__code { grid-template-columns: minmax(0, 1fr); }
  .anketa__row--email { flex-direction: column; align-items: stretch; }
  .anketa__submit { width: 100%; }
}

/* ===== Оферта (/oferta/) ===== */
.offer-doc { max-width: 820px; margin: 0 auto; }
.offer-doc__meta { border: 1px solid var(--line); background: var(--card); padding: 16px 20px; font-size: 14px; }
.offer-doc__meta p { margin: 0; }
.offer-doc__hash { margin-top: 4px !important; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; }
.offer-doc__cur { color: #2f6b32; }
.offer-doc__old { color: #a5392f; }
.offer-doc__title { margin-top: 36px; }
.offer-doc__body h3 { margin-top: 30px; font-size: 18px; font-weight: 600; }
.offer-doc__body p { margin-top: 10px; line-height: 1.7; }
.offer-doc__versions { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.offer-doc__versions h3 { font-size: 16px; font-weight: 600; }
.offer-doc__versions ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.9; }
.offer-doc__versions a { color: var(--gold-dark); }

.anketa__test { margin-top: 12px; padding: 12px 16px; border: 1px dashed var(--gold); background: #fff8ec; font-size: 14px; }
.anketa__test b { font-size: 22px; letter-spacing: .25em; color: var(--gold-dark); margin-left: 6px; }

/* Телефоны и планшеты: зона нажатия ссылок не меньше 44 px (рекомендация Apple и Google), вид не меняется */
@media (hover: none), (max-width: 900px) {
  .link-arrow { min-height: 44px; display: inline-flex; align-items: center; }
  .cta__contacts a, .contact-lines a, .aside-card__phone, .footer__contacts a, .anketa__offer a { min-height: 44px; display: inline-flex; align-items: center; }
  .agree a { display: inline-block; padding: 6px 0; margin: -6px 0; }
}

.anketa__switch { max-width: 880px; margin: 0 auto 20px; padding: 12px 16px; border-left: 2px solid var(--gold); background: var(--card); font-size: 14px; }
.anketa__switch a { color: var(--gold-dark); text-decoration: underline; }

/* Статьи: блок «Сколько стоит няня и подбор» */
.art-price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.art-price__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.art-price__item b { font-family: var(--serif-display); font-size: 26px; font-weight: 500; color: var(--gold-dark); }
.art-price__item span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.art-price__more { margin-top: 14px; }
@media (max-width: 760px) { .art-price { grid-template-columns: minmax(0, 1fr); } }

.form-download { margin-top: 12px; }

/* пиксель Метрики для браузеров без JavaScript (без встроенного style – на сайте строгая CSP) */
.ym-pixel { position: absolute; left: -9999px; }

/* Плашка «услуга временно приостановлена» (PAUSED в _build/build.php) */
.hero__pause {
  margin-top: 18px; padding: 14px 18px; max-width: 620px;
  border-left: 3px solid var(--gold-2); border-radius: 10px;
  background: rgba(24,31,41,.62); color: rgba(255,255,255,.94);
  font-size: 15px; line-height: 1.5;
}
.hero__pause p { margin: 0; }
.hero__pause p + p { margin-top: 6px; color: rgba(255,255,255,.85); }
