/* Орден Добра — сиделки СПб. Больничная палитра: белый, медицинский синий для действий, светло-бирюзовый фон блоков,
   спокойный медицинский зелёный — акценты (точки на карте, подписи). Розовый — только в логотипе. */
@font-face { font-family: Golos; src: url(fonts/golos-text-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Golos; src: url(fonts/golos-text-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Golos; src: url(fonts/golos-text-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Golos; src: url(fonts/golos-text-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Alegreya; src: url(fonts/alegreya-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Alegreya; src: url(fonts/alegreya-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Alegreya; src: url(fonts/alegreya-500i.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --ink: #14304a;
  --muted: #546a7b;
  --paper: #f2f7fa;
  --white: #ffffff;
  --tint: #e2f0f5;
  --line: #d2e0e8;
  --primary: #1a6fb0;
  --primary-dark: #135688;
  --accent: #2f8f72;
  --accent-soft: #e3f3ec;
  --radius: 14px;
  --wrap: 1180px;
  --display: Alegreya, Georgia, serif;
  --text: Golos, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 5.2vw, 62px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 21px; line-height: 1.3; margin: 0 0 .4em; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 17px/1 var(--text); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Шапка */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand-sub, .topbar .btn { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 46px; height: 46px; border-radius: 10px; }
.footer .brand { margin-bottom: 10px; }
.footer .brand-mark { width: 40px; height: 40px; }
.brand-name { font: 700 22px/1 var(--display); }
.brand-sub { display: block; font: 500 12px/1.2 var(--text); color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; white-space: nowrap; }
.nav a:hover { color: var(--primary); }
.phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.topbar .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Первый экран: карта сиделок — главный элемент */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: stretch; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.prices { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 460px; }
.prices li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prices b { font-weight: 700; white-space: nowrap; }
.picker { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.picker select { min-height: 52px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--white);
  font: 500 17px var(--text); color: var(--ink); min-width: 240px; }
.rating { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 16px; }
.rating .stars { color: #c99231; letter-spacing: 2px; font-size: 18px; }

.mapcard { position: relative; border-radius: 22px; overflow: hidden; background: var(--tint); min-height: 520px; box-shadow: 0 1px 0 var(--line); }
.mapcard .map { position: absolute; inset: 0; }
.map-static img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.map-static picture { display: contents; }
.map-copy { position: absolute; right: 0; bottom: 0; font-size: 11px; padding: 2px 6px; background: rgba(255,255,255,.8); color: #555; border-top-left-radius: 6px; }
.map-legend { position: absolute; left: 16px; bottom: 16px; z-index: 500; background: var(--white); border-radius: 12px; padding: 12px 16px;
  font-size: 15px; box-shadow: 0 6px 24px rgba(28,53,64,.12); max-width: 300px; }
.map-legend b { font-size: 26px; font-family: var(--display); display: block; line-height: 1; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-right: 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--accent); }
.guarantees { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.guarantee { background: var(--tint); border-radius: var(--radius); padding: 24px; }
.guarantee h3 { color: var(--primary-dark); }
.guarantee p { margin: 0; color: var(--muted); font-size: 16px; }

/* Секции */
.section { padding: 72px 0; }
.section.white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 36em; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--paper); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.service .price { font: 700 30px/1.1 var(--display); margin: 8px 0 12px; }
.service .price small { font: 500 16px var(--text); color: var(--muted); }
.service ul { margin: 0 0 18px; padding-left: 20px; color: var(--muted); }
.service a.more { margin-top: auto; font-weight: 600; }

/* Анкеты */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-name { font: 700 24px/1.1 var(--display); }
.card-age { color: var(--muted); font-size: 16px; white-space: nowrap; }
.card-meta { font-size: 16px; color: var(--muted); }
.card-meta b { color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 14px; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--primary-dark); }
.tag.accent { background: var(--accent-soft); color: #22735b; }
.card-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.card-foot .num { float: right; color: #8a9a9d; }
.card .btn { min-height: 44px; font-size: 15px; justify-content: center; }

.districts { columns: 3 260px; gap: 28px; padding: 0; list-style: none; margin: 0; }
.districts li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.districts a { text-decoration: none; font-weight: 500; }
.districts span { color: var(--muted); }

/* Шаги — это реальная последовательность, поэтому с номерами */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 3px solid var(--primary); padding-top: 16px; }
.steps li::before { content: counter(step); font: 700 34px/1 var(--display); color: var(--primary); display: block; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.review blockquote { margin: 0 0 14px; font: italic 500 20px/1.45 var(--display); }
.review figcaption { font-size: 15px; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 500 26px/1 var(--text); color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 46em; }

.cta { background: var(--ink); color: var(--white); border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.cta h2 { color: var(--white); }
.cta p { color: #c7d4d6; }
.form { display: grid; gap: 12px; }
.form input, .form select { min-height: 52px; border-radius: 12px; border: 0; padding: 0 16px; font: 500 17px var(--text); color: var(--ink); background: var(--white); }
.form .note { font-size: 13px; color: #9fb2b5; margin: 0; }

.footer { padding: 44px 0 60px; font-size: 15px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.leaflet-container { font: 15px var(--text); background: var(--tint); }
.leaflet-popup-content { margin: 14px 16px; line-height: 1.45; }
.pop-name { font: 700 19px var(--display); }

.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.page-map { height: 420px; border-radius: 22px; overflow: hidden; margin: 8px 0 36px; }

@media (max-width: 1180px) { .nav a[href$="#otzyvy"], .nav a[href$="#kak-rabotaem"] { display: none; } }
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid, .cta { grid-template-columns: 1fr; }
  .mapcard { min-height: 0; background: var(--white); }
  .mapcard .map-static { position: relative; display: block; aspect-ratio: 548 / 560; }
  .mapcard .map-legend { position: static; max-width: none; box-shadow: none; border-radius: 0; padding: 12px 16px; font-size: 14px; }
  .mapcard .map-legend b { display: inline; font-size: 20px; margin-right: 6px; }
  .services, .reviews { grid-template-columns: 1fr; }
  .guarantees { grid-template-columns: 1fr 1fr; }
  .guarantee:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .topbar .btn { display: none; }
  .hero { padding-top: 28px; }
  .steps { grid-template-columns: 1fr; }
  .cta { padding: 28px 22px; }
  .picker select, .picker .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Статьи */
.article-wrap { max-width: 780px; }
.article h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
.article p, .article li { font-size: 19px; line-height: 1.65; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: .4em; }
.article a { font-weight: 600; }
.article em { color: var(--muted); }
.article-date { color: var(--muted); font-size: 15px; margin-top: -8px; }
.article-cta { margin-top: 48px; grid-template-columns: 1.4fr auto; }
.article-cta h2 { font-size: 30px; }
.article-list { list-style: none; padding: 0; margin: 28px 0 0; }
.article-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.article-list a { font: 700 24px/1.25 var(--display); text-decoration: none; color: var(--ink); }
.article-list a:hover { color: var(--primary); }
.article-list p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.draft-note { background: #fff4d6; border-radius: 10px; padding: 10px 14px; font-size: 15px; }

/* страницы услуг */
.service-price { font: 700 34px/1.1 var(--display); margin: 4px 0 18px; }
.service-price small { font: 500 17px var(--text); color: var(--muted); }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.district-links { margin-top: 28px; color: var(--muted); line-height: 1.9; }
.district-links span { font-size: 14px; }
.other-services, .services-more { margin-top: 24px; color: var(--muted); }
.price-table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; }
.price-table th, .price-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-table td:last-child { white-space: nowrap; text-align: right; }
.price-table small { color: var(--muted); }
@media (max-width: 560px) {
  .price-table th, .price-table td { padding: 12px 6px; }
  .price-table td:last-child { white-space: normal; width: 38%; }
}
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #fff; line-height: 1.4; }
.form .consent input { min-height: 0; width: 18px; height: 18px; padding: 0; margin: 2px 0 0; flex: none; }
.consent a { color: #fff; }
.footer-links { font-size: 14px; }
.office-map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin: 8px 0 24px; }
.contacts-phone { display: flex; flex-wrap: wrap; gap: 12px; }
.review-links { display: flex; flex-wrap: wrap; gap: 12px; }
.ankety-prices { color: var(--muted); margin: 8px 0 16px; }
