/* Каркас: верхняя полоса, шапка, мега-меню, мобильное меню, поиск, подвал, нижняя панель, окна, cookie */

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 13.5px; position: relative; z-index: 61; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold-1); }
.topbar-in { display: flex; align-items: center; gap: 26px; min-height: 40px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 1440px) { .topbar-promo { display: none !important; } }
@media (max-width: 1180px) { .topbar-hours { display: none !important; } }
.topbar-item .ico { color: var(--gold-1); width: 16px; height: 16px; }
.topbar-live { width: 8px; height: 8px; border-radius: 50%; background: #3DBE6C; box-shadow: 0 0 0 0 rgba(61, 190, 108, .6); animation: livepulse 2s infinite; }
.topbar-live.is-off { background: #A09A90; animation: none; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(61, 190, 108, .55); } 70% { box-shadow: 0 0 0 8px rgba(61, 190, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 190, 108, 0); } }
.topbar-r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topbar-a11y { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.topbar-a11y:hover { color: var(--gold-1); }
.topbar-soc { display: flex; gap: 6px; }
.topbar-soc a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.topbar-soc a:hover { background: var(--gold-1); color: var(--ink); }
.topbar-soc .ico { width: 15px; height: 15px; }
@media (max-width: 1100px) { .topbar-hide-m { display: none; } }
@media (max-width: 760px) { .topbar { display: none; } }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 14px 40px -30px rgba(14, 14, 15, .45); }
.hdr-in { display: flex; align-items: center; gap: clamp(12px, 1.2vw, 20px); height: var(--hdr-h); transition: height .3s var(--ease); }
.hdr.is-stuck .hdr-in { height: 70px; }
.logo { display: flex; align-items: center; flex: none; text-decoration: none; }
.logo img { width: clamp(168px, 15vw, 214px); height: auto; transition: width .3s var(--ease); }
.hdr.is-stuck .logo img { width: clamp(160px, 13vw, 190px); }
.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; border: 0; background: none; border-radius: 999px; font-size: 15px; font-weight: 650; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); color: var(--gold-ink); }
.nav-link[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav-mega { padding-left: 16px; padding-right: 16px; background: var(--cream); }
.nav-mega:hover, .nav-mega[aria-expanded="true"] { background: var(--ink); color: var(--gold-2); }
.nav-mega:hover .ico, .nav-mega[aria-expanded="true"] .ico { color: var(--gold-2); }
.nav-mega::after { display: none; }
.hdr-search { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; flex: none; transition: all .25s; }
.hdr-search:hover { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.hdr-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; flex: none; }
.hdr-tel { font-size: 18px; font-weight: 800; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.hdr-callback { border: 0; background: none; padding: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--gold-ink); border-bottom: 1px dashed var(--gold); }
.hdr-cta { flex: none; }
.hdr-burger { display: none; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: var(--gold-2); flex: none; }
.hdr-burger .ico { width: 24px; height: 24px; }
@media (max-width: 1520px) { .nav-opt { display: none; } }
@media (max-width: 1360px) { .nav-link { padding: 10px 8px; font-size: 14.5px; } .hdr-phone .hdr-callback { display: none; } .hdr-cta span { display: none; } .hdr-cta { padding: 0 14px; } }
@media (max-width: 1240px) { .nav, .hdr-search { display: none; } .hdr-burger { display: grid; } .hdr-phone { margin-left: auto; } }
@media (max-width: 760px) { :root { --hdr-h: 68px; } .hdr-phone, .hdr-cta { display: none; } .hdr-in { justify-content: space-between; } .hdr-mtel { display: grid !important; } }
.hdr-mtel { display: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cream); color: var(--gold-ink); margin-left: auto; }

/* ---------- Мега-меню «Услуги» ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(14, 14, 15, .55); max-height: calc(100vh - var(--hdr-h) - 40px); overflow: hidden; animation: megaIn .35s var(--ease-out); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mega-in { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 520px; max-height: calc(100vh - var(--hdr-h) - 40px); }
.mega-side { background: var(--paper); border-right: 1px solid var(--line); padding: 22px 14px 22px 0; overflow-y: auto; }
.mega-find { position: relative; margin: 0 0 12px 0; }
.mega-find .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gold-ink); width: 18px; height: 18px; }
.mega-find input { width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px 0 44px; background: #fff; font-size: 15px; }
.mega-find input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); }
.mega-cats { list-style: none; margin: 0; padding: 0; }
.mega-cat { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; text-decoration: none; font-weight: 650; font-size: 15.5px; color: var(--ink); transition: background .2s, color .2s; position: relative; }
.mega-cat .mc-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--gold-ink); flex: none; transition: all .25s; }
.mega-cat .mc-ico .ico { width: 20px; height: 20px; }
.mega-cat .mc-n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.mega-cat.is-on, .mega-cat:hover { background: var(--ink); color: #fff; }
.mega-cat.is-on .mc-ico, .mega-cat:hover .mc-ico { background: var(--grad-gold); border-color: transparent; color: var(--ink); }
.mega-cat.is-on .mc-n, .mega-cat:hover .mc-n { color: var(--gold-1); }
.mega-main { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; padding: 28px 0 28px 36px; overflow-y: auto; }
.mega-pane { display: none; }
.mega-pane.is-on { display: block; animation: paneIn .35s var(--ease-out); }
@keyframes paneIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.mega-pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mega-pane-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; line-height: 1.2; }
.mega-pane-title:hover { color: var(--gold-ink); }
.mega-pane-head p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); max-width: 60ch; }
.mega-links { list-style: none; margin: 0; padding: 0; columns: 3 200px; column-gap: 28px; }
.mega-links li { break-inside: avoid; }
.mega-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed transparent; text-decoration: none; font-size: 15px; line-height: 1.35; color: var(--ink-2); transition: color .2s, border-color .2s, padding .25s var(--ease); }
.mega-links a:hover { color: var(--ink); border-bottom-color: var(--gold); padding-left: 6px; }
.mega-links .ml-p { font-size: 12.5px; font-weight: 700; color: var(--gold-ink); white-space: nowrap; }
.mega-links mark { background: var(--gold-2); color: inherit; border-radius: 3px; }
.mega-empty { color: var(--muted); }
.mega-promo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; border-radius: var(--r); overflow: hidden; padding: 24px; color: #fff; text-decoration: none; background: var(--ink); isolation: isolate; }
.mega-promo img, .mega-promo picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.mega-promo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 14, 15, 0) 25%, rgba(14, 14, 15, .92) 100%); }
.mega-promo:hover img { transform: scale(1.06); }
.mega-promo b { font-size: 21px; line-height: 1.2; margin: 10px 0 6px; color: #fff; }
.mega-promo span.small { color: rgba(255, 255, 255, .8); }
.mega-promo .pill { align-self: flex-start; }
.mega-promo:hover { color: #fff; }
.mega-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 14.5px; }
.mega-foot a { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.mega-foot .ico { color: var(--gold-ink); }
.mega-results { display: none; }
.mega.is-searching .mega-pane { display: none !important; }
.mega.is-searching .mega-results { display: block; }
.mega-results-h { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 1360px) { .mega-main { grid-template-columns: minmax(0, 1fr); } .mega-promo { display: none; } }

/* ---------- Мобильное меню (уровни выезжают) ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; background: rgba(14, 14, 15, .45); backdrop-filter: blur(4px); }
.drawer-panel { position: relative; width: min(460px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; animation: drawerIn .45s var(--ease-out); overflow: hidden; }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-top .logo img { width: 170px; }
.drawer-close { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); color: var(--gold-2); }
.drawer-search { position: relative; margin: 14px 18px 4px; }
.drawer-search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gold-ink); }
.drawer-search input { width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px 0 46px; font-size: 16px; }
.drawer-body { position: relative; flex: 1; overflow: hidden; }
.dr-level { position: absolute; inset: 0; overflow-y: auto; padding: 8px 18px 24px; background: #fff; transition: transform .45s var(--ease-out), visibility .45s; -webkit-overflow-scrolling: touch; }
.dr-level.is-right { transform: translateX(100%); visibility: hidden; }
.dr-level.is-left { transform: translateX(-30%); visibility: hidden; }
.dr-back { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 0; border: 0; background: none; font-weight: 700; color: var(--gold-ink); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dr-back .ico { transform: rotate(180deg); }
.dr-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 12px; font-size: 22px; font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.dr-title .ico { color: var(--gold-ink); }
.dr-list { list-style: none; margin: 0; padding: 0; }
.dr-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 17px; font-weight: 650; color: var(--ink); text-decoration: none; }
.dr-item .mc-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--cream); color: var(--gold-ink); flex: none; }
.dr-item .mc-ico .ico { width: 20px; height: 20px; }
.dr-item .chev { margin-left: auto; color: var(--muted); }
.dr-item small { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--gold-ink); white-space: nowrap; }
.dr-item:active { background: var(--paper); }
.dr-sub .dr-item { font-size: 16px; font-weight: 550; padding: 12px 4px; }
.dr-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.dr-links a { padding: 14px; border-radius: 14px; background: var(--paper); text-decoration: none; font-weight: 650; font-size: 15px; }
.drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 10px; }
.drawer-tel { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; text-decoration: none; }
.drawer-tel .ico { color: var(--gold-ink); }
.drawer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13.5px; color: var(--muted); }
.drawer-soc { display: flex; gap: 8px; }
.drawer-soc a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.drawer-a11y { border: 0; background: none; padding: 0; display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }

/* ---------- Поиск ---------- */
.search-ov { position: fixed; inset: 0; z-index: 95; background: rgba(250, 248, 244, .97); backdrop-filter: blur(6px); padding-top: clamp(60px, 12vh, 140px); animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.search-ov-in { max-width: 860px; }
.search-form { position: relative; display: flex; align-items: center; border-bottom: 2px solid var(--ink); }
.search-form > .ico { width: 28px; height: 28px; color: var(--gold-ink); }
.search-input { flex: 1; border: 0; background: none; font-size: clamp(22px, 3vw, 34px); font-weight: 700; padding: 16px 16px; min-width: 0; }
.search-input:focus { outline: 0; }
.search-close { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--ink); color: var(--gold-2); flex: none; }
.search-results { margin-top: 18px; display: grid; gap: 4px; }
.search-results a { display: flex; align-items: baseline; gap: 14px; padding: 14px 16px; border-radius: 14px; text-decoration: none; font-size: 18px; font-weight: 650; }
.search-results a:hover, .search-results a:focus { background: #fff; box-shadow: var(--shadow-s); outline: 0; }
.search-results small { flex: none; width: 90px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-ink); }
.search-empty { color: var(--muted); }
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; align-items: center; }

/* ---------- Хлебные крошки ---------- */
.crumbs-wrap { padding-top: 18px; }
.crumbs { font-size: 13.5px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; list-style: none; margin: 0; padding: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: '/'; margin: 0 6px 0 2px; color: var(--line-2); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Заголовок внутренних страниц ---------- */
.page-head { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 4.5vw, 60px); overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(211, 181, 118, .22), transparent 65%); pointer-events: none; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-bottom: 0; }

/* ---------- Подвал ---------- */
.ftr { position: relative; background: var(--grad-dark); color: rgba(255, 255, 255, .72); font-size: 15px; overflow: hidden; isolation: isolate; }
.ftr a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.ftr a:hover { color: var(--gold-1); }
.ftr-word { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: -1; font-weight: 800; font-size: clamp(90px, 17vw, 260px); letter-spacing: -.05em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(211, 181, 118, .1); pointer-events: none; user-select: none; }
.ftr-cta { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ftr-cta-t { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; color: #fff; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; }
.ftr-cta-s { color: rgba(255, 255, 255, .7); margin: 0 0 22px; max-width: 46ch; }
.ftr-cta-phone { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; color: #fff !important; letter-spacing: -.01em; }
.ftr-cta-form { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-l); padding: clamp(20px, 2.6vw, 32px); }
.ftr-grid { display: grid; grid-template-columns: 1.25fr 1.5fr 1fr 1.15fr; gap: clamp(26px, 3vw, 48px); padding: clamp(44px, 5vw, 68px) 0; }
.ftr-logo img { width: 220px; }
.ftr-about { margin: 20px 0 22px; line-height: 1.6; }
.ftr-h { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-1); margin: 0 0 18px; }
.ftr-h a { color: inherit; }
.ftr-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr-col li a { display: inline-flex; gap: 8px; align-items: baseline; }
.ftr-two { grid-template-columns: 1fr 1fr; column-gap: 22px; }
.ftr-rates { display: grid; gap: 8px; margin: 0 0 22px; }
.ftr-rate { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.ftr-rate b { font-size: 20px; color: #fff; }
.ftr-rate .stars { color: var(--gold-1); letter-spacing: 1px; font-size: 13px; }
.ftr-rate span:last-child { margin-left: auto; font-size: 13px; }
.ftr-soc { display: flex; gap: 8px; }
.ftr-soc a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transition: all .25s; }
.ftr-soc a:hover { background: var(--grad-gold); color: var(--ink); border-color: transparent; }
.ftr-tel { display: block; font-size: 24px; font-weight: 800; color: #fff !important; letter-spacing: -.01em; margin-bottom: 4px; }
.ftr-line { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; line-height: 1.5; }
.ftr-line .ico { color: var(--gold-1); margin-top: 3px; flex: none; }
.ftr-line b { display: block; color: #fff; font-weight: 700; }
.ftr-warn { margin: 0; padding: clamp(22px, 3vw, 34px) 0; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: clamp(17px, 2.2vw, 30px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; background: var(--grad-gold); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldflow 10s ease-in-out infinite alternate; }
.ftr-legal { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 48px; padding: 28px 0; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .55); }
.ftr-legal p { margin: 0 0 6px; }
.ftr-legal b { color: rgba(255, 255, 255, .8); font-weight: 700; }
.ftr-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.ftr-docs { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr-docs .linklike { color: rgba(255, 255, 255, .82); font-size: 13.5px; }
.dev { display: inline-flex; align-items: center; gap: 14px; padding: 10px 16px 10px 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .25s, background .25s; }
.dev:hover { border-color: var(--gold-1); background: rgba(255, 255, 255, .07); }
.dev span:first-child { font-size: 12.5px; line-height: 1.25; color: rgba(255, 255, 255, .65); max-width: 90px; }
.dev img { width: 150px; height: auto; }
@media (max-width: 1100px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-cta { grid-template-columns: 1fr; } .ftr-legal { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ftr-grid { grid-template-columns: 1fr; } .ftr-two { grid-template-columns: 1fr 1fr; } .ftr-bottom { flex-direction: column; align-items: flex-start; } .ftr { padding-bottom: 76px; } }

/* ---------- Нижняя панель на телефоне ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 80; display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 6px; padding: 6px; border-radius: 22px; background: rgba(14, 14, 15, .94); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
  .mbar-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; border: 0; border-radius: 16px; background: transparent; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
  .mbar-btn .ico { width: 22px; height: 22px; color: var(--gold-1); }
  .mbar-main { background: var(--grad-gold); color: var(--ink); }
  .mbar-main .ico { color: var(--ink); }
  .mbar-btn:hover { color: #fff; }
}

/* ---------- Плавающие мессенджеры ---------- */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 79; }
.chat-btn { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border: 0; border-radius: 50%; background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.chat-btn .ico { width: 28px; height: 28px; position: absolute; transition: transform .35s var(--ease), opacity .25s; }
.chat-ico-b { opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat-ico-a { opacity: 0; transform: rotate(90deg); }
.chat.is-open .chat-ico-b { opacity: 1; transform: none; }
.chat-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); animation: ring 2.6s infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.chat-pop { position: absolute; right: 0; bottom: 76px; width: 280px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; animation: megaIn .3s var(--ease-out); }
.chat-t { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.chat-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; font-weight: 650; }
.chat-link:hover { background: var(--paper); color: var(--ink); }
.chat-link .ico { width: 22px; height: 22px; color: var(--gold-ink); }
@media (max-width: 760px) { .chat { display: none; } .chat.is-mobile-open { display: block; right: 12px; bottom: 90px; } .chat.is-mobile-open .chat-btn { display: none; } .chat.is-mobile-open .chat-pop { position: static; } }

/* ---------- Плашка записи на длинных страницах ---------- */
.sticky-cta { position: fixed; left: 50%; bottom: 22px; z-index: 78; transform: translate(-50%, 140%); transition: transform .5s var(--ease-out); width: min(760px, calc(100% - 140px)); }
.sticky-cta.is-on { transform: translate(-50%, 0); }
.sticky-cta-in { display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 22px; border-radius: 999px; background: rgba(14, 14, 15, .95); backdrop-filter: blur(10px); color: #fff; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6); }
.sticky-cta-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sticky-cta-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.sticky-cta-t span { color: var(--gold-1); font-size: 13.5px; font-weight: 700; }
.sticky-cta-tel { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.sticky-cta-tel .ico { color: var(--gold-1); }
@media (max-width: 760px) { .sticky-cta { display: none; } }

/* ---------- Модальные окна ---------- */
dialog.modal { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: var(--r-l); background: #fff; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); overflow: auto; }
dialog.modal[open] { animation: modalIn .45s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
dialog.modal::backdrop { background: rgba(14, 14, 15, .6); backdrop-filter: blur(5px); }
.modal-box { position: relative; padding: clamp(26px, 3.4vw, 40px); }
.modal-x { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background .2s, transform .3s var(--ease); }
.modal-x:hover { background: var(--ink); color: var(--gold-2); transform: rotate(90deg); }
.modal-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; padding-right: 40px; }
.modal-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--grad-gold); color: var(--ink); flex: none; }
.modal-ico .ico { width: 26px; height: 26px; }
.modal-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 6px; }
.modal-sub { margin: 0; color: var(--muted); font-size: 15px; }
.modal-perks { list-style: none; margin: -6px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.modal-video { width: min(1000px, calc(100% - 24px)); background: #000; }
.modal-video .modal-box { padding: 0; }
.modal-video .modal-x { z-index: 2; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.modal-img { width: min(1100px, calc(100% - 24px)); background: transparent; box-shadow: none; }
.modal-img .modal-box { padding: 0; }
.modal-img img { width: 100%; border-radius: var(--r); }

/* ---------- Формы заявок ---------- */
.lead-form { display: grid; gap: 14px; }
.lead-fields { display: grid; gap: 12px; }
.lead-form.is-row .lead-fields { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .lead-form.is-row .lead-fields { grid-template-columns: 1fr; } }
.contact-pref { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.contact-pref .field-label { margin: 0 6px 0 0; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.contact-pref .seg-opt span { padding: 8px 13px; font-size: 13.5px; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.form-msg { font-size: 14px; }
.form-msg.is-err { color: var(--danger); font-weight: 600; }
.captcha-note { display: none; margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.captcha-note a { color: inherit; }
.captcha-hide .captcha-note { display: block; }
@media (max-width: 768px) { .captcha-hide-m .captcha-note { display: block; } }
.form-done { text-align: center; padding: 18px 0; animation: modalIn .5s var(--ease-out); }
.form-done .done-ico { width: 74px; height: 74px; margin: 0 auto 14px; color: var(--gold); stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 1s .1s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.on-dark .input, .on-dark .select, .on-dark .textarea { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.on-dark .input::placeholder, .on-dark .textarea::placeholder { color: rgba(255, 255, 255, .5); }
.on-dark .check { color: rgba(255, 255, 255, .6); }
.on-dark .check a { color: rgba(255, 255, 255, .85); }
.on-dark .check input { background: transparent; border-color: rgba(255, 255, 255, .35); }
.on-dark .form-note, .on-dark .captcha-note { color: rgba(255, 255, 255, .55); }
.on-dark .form-done p { color: rgba(255, 255, 255, .8); }
.on-dark .form-done .modal-title { color: #fff; }

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: 22px; bottom: 22px; z-index: 85; width: min(440px, calc(100% - 24px)); background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; animation: modalIn .5s var(--ease-out); border: 1px solid var(--line); }
.cookie-t { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.cookie p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .cookie { left: 12px; bottom: 90px; } }
@media (max-height: 860px) { .drawer-meta { display: none; } .drawer-foot { gap: 10px; padding-top: 14px; padding-bottom: 14px; } }
