/* HTPLAST TZ: narrow scoped enhancements, loaded after the existing Tailwind bundle */
.htp-header-tagline{display:none;color:#64748b;font-size:10px;line-height:1.3;white-space:nowrap;flex-shrink:0}
@media(min-width:1600px){.htp-header-tagline{display:block}}
.htp-header-phone{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:#334155;text-decoration:none;white-space:nowrap;padding:7px}
.htp-header-phone span{display:none}
@media(min-width:1350px){.htp-header-phone span{display:inline}}
.htp-header-phone:hover{color:#0284c7}
.htp-header-social{font-size:10px;font-weight:700;padding:6px;border:1px solid #cbd5e1;border-radius:8px;color:#0369a1}
.htp-callback-button{background:#0284c7;color:white;border-radius:999px;padding:9px 13px;font-size:11px;font-weight:700;white-space:nowrap}
@media(max-width:1250px){.htp-callback-button{display:none}}
.htp-mobile-phone{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border-radius:9px;background:#f0f9ff;color:#0369a1}
.htp-nav-dropdown{position:relative;flex-shrink:0}
.htp-nav-parent{display:flex;gap:5px;align-items:center}
.htp-nav-popup{position:absolute;top:100%;left:0;min-width:260px;border-radius:14px;box-shadow:0 14px 42px rgba(15,23,42,.15);background:#fff;padding:8px;z-index:60;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .15s,transform .15s,visibility .15s}
.htp-nav-popup a{display:block;white-space:nowrap;padding:11px 13px;color:#334155;font-size:12px;border-radius:9px}
.htp-nav-popup a:hover,.htp-nav-popup a:focus-visible{background:#eff6ff;color:#0369a1}
.htp-nav-dropdown:hover .htp-nav-popup,.htp-nav-dropdown:focus-within .htp-nav-popup{opacity:1;visibility:visible;transform:translateY(0)}
.htp-nav-subitems{display:flex;flex-direction:column;padding-left:12px}
.htp-nav-subitem{font-size:12px!important;color:#64748b!important;padding-top:9px!important;padding-bottom:9px!important}
.htp-callback-mobile{border-radius:12px;background:#0284c7;color:white;padding:12px;font-weight:700;text-align:center;width:100%;margin-top:10px}
.htp-nav-contact{color:#0369a1;display:block;padding:10px 12px;font-size:13px}
.htp-callback-layer[hidden],.htp-callback-success[hidden],.htp-callback-layer [hidden]{display:none!important}
.htp-callback-layer{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:18px}
.htp-callback-shade{position:absolute;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(4px)}
.htp-dialog-open{overflow:hidden}
.htp-callback-dialog{position:relative;background:#fff;border-radius:24px;box-shadow:0 26px 80px rgba(15,23,42,.25);max-width:440px;width:100%;max-height:calc(100vh - 36px);overflow-y:auto;padding:32px;outline:none}
.htp-callback-close{position:absolute;top:9px;right:14px;font-size:27px;color:#64748b;background:none}
.htp-dialog-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#0284c7;font-weight:700}
.htp-callback-dialog h2{font-size:26px;font-weight:750;color:#0f172a;line-height:1.15;margin:12px 0}
.htp-callback-dialog p{font-size:14px;color:#64748b;line-height:1.5;margin-bottom:16px}
.htp-callback-dialog form>label:not(.htp-callback-consent){display:block;font-size:13px;font-weight:700;color:#334155;margin-top:14px}
.htp-callback-dialog input[type=text],.htp-callback-dialog input[type=tel]{display:block;width:100%;padding:12px 14px;border:1px solid #cbd5e1;border-radius:11px;margin-top:6px;font-size:15px;background:#fff}
.htp-callback-consent{display:flex;align-items:flex-start;gap:8px;margin:16px 0;color:#64748b;font-size:12px;line-height:1.4}
.htp-callback-consent input{margin-top:2px}
.htp-callback-consent a{color:#0284c7;text-decoration:underline}
.htp-callback-submit{display:block;width:100%;background:#0284c7;color:#fff;text-align:center;border-radius:11px;padding:15px;font-weight:700;margin-top:12px}
.htp-callback-error{color:#be123c!important}
.htp-callback-success{text-align:center;padding:18px}
/* New sections */
.htp-linktile{display:block;color:inherit;text-decoration:none;position:relative;overflow:hidden}
.htp-home-perks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.htp-home-perk{background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:20px;color:#0f172a;font-weight:700;line-height:1.3}
.htp-home-perk small{display:block;color:#64748b;font-weight:400;font-size:13px;margin-top:8px}
@media(max-width:640px){.htp-home-perks{grid-template-columns:1fr}}
.htp-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.24}
.htp-hero-video-scrim{position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.90),rgba(240,249,255,.72))}
.htp-doc-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px}
.htp-doc-card{display:block;background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:22px;color:#0f172a;transition:box-shadow .2s,border-color .2s}
.htp-doc-card:hover{box-shadow:0 12px 36px rgba(14,165,233,.13);border-color:#7dd3fc}
.htp-doc-card h2{font-size:18px;font-weight:700;margin-bottom:8px}
.htp-doc-card p{font-size:13px;color:#64748b;line-height:1.5}
.htp-doc-card .htp-doc-action{display:inline-block;margin-top:18px;color:#0284c7;font-size:13px;font-weight:700}
.htp-product-docs{margin-top:24px;padding:20px;background:#f0f9ff;border-radius:16px;border:1px solid #e0f2fe}
.htp-product-docs h3{font-size:16px;font-weight:700;margin-bottom:12px}
.htp-product-docs a{display:block;color:#0369a1;font-size:14px;padding:6px 0}
.htp-coop-form{background:#fff;border-radius:20px;border:1px solid #dbeafe;padding:26px;max-width:550px}
.htp-coop-form label{display:block;font-weight:600;font-size:13px;margin:12px 0;color:#334155}
.htp-coop-form input:not([type=checkbox]),.htp-coop-form textarea{display:block;width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:12px;margin-top:6px;background:#fff}
.htp-coop-form [type=submit]{background:#0284c7;color:#fff;border-radius:12px;padding:14px 22px;font-weight:700}
@media(prefers-reduced-motion:reduce){.htp-nav-popup,.htp-doc-card{transition:none}}

.htp-catalog-colors{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px}
.htp-catalog-color-group{background:white;border:1px solid #e2e8f0;border-radius:15px;padding:19px}
.htp-catalog-color-title{font-size:16px;font-weight:700;color:#0f172a}
.htp-color-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.htp-color-chip{display:flex;align-items:center;gap:5px;background:#f8fafc;border-radius:7px;padding:6px 8px;font-size:11px;color:#475569}
.htp-color-dot{width:17px;height:17px;border-radius:50%;border:1px solid rgba(0,0,0,.10)}

/* TZ v2: use explicit CSS for new layouts without rebuilding Tailwind. */
.htp-hero-usp{grid-template-columns:repeat(2,minmax(0,1fr));max-width:580px;margin-left:auto;margin-right:auto}
.htp-hero-usp>div{min-width:0}
.htp-hero-video{opacity:1;z-index:0}
.htp-hero-video-scrim{z-index:1;background:linear-gradient(135deg,rgba(255,255,255,.80),rgba(240,249,255,.55))}
.htp-hero-v2:has(.htp-hero-video)>[data-molecules]{display:none!important}
.htp-client-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;justify-items:center}
.htp-client-grid>div{max-width:260px}
.htp-client-name{font-weight:700;color:#334155;text-align:center;font-size:16px}
.htp-ice-photo{object-position:center 76%}
.htp-production-video{max-width:960px;margin:0 auto 40px}.htp-production-video video{width:100%;height:auto;border-radius:20px;background:#0f172a}
.htp-application-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0 40px}
.htp-application-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0 40px}
.htp-application-links a{display:block;background:#fff;border:1px solid #dbeafe;border-radius:14px;padding:18px;color:#075985;font-weight:600}
.htp-club-badges{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.htp-club-badges span{font-size:11px;font-weight:600;color:#075985;background:#e0f2fe;border-radius:6px;padding:5px 8px}
@media(max-width:767px){.htp-client-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.htp-client-grid>div{height:100px;padding:14px}.htp-application-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.htp-application-links{grid-template-columns:1fr}.htp-hero-usp{gap:10px}.htp-hero-usp>div{padding:14px}.htp-hero-usp p{font-size:12px}}
@media(max-width:390px){.htp-application-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.htp-hero-video{display:none}}

.htp-showcase-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;align-items:stretch}
.htp-showcase-grid>a>div:nth-child(2){padding:22px}
.htp-client-logo{max-width:80%;max-height:80%;object-fit:contain}
.htp-home-app-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin-top:56px}
.htp-application-hero{width:100%;max-height:430px;object-fit:cover;border-radius:20px}
@media(max-width:1279px){.htp-showcase-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1023px){.htp-home-app-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.htp-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.htp-showcase-grid>a>div:nth-child(2){padding:16px}.htp-home-app-grid{display:none}}
@media(max-width:479px){.htp-showcase-grid{grid-template-columns:1fr}}

/* Вертикальное видео производства: исходные пропорции, без обрезки. */
.htp-production-video{text-align:center;max-width:960px}.htp-production-video video{display:block;width:auto;max-width:100%;height:auto;max-height:min(640px,76svh);margin-inline:auto;object-fit:contain}

/* Уточнение блока производства и мессенджеров */
#production .htp-production-video { margin: 40px auto 0; text-align: center; }
#htp-home-clients .htp-client-logo-luzhniki { transform: translate(10px, -12px); }
.htp-messenger-icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; }
.htp-header-messenger .htp-messenger-icon { width: 22px; height: 22px; }
.htp-messenger-link { display: inline-flex; align-items: center; gap: 8px; }
.htp-contact-messenger-icon { display: block; width: 32px; height: 32px; object-fit: contain; }
@media (max-width: 767px) {
    #production .htp-production-video { margin-top: 28px; }
    #htp-home-clients .htp-client-logo-luzhniki { transform: translate(4px, -4px); }
}

/* Производство: видео и квадратные фотографии */
#production .htp-production-media-title {
    max-width: 100%;
    margin: 0 auto 14px;
}
#production .htp-production-media-grid {
    --production-gap: 16px;
    max-width: 100%;
    margin-inline: auto;
}
#production .htp-production-photo {
    display: block;
    aspect-ratio: 1 / 1;
    min-width: 0;
    min-height: 0;
    position: relative;
    align-self: start;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}
#production .htp-production-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#production .htp-production-media-grid.has-video {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--production-gap);
}
#production .htp-production-media-grid.has-video > .htp-production-photos { display: contents; }
#production .htp-production-media-grid.has-video > .htp-production-video {
    position: relative;
    grid-column: 1 / -1;
    width: min(100%, 300px);
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
}
#production .htp-production-media-grid.has-video > .htp-production-video video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: inherit;
    object-fit: contain;
}
@media (min-width: 768px) {
    #production .htp-production-media-grid.has-video {
        grid-template-columns: calc((100% - var(--production-gap)) * 0.36) repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
    #production .htp-production-media-grid.has-video > .htp-production-video {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 100%;
        aspect-ratio: auto;
    }
    /* Keep the video at native aspect even if all photos are removed. */
    #production .htp-production-media-grid.has-video > .htp-production-video:only-child {
        grid-column: 1 / -1;
        grid-row: auto;
        width: min(100%, 300px);
        aspect-ratio: 9 / 16;
    }
}

@media (min-width: 768px) {
    #production .htp-production-media-grid,
    #production .htp-production-media-title {
        max-width: 85%;
    }
}
