/* pokras66.ru — единый стиль. Дизайн перенесён с прежнего сайта: Onest, тёмно-синий текст, жёлтый акцент, белые карточки на светло-сером. */

@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/onest-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: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/onest-symbols.woff2') format('woff2'); unicode-range: U+20BD, U+2190-2199, U+2300-243F, U+25A0-27BF; }

:root {
    --ink: #0f303e;
    --muted: #6f838b;
    --accent: #ffc000;
    --accent-hover: #ffd34c;
    --bg: #f0f0f0;
    --card: #fff;
    --line: #d0d4d7;
    --radius: 12px;
    --radius-lg: 16px;
    --container: 1160px;
    --gutter: 20px;
    --section: clamp(60px, 9vw, 130px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.35 'Onest', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-top: var(--section); }
.nowrap { white-space: nowrap; }
.center { display: flex; justify-content: center; margin-top: 50px; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 500; line-height: 1; letter-spacing: -1px; margin-bottom: clamp(24px, 3.5vw, 50px); }
.h2--narrow { max-width: 760px; }
/* заголовки блоков на страницах услуг и спортоборудования: 45px, до 900px (960→40, 640→36) */
.h2--svc { max-width: 900px; /* точная ширина — в style из pages.json */ font-size: clamp(30px, 3.2vw, 45px); }
h3 { font-weight: 500; }
.note { margin-top: 20px; color: var(--muted); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 28px; border-radius: 50px; background: var(--accent); color: var(--ink); font-weight: 500; font-size: 15px; transition: background-color .2s; }
.btn:hover { background: var(--accent-hover); }
.btn--lg { min-height: 60px; min-width: 250px; padding: 0 40px; font-size: 16px; }
.btn--sm { min-height: 34px; padding: 0 16px; font-size: 13px; }
.btn--white { background: #fff; }
.btn--white:hover { background: #fff7d6; }

.messenger { display: inline-block; flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; transition: transform .2s; }
.messenger:hover { transform: scale(1.06); }

/* Шапка */
.header { z-index: 20; color: #fff; }
.header--hero { position: absolute; top: 20px; left: 0; right: 0; }
.header__inner { display: flex; align-items: center; gap: 30px; height: 84px; border-bottom: 1px solid rgba(255,255,255,.45); }
.header__logo img { width: 208px; height: auto; }
.header__nav { display: flex; align-items: center; gap: 30px; margin-left: 38px; font-size: 18px; font-weight: 500; }
.header__nav a:hover, .submenu__toggle:hover { opacity: .75; }
.header__contacts { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header__phone { font-size: 26px; font-weight: 500; white-space: nowrap; letter-spacing: -0.01em; }
.header__burger { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; background: #fff; border: 1px solid #e9eced; color: var(--ink); }
.header__burger span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }

.header--sticky { position: fixed; top: 7px; left: 7px; right: 7px; background: #fff; color: var(--ink); border-radius: var(--radius); transform: translateY(-120%); transition: transform .3s; }
.header--sticky.is-visible { transform: none; }
.header--sticky .header__inner { height: 74px; border: 0; }
.header--sticky .messenger--tg, .header--plain .messenger--tg { background: #cce7f5; }
.header--sticky .messenger--max, .header--plain .messenger--max { background: #dbd8f7; }
/* Страницы без hero (работы, 404): шапка — белая плашка в потоке */
.header--plain { position: relative; top: 0; margin: 7px 7px 0; background: #fff; color: var(--ink); border-radius: var(--radius); }
.header--plain .header__inner { height: 74px; border: 0; }

.submenu { position: relative; }
.submenu__toggle { font-weight: 500; display: flex; align-items: center; gap: 6px; }
.submenu__toggle::after { content: ''; border: 3px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.submenu__list { position: absolute; top: calc(100% + 12px); left: -20px; min-width: 320px; padding: 12px 0; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(15,48,62,.18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; font-size: 16px; }
.submenu:hover .submenu__list, .submenu:focus-within .submenu__list, .submenu.is-open .submenu__list { opacity: 1; visibility: visible; transform: none; }
.submenu__list::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.submenu__list a { display: block; padding: 10px 20px; }
.submenu__list a:hover { background: var(--bg); opacity: 1; }

.mobile-menu { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(0,0,0,.6); animation: popup-fade .4s ease-out; }
.mobile-menu__panel { animation: menu-slide .3s ease-out; display: flex; flex-direction: column; width: 310px; max-width: calc(100% - 50px); height: 100%; padding: 45px 25px 30px; overflow-y: auto; background: #051217; color: #fff; }
.mobile-menu__panel > a img { width: 200px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; font-size: 16px; line-height: 1.25; }
.mobile-menu nav + nav { margin-top: 52px; }
.mobile-menu nav a:hover { opacity: .7; }
.mobile-menu__info { margin-top: auto; padding-top: 40px; font-size: 13px; line-height: 1.6; }
.mobile-menu__info p + p { margin-top: 16px; }
.mobile-menu__social { display: flex; gap: 10px; margin-top: 20px; }
.mobile-menu__social a { width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.mobile-menu__phone { display: block; margin-top: 30px; font-size: 15px; font-weight: 500; }
.mobile-menu > .popup__close { position: fixed; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 1l22 22M23 1L1 23' stroke='%23fff' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") center / 22px no-repeat; }

/* Первый экран */
.hero { position: relative; margin: 20px 20px 0; min-height: min(calc(100vh - 40px), 900px); border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; background: #1d2a2e; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 42%, rgba(0,0,0,.05) 75%), linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%); }
.hero__content { position: relative; z-index: 1; padding: 160px 0 clamp(40px, 7vh, 80px); }
.hero--short { min-height: var(--hero-h); align-items: center; }
.hero--short .hero__content { padding: 110px 0 60px; }
.hero h1, .hero__title { max-width: 660px; /* t-col_7 на сетке Tilda */ font-size: clamp(38px, 4.4vw, 56px); font-weight: 500; line-height: .95; letter-spacing: -0.5px; }
.hero__bullets { max-width: 580px; margin-top: 26px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.25; }
.hero__text { max-width: 560px; margin-top: 26px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.3; }
.hero__bullets li { position: relative; padding-left: 20px; margin-top: 12px; }
.hero__bullets li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero .btn { margin-top: 44px; }

/* Клиенты */
.clients { padding-top: 44px; text-align: center; }
.clients__label { font-size: 13px; color: var(--muted); }
.clients__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 60px; margin-top: 22px; }
.clients__list img { height: 36px; width: auto; max-width: 260px; opacity: .85; }

/* Преимущества */
.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 70px; }
.advantage { display: flex; flex-direction: column; min-height: 260px; padding: 20px; background: var(--card); border-radius: var(--radius); }
/* верх заголовка на одной высоте во всех карточках (142px от верха, как на Tilda), текст — сразу под ним */
.advantage h3 { margin-top: 98px; font-size: 22px; line-height: 1.1; }
.advantage p { margin-top: 10px; font-size: 16px; line-height: 1.25; color: var(--ink); opacity: .85; }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.service { position: relative; display: block; aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; }
.service img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service:hover img { transform: scale(1.04); }
.service__title { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 10px 20px; background: #fff; border-radius: 8px; font-size: 22px; font-weight: 500; line-height: 1.1; }
.service__title::after { content: ''; flex: none; width: 16px; height: 16px; margin-left: 12px; background: url('../img/ui/arrow45.svg') center / contain no-repeat; }

/* Доставка */
.delivery { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: var(--section); padding: 40px; background: var(--card); border-radius: var(--radius); }
.delivery h2 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.5px; font-weight: 500; line-height: 1.1; max-width: 440px; margin-bottom: 24px; }
.delivery p { max-width: 400px; line-height: 1.3; }
.delivery img { width: min(460px, 45%); margin: -10px 0 -30px; }

/* Работы */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.work { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.work__photo { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.work__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work__photo:hover img { transform: scale(1.04); }
.work__body { display: flex; flex-direction: column; flex: 1; padding: 28px 20px 22px; }
.work h3 { font-size: 20px; line-height: 1.2; }
.work__summary { margin: 10px 0 60px; font-size: 16px; line-height: 1.55; }
.work__summary ul, .work-detail__text ul { list-style: disc; padding-left: 20px; }
.work .btn { margin-top: auto; align-self: flex-start; }

/* Консультация */
.consult { display: flex; align-items: center; gap: 30px; margin-top: 70px; padding: 24px 80px 24px 30px; border-radius: var(--radius); background: var(--accent) linear-gradient(115deg, transparent 8%, rgba(255,255,255,.18) 8% 18%, transparent 18% 80%, rgba(255,255,255,.18) 80% 92%, transparent 92%); }
.consult__title { margin: 0; max-width: 440px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; line-height: 1.1; }
.consult__phone { margin-left: auto; text-align: center; }
.consult__phone a { display: block; font-size: 24px; font-weight: 500; white-space: nowrap; }
.consult__phone button { font-size: 14px; font-weight: 500; margin-top: 2px; }
.consult__phone button:hover { text-decoration: underline; }
.consult__messengers { display: flex; gap: 12px; }

/* Перечень плашками (t850) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.features--3 { grid-template-columns: repeat(3, 1fr); }
.features--4 { grid-template-columns: repeat(4, 1fr); }
.features li { min-height: 95px; padding: 30px; background: var(--card); border-radius: 8px; }
.features h3 { font-size: 22px; line-height: 1.2; }
.features--3 li, .features--4 li { padding: 30px 30px 40px; }
.features p { margin-top: 12px; font-size: 15px; line-height: 1.4; opacity: .8; }

/* Строки «фото + текст» (t843) */
.rows { display: grid; gap: 80px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.row__text { max-width: 500px; }
.row--reverse picture { order: 2; }
.row h3 { font-size: 30px; line-height: 1.15; }
.row__descr { margin-top: 24px; font-size: 16px; line-height: 1.55; opacity: .8; }
.row__descr ul { list-style: disc; padding-left: 20px; }

/* Карточки-ссылки (t774) и карточки без подложки (t776) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border-radius: var(--radius); }
.card img { width: 100%; aspect-ratio: 260 / 160; object-fit: cover; transition: transform .4s; }
.card:hover img { transform: scale(1.04); }
.card__title { padding: 20px 20px 0; font-size: 16px; font-weight: 500; line-height: 1.2; min-height: 3.6em; box-sizing: content-box; }
.card__btn { align-self: flex-start; margin: auto 20px 20px; margin-top: 20px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 30px; font-size: 13px; transition: .2s; }
.card:hover .card__btn { background: var(--accent); border-color: var(--accent); }
.card-plain img { width: 100%; aspect-ratio: 260 / 140; object-fit: cover; border-radius: 8px; }
.card-plain h3 { margin-top: 20px; font-size: 22px; line-height: 1.2; }
.card-plain p { margin-top: 10px; font-size: 15px; line-height: 1.4; opacity: .8; }

/* Этапы с номерами (t1106) */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stages li { position: relative; }
.stages__num { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); font-size: 15px; font-weight: 500; }
.stages li:not(:last-child)::before { content: ''; position: absolute; top: 17px; left: 34px; right: -40px; height: 1px; background: var(--line); }
.stages h3 { margin-top: 30px; font-size: 24px; line-height: 1.15; }
.stages p { margin-top: 16px; font-size: 15px; line-height: 1.4; opacity: .8; }

.services--more { grid-template-columns: repeat(3, 1fr); }
.services--more .service { aspect-ratio: 360 / 280; }
.services--more .service__title { font-size: 20px; }

/* О компании */
.about__photo { width: 100%; aspect-ratio: 1160 / 440; object-fit: cover; border-radius: var(--radius); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }
.stat { max-width: 300px; }
.stat__value { font-weight: 500; padding-bottom: 28px; border-bottom: 4px solid var(--accent); font-size: clamp(40px, 5.5vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.stat p { margin-top: 30px; font-size: 18px; line-height: 1.2; color: var(--ink); opacity: .8; }

/* Бренды красок */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); }
.brand { display: flex; justify-content: center; padding: 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.brand:nth-child(3n) { border-right: 0; }
.brand:nth-last-child(-n+3) { border-bottom: 0; }
.brand img { width: 240px; }

/* Этапы */
.steps { position: relative; display: grid; grid-template-columns: 1fr; padding-bottom: 130px; }
.steps__photo { grid-area: 1 / 1; width: 100%; height: 560px; object-fit: cover; border-radius: var(--radius); }
.steps__list { grid-area: 1 / 1; align-self: start; justify-self: end; width: min(520px, 100%); margin: 40px 40px -130px 0; display: grid; gap: 14px; }
.steps__list li { display: flex; align-items: center; gap: 40px; min-height: 96px; padding: 20px 30px 20px 24px; background: #fff; border-left: 8px solid var(--accent); border-radius: 8px; font-size: 20px; font-weight: 500; line-height: 1.1; }
.steps__list span { flex: none; width: 28px; font-size: 20px; }
.steps { padding-bottom: 0; }
.steps__list { margin-bottom: 0; transform: none; }

/* Таблица цен — сетка с рамками, как у Tilda (t431); ячейки по центру, у части таблиц первая колонка слева */
.lead { max-width: 740px; margin: -20px 0 50px; font-size: 18px; line-height: 1.4; color: var(--ink); opacity: .85; }
.prices--next { padding-top: 60px; }
.prices h2 { max-width: 880px; }
.price-subtitle { margin-bottom: 20px; text-align: center; font-size: 22px; line-height: 1.2; }
.price-table { overflow-x: auto; }
.price-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.price-table th, .price-table td { padding: 20px 16px; text-align: center; vertical-align: top; border: 1px solid var(--line); }
.price-table th { font-size: 18px; font-weight: 500; line-height: 1.2; padding-block: 24px; }
.price-table td { font-size: 16px; line-height: 1.2; }
.price-table--first-left th:first-child, .price-table--first-left td:first-child { text-align: left; }
.note--warn { position: relative; margin-top: 16px; padding-left: 22px; font-size: 14px; color: var(--ink); }
.note--warn::before { content: '!'; position: absolute; left: 0; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: #ff5c5c; color: #fff; font-size: 10px; font-weight: 700; line-height: 14px; text-align: center; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 28px 80px 28px 0; font-size: 20px; font-weight: 500; line-height: 1.2; cursor: pointer; list-style: none; max-width: 100%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 12h22M12 1v22' stroke='%230f303e' fill='none'/%3E%3C/svg%3E") center / 22px no-repeat; transition: transform .25s, background-color .2s; }
.faq summary:hover::after { background-color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { max-width: 760px; padding: 0 0 30px; line-height: 1.55; }

/* Блог на главной */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 40px; }
.post-card img { width: 100%; aspect-ratio: 360 / 276; object-fit: cover; border-radius: var(--radius); transition: opacity .2s; }
.post-card:hover img { opacity: .88; }
.post-card h3 { margin-top: 20px; font-size: 18px; line-height: 1.25; }
.blog-list { padding-top: 50px; }
/* Статья */
.post { max-width: 760px; padding-top: 70px; }
.post h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 500; line-height: 1.2; }
.post__cover { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; margin-top: 30px; border-radius: var(--radius); }
.post__body { margin-top: 30px; font-size: 17px; line-height: 1.55; }
.post__body h2 { margin: 40px 0 16px; font-size: 26px; line-height: 1.2; letter-spacing: 0; }
.post__body h3 { margin: 36px 0 14px; font-size: 22px; font-weight: 500; line-height: 1.25; }
.post__body h4 { margin: 24px 0 10px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.post__body p { margin: 0 0 14px; }
.post__body ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.post__body ol { list-style: decimal; padding-left: 26px; margin-bottom: 14px; }
.post__body img { margin: 20px 0; border-radius: var(--radius); }
.post__body a { color: #0088cc; border-bottom: 1px solid currentColor; }
.post__body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.post__body td, .post__body th { padding: 10px; border: 1px solid var(--line); text-align: left; }
.related { padding-top: 90px; }
.related__title { margin-bottom: 24px; font-size: 20px; letter-spacing: 0; }
.posts--4 { grid-template-columns: repeat(4, 1fr); gap: 30px; }
.posts--4 .post-card h3 { font-size: 15px; }

.seo-text { padding-top: 90px; font-size: 15px; line-height: 1.65; }
.seo-text p { max-width: 960px; }

/* Форма внизу */
.cta-wrap { position: relative; z-index: 1; margin-top: var(--section); }
.cta { display: flex; justify-content: space-between; gap: 40px; padding: 50px; border-radius: var(--radius-lg); background: var(--accent) radial-gradient(circle at 12% 110%, rgba(255,255,255,.22) 0 22%, rgba(255,255,255,.14) 22% 34%, rgba(255,255,255,.08) 34% 46%, transparent 46%); }
.cta h2 { max-width: 560px; margin-bottom: 26px; }
.cta__text { display: flex; flex-direction: column; }
.cta__text > p { max-width: 480px; font-size: 20px; line-height: 1.2; }
.cta__direct { margin-top: auto; padding-top: 40px; font-size: 15px; }
.cta__direct div { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cta__phone { font-size: 26px; font-weight: 500; white-space: nowrap; }
.cta__form { width: min(420px, 100%); flex: none; }

.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label, .field legend { font-size: 18px; font-weight: 500; }
.field input:is([type=text], [type=tel], [type=email], [type=number]) { width: 100%; height: 50px; padding: 0 20px; border: 1px solid rgba(255,255,255,.85); border-radius: 8px; background: transparent; font: inherit; color: var(--ink); }
.field input::placeholder { color: rgba(15,48,62,.5); }
.field input:focus-visible { outline: none; border-color: var(--ink); }
.field--hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; font-size: 13px; line-height: 1.3; }
/* Галочки и переключатели как у Tilda: квадрат/круг с тёмной рамкой */
.consent input, .check input { flex: none; appearance: none; width: 20px; height: 20px; margin: 0; border: 2px solid var(--ink); border-radius: 0; opacity: .6; background: center / 12px no-repeat; cursor: pointer; }
.consent input:checked, .check input:checked { opacity: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%230f303e' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); }
.check input[type=radio] { border-radius: 50%; }
.check input[type=radio]:checked { background-image: radial-gradient(circle, var(--ink) 0 4px, transparent 4.5px); background-size: auto; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.2; cursor: pointer; }
.consent a { border-bottom: 1px solid currentColor; }
.form .btn { align-self: flex-start; margin-top: 10px; }
.form__status { font-weight: 500; }
.form__status.is-error { color: #b3261e; }
/* после отправки поля прячутся, остаётся сообщение (main.js ставит .is-sent) */
.form.is-sent > :not(.form__status), .quiz.is-sent .quiz__contacts > :not(.form__status), .quiz.is-sent .quiz__nav { display: none; }
.is-sent .form__status { font-size: 20px; line-height: 1.4; }
.popup__box--quiz:has(.quiz.is-sent) { min-height: 0; }
.btn--block { width: 100%; }

/* Контакты и подвал */
.contacts-wrap { margin: -150px 20px 0; padding: 250px 0 70px; background: #fff; border-radius: 20px; }
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.contacts__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
.contacts__grid h3 { margin-bottom: 14px; font-size: 14px; font-weight: 400; color: var(--muted); }
.contacts__grid a, .contacts__grid p { display: block; margin-bottom: 10px; font-size: 18px; font-weight: 500; line-height: 1.2; }
.contacts__grid a:hover { color: var(--muted); }
.contacts__map { position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(100%); }
.contacts__map-load { position: absolute; inset: 0; width: 100%; font-weight: 500; color: var(--muted); }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 60px; padding: 40px 0 50px; font-size: 14px; color: var(--muted); }
.footer img { width: 200px; }
.footer span { margin-left: auto; }
.footer a:hover { color: var(--ink); }

/* Попапы (заявка и консультация — как t702/t706 Tilda) */
.popup { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; background: rgba(0,0,0,.8); animation: popup-fade .4s ease-out; }
@keyframes popup-fade { from { background-color: rgba(0,0,0,0); } }
@keyframes menu-slide { from { transform: translateX(100%); } }
.popup__box { position: relative; width: min(100%, 560px); margin: auto; padding: 45px; background: #fff; border-radius: var(--radius); }
.popup__box h2 { font-size: 36px; font-weight: 500; line-height: 1.23; letter-spacing: 0; margin-bottom: 14px; }
.popup__box > p { margin-bottom: 30px; line-height: 1.55; }
.popup__box .form { gap: 20px; }
.popup__box .field label { font-size: 20px; font-weight: 400; }
.popup__box .field input { height: 60px; border-color: var(--line); border-radius: 6px; }
.popup__box .consent { font-size: 14px; align-items: center; }
.popup__box .form .btn { margin-top: 16px; min-height: 60px; }
.popup > .popup__close { position: fixed; top: 20px; right: 20px; width: 30px; height: 30px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 1l22 22M23 1L1 23' stroke='%23fff' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") center / 24px no-repeat; }
.popup > .popup__close:hover { opacity: .7; background-color: transparent; }

/* Квиз-калькулятор (t862) */
.popup__box--quiz { width: min(100%, 960px); min-height: min(770px, calc(100vh - 80px)); padding: 0; display: flex; }
.quiz { display: flex; flex-direction: column; width: 100%; }
.quiz__head { display: flex; align-items: center; gap: 20px; min-height: 90px; padding: 20px 45px; }
.quiz__title { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.quiz__title::before { content: ''; flex: none; width: 17px; height: 20px; background: url('../img/ui/quiz.svg') center / contain no-repeat; }
.quiz__counter { margin-left: auto; font-weight: 500; }
.quiz__result { display: none; font-size: 24px; line-height: 1.3; }
.quiz.is-final .quiz__title, .quiz.is-final .quiz__counter { display: none; }
.quiz.is-final .quiz__result { display: block; }
.quiz__progress { height: 5px; background: var(--line); }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.quiz__body { flex: 1; padding: 45px 45px 30px; }
.popup__box .quiz__step legend, .popup__box label.quiz__q { display: block; margin-bottom: 20px; font-size: 28px; font-weight: 400; line-height: 1.2; }
.quiz__step.field { gap: 0; }
.quiz__step .check { margin-bottom: 15px; }
.quiz__step input:is([type=text], [type=number]), .quiz__contacts .field input { height: 60px; border-color: var(--line); border-radius: 6px; }
.quiz__contacts { gap: 20px; }
.popup__box .quiz__contacts .field label { font-size: 28px; font-weight: 400; }
.quiz__contacts .consent { font-size: 14px; align-items: center; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 34px; height: 34px; font-size: 24px; line-height: 1; }
.qty input { width: 70px !important; padding: 0 !important; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quiz__nav { display: flex; justify-content: space-between; padding: 0 45px 45px; }
.quiz__nav .btn { min-height: 45px; padding: 0 28px; border: 1px solid var(--accent); }
.quiz__back:disabled { opacity: .55; cursor: default; }
.quiz__next.is-empty { background: #fff; color: var(--accent); }
.quiz__next.is-empty:hover { background: var(--accent); color: var(--ink); }

.popup__box--work { width: min(100%, 1100px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 40px; }
.popup__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l16 16M20 4L4 20' stroke='%230f303e' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") center / 18px no-repeat; }
.popup__close:hover { background-color: var(--accent); }
/* Простые страницы: доставка, вакансии, политика, реквизиты, контакты */
.figure { padding-top: 60px; text-align: center; }
.figure img { width: min(660px, 100%); margin: 0 auto; }
.figure p { margin-top: 40px; font-size: 16px; }
.vacancy { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-top: 60px; }
.vacancy + .popup + .vacancy { padding-top: 80px; }
.vacancy__title { padding-top: 26px; border-top: 5px solid var(--accent); font-size: 26px; line-height: 1.2; }
.vacancy__descr { font-size: 20px; line-height: 1.55; }
.vacancy__descr ol { list-style: decimal; padding-left: 24px; }
.vacancy__descr ul { list-style: disc; padding-left: 24px; }
.vacancy__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.vacancy__actions .btn { min-width: 190px; }
.vacancy__link { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--line); border-radius: 50px; font-size: 15px; font-weight: 500; }
.vacancy__link:hover { background: #fff; }
.vacancy__phone { margin-left: 10px; font-size: 26px; font-weight: 500; }
.text-page { padding-top: 40px; }
.text-page__body { max-width: 960px; font-size: 16px; line-height: 1.55; }
.requisites { width: 100%; max-width: 960px; border-collapse: collapse; font-size: 16px; line-height: 1.3; }
.requisites th, .requisites td { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.requisites th { width: 33%; font-weight: 500; }
.contact-page { padding-top: 30px; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.contact-card { display: flex; flex-direction: column; gap: 30px; padding: 25px 20px 20px; background: var(--card); border-radius: var(--radius); font-size: 20px; font-weight: 500; }
.contact-card img { width: 46px; height: 46px; }
.contact-card:hover { color: var(--muted); }
.contact-page__map { margin-top: 12px; min-height: 400px; }

.not-found { padding: clamp(60px, 10vw, 140px) 0 0; }
.not-found h1 { font-size: clamp(40px, 5vw, 56px); font-weight: 500; line-height: .95; letter-spacing: -1px; }
.not-found p { margin-top: 24px; font-size: 20px; }
.not-found__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 40px; font-weight: 500; }
.not-found__links a:not(.btn):hover { color: var(--muted); }
.work-page { padding-top: 40px; }
.work-page__back { display: inline-block; margin-bottom: 20px; font-weight: 500; color: var(--muted); }
.work-page__back:hover { color: var(--ink); }
.work-page__card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 40px; background: var(--card); border-radius: var(--radius); }
.work-page h1 { font-size: 30px; font-weight: 500; line-height: 1.15; }
.work-detail { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.work-detail h2 { margin: 0; font-size: 26px; }
.work-detail__text { line-height: 1.55; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4l8 8-8 8' stroke='%230f303e' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") center / 18px no-repeat; }
.gallery__nav--prev { left: 12px; transform: scaleX(-1); }
.gallery__nav--next { right: 12px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: none; width: 76px; height: 56px; border-radius: 6px; overflow: hidden; opacity: .6; }
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Плавающая кнопка связи */
/* положение — как t898 на Tilda: шире 960px справа 65px и снизу 50px, уже — слева 20px и снизу 20px */
.fab { position: fixed; right: 65px; bottom: 50px; z-index: 55; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.fab__links { display: flex; flex-direction: column; gap: 10px; }
/* закрытые иконки остаются в разметке (для анимации) — прозрачный блок над кнопкой не должен перехватывать клики */
.fab { pointer-events: none; }
.fab__toggle, .fab.is-open .fab__links a { pointer-events: auto; }
/* раскрытие как у t898: иконки выезжают вверх из-под кнопки, каждая чуть позже соседней (0.2 / 0.225 / 0.25 с);
   в закрытом виде — прозрачные и сдвинуты к центру кнопки: телефон на 68px, Telegram на 128px, Max на 188px */
.fab:not(.is-open) .fab__links a { opacity: 0; visibility: hidden; }
.fab:not(.is-open) .fab__links a:nth-child(1) { transform: translateY(188px); }
.fab:not(.is-open) .fab__links a:nth-child(2) { transform: translateY(128px); }
.fab:not(.is-open) .fab__links a:nth-child(3) { transform: translateY(68px); }
.fab__links a:nth-child(1) { transition-duration: .25s; }
.fab__links a:nth-child(2) { transition-duration: .225s; }
/* белый круг под прорезями значков меньше самой иконки (40 из 50px, как t898 Tilda) — иначе по краю видна белая каёмка */
.fab__links a { position: relative; display: block; width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle, #fff 20px, transparent 20.5px); transition: transform .2s ease-in-out, opacity .2s ease-in-out, visibility .2s; transition-duration: .2s; }
.fab__links img { transition: transform .2s; }
.fab__links a:hover img { transform: scale(1.06); }
.fab__links a::after { content: attr(data-tip); position: absolute; right: 62px; top: 50%; transform: translateY(-50%); padding: 6px 12px; border-radius: 6px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 2px 12px rgba(0,0,0,.15); opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab__links a:hover::after { opacity: 1; }
.fab__toggle { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 50%; background: #0088cc; box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: transform .2s, background-color .2s ease-in-out; }
/* значок чата и крестик — два слоя: при открытии чат уменьшается и гаснет, крестик вырастает (как t898, 0.3 с) */
.fab__toggle::before, .fab__toggle::after { content: ""; position: absolute; inset: 0; transition: opacity .3s ease-in-out, transform .3s ease-in-out; }
.fab__toggle::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 35 32'%3E%3Cpath d='M11.27 12.7H23.37M11.27 16.47H23.37M4.81 23.58C2.43 21.19 1 18.12 1 14.77 1 7.17 8.39 1 17.5 1S34 7.17 34 14.77 26.61 28.55 17.5 28.55c-1.87 0-3.67-.26-5.35-.74L12 27.79 5.03 31v-7.18l-.22-.24Z' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / 32px no-repeat; }
.fab__toggle::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='%230f303e' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") center / 20px no-repeat; opacity: 0; transform: scale(.1); }
.fab__toggle:hover { transform: scale(1.06); }
.fab.is-open .fab__toggle { background-color: #fff; }
.fab.is-open .fab__toggle::before { opacity: 0; transform: scale(.1); }
.fab.is-open .fab__toggle::after { opacity: 1; transform: none; }
@media (max-width: 960px) {
    .fab { right: auto; left: 20px; bottom: 20px; }
    .fab__links a::after { right: auto; left: 62px; }
}

.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 20px; max-width: 660px; padding: 16px 24px; background: #fff; border-radius: 8px; box-shadow: 0 6px 30px rgba(15,48,62,.18); font-size: 13px; line-height: 1.35; }
.cookie a { border-bottom: 1px solid currentColor; }
.cookie button { flex: none; padding: 6px 22px; border: 1px solid var(--line); border-radius: 6px; font-weight: 500; }
.cookie button:hover { background: var(--bg); }

.is-locked, .is-locked body { overflow: hidden; }
/* полоса прокрутки при открытом попапе пропадает — её ширину (--scrollbar, ставит main.js) отдаём отступом, чтобы фон не сдвигался */
.is-locked body { padding-right: var(--scrollbar, 0px); }
.is-locked .header--hero { right: var(--scrollbar, 0px); }
.is-locked .header--sticky { right: calc(7px + var(--scrollbar, 0px)); }
@media (min-width: 961px) { .is-locked .fab { right: calc(65px + var(--scrollbar, 0px)); } }

/* Планшет */
@media (max-width: 1100px) {
    .header__nav { gap: 20px; margin-left: 10px; font-size: 16px; }
    .header__phone { font-size: 20px; }
    .header__logo img { width: 170px; }
    .advantages, .cards, .stages, .features--4 { grid-template-columns: repeat(2, 1fr); }
    .stages li:nth-child(2n)::before { display: none; }
    .advantage { min-height: 200px; }
    .advantage h3 { margin-top: 62px; }
    .services, .works, .posts { gap: 20px; }
    .works, .posts, .posts--4 { grid-template-columns: repeat(2, 1fr); }
    .steps__list { margin-right: 20px; }
}

/* Мобильные */
@media (max-width: 760px) {
    :root { --gutter: 20px; }
    h2 { letter-spacing: -0.5px; }
    /* Шапка: логотип, кружки мессенджеров и бургер */
    .header--hero { top: 0; }
    .header__inner { height: 75px; gap: 8px; }
    .header__logo img { width: 170px; }
    .header__nav, .header__phone { display: none; }
    .header__contacts { gap: 10px; }
    .header .messenger { width: 40px; height: 40px; }
    .header__burger { display: flex; }
    .header--sticky .header__inner { height: 60px; }
    /* Первый экран на всю ширину */
    .hero { margin: 0; border-radius: 0; min-height: 87svh; }
    .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.3) 35%, rgba(0,0,0,.7) 100%); }
    .hero__content { padding-top: 120px; }
    .hero h1 { font-size: 36px; line-height: 1; overflow-wrap: anywhere; }
    .hero__bullets { font-size: 18px; line-height: 1.2; }
    .hero__bullets li { margin-top: 10px; }
    .hero .btn { min-width: 0; min-height: 50px; padding: 0 28px; margin-top: 30px; font-size: 15px; }
    .clients__list { display: grid; grid-template-columns: repeat(2, auto); justify-content: space-between; gap: 16px 20px; }
    .clients__list img { height: 24px; }
    /* Преимущества: иконка слева от заголовка */
    .advantages { grid-template-columns: 1fr; gap: 10px; padding-top: 40px; }
    .advantage { display: grid; grid-template-columns: 24px 1fr; gap: 8px 14px; min-height: 0; padding: 22px 20px; }
    .advantage h3 { margin: 0; font-size: 20px; }
    .advantage p { grid-column: 2; margin: 0; min-height: 0; font-size: 15px; }
    .services, .works, .posts, .stats, .features { grid-template-columns: 1fr; }
    .posts--4 { grid-template-columns: 1fr 1fr; gap: 20px; }
    .post { padding-top: 40px; }
    .post__body { font-size: 16px; }
    .post__body h2 { font-size: 22px; }
    .work__summary { margin-bottom: 30px; }
    .work .btn { align-self: stretch; min-height: 40px; }
    .features, .features--3, .features--4 { grid-template-columns: 1fr; gap: 16px; }
    .features li, .features--3 li, .features--4 li { min-height: 0; padding: 20px; }
    .features h3 { font-size: 18px; }
    .rows { gap: 50px; }
    .row { grid-template-columns: 1fr; gap: 24px; }
    .row--reverse picture { order: 0; }
    .row h3 { font-size: 24px; }
    .row__descr { margin-top: 14px; }
    .cards { grid-template-columns: 1fr; gap: 20px; }
    .card__title { font-size: 18px; }
    .stages { grid-template-columns: 1fr; gap: 36px; }
    .stages li { padding-left: 56px; }
    .stages__num { position: absolute; left: 0; top: 0; }
    .stages li:not(:last-child)::before { top: 34px; bottom: -36px; left: 17px; right: auto; width: 1px; height: auto; }
    .stages h3 { margin-top: 4px; font-size: 20px; }
    .stages p { margin-top: 8px; }
    .services--more { grid-template-columns: 1fr; }
    .vacancy { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
    .vacancy__descr { font-size: 16px; }
    .vacancy__phone { margin: 10px 0 0; width: 100%; font-size: 22px; }
    .contact-cards { grid-template-columns: 1fr; gap: 10px; }
    .contact-card { flex-direction: row; align-items: center; gap: 24px; padding: 20px 24px; font-size: 22px; }
    .contact-card img { width: 42px; height: 42px; }
    .hero--short { min-height: var(--hero-h); border-radius: 0 0 20px 20px; }
    .hero--short .hero__content { padding: 110px 0 40px; }
    .requisites th, .requisites td { padding: 10px; font-size: 14px; }
    .service__title { font-size: 18px; min-height: 50px; }
    .delivery { flex-direction: column; align-items: flex-start; padding: 24px; }
    .delivery img { width: 100%; margin: 0; }
    /* Консультация — по центру */
    .consult { flex-direction: column; gap: 24px; margin-top: 40px; padding: 30px 20px; text-align: center; }
    .consult__title { font-size: 30px; }
    .consult__phone { margin: 0; }
    .stats { gap: 30px; margin-top: 30px; }
    .stat__value { padding-bottom: 16px; }
    .stat p { margin-top: 16px; font-size: 16px; }
    /* Краски — две колонки */
    .brand { padding: 16px 8px; }
    .brand img { width: 140px; }
    .brand:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .brand:nth-child(2n) { border-right: 0; }
    .brand:nth-last-child(-n+2) { border-bottom: 0; }
    .brands { grid-template-columns: repeat(2, 1fr); }
    /* Этапы: список наезжает на фото */
    .steps__photo { height: 360px; }
    .steps__list { grid-area: auto; width: auto; margin: -60px 0 0; padding: 0 0; gap: 10px; }
    .steps__list li { min-height: 0; gap: 16px; padding: 18px 20px; border-left-width: 6px; font-size: 18px; }
    .steps__list span { font-size: 18px; }
    .faq summary { padding: 20px 56px 20px 0; font-size: 18px; line-height: 1.2; }
    .price-table table { min-width: max(560px, calc(var(--cols, 3) * 150px)); }
    .price-table th, .price-table td { padding: 14px 12px; }
    .price-table th { font-size: 16px; }
    /* Жёлтая форма: сначала поля, потом «свяжитесь напрямую» */
    .cta { flex-direction: column; gap: 0; padding: 30px 20px; }
    .cta__text { display: contents; }
    .cta h2 { order: 1; }
    .cta__text > p { order: 2; font-size: 16px; }
    .cta__form { order: 3; width: 100%; margin-top: 30px; }
    .cta__direct { order: 4; padding-top: 30px; }
    .cta__phone { font-size: 22px; }
    .cta .form .btn { width: auto; align-self: flex-start; }
    .cta .field label { font-size: 20px; }
    /* Контакты и подвал — по центру в одну колонку */
    .contacts-wrap { margin: -120px 0 0; padding: 170px 0 40px; border-radius: 16px; }
    .contacts { grid-template-columns: 1fr; text-align: center; }
    .contacts__grid { grid-template-columns: 1fr; gap: 30px; }
    .contacts__grid h3 { font-size: 16px; }
    .contacts__grid a, .contacts__grid p { font-size: 20px; font-weight: 400; }
    .contacts__map { min-height: 340px; }
    .footer { flex-direction: column; gap: 16px; text-align: center; }
    .footer span { margin-left: 0; }
    .popup { padding: 50px 0 0; }
    .popup__box { width: 100%; min-height: calc(100% - 0px); margin: 0; padding: 20px; border-radius: var(--radius) var(--radius) 0 0; }
    .popup__box h2 { font-size: 30px; line-height: 1.17; }
    .popup__box > p { margin-bottom: 16px; font-size: 13px; }
    .popup__box .field label { font-size: 16px; }
    .popup__box .field input { height: 50px; }
    .popup__box .consent { font-size: 12px; }
    .popup > .popup__close { top: 12px; right: 16px; width: 26px; height: 26px; }
    .popup__box--work, .work-page__card { grid-template-columns: 1fr; gap: 20px; padding: 24px 16px; }
    .work-page h1 { font-size: 26px; }
    .header--plain .header__inner { height: 60px; }
    .popup__box--quiz { min-height: calc(100vh - 50px); padding: 0; }
    .quiz__head { min-height: 80px; padding: 16px 20px; align-items: flex-start; }
    .quiz__title::before { display: none; }
    .quiz__result { font-size: 18px; }
    .quiz__body { padding: 25px 20px; }
    .popup__box .quiz__step legend, .popup__box label.quiz__q, .popup__box .quiz__contacts .field label { font-size: 22px; }
    .quiz__nav { padding: 0 20px 45px; }
    .quiz__nav .btn { width: auto; min-height: 50px; }
    .cookie { left: 8px; right: 8px; bottom: 8px; gap: 12px; padding: 12px 14px; }
    .form .btn { width: 100%; }
}
