/* H64: каркас страницы -- шапка, меню, мобильная панель, подвал, форма-призыв, куки. */

/* ---------- шапка ---------- */
.site-header { background: #fff; padding: 14px 0; }
.site-header__row { display: flex; align-items: center; gap: 28px; }
.site-logo { flex: 0 0 auto; display: block; line-height: 0; }
.site-logo img { width: 78px; height: auto; transition: transform .2s ease; }
.site-logo:hover img { transform: rotate(-4deg) scale(1.03); }
.site-address { flex: 1 1 auto; font-size: 13px; line-height: 1.5; color: var(--muted); }
.site-address__metro { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.site-address__metro::before { content: ''; width: 20px; height: 20px; border-radius: 50%; background: url("../images/metro-ico.png") center / contain no-repeat; }
.site-address a { color: var(--text); font-weight: 500; }
.site-address a:hover { color: var(--red); }
.site-contacts { margin-left: auto; text-align: right; }
.site-phone { display: block; font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--ink); letter-spacing: -.01em; text-decoration: none; }
.site-phone:hover { color: var(--red); text-decoration: none; }
.site-hours { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.site-social { display: flex; align-items: center; gap: 10px; }
.site-social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--panel); transition: background-color .15s ease, transform .15s ease; }
.site-social a:hover { background: var(--red-soft); transform: translateY(-2px); }
.site-social img { width: 22px; height: 22px; }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 0 12px; border: 0; border-radius: var(--r-md); background: var(--panel); cursor: pointer; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }

/* ---------- главное меню ---------- */
.main-nav { position: sticky; top: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.main-nav.is-stuck { box-shadow: 0 8px 24px rgba(16, 16, 18, .08); }
.main-nav__list { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav__list > li { position: relative; margin: 0; padding: 0; }
.main-nav__list > li::before { display: none; }
.main-nav__list > li > a { display: flex; align-items: center; height: 64px; padding: 0 13px; font-size: 14px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); text-decoration: none; position: relative; transition: color .15s ease; }
.main-nav__list > li:has(> .sub) > a { padding-right: 26px; }
.main-nav__list > li:has(> .sub) > a::before { content: ''; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease, margin .2s ease; }
.main-nav__list > li:hover:has(> .sub) > a::before { margin-top: -2px; transform: rotate(225deg); }
.main-nav__list > li > a::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--red); transform: scaleX(0); transition: transform .2s ease; }
.main-nav__list > li:hover > a, .main-nav__list > li:focus-within > a { color: var(--red); }
.main-nav__list > li:hover > a::after, .main-nav__list > li:focus-within > a::after { transform: scaleX(1); }
.main-nav .sub { position: absolute; left: 0; top: 100%; z-index: 20; min-width: 280px; padding: 22px 24px 16px; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 0 0 var(--r-lg) var(--r-lg); background: #fff; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub--wide { width: min(560px, 90vw); }
.main-nav .sub__title { display: block; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.main-nav .sub__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.main-nav .sub ul { margin: 0; padding: 0; list-style: none; }
.main-nav .sub li { margin: 0; padding: 0; }
.main-nav .sub li::before { display: none; }
.main-nav .sub a { display: block; margin: 0 -10px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.main-nav .sub a:hover, .main-nav .sub a:focus-visible { background: var(--red-soft); color: var(--red); }

/* ---------- мобильная панель ---------- */
.site-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(16, 16, 18, .55); opacity: 0; transition: opacity .25s ease; }
.site-overlay.is-open { opacity: 1; }
.offcanvas { position: fixed; top: 0; right: 0; bottom: 0; z-index: 410; display: flex; flex-direction: column; width: min(92vw, 400px); background: #fff; box-shadow: var(--shadow-md); transform: translateX(105%); transition: transform .28s ease; }
.offcanvas.is-open { transform: none; }
.offcanvas[hidden], .site-overlay[hidden] { display: none; }
.offcanvas__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.offcanvas__title { font-weight: 800; font-size: 18px; color: var(--ink); }
.offcanvas__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--panel); font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.offcanvas__body { flex: 1 1 auto; overflow-y: auto; padding: 8px 18px 28px; overscroll-behavior: contain; }
.offcanvas__links, .oc-group ul { margin: 0; padding: 0; list-style: none; }
.offcanvas__links li, .oc-group li { margin: 0; padding: 0; }
.offcanvas__links li::before, .oc-group li::before { display: none; }
.offcanvas__links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); text-decoration: none; }
.oc-group { border-bottom: 1px solid var(--line); }
.oc-group summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.oc-group summary::-webkit-details-marker { display: none; }
.oc-group summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.oc-group[open] summary::after { transform: rotate(-135deg); }
.oc-group ul { padding: 0 0 12px; }
.oc-group a { display: block; padding: 8px 0 8px 12px; font-size: 14.5px; color: var(--text); text-decoration: none; border-left: 2px solid var(--line); }
.oc-group a:hover { color: var(--red); border-left-color: var(--red); }
.oc-sep { height: 10px !important; }
.offcanvas__cta { padding: 14px 18px; border-top: 1px solid var(--line); background: var(--panel); }

/* ---------- хлебные крошки ---------- */
.breadcrumbs-box { background: var(--panel); }
.breadcrumbs-layer { padding: 12px 0; font-size: 13px; color: var(--muted); }
.breadcrumbs-layer a { color: var(--muted); font-weight: 500; }
.breadcrumbs-layer a:hover { color: var(--red); }
.breadcrumbs-layer .breadcrumbs-current { color: var(--ink); font-weight: 600; }
.breadcrumbs-layer span.breadcrumbs-sep, .breadcrumbs-layer .sep { margin: 0 6px; color: #b5b5bd; }

/* ---------- содержимое страницы ---------- */
.text-box { padding: 40px 0 8px; }
.text-box .text { max-width: 100%; }
.text-box .text > h1:first-child { margin-top: 0; }
.text-box .text p { max-width: 980px; }
.text-box .text img { border-radius: var(--r-md); }
.text-box .text a { text-decoration: underline; text-decoration-color: rgba(226, 44, 59, .35); text-underline-offset: 3px; }
.text-box .text a:hover { text-decoration-color: currentColor; }

/* ---------- подвал ---------- */
.map-area { position: relative; margin: 0; background: var(--panel); }
.map-area iframe { display: block; width: 100%; height: 560px; pointer-events: none; }
.map-area.is-active iframe { pointer-events: auto; }
.map-area__cover { font-family: inherit; position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding: 0 16px 22px; border: 0; background: transparent; cursor: pointer; }
.map-area.is-active .map-area__cover { display: none; }
.map-area__hint { padding: 10px 18px; border-radius: var(--r-pill); background: rgba(16, 16, 18, .8); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; transition: background-color .15s ease; }
.map-area__cover:hover .map-area__hint, .map-area__cover:focus-visible .map-area__hint { background: var(--red); }
.footer-box { background: var(--dark); color: #b9b9c2; }
.footer-box a { color: #d6d6dd; text-decoration: none; transition: color .15s ease; }
.footer-box a:hover { color: #fff; }
.footer-layer { padding: 56px 0 30px; }
.footer-layer .row { --bs-gutter-y: 32px; }
.footer-menu { font-size: 15px; line-height: 1.5; }
.footer-menu > span { display: block; margin-bottom: 18px; padding-bottom: 12px; position: relative; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-menu > span::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--red); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; padding: 0; break-inside: avoid; }
.footer-links li::before { display: none; }
.footer-links a { display: block; padding: 6px 0; }
.footer-links--cols { columns: 2; column-gap: 28px; }
.footer-contacts p { margin: 0 0 18px; }
.footer-addr { line-height: 1.6; }
.footer-addr a { display: block; margin-bottom: 6px; font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
.footer-phones a { display: block; font-size: 21px; font-weight: 800; line-height: 1.45; color: #fff; }
.footer-phones small { display: block; margin-top: 4px; font-size: 12px; color: #8f8f99; }
.footer-social { display: flex; gap: 12px; margin: 0 0 20px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #26262b; transition: background-color .15s ease, transform .15s ease; }
.footer-social a:hover { background: var(--red); transform: translateY(-2px); }
.footer-social img { display: block; width: 22px; height: 22px; filter: brightness(0) invert(1); }
.footer-rating iframe { display: block; width: 150px; height: 50px; border: 0; border-radius: 8px; }
.footer-bottom { border-top: 1px solid #2a2a2f; background: var(--dark); color: #8f8f99; }
.footer-bottom__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 40px; padding: 26px 0; font-size: 13px; line-height: 1.7; }
.footer-bottom a { color: #b5b5be; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom__links a { display: block; }
.footer-bottom__note { flex: 1 1 100%; padding-top: 18px; border-top: 1px solid #2a2a2f; font-size: 12px; line-height: 1.6; color: #7c7c86; }

/* ---------- блок «Запись в сервис и консультирование» ---------- */
.forma-area-feed { margin-top: 56px; padding: 64px 0; position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, #a8192a 0%, #d3263a 48%, #e8404c 100%); }
.forma-area-feed::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 130% at 0% 0%, rgba(255, 255, 255, .16), transparent 62%), radial-gradient(40% 90% at 100% 100%, rgba(16, 16, 18, .28), transparent 70%); }
.forma-area-feed .container { position: relative; }
.forma-feed { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.forma-feed__text h2 { color: #fff; }
.forma-feed__text p { margin: 0; max-width: 420px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.forma-feed__text hr { margin-bottom: 18px; border-color: #fff; background: #fff; }
.forma-feed__text .forma-feed__call { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.forma-feed__call a { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-size: 26px; font-weight: 800; letter-spacing: .01em; color: #fff; text-decoration: none; }
.forma-feed__call a::before { content: ''; flex: 0 0 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / 22px no-repeat; }
.forma-feed__call a:hover { text-decoration: underline; text-underline-offset: 4px; }
.forma-card { padding: 32px; border-radius: var(--r-xl); background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(60, 6, 12, .34); }
.forma-card h3 { font-size: 20px; margin-bottom: 18px; }

/* форма в тексте страниц моделей */
.forma-call-models { margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.forma-call-models h4 { margin-bottom: 14px; }

/* поля формы модуля «Формы» */
.site-form .row { --bs-gutter-x: 14px; --bs-gutter-y: 14px; }
.site-form .form-consent { font-size: 13px; line-height: 1.45; color: var(--muted); }
.site-form .form-consent a { color: var(--text); text-decoration: underline; }
.site-form .form-consent a:hover { color: var(--red); }
.site-form .button-send { width: 100%; }
.site-form .button-send-inactive, .site-form .button-send-inactive:hover { background: var(--line-strong); box-shadow: none; opacity: 1; cursor: not-allowed; transform: none; }
.site-form-message { padding: 12px 16px; border-radius: var(--r-md); font-weight: 600; font-size: 14px; }
.site-form-message.is-ok { background: #e8f6ee; color: var(--ok); }
.site-form-message.is-error { background: #fdecec; color: var(--error); }
.forma-area-feed .form-consent, .forma-card .form-consent { color: var(--muted); }

/* ---------- окно (dialog) ---------- */
dialog.dialog { width: min(92vw, 440px); padding: 0; border: 0; border-radius: var(--r-xl); background: #fff; color: var(--text); box-shadow: var(--shadow-md); }
dialog.dialog::backdrop { background: rgba(16, 16, 18, .6); }
.dialog__box { position: relative; padding: 32px 28px 28px; }
.dialog__title { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--ink); }
.dialog__lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.dialog__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--panel); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.dialog__close:hover { background: var(--red-soft); color: var(--red); }

/* ---------- анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- планшет и телефон ---------- */
@media (max-width: 991.98px) {
	.site-header { padding: 10px 0; }
	.site-header__row { gap: 14px; }
	.site-logo img { width: 56px; }
	.site-phone { font-size: 16px; }
	.site-hours { display: none; }
	.forma-feed { grid-template-columns: 1fr; gap: 24px; }
	.forma-area-feed { padding: 44px 0; }
	.footer-layer { padding-top: 36px; }
}
@media (max-width: 575.98px) {
	body { font-size: 15px; }
	.text-box { padding-top: 28px; }
	.site-phone { font-size: 15px; }
	.forma-card { padding: 20px; border-radius: var(--r-lg); }
	.map-area iframe { height: 380px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
	.main-nav__list { gap: 0; }
	.main-nav__list > li > a { padding: 0 10px; font-size: 13px; }
	.main-nav__list > li > a::after { left: 10px; right: 10px; }
	.main-nav__list > li:has(> .sub) > a { padding-right: 22px; }
	.main-nav__list > li:has(> .sub) > a::before { right: 8px; }
}
