/*
Theme Name: Рамспас
Description: Тема службы вскрытия замков. Контакты и цены - «Контакты и цены» в меню админки.
Version: 3.0.0
Author: DevLoft
Text Domain: ramspas
*/

/* Шрифт IBM Plex Sans, лежит в assets/fonts. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/ibm-plex-sans-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Основа ---------- */
:root {
	--bg: #ffffff;
	--grey: #f4f5f3;
	--ink: #1c2420;
	--muted: #5f6964;
	--line: #dde2de;
	--green: #23863c;
	--green-d: #1a6a2f;
	--green-l: #e9f3ec;
	--deep: #1d3326;
	--font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
	--wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ph, .ph__d { white-space: nowrap; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 6px; font: 500 16px/1.2 var(--font); text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn--main { background: var(--green); color: #fff; }
.btn--main:hover { background: var(--green-d); color: #fff; }
.btn--line { background: #fff; color: var(--ink); border-color: #b9c2bc; }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--light:hover { border-color: #fff; color: #fff; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hdr__in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 24px; padding-top: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__emb { width: 50px; height: auto; }
.brand__txt { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-weight: 600; font-size: 20px; line-height: 1.15; letter-spacing: .01em; }
.brand__sub { font-size: 13px; color: var(--muted); line-height: 1.3; }
.hdr__right { justify-self: end; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.hdr__tel { grid-row: 1; font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--ink); text-decoration: none; }
.hdr__tel:hover { color: var(--green-d); }
.hdr__hours { grid-row: 2; font-size: 13px; color: var(--muted); text-align: right; }
.hdr__max { grid-row: 1 / 3; grid-column: 2; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid #b9c2bc; border-radius: 6px; font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: none; }
.hdr__max:hover { border-color: var(--ink); color: var(--ink); }
.hdr__burger { display: none; }

.nav { grid-column: 1 / -1; margin-top: 10px; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 26px; flex-wrap: wrap; }
.nav .menu a { display: block; padding: 10px 0 11px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.nav .menu a:hover { color: var(--green-d); }
.nav .menu .current-menu-item > a { border-bottom-color: var(--green); color: var(--green-d); }
.nav__foot { display: none; }

@media (max-width: 1023px) {
	.hdr__in { padding-bottom: 10px; }
	.brand__emb { width: 42px; }
	.brand__name { font-size: 16px; }
	.brand__sub { font-size: 12px; }
	.hdr__tel, .hdr__hours, .hdr__max { display: none; }
	.hdr__right { display: block; }
	.hdr__burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 48px; height: 44px; border: 1px solid #b9c2bc; border-radius: 6px; background: #fff; }
	.hdr__burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .3s cubic-bezier(.22, .8, .24, 1), opacity .2s; }
	.nav-open .hdr__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.nav-open .hdr__burger span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
	.nav-open .hdr__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.hdr__burger b { display: none; }
	.nav {
		position: fixed; left: 0; right: 0; top: var(--hdr-h, 66px); bottom: 0; z-index: 49; margin: 0; padding: 4px 20px 120px;
		background: #fff; border-top: 1px solid var(--line); overflow-y: auto;
		visibility: hidden; opacity: 0; pointer-events: none;
		clip-path: inset(0 0 100% 0);
		transition: clip-path .45s cubic-bezier(.22, .8, .24, 1), opacity .25s ease, visibility 0s linear .45s;
	}
	.nav-open .nav { visibility: visible; opacity: 1; pointer-events: auto; clip-path: inset(0 0 0 0); transition: clip-path .45s cubic-bezier(.22, .8, .24, 1), opacity .2s ease, visibility 0s; }
	/* пункты появляются по очереди: сдвиг снизу и проявление */
	.nav .menu li, .nav__foot { opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .35s cubic-bezier(.22, .8, .24, 1); }
	.nav-open .nav .menu li, .nav-open .nav__foot { opacity: 1; transform: none; }
	.nav-open .nav .menu li:nth-child(1) { transition-delay: .08s; }
	.nav-open .nav .menu li:nth-child(2) { transition-delay: .12s; }
	.nav-open .nav .menu li:nth-child(3) { transition-delay: .16s; }
	.nav-open .nav .menu li:nth-child(4) { transition-delay: .20s; }
	.nav-open .nav .menu li:nth-child(5) { transition-delay: .24s; }
	.nav-open .nav .menu li:nth-child(6) { transition-delay: .28s; }
	.nav-open .nav .menu li:nth-child(7) { transition-delay: .32s; }
	.nav-open .nav .menu li:nth-child(8) { transition-delay: .36s; }
	.nav-open .nav .menu li:nth-child(9) { transition-delay: .40s; }
	.nav-open .nav__foot { transition-delay: .46s; }
	/* зелёная полоска слева у пункта при нажатии */
	.nav .menu a { position: relative; transition: color .2s, padding-left .25s; }
	.nav .menu a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 2px; background: var(--green); transition: width .25s; }
	.nav .menu a:active, .nav .menu a:hover { padding-left: 18px; color: var(--green-d); }
	.nav .menu a:active::before, .nav .menu a:hover::before { width: 10px; }
	.nav-open { overflow: hidden; }
	.nav .menu { flex-direction: column; gap: 0; }
	.nav .menu a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
	.nav .menu .current-menu-item > a { border-bottom-color: var(--line); }
	.nav__foot { display: block; margin-top: 22px; }
	.nav__tel { font-weight: 600; font-size: 24px; color: var(--ink); text-decoration: none; }
	.nav__foot p { color: var(--muted); font-size: 14px; margin-top: 4px; }
}

/* ---------- Первый экран: текст и справка о службе ---------- */
.intro { padding: 52px 0 44px; background: linear-gradient(180deg, var(--grey), #fff 85%); border-bottom: 1px solid var(--line); }
.intro__in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.intro__h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; max-width: 620px; margin-bottom: 16px; }
.intro__lead { font-size: 18px; color: var(--muted); max-width: 600px; margin-bottom: 30px; }
.dial { padding-top: 22px; border-top: 1px solid var(--line); max-width: 600px; }
.dial__lbl { font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.dial__tel { display: inline-block; font-weight: 600; font-size: clamp(28px, 3.2vw, 36px); line-height: 1.2; color: var(--ink); text-decoration: none; margin-bottom: 16px; }
.dial__tel:hover { color: var(--green-d); }
.dial__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.brief { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 4px; padding: 22px 24px 18px; }
.brief__h { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.brief__list { margin: 0; }
.brief__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.brief__list dt { color: var(--muted); }
.brief__list dd { margin: 0; font-weight: 600; text-align: right; }
.brief__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.brief__promo { margin: 14px 0 0; padding: 10px 12px; background: var(--green-l); border-left: 3px solid var(--green); font-size: 14px; font-weight: 600; color: var(--green-d); }

@media (max-width: 960px) {
	.intro { padding: 32px 0 34px; }
	.intro__in { grid-template-columns: 1fr; gap: 28px; }
	.intro__lead { font-size: 17px; }
}
@media (max-width: 520px) {
	.dial__btns .btn { flex: 1 1 100%; }
}

/* Наши работы - ряд фото */
.works { padding: 40px 0 8px; }
.works__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.works__head .sec__h { margin: 0; }
.works__hint { font-size: 14px; color: var(--muted); }
a.works__hint { color: var(--green-d); }
.works { padding-bottom: 20px; }

/* Бесконечная лента фото: два одинаковых набора, сдвиг на половину длины по кругу */
.marquee { overflow: hidden; padding: 4px 0 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.marquee__track { display: flex; width: max-content; animation: rs-marquee calc(var(--n, 10) * 4.5s) linear infinite; will-change: transform; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; }
.marquee__item { flex: none; width: 210px; margin-right: 12px; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.marquee__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s ease, filter .3s; }
.marquee__item:hover img { transform: scale(1.04); filter: brightness(1.04); }
@keyframes rs-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) { .marquee__item { width: 150px; margin-right: 8px; } }
@media (prefers-reduced-motion: reduce) {
	.marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.marquee__track { animation: none; }
	.marquee__set[aria-hidden] { display: none; }
}

/* ---------- Секции ---------- */
.sec { padding: 60px 0; }
.sec--tight { padding: 40px 0 56px; }
.sec--grey { background: var(--grey); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--line { border-top: 1px solid var(--line); }
.sec--grey + .sec--cta, .sec--grey + .ftr { border-top: 0; }
.sec--grey + .sec--cta { padding-top: 60px; }
.sec__h { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 26px; }
.sec__h--sm { font-size: 22px; }
.sec__note { color: var(--muted); font-size: 15px; margin: 22px 0 0; max-width: 760px; }
@media (max-width: 600px) { .sec { padding: 44px 0; } }

/* Услуги - строки прайса */
.svc-list { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 88px minmax(0, 1fr) 170px 110px; align-items: center; gap: 22px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .15s; }
.svc:hover { background: var(--grey); color: var(--ink); }
.svc__pic img { width: 88px; height: 66px; object-fit: cover; border-radius: 4px; }
.svc__name { display: block; font-weight: 600; font-size: 18px; margin-bottom: 2px; }
.svc__text { display: block; font-size: 15px; color: var(--muted); }
.svc__price { font-weight: 600; font-size: 18px; white-space: nowrap; }
.svc__more { font-size: 15px; color: var(--green-d); text-align: right; }
.svc__more::after { content: " →"; }
@media (max-width: 760px) {
	.svc { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 14px; padding: 14px 0; }
	.svc__pic { grid-row: 1 / 3; }
	.svc__pic img { width: 64px; height: 64px; }
	.svc__text { display: none; }
	.svc__price { font-size: 16px; color: var(--green-d); }
	.svc__more { display: none; }
}

/* ---------- Внутренние страницы ---------- */
.ptop { padding: 26px 0 40px; background: linear-gradient(180deg, var(--grey), #fff 85%); border-bottom: 1px solid var(--line); }
.ptop--simple { padding-bottom: 30px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); }
.ptop__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.ptop__h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin-bottom: 14px; }
.ptop__lead { font-size: 18px; color: var(--muted); max-width: 680px; margin-bottom: 24px; }
.ptop--simple .ptop__lead { margin-bottom: 0; }
.brief--sm .brief__list > div:first-child dd { color: var(--green-d); font-size: 18px; }
@media (max-width: 900px) { .ptop__in { grid-template-columns: 1fr; gap: 24px; } .ptop__lead { font-size: 17px; } }

/* ---------- Текст из редактора ---------- */
.entry > :first-child { margin-top: 0; }
.entry h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 1.6em; }
.entry h3 { font-size: 20px; margin-top: 1.3em; }
.entry p, .entry li { max-width: 780px; }
.entry ul:not(.rs-rows) { list-style: none; padding: 0; }
.entry ul:not(.rs-rows) > li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.entry ul:not(.rs-rows) > li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 2px; background: var(--green); }

/* «Почему нам доверяют» - строки */
.rs-rows { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.entry .rs-rows > li { max-width: none; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.rs-rows strong { display: block; font-weight: 600; font-size: 17px; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 700px) { .rs-rows { grid-template-columns: 1fr; } }

/* «Как мы работаем» - шаги */
.rs-steps { list-style: none; counter-reset: st; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.entry .rs-steps > li { counter-increment: st; max-width: none; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 15px; }
.rs-steps > li::before { content: "Шаг " counter(st); display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); margin-bottom: 6px; }
@media (max-width: 900px) { .rs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rs-steps { grid-template-columns: 1fr; gap: 18px; } }

/* Галерея */
.wp-block-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0; padding: 0; }
.wp-block-gallery figure { margin: 0; min-width: 0; width: auto !important; }
.wp-block-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.wp-block-gallery a { display: block; cursor: zoom-in; }
.wp-block-gallery figcaption { font-size: 13px; color: var(--muted); padding-top: 6px; }
@media (max-width: 900px) { .wp-block-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Таблица */
.wp-block-table { margin: 20px 0; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.reviews-all, .reviews-all > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.reviews-all:has(> .wp-block-group__inner-container) { display: block; }
.wp-block-quote { margin: 0; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 2px 10px rgba(28, 36, 32, .06); display: flex; flex-direction: column; }
.wp-block-quote p { font-size: 15px; max-width: none; }
.wp-block-quote cite { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-style: normal; font-size: 14px; font-weight: 600; }
.entry .reviews-all .wp-block-quote { margin: 0; }
@media (max-width: 1023px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reviews > :nth-child(3) { display: none; } }
@media (max-width: 700px) {
	.reviews, .reviews-all, .reviews-all > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr); }
	.reviews > :nth-child(3) { display: flex; }
}

/* Прайс */
.price-group { margin-bottom: 34px; max-width: 860px; }
.price-group__title { font-size: 20px; margin-bottom: 4px; }
.price-row { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-row__dots { flex: 1; min-width: 20px; border-bottom: 1px dotted #aab3ad; transform: translateY(-5px); }
.price-row__val { flex: none; font-weight: 600; white-space: nowrap; }
@media (max-width: 520px) { .price-row { flex-wrap: wrap; gap: 2px 10px; } .price-row__name { flex-basis: 100%; } .price-row__dots { display: none; } .price-row__val { color: var(--green-d); } }

/* Призыв позвонить */
.sec--cta { padding: 10px 0 60px; }
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 34px 40px; background: var(--deep); color: #fff; border-radius: 4px; }
.cta__h { font-size: clamp(21px, 2.3vw, 26px); font-weight: 600; line-height: 1.25; margin-bottom: 6px; }
.cta__sub { margin: 0; color: rgba(255, 255, 255, .75); font-size: 15px; }
.cta__act { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.cta__tel { font-weight: 600; font-size: 28px; color: #fff; text-decoration: none; }
.cta__tel:hover { color: #b8e6c3; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 28px 22px; } .cta__act { justify-content: flex-start; } }

/* Контакты */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contacts .dial__tel { margin-bottom: 10px; }
.facts { margin: 20px 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.contacts__map iframe { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: 4px; background: var(--grey); }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } .contacts__map iframe { height: 340px; } .facts > div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Подвал ---------- */
.ftr { background: var(--grey); border-top: 1px solid var(--line); padding: 44px 0 22px; font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; }
.ftr__brand img { width: 56px; margin-bottom: 10px; }
.ftr__name { font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.ftr__note { color: var(--muted); font-size: 14px; }
.ftr__h { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ftr__list { list-style: none; margin: 0; padding: 0; }
.ftr__list li { margin-bottom: 7px; }
.ftr a { color: var(--ink); text-decoration: none; }
.ftr a:hover { color: var(--green-d); }
.ftr p { margin-bottom: 7px; }
.ftr__tel { display: inline-block; font-weight: 600; font-size: 19px; margin-bottom: 6px; }
.ftr__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.ftr__bottom a { color: var(--muted); }
@media (max-width: 1023px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ftr__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Кнопки внизу экрана (телефон, планшет) ---------- */
.mbar { display: none; }
@media (max-width: 1023px) {
	body { padding-bottom: 72px; }
	.mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0, 0, 0, .05); }
	.mbar a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 6px; font-weight: 600; font-size: 17px; text-decoration: none; }
	.mbar__call { flex: 1; background: var(--green); color: #fff; }
	.mbar__max { flex: 0 0 34%; background: #fff; color: var(--ink); border: 1px solid #b9c2bc; }
}

/* ---------- Окно с телефоном ---------- */
.pop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 28, 24, .5); opacity: 0; transition: opacity .2s; }
.pop.is-open { opacity: 1; }
.pop[hidden] { display: none; }
.pop__box { position: relative; width: 100%; max-width: 440px; padding: 36px 34px 28px; text-align: center; background: #fff; border-top: 4px solid var(--green); border-radius: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, .2); transform: translateY(10px); transition: transform .2s; }
.pop.is-open .pop__box { transform: none; }
.pop__x { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; }
.pop__x:hover { color: var(--ink); }
.pop__emb { width: 64px; margin: 0 auto 12px; }
.pop__title { font-weight: 600; font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.pop__text { color: var(--muted); margin-bottom: 14px; }
.pop__tel { display: block; padding: 12px; border-radius: 6px; background: var(--green); color: #fff; font-weight: 600; font-size: 26px; text-decoration: none; }
.pop__tel:hover { background: var(--green-d); color: #fff; }
.pop__foot { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.pop__foot span { padding: 0 6px; }

/* ---------- Окно просмотра фото ---------- */
.lbx { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: rgba(14, 19, 16, .94); color: #fff; opacity: 0; transition: opacity .2s; }
.lbx.is-open { opacity: 1; }
.lbx[hidden] { display: none; }
.lbx-open, .lbx-open body { overflow: hidden; }
.lbx__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.lbx__count { font-size: 14px; letter-spacing: .06em; color: rgba(255, 255, 255, .75); }
.lbx__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 30px; line-height: 1; }
.lbx__close:hover { background: rgba(255, 255, 255, .2); }
.lbx__stage { flex: 1; min-height: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 0 8px; }
.lbx__fig { margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lbx__img { max-width: 100%; max-height: calc(100vh - 220px); width: auto; height: auto; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); transition: opacity .25s, transform .25s; }
.lbx__img.is-fading { opacity: 0; transform: scale(.985); }
.lbx__cap { min-height: 1.4em; font-size: 15px; color: rgba(255, 255, 255, .85); text-align: center; }
.lbx__nav { justify-self: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); position: relative; transition: background .15s; }
.lbx__nav:hover { background: rgba(255, 255, 255, .22); }
.lbx__nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.lbx__nav--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.lbx__nav--next::before { transform: translate(-70%, -50%) rotate(45deg); }
.lbx__thumbs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding: 14px 18px 18px; scrollbar-width: none; }
.lbx__thumb { flex: none; width: 54px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; opacity: .55; overflow: hidden; transition: opacity .15s, border-color .15s; }
.lbx__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lbx__thumb:hover { opacity: .85; }
.lbx__thumb.is-active { opacity: 1; border-color: #fff; }
.lbx--single .lbx__nav, .lbx--single .lbx__thumbs { visibility: hidden; }
@media (max-width: 700px) {
	.lbx__stage { grid-template-columns: minmax(0, 1fr); padding: 0 10px; }
	.lbx__nav { position: absolute; bottom: 96px; width: 46px; height: 46px; background: rgba(255, 255, 255, .14); }
	.lbx__nav--prev { left: 14px; }
	.lbx__nav--next { right: 14px; }
	.lbx__img { max-height: calc(100vh - 250px); }
	.lbx__thumbs { justify-content: flex-start; }
	.lbx__thumb { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .lbx, .lbx__img, .nav, .nav .menu li, .nav__foot, .hdr__burger span { transition: none !important; } }

/* Cookie */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 380px; display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); font-size: 13px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; color: var(--muted); }
.cookie__ok { flex: none; border: 1px solid #b9c2bc; border-radius: 6px; background: #fff; color: var(--ink); font-weight: 500; font-size: 14px; padding: 8px 12px; }
@media (max-width: 1023px) { .cookie { left: 10px; right: 10px; bottom: 82px; max-width: none; } }

/* Кнопки MAX - в фирменных цветах MAX */
.hdr__max, .mbar__max, a.btn[href*="max.ru"] { background: linear-gradient(90deg, #1591ff 0%, #3c22fe 55%, #8114ff 100%) border-box; color: #fff; border-color: transparent; }
.hdr__max:hover, .mbar__max:hover, a.btn[href*="max.ru"]:hover { background: linear-gradient(90deg, #0f7fe8 0%, #3219e0 55%, #7110e3 100%) border-box; color: #fff; border-color: transparent; }

/* Номер без ссылки на компьютере и планшете (см. main.js) */
.tel-static { cursor: text; }
.btn[hidden] { display: none !important; }
.btn.tel-static { background: none; border-color: transparent; color: inherit; padding-left: 0; padding-right: 0; }
@media (min-width: 768px) {
	.mbar__call { display: none !important; }
	.mbar__max { flex: 1 1 100% !important; }
}

/* Звёзды у отзывов */
.stars { display: inline-flex; gap: 2px; margin-bottom: 8px; font-size: 18px; line-height: 1; color: #d6dad7; }
.stars .on { color: #f5b301; }
.stars i { font-style: normal; }

/* Форма «Оставить отзыв» */
.rform { max-width: 640px; margin-top: 32px; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.rform__h { margin: 0 0 14px; font-size: 22px; }
.rform__ok { margin: 0; font-weight: 600; color: var(--green-d); }
.rform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rform__f { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.rform__f input, .rform__f textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #b9c2bc; border-radius: 6px; font: 400 16px/1.4 var(--font); color: var(--ink); background: #fff; }
.rform__f input:focus, .rform__f textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.rform__rate { margin: 0 0 14px; padding: 0; border: 0; }
.rform__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rform__rate legend { margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 600; }
.rform__rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rform__rate label { font-size: 30px; line-height: 1; color: #d6dad7; cursor: pointer; }
.rform__rate input:checked ~ label, .rform__rate label:hover, .rform__rate label:hover ~ label { color: #f5b301; }
.rform__rate input:focus-visible + label { outline: 2px solid var(--green); }
.rform__note { margin: 12px 0 0; font-size: 13px; color: var(--muted, #5b665f); }
