/* ============================================================
   FORESTOR — main.css (v0.3, по замерам оригинала)
   Шрифт: Montserrat везде. Заголовки 600, цвет #111013.
   ============================================================ */

:root {
	--red: #d90a2c;
	--ink: #111013;        /* заголовки, тёмные кнопки */
	--text: #16151a;       /* основной текст */
	--muted: #8b9099;      /* приглушённый (eyebrow, подписи) */
	--line: #e7e8ee;       /* тонкие границы */
	--bg: #ffffff;
	--bg-soft: #f3f4f7;    /* светло-серые секции, футер, пилюли */
	--tg: #0088cc;         /* Telegram */
	--max: #6533e9;        /* Max */

	--font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

	--container: 1800px;
	--gutter: 24px;
	--radius: 16px;
	--header-h: 130px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px; line-height: 1.6;
	color: var(--text); background: var(--bg);
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 600; color: var(--ink); line-height: 1.1; margin: 0 0 .4em; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5.2vw, 100px); }
.section { padding-block: 40px; }
.home .section { padding-block: 20px; } /* компактнее отступы между блоками главной */
.section--soft { background: var(--bg-soft); }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 18px 24px; border-radius: 6px;
	font-weight: 600; font-size: 15.5px; line-height: 1;
	cursor: pointer; border: 0; transition: .2s ease; white-space: nowrap;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b2930; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #b80824; }

/* ============ ШАПКА ============ */
.site-header { position: relative; z-index: 100; background: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-logo img { height: 66px; width: auto; }

.site-header__right { display: flex; align-items: center; gap: 14px; }

/* меню в светлой пилюле, с номерами 01–04 */
.site-nav__list { display: flex; align-items: center; gap: 4px; background: rgba(136,135,137,.08); border-radius: 8px; padding: 5px 6px; counter-reset: nav; }
.site-nav__item { counter-increment: nav; }
.site-nav__link {
	position: relative; display: inline-flex; align-items: center;
	padding: 10px 20px; border-radius: 6px;
	font-weight: 500; font-size: 16px; color: var(--text); transition: .2s;
}
.site-nav__link::after {
	content: "0" counter(nav);
	position: absolute; top: 1px; right: 10px;
	font-size: 9px; font-weight: 600; color: var(--muted); letter-spacing: .02em;
}
.site-nav__link:hover { color: var(--red); }
.site-nav .current-menu-item > .site-nav__link,
.site-nav__item.is-active .site-nav__link { color: var(--red); }
.site-nav .current-menu-item > .site-nav__link::after,
.site-nav__item.is-active .site-nav__link::after { color: var(--red); }

.phone-pill { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 8px; font-weight: 600; font-size: 15.5px; transition: background .2s; }
.phone-pill:hover { background: var(--red); }
.phone-pill__icon { display: inline-flex; }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle span + span { margin-top: 5px; }

/* ============ HERO (белый, 2 колонки) ============ */
.hero { padding-block: 86px 70px; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 30px clamp(40px, 4.6vw, 100px); align-items: start; }

.hero__aside { display: flex; flex-direction: column; gap: 20px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 18px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; }
.badge__ic { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; color: #fff; }
.badge__img { width: 21px; height: 21px; object-fit: contain; border-radius: 5px; }
.badge--tg { color: var(--tg); }
.badge--tg .badge__ic { background: var(--tg); border-radius: 50%; }
.badge--max { color: var(--max); }
.badge--max .badge__ic { background: var(--max); }

.hero__features { display: flex; flex-direction: column; gap: 1px; }
.hero__features li { position: relative; padding-left: 30px; font-weight: 600; font-size: 19px; line-height: 1.42; color: var(--ink); }
.hero__features li::before {
	content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
	background: var(--ink);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12.5l5 5L20 6.5'/></svg>") center/18px no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12.5l5 5L20 6.5'/></svg>") center/18px no-repeat;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }

.hero__headline { }
.hero__eyebrow { color: var(--text); font-weight: 500; font-size: 15px; margin: 0 0 18px; }
.hero__title { font-size: clamp(30px, 3.4vw, 70px); font-weight: 600; line-height: 1.0; margin: 0 0 22px; }
.hero__subtitle { font-size: 16.4px; font-weight: 400; color: var(--text); margin: 0; max-width: 620px; }
.hero__subtitle strong { color: var(--ink); font-weight: 700; }

/* ============ КАРТОЧКИ ДОМА/БАНИ ============ */
.cats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.cat-card { position: relative; display: block; min-height: 300px; padding: 30px 32px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--cat-img); background-size: cover; background-position: center bottom; transform-origin: center bottom; transition: transform .5s; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,16,19,.15), rgba(17,16,19,.5)); }
.cat-card:hover::before { transform: scale(1.05); }
.cat-card__label { display: block; font-size: 15px; opacity: .92; margin-bottom: 6px; }
.cat-card__title { display: block; font-size: 30px; font-weight: 600; max-width: 60%; }
.cat-card__arrow { position: absolute; right: 28px; bottom: 28px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; transition: .2s; }
.cat-card:hover .cat-card__arrow { background: var(--red); border-color: var(--red); }

/* ============ СЕРЫЙ ИНСЕТ-БОКС ============ */
.gbox { background: var(--bg-soft); border-radius: 28px; padding: clamp(28px, 3vw, 56px); }
.quiz-sec__box { display: grid; place-items: center; text-align: center; }
.quiz-sec__box > div { width: 100%; }

/* CTA «Индивидуальный проект» — светлый баннер: контент слева, фото справа. Ширина как у контента (1308px). */
.forestor-cta-sec { padding-block: clamp(24px, 3vw, 48px); }
.forestor-cta-sec > .container { width: min(100% - 40px, 1308px); max-width: none; margin-inline: auto; padding-inline: 0; }
.forestor-cta {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .58fr);
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.forestor-cta__body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.forestor-cta__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.forestor-cta__title { margin: 0; font-size: clamp(22px, 2.5vw, 36px); font-weight: 800; line-height: 1.1; color: var(--ink); text-wrap: balance; }
.forestor-cta__media { min-height: 240px; background-image: var(--cta-bg); background-size: cover; background-position: center; }
.forestor-cta__form .wpcf7 { margin: 0; }
.forestor-cta__form .wpcf7-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.forestor-cta__form .cta-row { margin: 0; }
.forestor-cta__form .cta-row--name, .forestor-cta__form .cta-row--phone { flex: 1 1 190px; }
.forestor-cta__form .cta-row--submit { flex: 0 0 auto; }
.forestor-cta__form .cta-row--consent { flex: 1 1 100%; }
.forestor-cta__form input[type="text"], .forestor-cta__form input[type="tel"] {
	width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
	font-family: var(--font); font-size: 15px; background: var(--bg-soft); color: var(--ink); }
.forestor-cta__form input[type="text"]:focus, .forestor-cta__form input[type="tel"]:focus { outline: none; border-color: var(--ink); background: #fff; }
.forestor-cta__form input::placeholder { color: var(--muted); }
.forestor-cta__form .wpcf7-submit {
	padding: 14px 28px; border: 0; border-radius: 10px; white-space: nowrap; cursor: pointer;
	background: var(--red); color: #fff; font-family: var(--font); font-weight: 700; font-size: 15px; transition: background .2s; }
.forestor-cta__form .wpcf7-submit:hover { background: #b70823; }
.forestor-cta__form .wpcf7-spinner { margin: 0 0 0 8px; }
.forestor-cta__form .cta-row--consent .wpcf7-list-item { margin: 0; }
.forestor-cta__form .cta-row--consent label { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.forestor-cta__form .cta-row--consent input[type="checkbox"] { flex: 0 0 auto; margin-top: 1px; width: 17px; height: 17px; accent-color: var(--red); }
.forestor-cta__form .cta-row--consent a { color: var(--red); text-decoration: underline; }
.forestor-cta__form .wpcf7-response-output { flex: 1 1 100%; margin: 4px 0 0; padding: 10px 14px; border-radius: 8px; font-size: 14px;
	background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); }
@media (max-width: 860px) {
	.forestor-cta { grid-template-columns: 1fr; }
	.forestor-cta__media { order: -1; min-height: 170px; }
}
@media (max-width: 560px) {
	.forestor-cta__form .wpcf7-form { align-items: stretch; }
	.forestor-cta__form .cta-row--submit .wpcf7-submit { width: 100%; }
}

/* Заголовки карточек проектов и серия-«надзаголовок» стали ссылками (SEO-анкоры) — вид не меняем. */
.p-proj-card__title a, .p-portfolio__eyebrow a { color: inherit; text-decoration: none; }
.p-proj-card__title a:hover, .p-portfolio__eyebrow a:hover { color: var(--red); }

/* Подборки проектов (перелинковка /pt/) — серое «гнездо» + белые чипы-пилюли. */
.pt-links-sec--narrow > .container { width: min(100% - 40px, 1308px); max-width: none; margin-inline: auto; padding-inline: 0; }
.pt-links__title { font-size: clamp(22px, 1.6vw, 28px); font-weight: 600; margin: 0 0 22px; color: var(--ink); }
.pt-links__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0; padding: 0; }
.pt-links__item { margin: 0; }
.pt-links__chip {
	display: inline-flex; align-items: center;
	padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
	font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ink);
	text-decoration: none; transition: border-color .2s ease, color .2s ease;
}
.pt-links__chip:hover { border-color: var(--red); color: var(--red); }
.pt-links__chip:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (max-width: 640px) {
	.pt-links__chip { padding: 10px 14px; font-size: 13px; }
}

.sec-eyebrow { font-size: 15px; font-weight: 500; color: var(--text); margin: 0 0 16px; }
.sec-title { font-size: clamp(26px, 1.75vw, 34px); font-weight: 600; margin: 0 0 30px; }

/* ---- Выполненный проект ---- */
.proj .section, .proj { }
.proj__frame { font-size: 15px; font-weight: 500; color: var(--text); margin: 0 0 12px; }
.proj__title { font-size: clamp(26px, 2.1vw, 34px); font-weight: 600; margin: 0 0 26px; }
.proj__slider { position: relative; }
.proj__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--radius); }
.proj__track::-webkit-scrollbar { display: none; }
.proj__slide { flex: 0 0 100%; scroll-snap-align: start; }
.proj__slide img { width: 100%; height: clamp(320px, 34vw, 520px); object-fit: cover; border-radius: var(--radius); display: block; }
/* Кнопки слайдера — матовое стекло (iOS frosted glass). */
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(38,42,50,.42); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.25); transition: background .2s, transform .15s; z-index: 2; }
.slider-arrow svg { filter: drop-shadow( 0 1px 2px rgba(0,0,0,.4) ); }
@supports ( ( -webkit-backdrop-filter: blur(2px) ) or ( backdrop-filter: blur(2px) ) ) {
	.slider-arrow { background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }
}
.slider-arrow:hover { background: rgba(255,255,255,.30); }
.slider-arrow:active { transform: translateY(-50%) scale(.94); }
.slider-arrow--prev { left: 22px; }
.slider-arrow--next { right: 22px; }
.slider-dots { display: flex; gap: 9px; justify-content: center; margin-top: 22px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #c9ccd6; cursor: pointer; padding: 0; transition: .2s; }
.slider-dots button.is-active { background: var(--ink); width: 26px; border-radius: 5px; }

/* ---- Приезжайте на производство (серый бокс, карта справа) ---- */
.prod__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px, 404px); gap: clamp(32px, 3.6vw, 64px); align-items: center; }
.prod__content { max-width: none; align-self: center; }
.prod__title { font-size: clamp(28px, 2.5vw, 46px); font-weight: 600; line-height: 1.08; margin: 6px 0 22px; }
.prod__text { font-size: 17px; line-height: 1.62; color: var(--text); margin: 0 0 18px; text-align: justify; }
.prod__text strong { color: var(--ink); font-weight: 700; }
.prod__content .btn { margin-top: 12px; }
.prod__map { position: relative; align-self: center; width: 100%; height: clamp(320px, 24vw, 384px); border-radius: 20px; overflow: hidden; background: #fff; }
.prod__map iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }

/* ---- FAQ ---- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(36px, 4vw, 80px); align-items: start; }
.faq__title { font-size: clamp(30px, 2.6vw, 50px); font-weight: 600; line-height: 1.08; margin: 6px 0 30px; }
.faq__img { width: 100%; height: clamp(240px, 22vw, 340px); object-fit: cover; border-radius: var(--radius); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #ebecef; border-radius: 12px; overflow: hidden; }
.faq-item__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; }
.faq-item__q { font-size: 16.4px; font-weight: 600; color: var(--ink); }
.faq-item__ic { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.faq-item__ic::before, .faq-item__ic::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 2px; background: var(--ink); transform: translate(-50%,-50%); transition: .25s; border-radius: 2px; }
.faq-item__ic::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item.is-open .faq-item__ic::after { transform: translate(-50%,-50%) rotate(0); opacity: 0; }
.faq-item__body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.is-open .faq-item__body { max-height: 640px; }
.faq-item__body > p { margin: 0; padding: 2px 24px 22px; font-size: 15.5px; line-height: 1.68; color: var(--muted); text-align: justify; }

/* ============ ФУТЕР ============ */
.site-footer { margin-top: 24px; padding-bottom: 40px; }
.site-footer__box { position: relative; padding: clamp(32px, 3.4vw, 64px); }
.site-footer__cols { display: grid; grid-template-columns: 1.3fr 1.15fr 1fr 1.15fr; gap: 30px; }
.site-footer .site-logo img { height: 66px; }
.site-footer__title { color: var(--ink); font-weight: 700; font-size: 16px; margin: 0 0 20px; }
.site-footer__socials { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 26px; }
.social { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.social__ic { display: inline-flex; }
.social--instagram { color: #e1306c; } .social--telegram { color: #0088cc; } .social--vk { color: #0077ff; } .social--max { color: #6533e9; }
.site-footer__menu li, .site-footer__contacts li { margin-bottom: 12px; }
.site-footer__menu a:hover, .site-footer__contacts a:hover, .site-footer__addr a:hover, .site-footer__policies a:hover { color: var(--red); }
.site-footer__addr { margin: 0 0 14px; display: flex; align-items: flex-start; gap: 8px; }
.site-footer__addr-ic { flex: none; color: var(--red); margin-top: 1px; line-height: 0; }
.site-footer__strong { font-weight: 700; color: var(--ink); }
.site-footer__phone { display: inline-block; color: var(--ink); font-size: 16px; font-weight: 500; margin-bottom: 14px; }
.site-footer__contacts { margin: 0 0 22px; }
.site-footer__policies li { margin-bottom: 6px; }
.site-footer__policies a { color: var(--muted); font-size: 14px; }
.site-footer__totop { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; margin: 34px 0 0; transition: .2s; }
.site-footer__totop:hover { background: var(--ink); color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(0,0,0,.08); font-size: 14px; color: var(--muted); }
.site-footer__bottom a:hover { color: var(--red); }

/* ---- Базовая страница (текст/юридические) ---- */
.page-basic { padding-block: 36px 16px; }
.page-basic__box { padding: clamp(30px, 4vw, 72px); }
.page-basic__title { font-size: clamp(28px, 3vw, 46px); font-weight: 600; margin: 0 0 26px; }
.page-basic__content { max-width: 900px; font-size: 16px; line-height: 1.7; color: var(--text); }
.page-basic__content > *:first-child { margin-top: 0; }
.page-basic__content h2 { font-size: clamp(22px, 2vw, 28px); margin: 34px 0 14px; }
.page-basic__content h3 { font-size: 20px; margin: 26px 0 10px; }
.page-basic__content p { margin: 0 0 16px; }
.page-basic__content a { color: var(--red); }
.page-basic__content a:hover { text-decoration: underline; }
.page-basic__content ul, .page-basic__content ol { padding-left: 22px; margin: 0 0 18px; }
.page-basic__content li { margin-bottom: 8px; }

/* ============ АДАПТИВ ============ */
@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.site-nav { display: none; }        /* на мобиле — отдельное полноэкранное меню */
	.nav-toggle { display: block; }

	.hero__inner { grid-template-columns: 1fr; gap: 26px; }
	.hero__headline { order: -1; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
	.prod__grid { grid-template-columns: 1fr; gap: 28px; }
	.faq__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
	.section { padding-block: 44px; }
	.hero__title { font-size: 32px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.cats__grid { grid-template-columns: 1fr; }
	.phone-pill__num { display: none; }
	.phone-pill { padding: 12px; }
	.site-footer__cols { grid-template-columns: 1fr; gap: 28px; }
	.gbox { padding: 24px 20px; border-radius: 20px; }
	.slider-arrow { width: 42px; height: 42px; }
}

/* ============================================================
   ЕДИНАЯ МОДАЛКА С ФОРМОЙ CF7 (CSS :target)
   Открытие: <a href="#form-{ID}">, закрытие: <a href="#!">
   ============================================================ */
.modal { display: none; }
.modal:target {
	display: flex; align-items: center; justify-content: center;
	position: fixed; inset: 0; z-index: 1000; padding: 20px;
	animation: modal-in .2s ease;
}
body:has(.modal:target) { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }

.modal__overlay {
	position: absolute; inset: 0;
	background: rgba(17, 16, 19, .55); backdrop-filter: blur(2px);
}
.modal__box {
	position: relative; z-index: 1;
	width: 100%; max-width: 460px; max-height: 90vh; overflow: auto;
	background: var(--bg); border-radius: 20px;
	padding: clamp(26px, 3vw, 42px);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.modal__close {
	position: absolute; top: 14px; right: 16px;
	width: 34px; height: 34px; display: grid; place-items: center;
	border-radius: 50%; background: var(--bg-soft); color: var(--ink);
	transition: background .2s, color .2s;
}
.modal__close:hover { background: var(--ink); color: #fff; }
.modal__title { margin: 0 34px 8px 0; font-size: 24px; font-weight: 600; color: var(--ink); }
.modal__lead { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Оформление полей Contact Form 7 внутри модалки */
.modal__box .wpcf7 h2 { display: none; } /* заголовок формы дублирует .modal__title — скрываем */
.modal__box .wpcf7-form p { margin: 0 0 12px; }
.modal__box .wpcf7 br { display: none; } /* CF7 плодит переносы — убираем лишние отступы */
.modal__box .wpcf7-form-control-wrap { display: block; }
.modal__box .wpcf7 label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.modal__box input[type="text"],
.modal__box input[type="tel"],
.modal__box input[type="email"],
.modal__box textarea,
.modal__box select {
	width: 100%; margin-top: 6px; padding: 13px 16px;
	border: 1px solid var(--line); border-radius: 8px;
	font-family: var(--font); font-size: 15px; color: var(--text);
	background: var(--bg); transition: border-color .2s;
}
.modal__box input[type="text"]:focus,
.modal__box input[type="tel"]:focus,
.modal__box input[type="email"]:focus,
.modal__box textarea:focus,
.modal__box select:focus { outline: none; border-color: var(--ink); }
.modal__box .wpcf7-acceptance { display: block; margin: 4px 0 18px; }
.modal__box .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.modal__box .wpcf7-acceptance label { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; font-size: 13px; color: var(--muted); }
.modal__box .wpcf7-acceptance a { color: var(--red); }
.modal__box .wpcf7-acceptance input[type="checkbox"] { width: auto; margin-top: 2px; }
.modal__box .wpcf7-submit {
	width: 100%; margin-top: 4px;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 16px 24px; border: 0; border-radius: 6px;
	background: var(--ink); color: #fff;
	font-family: var(--font); font-weight: 600; font-size: 15.5px;
	cursor: pointer; transition: background .2s;
}
.modal__box .wpcf7-submit:hover { background: var(--red); }
.modal__box .wpcf7-spinner { margin: 10px auto 0; display: block; }
.modal__box .wpcf7-not-valid-tip { font-size: 12px; color: var(--red); margin-top: 4px; }
.modal__box .wpcf7-response-output { margin: 12px 0 0; padding: 10px 14px; font-size: 13px; line-height: 1.4; border-radius: 8px; }

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ (на весь экран)
   ============================================================ */
.mobile-menu { position: fixed; inset: 0; z-index: 300; display: none; }
.mobile-menu.is-open { display: block; }
body.menu-open { overflow: hidden; }

.mobile-menu__panel {
	position: absolute; inset: 0;
	display: flex; flex-direction: column;
	background: #fff;
	padding: 14px clamp(20px, 6vw, 40px) calc(26px + env(safe-area-inset-bottom));
	overflow-y: auto;
	animation: mm-in .28s ease;
}
@keyframes mm-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); flex: 0 0 auto; }
.mobile-menu__close {
	width: 46px; height: 46px; display: grid; place-items: center;
	border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
	cursor: pointer; transition: background .2s, color .2s;
}
.mobile-menu__close:hover { background: var(--ink); color: #fff; }

.mobile-menu__nav { flex: 1 1 auto; display: flex; align-items: center; padding: 10px 0; }
.mobile-menu__list, .mobile-menu__nav ul {
	list-style: none; margin: 0; padding: 0; width: 100%;
	display: flex !important; flex-direction: column; align-items: stretch; gap: 0; background: none; border: 0;
}
.mobile-menu__nav li { display: block; width: 100%; border-bottom: 1px solid var(--line); }
.mobile-menu__nav a {
	display: flex; align-items: center; justify-content: space-between;
	padding: clamp(14px, 2.4vh, 20px) 2px;
	font-size: clamp(23px, 6.4vw, 32px); font-weight: 600; line-height: 1.15; color: var(--ink);
	transition: color .2s;
}
.mobile-menu__nav a::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: .2s ease; color: var(--red); font-size: .8em; }
.mobile-menu__nav a:hover, .mobile-menu__nav li.is-active > a, .mobile-menu__nav li.current-menu-item > a { color: var(--red); }
.mobile-menu__nav a:hover::after { opacity: 1; transform: none; }

.mobile-menu__foot { flex: 0 0 auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.mobile-menu__phone { font-size: 23px; font-weight: 700; color: var(--ink); }
.mobile-menu__phone:hover { color: var(--red); }
.mobile-menu__cta { align-self: stretch; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu__socials { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.mobile-menu__socials a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); color: var(--ink); transition: background .2s, color .2s; }
.mobile-menu__socials .social--telegram:hover { background: var(--tg); color: #fff; }
.mobile-menu__socials .social--max:hover { background: var(--max); color: #fff; }
.mobile-menu__socials .social--instagram:hover { background: #e1306c; color: #fff; }
.mobile-menu__socials .social--vk:hover { background: #0077ff; color: #fff; }
.mobile-menu__addr { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.mobile-menu__mail { font-size: 15px; font-weight: 600; color: var(--red); }

/* ============ Уведомление cookie ============ */
.cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; background: var(--ink); color: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .18); }
.cookie-content { max-width: 1308px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cookie-content p { margin: 0; font-size: 14px; line-height: 1.5; color: #fff; }
.cookie-content a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-content a:hover { color: var(--red); }
#cookie-accept { flex: none; background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 10px 30px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; transition: opacity .2s; }
#cookie-accept:hover { opacity: .9; }
@media (max-width: 600px) { .cookie-content { padding: 12px 16px; gap: 12px; } .cookie-content p { font-size: 13px; } }

/* ============================================================
   v0.9.5 — редизайн блоков (переопределяет правила выше)
   ============================================================ */

/* --- Марквиз (главная): серая окантовка (gbox с паддингом) + скруглённый виджет внутри --- */
.quiz-sec .quiz-sec__box > * { border-radius: 20px !important; overflow: hidden !important; }

/* --- CTA «Индивидуальный проект»: вариант «компактная строка» --- */
.forestor-cta { display: block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.forestor-cta__body { display: block; padding: clamp(26px, 3vw, 48px); }
.forestor-cta__media { display: none; }
.forestor-cta__title { max-width: 26ch; }
.forestor-cta__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.forestor-cta__chips li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.forestor-cta__chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.forestor-cta__form { margin-top: 22px; }
/* поля на светлой карточке — белые, чтобы читались */
.forestor-cta__form input[type="text"], .forestor-cta__form input[type="tel"] { background: #fff; }
.forestor-cta__form input[type="text"]:focus, .forestor-cta__form input[type="tel"]:focus { background: #fff; border-color: var(--ink); }
.forestor-cta__form .wpcf7-response-output { background: #fff; }
