/* Новые правки CSS с 09.2026 */

.service-price-table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
    font-family:'Beau', sans-serif;
    margin-bottom:20px;
}
.service-price-table th,
.service-price-table td{
    padding:12px 10px;
    border:1px solid #ddd;
    text-align:left;
    vertical-align:top;
    line-height:1.4;
}
.service-price-table th{
    background:#f4f4f4;
    font-weight:bold;
    color:#333;
    font-size:13px;
    text-align:center;
}
.service-price-table .price-col{
    text-align:right;
    font-weight:bold;
    color:#d46f00;
    white-space:nowrap;
    font-size:14px;
    vertical-align:middle;
}
.service-price-table th.price-col{
    text-align:center;
}
.service-price-table .note{
    display:block;
    font-size:11px;
    font-weight:normal;
    color:#888;
    margin-top:2px;
}
.privacy-consent{
    clear:both;
    float:none;
    width:100%;
    margin-top:20px;
    margin-bottom:15px;
    font-size:11px;
    line-height:1.4;
}
.privacy-consent label{
    display:flex;
    align-items:flex-start;
    gap:6px;
    cursor:pointer;
    font-weight:normal;
    color:#fff;
    margin:0;
}
.privacy-consent input[type="checkbox"]{
    margin-top:2px;
    flex-shrink:0;
    cursor:pointer;
    width:14px;
    height:14px;
}
.privacy-consent span{
    text-decoration:none;
}
.privacy-consent a{
    color:#727b89;
    text-decoration:underline;
}
#menu ul li ul.open-left{
    left:auto;
    right:0;
}
#menu ul li ul li ul.open-left{
    left:auto;
    right:100%;
}
.new-footer{
    background:#2b2a29;
    color:#fff;
    padding:50px 0 0;
}
.new-footer-grid{
    display:flex;
    flex-wrap:wrap;
    gap:60px;
    padding-bottom:50px;
}
.footer-col-brand{
    flex:0 0 320px;
}
.footer-col{
    flex:1 1 200px;
}
.footer-logo{
    display:block;
    margin-bottom:25px;
}
.footer-logo img{
    max-width:220px;
    height:auto;
}
.footer-contact{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-bottom:18px;
    font-size:17px;
    font-weight:bold;
}
.footer-contact svg{
    width:20px;
    height:20px;
    fill:#FFDD01;
    flex-shrink:0;
    margin-top:2px;
}
.footer-contact a{
    color:#fff;
}
.footer-hours{
    font-size:15px;
    font-weight:normal;
    color:#ccc;
    margin-top:4px;
}
.footer-messengers{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:12px;
}
.footer-messengers a{
    color:#fff;
    font-weight:bold;
    font-size:16px;
}
.footer-soc{
    display:flex;
    gap:14px;
    margin-top:20px;
}
.footer-soc a{
    width:48px;
    height:48px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.footer-soc a svg{
    width:24px;
    height:24px;
    fill:#2b2a29;
}
.footer-col-title{
    color:#FFDD01;
    font-size:22px;
    font-weight:bold;
    margin-bottom:20px;
}
.footer-col-title-second{
    margin-top:30px;
}
.footer-links,
.footer-info-menu ul{
    display:flex;
    flex-direction:column;
    gap:14px;
    list-style:none;
    padding:0;
    margin:0;
}
.footer-link,
.footer-info-menu a{
    color:#fff;
    font-size:16px;
}
.footer-bottom{
    border-top:1px solid #45443f;
    padding:20px 0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    font-size:13px;
    color:#aaa;
}
.footer-bottom-widget{
    flex-shrink:0;
    line-height:0;
}
.footer-bottom-widget iframe{
    display:block;
}
.footer-bottom-policy a{
    color:#aaa;
    text-decoration:underline;
}
@media(max-width:768px){
    .new-footer-grid{
        flex-direction:column;
        gap:35px;
    }
    .footer-col-brand{
        flex-basis:auto;
    }
}
/* Форма заявки (чанки lead-form, lead-form-tpl) */
.lead-form{
    margin:0 0 70px;
    padding:28px 20px 32px;
    border:5px solid #FFDD01;
    border-radius:32px;
    background:#F0F1F5;
    color:#000;
    container:lead-form / inline-size;
}
.lead-form__title{
    margin:0 0 16px;
    font-size:clamp(28px,4vw,44px);
    font-weight:bold;
    line-height:1.1;
}
.lead-form__subtitle{
    margin:0 0 28px;
    font-size:clamp(17px,2vw,24px);
    line-height:1.35;
}
.lead-form__fields{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:16px;
}
.lead-form__input{
    display:block;
    width:100%;
    height:60px;
    padding:0 22px;
    border:3px solid #FFDD01;
    border-radius:20px;
    background:#fff;
    color:#000;
    font-size:18px;
}
.lead-form__input::placeholder{
    color:#8a8a8a;
    opacity:1;
}
.lead-form__input:focus-visible{
    outline:2px solid #000;
    outline-offset:2px;
}
.lead-form__input.error{
    border-color:#d9261c;
}
.lead-form__input--area{
    height:auto;
    min-height:60px;
    padding:16px 22px;
    line-height:1.3;
    resize:vertical;
}
.lead-form__more{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px 16px;
}
.lead-form__toggle{
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:12px 18px;
    border:2px solid #000;
    border-radius:22px;
    background:#fff;
    color:#000;
    font-size:16px;
    line-height:1.2;
    cursor:pointer;
}
.lead-form__toggle:focus-visible{
    outline:2px solid #000;
    outline-offset:2px;
}
.lead-form__toggle svg{
    width:14px;
    height:14px;
    transition:transform .2s;
}
.lead-form__toggle[aria-expanded="true"] svg{
    transform:rotate(180deg);
}
.lead-form__note{
    flex:1 1 140px;
    font-size:14px;
    line-height:1.3;
}
.lead-form__extra{
    display:grid;
    gap:16px;
}
.lead-form__extra[hidden]{
    display:none;
}
.lead-form__submit{
    min-height:60px;
    padding:12px 14px;
    border:0;
    border-radius:20px;
    background:#FFDD01;
    color:#2b2a29;
    font-size:clamp(16px,1.5vw,19px);
    line-height:1.2;
    cursor:pointer;
    transition:background-color .2s;
}
.lead-form__submit:hover{
    background:#f0cf00;
}
.lead-form__submit:focus-visible{
    outline:2px solid #000;
    outline-offset:2px;
}
.lead-form__submit:disabled{
    opacity:.6;
    cursor:default;
}
.lead-form__consent{
    display:flex;
    align-items:center;
    gap:14px;
    margin:12px 0 0;
    font-size:18px;
    line-height:1.3;
    cursor:pointer;
}
.lead-form__consent a{
    color:inherit;
    text-decoration:underline;
}
.lead-form__consent input{
    -webkit-appearance:none;
    appearance:none;
    flex:0 0 26px;
    width:26px;
    height:26px;
    margin:0;
    border:2px solid #000;
    border-radius:6px;
    background:#fff center/16px no-repeat;
    cursor:pointer;
}
.lead-form__consent input:checked{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lead-form__consent input:focus-visible{
    outline:2px solid #000;
    outline-offset:2px;
}

@media(min-width:768px){
    .lead-form{
        padding:clamp(32px,4vw,56px);
        border-radius:clamp(32px,4vw,48px);
    }
}
@container lead-form (min-width:640px){
    .lead-form__fields{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:20px 24px;
    }
    .lead-form__name{
        grid-column:1;
        grid-row:1;
    }
    .lead-form__phone{
        grid-column:2;
        grid-row:1;
    }
    .lead-form__submit{
        grid-column:3;
        grid-row:1;
    }
    .lead-form__more,
    .lead-form__extra{
        grid-column:1 / 3;
    }
    .lead-form__consent{
        grid-column:1 / -1;
    }
    .lead-form__toggle{
        padding:14px 22px;
        font-size:18px;
    }
    .lead-form__note{
        flex:0 1 auto;
        font-size:16px;
    }
}
/* Карточки каталога (чанки category и category-main) */
.p-categories .catalog-col{
    display:flex;
    margin-bottom:30px;
}
.p-categories .catalog-card{
    display:flex;
    flex-direction:column;
    width:100%;
    min-width:0;
    padding:24px;
    border-radius:24px;
    background:#F1F2F6;
    color:#111;
}

/* Заголовок: слева, две строки зарезервированы */
.p-categories .catalog-card__title{
    margin:0 0 18px;
    min-height:2.4em;
    font-size:clamp(18px,1.8vw,24px);
    font-weight:700;
    line-height:1.2;
    text-transform:uppercase;
}
.p-categories .catalog-card__title a{
    color:#111;
    text-decoration:none;
}
.p-categories .catalog-card__title a:hover{
    color:#111;
    text-decoration:underline;
}

/* Фото 4:3 со скруглением */
.p-categories .catalog-card__media{
    display:block;
    margin:0 0 18px;
    overflow:hidden;
    border-radius:14px;
    background:#e4e5ea;
}
.catalog-card__img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:4 / 3;
    object-fit:cover;
}
@media(hover:hover) and (pointer:fine){
    .catalog-card__img{
        transition:transform .35s ease;
    }
    .catalog-card__media:hover .catalog-card__img{
        transform:scale(1.04);
    }
}
@media(prefers-reduced-motion:reduce){
    .catalog-card__img{
        transition:none;
    }
    .catalog-card__media:hover .catalog-card__img{
        transform:none;
    }
}

/* Текст или список ссылок: две строки зарезервированы */
.p-categories .catalog-card__text{
    min-height:3em;
    margin:0;
    font-size:15px;
    line-height:1.5;
    color:#444;
    text-align:left;
}
.p-categories .catalog-card .catalog-card__text ul{
    margin:0;
    padding:0;
    list-style:none;
    text-align:left;
    font-size:inherit;
}
.p-categories .catalog-card .catalog-card__text ul li a{
    color:inherit;
    text-decoration:none;
}
.p-categories .catalog-card .catalog-card__text ul li a:hover{
    color:#111;
    text-decoration:underline;
}

/* Цена и кнопки внизу карточки */
.p-categories .catalog-card__foot{
    margin-top:auto;
    padding-top:14px;
}
.catalog-card__price{
    font-size:clamp(18px,1.6vw,22px);
    font-weight:700;
    line-height:1.2;
    color:#111;
}
.p-categories .catalog-card__actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:14px 26px;
    margin-top:20px;
}
.p-categories .catalog-card__btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    padding:16px 26px;
    border-radius:18px;
    background:#FFDD01;
    color:#111;
    font-size:17px;
    font-weight:700;
    line-height:1.2;
    text-decoration:none;
    transition:background-color .2s;
}
.p-categories .catalog-card__btn:hover{
    background:#f0cf00;
    color:#111;
    text-decoration:none;
}
.p-categories .catalog-card__btn svg{
    flex:none;
    width:18px;
    height:13px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.p-categories .catalog-card__more{
    color:#111;
    font-size:17px;
    font-weight:700;
    line-height:1.2;
    text-decoration:underline;
    text-decoration-thickness:2px;
    text-underline-offset:6px;
}
.p-categories .catalog-card__more:hover{
    color:#111;
    text-decoration:none;
}
.p-categories .catalog-card__btn:focus-visible,
.p-categories .catalog-card__more:focus-visible,
.p-categories .catalog-card__title a:focus-visible{
    outline:2px solid #111;
    outline-offset:3px;
}

/* Планшет: в карточках две колонки, заголовок может занять три строки */
@media(min-width:576px) and (max-width:991.98px){
    .p-categories .catalog-card__title{
        min-height:3.6em;
    }
}

/* Телефон: одна колонка, резерв под текст не нужен */
@media(max-width:575.98px){
    .p-categories .catalog-card{
        padding:18px;
        border-radius:20px;
    }
    .p-categories .catalog-card__title,
    .p-categories .catalog-card__text{
        min-height:0;
    }
    .p-categories .catalog-card__btn,
    .p-categories .catalog-card__more{
        font-size:16px;
    }
}
/* Подъём карточек каталога при наведении */
.p-categories .catalog-card{
    transition:transform .25s ease,box-shadow .25s ease;
}
@media(hover:hover) and (pointer:fine){
    .p-categories .catalog-card:hover{
        transform:translateY(-6px);
        box-shadow:0 18px 38px rgba(20,20,40,.13);
    }
}
@media(prefers-reduced-motion:reduce){
    .p-categories .catalog-card{
        transition:none;
    }
    .p-categories .catalog-card:hover{
        transform:none;
    }
}
/* Заголовок каталога на главной */
.catalog-head{
    margin:0 0 28px;
}
.catalog-head__title{
    margin:0 0 10px;
    font-size:clamp(28px,4vw,44px);
    font-weight:700;
    line-height:1.1;
    color:#111;
}
.catalog-head__lead{
    margin:0;
    font-size:clamp(15px,1.5vw,18px);
    line-height:1.4;
    color:#111;
}
/* Блок «Наши преимущества» (чанк benefits) */
.benefits{
    --accent:#FFDD01;
    --pad:20px;
    margin:50px 0;
    font-family:'Beau',sans-serif;
    color:#111;
}
.benefits__heading{
    margin:0 0 12px;
    font-size:clamp(34px,5vw,60px);
    font-weight:700;
    line-height:1.05;
}
.benefits__lead{
    margin:0 0 28px;
    font-size:clamp(16px,1.8vw,22px);
    line-height:1.35;
}
.benefits__grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

/* Карточка: иконка сверху, текст под ней */
.benefits__card{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto 1fr;
    grid-template-areas:"icon" "body";
    row-gap:16px;
    min-width:0;
    padding:var(--pad);
    overflow:hidden;
    border-radius:22px;
    background:#F0F1F5;
}
.benefits__card > *{
    position:relative;
    z-index:1;
}
.benefits__icon{
    grid-area:icon;
    display:flex;
    flex:none;
    width:48px;
    height:48px;
    color:#111;
}
.benefits__icon--badge{
    padding:10px;
    border-radius:12px;
    background:var(--accent);
}
.benefits__icon img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}
.benefits__svg{
    width:100%;
    height:100%;
    fill:none;
    stroke:currentColor;
    stroke-width:3.6;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.benefits__svg .acc{
    stroke:var(--accent);
}
.benefits__svg .acc-fill{
    fill:var(--accent);
    stroke:none;
}
.benefits__svg .dot{
    fill:currentColor;
    stroke:none;
}
.benefits__body{
    grid-area:body;
    display:flex;
    flex-direction:column;
    min-width:0;
}
.benefits__title{
    margin:0 0 10px;
    font-size:clamp(18px,2.2vw,28px);
    font-weight:700;
    line-height:1.12;
}
.benefits__text{
    margin:0;
    font-size:clamp(14px,1.3vw,18px);
    line-height:1.45;
    color:#3a3a3a;
}
.benefits__big{
    font-size:2.3em;
    line-height:.9;
}
.benefits__big--outline{
    color:var(--accent);
    -webkit-text-stroke:3px #111;
    stroke-linejoin:round;
}
@supports (paint-order:stroke fill){
    .benefits__big--outline{
        -webkit-text-stroke:5px #111;
        paint-order:stroke fill;
    }
}
.benefits__note{
    display:flex;
    align-items:center;
    gap:14px;
    margin:auto 0 0;
    padding-top:20px;
    font-size:clamp(12px,1.1vw,15px);
}
.benefits__arrow{
    flex:none;
    width:34px;
    height:14px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.6;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* Карточки с фото: строка «текст + фото», фото на всю высоту блока */
.benefits__card--production,
.benefits__card--warranty{
    display:flex;
    column-gap:16px;
}
.benefits__main{
    display:flex;
    flex:1 1 0;
    flex-direction:column;
    gap:16px;
    min-width:0;
}
.benefits__main .benefits__body{
    flex:1 1 auto;
}
.benefits__media{
    position:relative;
    flex:0 0 40%;
    align-self:stretch;
    min-height:180px;
    overflow:hidden;
    border-radius:16px;
}
#content .benefits .benefits__media img{
    position:absolute !important;
    top:0;
    left:0;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    object-fit:cover;
    object-position:center;
}

/* Варианты карточек (мобильная раскладка) */
.benefits__card--production{
    grid-column:1 / -1;
}
.benefits__card--discount,
.benefits__card--range{
    grid-column:1 / -1;
    grid-template-columns:auto minmax(0,1fr);
    grid-template-rows:auto;
    grid-template-areas:"icon body";
    column-gap:16px;
    align-items:start;
}
.benefits__card--discount{
    background:var(--accent);
}
.benefits__card--discount .benefits__text{
    color:#222;
}
.benefits__card--discount::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    pointer-events:none;
    background:repeating-radial-gradient(circle at 105% 65%,transparent 0 70px,rgba(255,255,255,.8) 70px 71px,transparent 71px 112px);
}
.benefits__card--discount .benefits__note{
    display:none;
}
.benefits__card--warranty{
    grid-column:1 / -1;
}
.benefits__card--warranty .benefits__main{
    flex-direction:row;
    align-items:flex-start;
}
.benefits__card--warranty .benefits__media{
    flex-basis:40%;
    margin:calc(var(--pad) * -1) calc(var(--pad) * -1) calc(var(--pad) * -1) 0;
    border-radius:0;
}

/* Подсказка у «МАФ» */
.benefits__card--range{
    overflow:visible;
}
.benefits__card--range:hover,
.benefits__card--range:focus-within{
    z-index:5;
}
.benefits__card--range .benefits__text{
    position:relative;
}
.benefits__hint{
    border-bottom:1px dotted currentColor;
    cursor:help;
}
.benefits__hint::after{
    content:attr(data-tip);
    position:absolute;
    left:0;
    right:0;
    bottom:calc(100% + 8px);
    z-index:10;
    padding:10px 14px;
    border-radius:12px;
    background:#111;
    color:#fff;
    font-size:13px;
    line-height:1.4;
    text-align:left;
    opacity:0;
    visibility:hidden;
    transition:opacity .15s;
    pointer-events:none;
}
.benefits__hint:hover::after,
.benefits__hint:focus::after{
    opacity:1;
    visibility:visible;
}

/* Кнопка */
.benefits__cta{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    margin:16px auto 0;
    padding:18px 24px;
    border-radius:18px;
    background:var(--accent);
    color:#111;
    font-size:clamp(16px,1.6vw,20px);
    font-weight:700;
    text-decoration:none;
    transition:background-color .2s;
}
.benefits__cta:hover{
    background:#f0cf00;
    color:#111;
    text-decoration:none;
}
.benefits__cta .benefits__arrow{
    width:26px;
}

@media(min-width:576px){
    .benefits{
        --pad:28px;
    }
    .benefits__icon{
        width:56px;
        height:56px;
    }
}
@media(min-width:768px){
    .benefits__cta{
        width:fit-content;
        min-width:300px;
    }
}

/* Десктоп: 24 колонки, две строки как на макете */
@media(min-width:992px){
    .benefits{
        --pad:32px;
        margin:70px 0;
    }
    .benefits__grid{
        grid-template-columns:repeat(24,minmax(0,1fr));
        gap:18px;
    }
    .benefits__icon{
        width:64px;
        height:64px;
    }
    .benefits__card--production{
        grid-column:span 14;
        min-height:420px;
    }
    .benefits__card--years,
    .benefits__card--measure{
        grid-column:span 5;
    }
    .benefits__card--discount,
    .benefits__card--range,
    .benefits__card--warranty{
        min-height:320px;
    }
    .benefits__card--discount{
        grid-column:span 8;
    }
    .benefits__card--range{
        grid-column:span 6;
    }
    .benefits__card--warranty{
        grid-column:span 10;
    }
    .benefits__card--discount,
    .benefits__card--range{
        grid-template-columns:minmax(0,1fr);
        grid-template-rows:auto 1fr;
        grid-template-areas:"icon" "body";
        row-gap:16px;
    }
    .benefits__card--warranty .benefits__main{
        flex-direction:column;
    }
    @media(max-width:991.98px){
    .benefits__card--warranty .benefits__icon{
        width:40px;
        height:40px;
    }
}
    .benefits__card--warranty .benefits__media{
        flex-basis:54%;
    }
    .benefits__card--discount .benefits__note{
        display:flex;
    }
    .benefits__card--production .benefits__title{
        font-size:clamp(34px,3.6vw,46px);
    }
}
/* Подъём карточек «Наши преимущества» при наведении */
.benefits__card{
    transition:transform .25s ease,box-shadow .25s ease;
}
@media(hover:hover) and (pointer:fine){
    .benefits__card:hover{
        transform:translateY(-6px);
        box-shadow:0 14px 30px rgba(0,0,0,.10);
    }
}
@media(prefers-reduced-motion:reduce){
    .benefits__card{
        transition:none;
    }
    .benefits__card:hover{
        transform:none;
    }
}
/* Скрыть визуально, но оставить для поисковиков и скринридеров */
.visually-hidden{
    position:absolute;
    width:1px;
    height:1px;
    margin:-1px;
    padding:0;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

/* Кнопка-призыв: «Оставить заявку» в шапке и «Перезвоните мне» в мобильном меню */
header .callback.header-cta,
#m-menu .callback.header-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.8em;
    padding:1em 2.4em;
    border-radius:1.1em;
    background:#FFDD01;
    color:#111;
    font-weight:700;
    line-height:1.2;
    text-transform:uppercase;
    text-decoration:none;
    white-space:nowrap;
    transition:background-color .2s;
}
header .callback.header-cta:hover,
#m-menu .callback.header-cta:hover{
    background:#f0cf00;
    color:#111;
}
header .callback.header-cta:focus-visible,
#m-menu .callback.header-cta:focus-visible{
    outline:2px solid #111;
    outline-offset:3px;
}
header .callback.header-cta svg,
#m-menu .callback.header-cta svg{
    flex:none;
    width:1.3em;
    height:.95em;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* В мобильном меню кнопка на всю ширину: удобнее нажимать */
#m-menu .callback.header-cta{
    display:flex;
    width:100%;
}
/* Единственное место с !important: в старом коде цвет текста задан через !important */
#m-menu .callback.header-cta,
#m-menu .callback.header-cta:hover,
#m-menu .callback.header-cta:focus{
    color:#111 !important;
}

/* На планшетах шапка тесная: стрелку в шапке не показываем */
@media(max-width:1199.98px){
    header .callback.header-cta svg{
        display:none;
    }
}
/* Ссылки в футере */
.new-footer a{
    transition:color .2s;
}
.new-footer a:hover,
.new-footer a:focus-visible{
    color:#FFDD01;
}
/* Форма в модальном окне */
#callback .modal-content{
    border:0;
    box-shadow:none;
}
#callback .lead-form{
    margin:0;
}
#callback .lead-form__title{
    padding-right:56px;
}
#callback .close{
    position:absolute;
    top:22px;
    right:24px;
    z-index:20;
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    padding:0;
    border-radius:50%;
    font-size:30px;
    line-height:1;
    opacity:.6;
    text-shadow:none;
    transition:opacity .2s,background-color .2s;
}
#callback .close:hover,
#callback .close:focus-visible{
    background:rgba(0,0,0,.06);
    opacity:1;
}
@media(max-width:575.98px){
    #callback .close{
        top:14px;
        right:14px;
        width:36px;
        height:36px;
        font-size:26px;
    }
    #callback .lead-form__title{
        padding-right:44px;
    }
}
/* Десктоп: страница прокручивается, пока открыто модальное окно */
@media(min-width:768px){
    body.modal-open{
        overflow:auto;
        padding-right:0 !important;
    }
}

/* Телефон: прокрутка страницы под окном заблокирована */
@media(max-width:767.98px){
    body.modal-open{
        overflow:hidden;
        overscroll-behavior:none;
    }
    html:has(body.modal-open){
        overflow:hidden;
    }
}
/* Мобильное меню: страница под ним не прокручивается */
html.menu-open,
body.menu-open{
    overflow:hidden;
    overscroll-behavior:none;
}
#m-menu{
    overscroll-behavior:contain;
}

/* Раскладка верха страницы товара */
.product-top{
    --product-gap:16px;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"main" "perks" "side";
    gap:var(--product-gap);
    margin:var(--product-gap) 0;
}
.product-top:not(:has(.product-perks)){
    grid-template-areas:"main" "side";
}
.product-main{
    grid-area:main;
    position:relative;
    min-width:0;
    aspect-ratio:4 / 3;
    overflow:hidden;
    border-radius:24px;
    background:#F1F2F6;
}
.product-main img{
    position:absolute;
    top:0;
    left:0;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.product-top__side{
    grid-area:side;
    display:flex;
    flex-direction:column;
    gap:var(--product-gap);
    min-width:0;
}
.product-perks{
    grid-area:perks;
    min-width:0;
}

@media(min-width:992px){
    .product-top{
        --product-gap:24px;
        grid-template-columns:minmax(0,11fr) minmax(0,10fr);
        grid-template-rows:auto 1fr;
        grid-template-areas:"main side" "perks side";
    }
    .product-main{
        align-self:start;
    }
    .product-top:not(:has(.product-perks)){
        grid-template-rows:auto;
        grid-template-areas:"main side";
    }
}

/* Галерея: несколько фото в ряд, листается */
.pgal{
    --pgal-gap:12px;
    min-width:0;
}
.pgal__main{
    position:relative;
}
.pgal__stage{
    display:flex;
    gap:var(--pgal-gap);
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
}
.pgal__stage::-webkit-scrollbar{
    display:none;
}
.pgal__stage:focus-visible{
    outline:2px solid #111;
    outline-offset:3px;
}
.pgal__slide{
    position:relative;
    flex:0 0 100%;
    min-width:0;
    aspect-ratio:4 / 3;
    overflow:hidden;
    border-radius:20px;
    background:#F1F2F6;
    scroll-snap-align:start;
}
.pgal__blur{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:blur(22px);
    transform:scale(1.15);
}
.pgal__slide a{
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    display:flex;
    align-items:center;
    justify-content:center;
}
.pgal__slide a img{
    display:block;
    width:auto;
    height:auto;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}
.pgal--n1 .pgal__slide{
    flex-basis:100%;
}
@media(min-width:768px){
    .pgal--n1 .pgal__slide{
        aspect-ratio:auto;
        height:clamp(380px,42vw,560px);
    }
}
@media(min-width:576px){
    .pgal{
        --pgal-gap:16px;
    }
    .pgal__slide{
        flex-basis:calc((100% - var(--pgal-gap)) / 2);
    }
}
@media(min-width:992px){
    .pgal__slide{
        flex-basis:calc((100% - 2 * var(--pgal-gap)) / 3);
    }
    .pgal--n2 .pgal__slide{
        flex-basis:calc((100% - var(--pgal-gap)) / 2);
    }
}
.pgal__nav{
    position:absolute;
    top:50%;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
    width:48px;
    height:48px;
    margin-top:-24px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#fff;
    color:#111;
    box-shadow:0 4px 14px rgba(0,0,0,.14);
    cursor:pointer;
    transition:opacity .2s;
}
.pgal__nav--prev{
    left:12px;
}
.pgal__nav--next{
    right:12px;
}
.pgal__nav:disabled{
    opacity:.4;
    cursor:default;
}
.pgal__nav svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.pgal--fit .pgal__nav{
    display:none;
}
@media(hover:none){
    .pgal__nav{
        display:none;
    }
}

/* Правая колонка: карточки */
.product-card{
    padding:28px;
    border-radius:24px;
    background:#F1F2F6;
    color:#111;
}
.product-card__title{
    margin:0 0 12px;
    font-size:clamp(26px,3vw,38px);
    font-weight:700;
    line-height:1.1;
}
.product-card__title--sm{
    font-size:clamp(22px,2.4vw,28px);
}
.product-card__text{
    margin:0 0 24px;
    font-size:16px;
    line-height:1.45;
    color:#444;
}

/* Форма в карточке */
.product-form__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:22px;
}
.product-form__icon{
    display:flex;
    flex:none;
    width:52px;
    height:52px;
    padding:12px;
    border-radius:14px;
    background:#FFDD01;
    color:#111;
}
.product-form__icon svg{
    width:100%;
    height:100%;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.product-form__chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:52px;
    padding:6px 18px;
    border-radius:14px;
    background:#FFF3C4;
    font-size:13px;
    font-weight:700;
    line-height:1.2;
}
.product-form__chip svg{
    flex:none;
    width:16px;
    height:16px;
}
.product-form__fields{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:16px;
}
.product-form__consent{
    margin:0;
    font-size:16px;
}
.product-form__consent input{
    flex:0 0 22px;
    width:22px;
    height:22px;
}
.product-form__fields .lead-form__input{
    font-size:16px;
}
.product-form__submit{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:64px;
    padding:14px 56px;
    border:0;
    border-radius:16px;
    background:#FFDD01;
    color:#111;
    font-size:clamp(17px,1.5vw,19px);
    font-weight:700;
    line-height:1.2;
    cursor:pointer;
    transition:background-color .2s;
}
.product-form__submit:hover{
    background:#f0cf00;
}
.product-form__submit:focus-visible{
    outline:2px solid #111;
    outline-offset:3px;
}
.product-form__submit svg{
    position:absolute;
    top:50%;
    right:24px;
    width:22px;
    height:16px;
    margin-top:-8px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* Карточка «Или свяжитесь с нами» */
.product-contacts__row{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:20px;
    align-items:center;
}
.product-contacts__call{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:60px;
    padding:0 16px;
    border:3px solid #c9cacf;
    border-radius:14px;
    background:#fff;
    color:#111;
    font-size:17px;
    font-weight:700;
    white-space:nowrap;
    text-decoration:none;
    transition:border-color .2s;
}
.product-contacts__call:hover{
    border-color:#FFDD01;
    color:#111;
    text-decoration:none;
}
.product-contacts__call svg{
    flex:none;
    width:20px;
    height:20px;
    fill:currentColor;
}
.product-contacts__soc{
    display:flex;
    justify-content:center;
    gap:28px;
}
.product-contacts__soc a{
    display:block;
    width:54px;
    height:54px;
    padding:4px;
    border-radius:50%;
    background:transparent;
    transition:background-color .2s,transform .2s;
}
.product-contacts__soc a:hover,
.product-contacts__soc a:focus-visible{
    background:#FFDD01;
    transform:scale(1.06);
}
.product-contacts__soc a:focus-visible{
    outline:2px solid #111;
    outline-offset:2px;
}
@media(prefers-reduced-motion:reduce){
    .product-contacts__soc a{
        transition:none;
    }
    .product-contacts__soc a:hover{
        transform:none;
    }
}
.product-contacts__soc img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}
@media(min-width:576px){
    .product-contacts__row{
        grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
        gap:24px;
    }
    .product-contacts__soc{
        justify-content:space-around;
        gap:0;
    }
}
@media(min-width:992px) and (max-width:1199.98px){
    .product-contacts__soc a{
        width:48px;
        height:48px;
    }
}

@media(min-width:576px){
    .product-form__fields{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .product-form__consent,
    .product-form__submit{
        grid-column:1 / -1;
    }
}
@media(max-width:767.98px){
    .pgal__tnav{
        display:none;
    }
    .pgal__stage{
        border-radius:20px;
    }
    .product-card{
        padding:20px;
        border-radius:20px;
    }
}
/* Карточка цены */
.product-price{
    background:#FFF3C4;
}
.product-price__label{
    margin:0 0 6px;
    font-size:14px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#555;
}
.product-price__value{
    font-size:clamp(32px,3.6vw,44px);
    font-weight:700;
    line-height:1.1;
    color:#111;
}
.product-price__value small{
    font-size:.5em;
    font-weight:600;
    color:#555;
}
.product-price__note{
    margin:8px 0 0;
    font-size:14px;
    line-height:1.4;
    color:#555;
}

/* «От нас»: один серый блок со списком, растягивается по высоте */
.product-perks{
    display:flex;
    flex-direction:column;
}
.product-perks .product-card__title{
    margin-bottom:18px;
}
.product-perks__body{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    font-size:16px;
    line-height:1.5;
    color:#222;
}
.product-perks__body p{
    margin:0 0 10px;
}
.product-perks__body > :last-child{
    margin-bottom:0;
}
.product-perks__body ul{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    justify-content:space-between;
    gap:14px;
    margin:0;
    padding:0;
    list-style:none;
}
.product-perks__body li{
    position:relative;
    padding-left:2.1em;
}
.product-perks__body li::before{
    content:"";
    position:absolute;
    left:0;
    top:.05em;
    width:1.3em;
    height:1.3em;
    border-radius:50%;
    background:#FFDD01 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .75em no-repeat;
}
@media(min-width:992px){
    .product-perks__body{
        font-size:clamp(17px,1.5vw,20px);
    }
    .product-perks .product-card__title{
        font-size:clamp(26px,2.6vw,32px);
    }
}
    .product-perks__lead{
        flex-direction:column;
        align-items:flex-start;
        justify-content:space-between;
        padding:28px;
    }
    .product-perks__lead svg{
        width:48px;
        height:48px;
    }
}
@media(min-width:992px){
    .pgal__thumb{
        flex-basis:calc((100% - 60px) / 6);
    }
}
/* Телефон и планшет: форма и контакты одним блоком */
@media(max-width:991.98px){
    .product-top__side{
        gap:0;
    }
    .product-price{
        margin-bottom:var(--product-gap);
    }
    .product-form{
        border-bottom-left-radius:0;
        border-bottom-right-radius:0;
    }
    .product-contacts{
        padding-top:0;
        border-top-left-radius:0;
        border-top-right-radius:0;
    }
    .product-contacts::before{
        content:"";
        display:block;
        height:1px;
        margin-bottom:20px;
        background:#d9dae0;
    }
    .product-contacts .product-card__text{
        display:none;
    }
    .product-contacts .product-card__title{
        margin-bottom:16px;
    }
}
/* Счётчик фото на телефоне */
.pgal__count{
    position:absolute;
    right:12px;
    bottom:12px;
    z-index:2;
    padding:6px 12px;
    border-radius:14px;
    background:rgba(17,17,17,.72);
    color:#fff;
    font-size:13px;
    font-weight:700;
    line-height:1;
    pointer-events:none;
}
.pgal--n1 .pgal__count,
.pgal--fit .pgal__count{
    display:none;
}
@media(min-width:576px){
    .pgal__count{
        display:none;
    }
}
/* Десктоп: жёлтая и чёрная строки закреплены, белая шапка прячется при прокрутке вниз */
@media(min-width:768px){
    html{
        --hdr-h:106px;
        --line-h:35px;
        --shift:calc(var(--hdr-h) * -1);
    }
    html.header-pinned{
        --shift:0px;
    }
        body{
        padding-top:0;
    }
    body > header{
        position:sticky;
        top:var(--shift);
        z-index:22;
        background:#fff;
        transition:top .3s ease;
    }
    #line{
        position:sticky;
        top:calc(var(--shift) + var(--hdr-h));
        z-index:21;
        transition:top .3s ease;
    }
    #menu{
        position:sticky;
        top:calc(var(--shift) + var(--hdr-h) + var(--line-h));
        left:auto;
        right:auto;
        z-index:20;
        transition:top .3s ease;
    }
}
@media(prefers-reduced-motion:reduce){
    body > header,
    #line,
    #menu{
        transition:none;
    }
}
/* Мобильная полоса: закреплена вверху, отступ под ней равен её высоте */
@media(max-width:767.98px){
    html{
        --bar-h:78px;
    }
    #menu{
        position:fixed;
        top:0;
        left:0;
        right:0;
        z-index:20;
    }
    body{
        padding-top:var(--bar-h);
    }
}
/* Ритм вертикальных отступов на странице товара */
.product-top{
    margin-bottom:32px;
}
.product-top ~ .pgal{
    margin-bottom:32px;
}
.product-top ~ .faq-section{
    padding-top:0;
}
@media(min-width:992px){
    .product-top{
        margin-bottom:40px;
    }
    .product-top ~ .pgal{
        margin-bottom:40px;
    }
}
/* Правая колонка: лишняя высота делится поровну между карточками */
.product-top__side > .product-card{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    justify-content:center;
}
/* Без серых линий вокруг сетки карточек: разделение задаёт пространство */
.p-categories{
    border-top:0;
    border-bottom:0;
}

/* Фирменный акцент над заголовком блока «Посмотрите наши работы» */
.intro2 h2::before{
    content:"";
    display:block;
    width:56px;
    height:5px;
    margin-bottom:16px;
    border-radius:3px;
    background:#FFDD01;
}
/* ===== Новая шапка и первый экран (чанки hx-header, hx-hero) ===== */
:root{--hx-y:#FFDD01;--hx-y2:#f0cf00;--hx-ink:#111;--hx-mut:#555;--hx-card:#F1F2F6;--hx-line:#e2e3e8;--hx-tile:#dfe2ea}
body.hx-page{padding-top:0}
html.hx-lock,html.hx-lock body{overflow:hidden;overscroll-behavior:none}
.hx-util,.hx-bar,.hx-sheet,.hx-hero{font-family:'Beau',sans-serif;color:var(--hx-ink)}
.hx-util a,.hx-bar a,.hx-sheet a,.hx-hero a{color:inherit;text-decoration:none}
.hx-util a:hover,.hx-bar a:hover,.hx-sheet a:hover,.hx-hero a:hover{color:inherit;text-decoration:none}
.hx-ico{flex:none;width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hx-fill{flex:none;width:1em;height:1em;fill:currentColor}

/* Верхняя полоса */
.hx-util{background:var(--hx-card);font-size:13px;color:var(--hx-ink)}
.hx-util__row{display:flex;align-items:center;gap:24px;height:36px}
.hx-util__item{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.hx-util__item svg{font-size:16px}
.hx-util__push{margin-left:auto}
.hx-util a.hx-util__item:hover{text-decoration:underline;text-underline-offset:4px}
.hx-util__soc{display:flex;align-items:center;gap:12px}
.hx-util__soc a{display:grid;place-items:center;width:28px;height:28px;font-size:26px}
.hx-util__soc img{display:block;width:22px;height:22px}

/* Основная строка (закреплена) */
.hx-bar{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--hx-line)}
.hx-row{display:flex;align-items:center;gap:20px;height:72px}
.hx-logo{display:block;flex:none}
.hx-logo img{display:block;width:clamp(170px,15vw,230px);height:auto}
.hx-catbtn{display:inline-flex;align-items:center;gap:10px;padding:8px 4px;border:0;background:none;color:inherit;font:700 17px/1.2 'Beau',sans-serif;cursor:pointer}
.hx-catbtn svg{font-size:22px}
.hx-catbtn[aria-expanded="true"]{text-decoration:underline;text-decoration-color:var(--hx-y);text-decoration-thickness:3px;text-underline-offset:8px}
.hx-nav{display:flex;gap:24px}
.hx-nav a{padding:8px 0;font-size:17px;font-weight:700}
.hx-nav a:hover{text-decoration:underline;text-underline-offset:8px}
.hx-sbtn{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:none;color:inherit;font-size:22px;cursor:pointer}
.hx-sbtn:hover{background:var(--hx-card)}
.hx-phone{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:17px;font-weight:700;white-space:nowrap}
.hx-phone svg{font-size:22px}
.hx-cta{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:14px 22px;border:0;border-radius:16px;background:var(--hx-y);color:var(--hx-ink);font:700 15px/1.2 'Beau',sans-serif;text-transform:uppercase;white-space:nowrap;cursor:pointer;transition:background-color .2s}
.hx-cta:hover{background:var(--hx-y2);color:var(--hx-ink);text-decoration:none}
.hx-cta--ghost{background:var(--hx-card)}
.hx-cta--ghost:hover{background:var(--hx-line)}
.hx-cta--sm{padding:12px 16px}
.hx-ar{display:grid;place-items:center;width:34px;height:34px;margin:-6px -12px -6px 0;border-radius:50%;background:#2b2a29;color:#fff}
.hx-ar svg{width:16px}

/* Панель каталога */
.hx-mega{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--hx-line);box-shadow:0 24px 40px rgba(0,0,0,.12)}
.hx-mega[hidden]{display:none}
.hx-mega__in{position:relative;padding-top:28px;padding-bottom:28px}
.hx-cats{width:260px;min-height:420px;margin:0;padding:0;list-style:none}
.hx-cat__link{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;font-weight:700;line-height:1.2}
.hx-cat.is-active>.hx-cat__link{background:var(--hx-card)}
.hx-cat__img{flex:none;width:40px;height:40px;border-radius:10px;object-fit:cover;background:var(--hx-tile)}
.hx-panel{display:none;position:absolute;top:28px;left:307px;right:297px}
.hx-cat.is-active>.hx-panel{display:block}
.hx-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px;margin:0;padding:0;list-style:none}
.hx-tile:nth-child(n+7){display:none}
.hx-tile a{display:block}
.hx-tile__img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:14px;background:var(--hx-tile)}
.hx-tile__name{display:block;margin-top:8px;font-weight:700;line-height:1.25}
.hx-tile a:hover .hx-tile__img{outline:3px solid var(--hx-y)}
.hx-bar .hx-all{display:inline-block;margin-top:20px;font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.hx-help{position:absolute;top:28px;right:15px;display:flex;flex-direction:column;gap:12px;width:250px;padding:22px;border-radius:20px;background:var(--hx-card)}
.hx-help__title{font-size:20px;font-weight:700;line-height:1.2}
.hx-help p{margin:0;color:var(--hx-mut)}
.hx-help__tel{font-weight:700}

/* Поиск */
.hx-spop{position:absolute;left:0;right:0;top:100%;padding:20px 0;background:#fff;border-bottom:1px solid var(--hx-line);box-shadow:0 24px 40px rgba(0,0,0,.12)}
.hx-spop[hidden]{display:none}
.hx-spop form{display:flex;gap:12px;margin:0}
.hx-spop input{flex:1;min-width:0;padding:14px 18px;border:2px solid var(--hx-line);border-radius:16px;background:#fff;color:inherit;font:16px/1.2 'Beau',sans-serif}
.hx-spop input:focus{outline:0;border-color:var(--hx-y)}

/* Телефон: кнопки и меню вглубь */
.hx-mctl{display:none;align-items:center;gap:10px;margin-left:auto}
.hx-mbtn{display:grid;place-items:center;width:44px;height:44px;padding:0;border:2px solid var(--hx-line);border-radius:14px;background:none;color:inherit;font-size:20px;cursor:pointer}
.hx-sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;flex-direction:column;background:#fff;padding-top:env(safe-area-inset-top,0px)}
.hx-sheet[hidden]{display:none}
.hx-sheet__top{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--hx-line);font-size:18px}
.hx-sheet__top b{flex:1}
.hx-sheet__top button{padding:8px;border:0;background:none;color:inherit;font:inherit;font-size:15px;cursor:pointer}
.hx-sheet__search{display:flex;gap:8px;margin:12px 16px 0}
.hx-sheet__search input{flex:1;min-width:0;padding:12px 16px;border:2px solid var(--hx-line);border-radius:14px;font:16px/1.2 'Beau',sans-serif}
.hx-sheet__search button{width:48px;border:0;border-radius:14px;background:var(--hx-y);font-size:20px;cursor:pointer}
.hx-sheet__body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:8px 16px}
.hx-li{display:flex;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid var(--hx-line);font-size:17px;font-weight:700}
.hx-li img{flex:none;width:44px;height:44px;border-radius:10px;object-fit:cover;background:var(--hx-tile)}
.hx-li em{margin-left:auto;font-style:normal;color:var(--hx-mut)}
.hx-sheet .hx-li--strong{text-decoration:underline;text-underline-offset:5px}
.hx-sheet__foot{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--hx-line)}

/* Первый экран */
.hx-hero{padding:48px 0 64px}
.hx-hero__in{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:48px;align-items:center}
.hx-eyebrow{display:flex;align-items:center;gap:14px;margin:0 0 20px;color:var(--hx-mut);font-size:14px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.hx-eyebrow::before{content:"";flex:none;width:48px;height:4px;border-radius:2px;background:var(--hx-y)}
.hx-hero__title{margin:0 0 20px;font-size:clamp(34px,4.6vw,60px);font-weight:700;line-height:1.05}
.hx-hero__lead{max-width:560px;margin:0 0 28px;font-size:18px;line-height:1.45;color:var(--hx-mut)}
.hx-hero__acts{display:flex;flex-wrap:wrap;gap:14px}
.hx-hero__photo{aspect-ratio:4/3;overflow:hidden;border-radius:28px;background:var(--hx-tile)}
.hx-hero__photo img{display:block;width:100%;height:100%;object-fit:cover}

/* Адаптивность */
@media(max-width:1399.98px){
    .hx-row{gap:14px}
    .hx-nav{gap:16px}
    .hx-phone{font-size:16px}
}
@media(max-width:1199.98px){
    .hx-phone svg,.hx-bar .hx-ar,.hx-help{display:none}
    .hx-panel{right:15px}
    .hx-cta{padding:13px 18px}
}
@media(max-width:991.98px){
    .hx-util,.hx-d,.hx-mega,.hx-spop{display:none}
    .hx-mctl{display:flex}
    .hx-row{height:60px}
    .hx-logo img{width:auto;height:36px}
    .hx-hero{padding:24px 0 40px}
    .hx-hero__in{grid-template-columns:minmax(0,1fr);gap:24px}
}
/* Шапка: правки после теста */
.hx-catbtn{margin-left:clamp(12px,2.4vw,44px)}
@media(max-width:1199.98px){
    .hx-catbtn{margin-left:8px}
}
/* Логотип: полный на десктопе, компактный знак на телефоне */
.hx-bar .hx-logo .hx-logo__full{display:block;width:clamp(170px,15vw,230px);height:auto}
.hx-bar .hx-logo .hx-logo__mb{display:none;width:63px;height:40px;max-width:none}
@media(max-width:991.98px){
    .hx-bar .hx-logo .hx-logo__full{display:none}
    .hx-bar .hx-logo .hx-logo__mb{display:block}
}
/* ===== Страница «Рекламным агентствам» ===== */
.ag{padding:8px 0 56px;color:#111}
.ag a{color:inherit}
.ag-top{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;margin-bottom:56px}
.ag-top__main,.ag-top__aside{min-width:0}
.ag-top__aside .lead-form{margin:0;padding:28px 22px}
@media(min-width:768px){.ag-top__aside .lead-form{padding:clamp(24px,2.6vw,32px)}}
@media(min-width:992px){
    .ag-top{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:40px;align-items:start}
    .ag-top__aside{position:sticky;top:124px}
}
.ag-pill{ display:inline-block; margin:0 0 20px;padding:8px 18px; border-radius:20px; background:#FFDD01; font-size:16px; font-weight:600; line-height:1.4; letter-spacing:0.2px; color:#111;}
.ag-title{margin:0 0 18px;font-size:clamp(30px,4.2vw,56px);font-weight:700;line-height:1.06;text-transform:none}
.ag-lead{max-width:680px;margin:0 0 24px;font-size:clamp(16px,1.5vw,19px);line-height:1.5;color:#333}
.ag-chips{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 40px;padding:0;list-style:none}
.ag-chips li{ display:flex; align-items:center; gap:12px; padding:10px 16px 10px 10px; border-radius:16px; background:#F1F2F6; font-size:16px; font-weight:500; line-height:1.4; letter-spacing:0.2px;}
.ag-ico{display:grid;flex:none;place-items:center;width:40px;height:40px;border-radius:50%;background:#FFDD01;color:#111}
.ag-ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ag-h2{margin:0 0 24px;font-size:clamp(26px,3vw,40px);font-weight:700;line-height:1.1;text-transform:none}
.ag-block{margin-bottom:56px}


/* Проекты */
.ag .ag-projects{box-sizing:border-box;min-width:0;width:100%;padding:16px;border-radius:20px;background:#F1F2F6;color:#111}
.ag .ag-projects[hidden],.ag .ag-projects [hidden]{display:none!important}
.ag .ag-projects .ag-projects__header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
#content .ag .ag-projects .ag-projects__header .ag-h2{margin:0;padding:0;font-size:clamp(24px,2.6vw,34px);line-height:1.15;font-weight:700}
.ag .ag-projects .ag-projects__count{flex:0 0 auto;align-self:center;margin:0;padding:0;white-space:nowrap;font-size:19px;font-weight:700;line-height:1.15;font-variant-numeric:tabular-nums}
.ag .ag-projects .ag-projects__slides{display:block;min-width:0}
.ag .ag-projects .ag-project{display:block;min-width:0;margin:0}
.ag .ag-projects .ag-project__link{position:relative;display:block;box-sizing:border-box;width:100%;min-width:0;aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:#e4e5ea;cursor:zoom-in;text-decoration:none}
.ag .ag-projects .ag-project__link > .ag-project__img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;border-radius:0;object-fit:cover;object-position:center}
.ag .ag-projects .ag-project__info{display:none}
.ag .ag-projects .ag-projects__thumbs{display:flex;gap:8px;min-width:0;overflow-x:auto;margin-top:12px;padding:3px 1px 6px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.ag .ag-projects .ag-projects__thumb{position:relative;flex:0 0 clamp(72px,14%,116px);aspect-ratio:4/3;box-sizing:border-box;overflow:hidden;padding:0;border:3px solid transparent;border-radius:12px;background:#e4e5ea;cursor:pointer}
.ag .ag-projects .ag-projects__thumb[aria-current="true"]{border-color:#FFDD01}
.ag .ag-projects .ag-projects__thumb > img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;border-radius:8px;object-fit:cover;object-position:center;pointer-events:none}
.ag .ag-projects .ag-projects__thumb:focus-visible,.ag .ag-projects .ag-project__link:focus-visible{outline:2px solid #111;outline-offset:2px}
@media(max-width:575px){
    .ag .ag-projects{padding:12px}
    .ag .ag-projects .ag-projects__count{font-size:15px}
}

/* Открытый проект */
.fancybox-container.ag-project-viewer{--ag-viewer-panel-w:clamp(280px,24vw,360px);--ag-viewer-panel-h:clamp(92px,22vh,176px);--ag-viewer-gap:12px}
.fancybox-container.ag-project-viewer .fancybox-stage{bottom:calc(var(--ag-viewer-panel-h) + 2 * var(--ag-viewer-gap))}
.fancybox-container.ag-project-viewer .fancybox-slide--image{padding:48px 12px 12px}
.fancybox-container.ag-project-viewer .fancybox-caption{box-sizing:border-box;left:var(--ag-viewer-gap);right:var(--ag-viewer-gap);bottom:var(--ag-viewer-gap);top:auto;width:auto;height:var(--ag-viewer-panel-h);margin:0;padding:16px;background:#fff;color:#111;border-radius:16px;text-align:left;line-height:1.45;overflow:auto;overscroll-behavior:contain;pointer-events:auto}
.fancybox-container.ag-project-viewer .fancybox-caption::before{display:none}
.fancybox-container.ag-project-viewer .fancybox-caption__body{max-height:100%;overflow:auto;overscroll-behavior:contain}
.fancybox-container.ag-project-viewer .ag-viewer__title{margin:0;color:#111;font-size:clamp(17px,1.2vw,20px);font-weight:400;line-height:1.4;letter-spacing:.2px;overflow-wrap:anywhere;white-space:pre-line}
.fancybox-container.ag-project-viewer .ag-viewer__text{margin:0;color:#444;font-size:15px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-line}
.fancybox-container.ag-project-viewer .ag-viewer__title + .ag-viewer__text{margin-top:10px}
.fancybox-container.ag-project-viewer .fancybox-navigation .fancybox-button{top:calc((100% - var(--ag-viewer-panel-h) - 2 * var(--ag-viewer-gap)) / 2 - 50px)}
@media(min-width:992px){
    .fancybox-container.ag-project-viewer{--ag-viewer-gap:18px}
    .fancybox-container.ag-project-viewer .fancybox-stage{right:calc(var(--ag-viewer-panel-w) + 2 * var(--ag-viewer-gap));bottom:0}
    .fancybox-container.ag-project-viewer .fancybox-slide--image{padding:56px 44px 18px}
    .fancybox-container.ag-project-viewer .fancybox-caption{left:auto;right:var(--ag-viewer-gap);top:56px;bottom:var(--ag-viewer-gap);width:var(--ag-viewer-panel-w);height:auto;padding:24px}
    .fancybox-container.ag-project-viewer .fancybox-navigation .fancybox-button{top:calc(50% - 50px)}
    .fancybox-container.ag-project-viewer .fancybox-button--arrow_right{right:calc(var(--ag-viewer-panel-w) + 2 * var(--ag-viewer-gap))}
}

/* Помощь */
.ag-help{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.ag-card{padding:28px;border-radius:24px;background:#F1F2F6}
.ag-card .ag-ico{width:48px;height:48px;margin-bottom:16px}
.ag-card h3{margin:0 0 8px;font-size:21px;font-weight:700;line-height:1.2}
.ag-card p{margin:0;font-size:16px;line-height:1.5;color:#444}
@media(min-width:768px){.ag-help{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}

/* Этапы */
.ag-steps{display:grid;gap:12px;margin:0;padding:0;list-style:none;counter-reset:ag}
.ag-step{position:relative;display:flex;align-items:center;gap:14px;padding:18px 20px;border-radius:20px;background:#F1F2F6;font-size:17px;font-weight:700;line-height:1.25;counter-increment:ag}
.ag-step::before{content:counter(ag);display:grid;flex:none;place-items:center;width:40px;height:40px;border-radius:50%;background:#FFDD01;font-size:18px}
@media(min-width:992px){
    .ag-steps{grid-template-columns:repeat(5,minmax(0,1fr));gap:28px}
    .ag-step{flex-direction:column;align-items:flex-start;padding:22px}
    .ag-step:not(:last-child)::after{content:"→";position:absolute;top:50%;right:-23px;margin-top:-13px;color:#8a8a8a;font-size:20px}
}

/* Условия */
.ag-terms{margin-bottom:56px;padding:32px;border-radius:24px;background:#F1F2F6}
.ag-terms .ag-h2{margin-bottom:20px}
.ag-terms__list{display:grid;gap:14px 32px;margin:0;padding:0;list-style:none}
.ag-terms__list li{position:relative;padding-left:36px;font-size:17px;line-height:1.45}
.ag-terms__list li::before{content:"";position:absolute;left:0;top:.05em;width:24px;height:24px;border-radius:50%;background:#FFDD01 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat}
@media(min-width:768px){.ag-terms__list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Призыв внизу */
.ag-cta{display:flex;flex-direction:column;gap:20px;margin-top:8px;padding:32px;border-radius:28px;background:#FFDD01}
.ag-cta h2{margin:0;font-size:clamp(24px,3vw,36px);font-weight:700;line-height:1.1;text-transform:none}
.ag-cta p{margin:6px 0 0;font-size:17px}
.ag-cta__acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.ag .ag-btn{display:inline-flex;align-items:center;justify-content:center;padding:15px 24px;border-radius:16px;background:#111;color:#fff;font-size:16px;font-weight:700;text-decoration:none;transition:background-color .2s}
.ag .ag-btn:hover{background:#333;color:#fff;text-decoration:none}
.ag .ag-btn--light{background:#fff;color:#111}
.ag .ag-btn--light:hover{background:#f6f6f6;color:#111}
.ag-cta__soc{display:flex;gap:14px}
.ag .ag-cta__soc a{display:block;width:46px;height:46px;padding:0;border-radius:0;background:none;transition:opacity .2s,transform .2s}
.ag .ag-cta__soc a:hover{opacity:.8;transform:scale(1.06)}
.ag-cta__soc img{display:block;width:100%;height:100%;object-fit:contain}
@media(min-width:768px){.ag-cta{flex-direction:row;align-items:center;justify-content:space-between;padding:40px 48px}}
@media(max-width:767.98px){
    .ag-cta{text-align:left}
    .ag-cta h2,.ag-cta p{text-align:left}
    .ag-cta__acts{width:100%;flex-direction:column;align-items:stretch;gap:12px}
    .ag .ag-btn{box-sizing:border-box;width:100%;max-width:none;min-height:52px;text-align:center}
    .ag-cta__soc{width:100%;justify-content:center;align-items:center;gap:16px;margin-top:6px}
}

/* Форма: плашка срока ответа */
.lead-form__sla{display:flex;align-items:center;justify-content:center;gap:10px;margin:0;padding:12px 14px;border-radius:14px;background:rgba(0,0,0,.05);font-size:15px;line-height:1.3;text-align:center}
@container lead-form (min-width:640px){.lead-form__sla{grid-column:1 / -1}}

#content h1.ag-title{font-size:clamp(30px,4.2vw,56px);font-weight:700;line-height:1.06;text-transform:none}

.lead-form__deck{margin:14px 0 0;font-size:14px;line-height:1.4;color:#555;text-align:center}

/* Нижняя полоса «Пришлите задачу или ТЗ»: кнопки и иконки в одну строку */
@media(min-width:768px) and (max-width:991.98px){
    .ag-cta{flex-direction:column;align-items:flex-start}
}
@media(min-width:992px){
    .ag-cta > div:first-child{flex:1 1 0;min-width:0}
    .ag-cta__acts{flex:none;flex-wrap:nowrap}
}