/* Некритический CSS: всё, что ниже первого экрана. */

/* ---------- Секции ---------- */
.section{padding:52px 0}
.section--tint{background:#FFF1E3}
/* Салатовая заливка — чередуется с тёплой, чтобы цвет читался как акцент,
   а не как второй основной. */
.section--lime{background:var(--lime-soft)}
.section--lime .chip{background:#E8F5C4;color:#3F4A21}
.section--lime .chips{border-top-color:var(--lime-line)}
.section--lime .card{border-color:var(--lime-line)}
.section__kicker{margin:0 0 8px;font-size:13px;font-weight:800;letter-spacing:.09em;
text-transform:uppercase;color:var(--brand-ink)}
.section__lead{max-width:62ch;font-size:17.5px;color:#4E4038;margin-bottom:28px}

/* ---------- Карточки ---------- */
.cards{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
padding:22px 20px;box-shadow:var(--shadow)}
.card h3{margin:0 0 6px}
.card p{margin:0;color:#57483E;font-size:15.5px;line-height:1.55}
.card__icon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:14px;
background:#FFEDDF;color:var(--brand-strong);margin-bottom:14px}
.card__icon svg{width:26px;height:26px;stroke:currentColor;stroke-width:1.7;fill:none;
stroke-linecap:round;stroke-linejoin:round}
.card--cat{display:flex;flex-direction:column}
.card--cat .card__desc{margin-bottom:12px}
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:7px;margin:auto 0 0;padding:12px 0 0;
border-top:1px dashed #F0DFCC}
.chip{font-size:13.5px;line-height:1.3;color:#5B4A3E;background:#FFF3E7;border-radius:999px;
padding:6px 12px}
.catalog__note{margin-top:26px;font-size:16px;color:#57483E;
display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.link-arrow{display:inline-flex;align-items:center;gap:6px;font-weight:700;text-decoration:none;
min-height:44px}
.link-arrow svg{width:19px;height:19px;stroke:currentColor;stroke-width:2;fill:none;
stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.link-arrow:hover svg{transform:translateX(3px)}

/* ---------- Галерея / заглушка ---------- */
.gallery{list-style:none;margin:0;padding:0;display:grid;gap:14px;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.gallery__item{position:relative;border-radius:var(--r);overflow:hidden;background:#fff;
border:1px solid var(--line)}
.gallery__item img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.gallery__cap{display:block;padding:10px 14px;font-size:14.5px;color:#57483E}
.placeholder{display:flex;gap:18px;align-items:flex-start;background:#fff;
border:2px dashed #EBC9AE;border-radius:var(--r);padding:22px 20px}
.placeholder__icon{display:none;place-items:center;width:52px;height:52px;flex:none;
border-radius:14px;background:#FFEDDF;color:var(--brand-strong)}
.placeholder__icon svg{width:28px;height:28px;stroke:currentColor;stroke-width:1.7;fill:none;
stroke-linecap:round;stroke-linejoin:round}
.placeholder__title{margin:0 0 6px;font-weight:800;font-size:18px}
.placeholder__text{margin:0 0 10px;color:#57483E;font-size:15.5px;max-width:60ch}
.placeholder__links{display:flex;flex-direction:column;gap:4px;margin:0;font-size:15px}
.placeholder__links a{min-height:44px;display:inline-flex;align-items:center}

/* ---------- Контакты ---------- */
.contacts{display:grid;gap:20px}
.contacts__list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.contacts__row{display:flex;gap:14px;align-items:flex-start;background:#fff;
border:1px solid var(--line);border-radius:var(--r);padding:16px 18px}
.contacts__ic{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:12px;
background:#FFEDDF;color:var(--brand-strong)}
.contacts__ic svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;
stroke-linecap:round;stroke-linejoin:round}
.contacts__body{display:flex;flex-direction:column;gap:3px;min-width:0}
.contacts__label{font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
color:var(--muted)}
.contacts__value{white-space:pre-line;font-size:17px;font-weight:600;color:var(--ink);text-decoration:none}
a.contacts__value:hover{color:var(--brand-ink)}
.contacts__value--big{font-size:22px;font-weight:800;letter-spacing:-.01em}
.contacts__hint{font-size:14.5px;color:var(--muted)}

.mapcard{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;
box-shadow:var(--shadow)}
.mapcard__art svg{width:100%;height:auto;display:block}
.mapcard__body{padding:20px}
.mapcard__title{margin:0 0 4px;font-weight:800;font-size:19px}
.mapcard__text{margin:0 0 16px;color:#57483E;font-size:15.5px}

.socials{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:12px}
.social{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);
border-radius:var(--r);padding:14px 16px;text-decoration:none;color:var(--ink);
transition:transform .18s ease,border-color .18s ease}
.social:hover{transform:translateY(-2px);border-color:#E9C8B4}
.social__ic{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:12px;
background:#E8F3FC;color:#1E6FA8}
.social__ic--ok{background:#FFF0E3;color:#C4610C}
.social__ic svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.7;fill:none;
stroke-linecap:round;stroke-linejoin:round}
.social__body{display:flex;flex-direction:column;min-width:0}
.social__body b{font-size:16px;line-height:1.3}
.social__body span{font-size:14.5px;color:var(--muted)}

/* ---------- Форма ---------- */
.feedback{display:grid;gap:26px}
.feedback__intro .btn{margin-top:6px}
.form{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px 20px;
box-shadow:var(--shadow)}
.form__row{margin-bottom:16px}
.form__label{display:block;font-weight:700;font-size:15px;margin-bottom:7px}
.form__label span{color:var(--brand-strong);margin-left:3px}
.form__input{width:100%;min-height:52px;padding:13px 15px;font:400 16px/1.4 inherit;color:var(--ink);
background:#FFFCF8;border:2px solid #EFE0CE;border-radius:12px;transition:border-color .18s ease}
.form__input:focus{border-color:var(--brand-strong);outline:none;background:#fff}
.form__input--area{min-height:110px;resize:vertical}
.form__input.is-error{border-color:#C0281C;background:#FFF6F4}
.form__err{margin:6px 0 0;color:#A81E14;font-size:14.5px}
.form__hp{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
white-space:nowrap;pointer-events:none}
.form__consent{display:flex;gap:12px;align-items:flex-start;margin:6px 0 4px}
.form__check{flex:none;width:24px;height:24px;margin:2px 0 0;accent-color:var(--brand-strong);
cursor:pointer}
.form__consent label{font-size:14.5px;line-height:1.5;color:#4E4038;cursor:pointer}
.form__submit{width:100%;margin-top:14px}
.form__note{margin:12px 0 0;font-size:13.5px;color:var(--muted);line-height:1.5}
.form__status{margin:14px 0 0;padding:14px 16px;border-radius:12px;font-size:15.5px;font-weight:600}
.form__status--ok{background:#E9F7EC;color:#1B5E31;border:1px solid #BFE5C8}
.form__status--err{background:#FDECEA;color:#A81E14;border:1px solid #F3C6C1}

/* ---------- Правовые страницы ---------- */
.legal{padding:40px 0 56px}
.legal__wrap{max-width:78ch}
.legal h1{font-size:clamp(26px,5vw,40px);margin-bottom:8px}
.legal__meta{color:var(--muted);font-size:15px;margin-bottom:26px}
.legal h2{font-size:clamp(20px,3vw,26px);margin:32px 0 10px}
.legal p,.legal li{font-size:16.5px;line-height:1.65;color:#3D332C}
.legal ul,.legal ol{padding-left:22px;margin:0 0 16px}
.legal li{margin-bottom:7px}
.legal__back{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700;
text-decoration:none;margin-bottom:18px}

/* ---------- Подвал ---------- */
.site-footer{background:#2A211C;color:#F0E4D8;padding:44px 0 32px;margin-top:8px}
.site-footer a{color:#FFD9BC;text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.site-footer p{margin:0 0 8px;font-size:15.5px;line-height:1.55}
.footer__cols{display:grid;gap:28px}
.footer__brand{font-size:21px;font-weight:800;margin-bottom:6px!important}
.footer__head{font-weight:800;font-size:14px;letter-spacing:.07em;text-transform:uppercase;
color:#C9B29F;margin-bottom:10px!important}
.footer__muted{color:#BFAE9E;font-size:14.5px}
.footer__phone{font-size:21px;font-weight:800;letter-spacing:-.01em}
.footer__col a{display:inline-block;padding:3px 0;min-height:32px}

.program{margin:34px 0 0;padding:24px 0 4px;border-top:1px solid #443830}
.program__title{font-size:14px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;
color:#C9B29F;margin:0 0 16px}
.program__logos{display:flex;flex-wrap:wrap;gap:14px}
.proglogo{display:flex;align-items:center;gap:13px;background:#fff;border-radius:14px;
padding:12px 18px 12px 14px;max-width:100%}
.proglogo__mark{width:52px;height:43px;flex:none}
.proglogo__text{display:flex;flex-direction:column;color:#12275A;line-height:1.2;min-width:0}
.proglogo__text b{font-size:16px;font-weight:800;letter-spacing:-.01em}
.proglogo__text span{font-size:13.5px;color:#3B4A6B}
.program__text{margin-top:16px;color:#BFAE9E;font-size:14.5px;max-width:70ch}

.footer__bottom{margin-top:22px;padding-top:18px;border-top:1px solid #443830}
.footer__bottom p{font-size:14px;color:#BFAE9E}

/* ---------- Плавающая кнопка звонка ---------- */
.callbar{position:fixed;left:0;right:0;bottom:0;z-index:45;padding:10px 14px;
padding-bottom:calc(10px + env(safe-area-inset-bottom));
background:rgba(255,248,240,.94);border-top:1px solid var(--line)}
.callbar__btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;
border-radius:999px;background:var(--brand-strong);color:#fff;font-weight:700;font-size:17px;
text-decoration:none;box-shadow:0 6px 18px rgba(192,66,28,.3)}
.callbar__btn svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.9;fill:none;
stroke-linecap:round;stroke-linejoin:round}
body{padding-bottom:78px}

/* ---------- Cookie ---------- */
.cookie{position:fixed;left:12px;right:12px;bottom:84px;z-index:46;background:#fff;
border:1px solid var(--line);border-radius:16px;padding:16px 18px;
box-shadow:0 10px 30px rgba(60,35,15,.16);display:grid;gap:12px}
.cookie[hidden]{display:none}
.cookie__text{margin:0;font-size:14.5px;line-height:1.5;color:#4E4038}
.cookie__ok{min-height:48px}

/* ---------- Анимации появления ----------
   Прячем блоки только если JS жив и успел повесить .js-on на <html>:
   без скрипта контент обязан остаться видимым. */
.js-on .reveal{opacity:0;transform:translateY(14px);
transition:opacity .28s ease,transform .28s ease}
.js-on .reveal.is-in{opacity:1;transform:none}

/* ---------- Адаптив ---------- */
@media(min-width:600px){
.cards--3,.cards--4{grid-template-columns:repeat(2,minmax(0,1fr))}
.placeholder__icon{display:grid}
.placeholder__links{flex-direction:row;flex-wrap:wrap;gap:6px 20px}
.cookie{left:auto;right:16px;bottom:96px;max-width:420px}
}
@media(min-width:768px){
.section{padding:70px 0}
.footer__cols{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.contacts{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:start;gap:24px}
.socials{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.form{padding:28px 26px}
.form__submit{width:auto;min-width:240px}
.callbar{display:none}
body{padding-bottom:0}
.cookie{bottom:16px}
}
@media(min-width:1024px){
.cards--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cards--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.section{padding:84px 0}
.feedback{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:40px;align-items:start}
}
@media(min-width:1440px){
.section{padding:96px 0}
}

@media(prefers-reduced-motion:reduce){
*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;
scroll-behavior:auto!important}
.reveal,.js-on .reveal{opacity:1;transform:none}
}

@media print{
.site-header,.callbar,.cookie,.hero__art{display:none!important}
body{padding-bottom:0;background:#fff}
.reveal,.js-on .reveal{opacity:1;transform:none}
}

/* ---------- Размер тапабельных целей (минимум 44px) ---------- */
a.contacts__value{display:inline-flex;align-items:center;min-height:44px;width:fit-content}
.footer__phone{display:inline-flex;align-items:center;min-height:44px}
.footer__col a{min-height:44px;padding:5px 0}
.form__hp input{width:1px;height:1px}
.mobnav a{min-height:48px;display:flex;align-items:center}

/* знаки государственных программ */
.progbadges{margin-top:28px}
.progbadges__title{font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.65;margin:0 0 12px}
.progbadges__row{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
.progbadge{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:12px;padding:14px 20px;box-sizing:border-box}
.progbadge img{display:block;height:66px;width:auto}
@media (max-width:420px){.progbadge img{height:58px}}
.progbadges__note{margin:12px 0 0;font-size:12px;opacity:.7;max-width:56ch}
@media (max-width:420px){.progbadge{width:100%}}
