/*
===============================================================================
 FILE: /css/home.css
 VERSION: 3.8
 PROJECT: ОКНА ORIGINAL — главная страница
 DATE: 2026-08-31
 CHANGES v3.8: нижний CTA с локальным изображением консультанта и лёгким parallax.
 CHANGES v3.7: hero-баннер с каруселью и затемнением, улучшен CTA, переработаны карточки услуг.
===============================================================================
*/
:root{--home-red:#E32636;--home-turquoise:#4ECDC4;--home-anthracite:#363636;--home-ink:#172231;--home-muted:#627083;--home-line:#e1e8ef;--home-soft:#f4f7f9}
.home-page{max-width:1240px;margin:0 auto;padding:24px 20px 68px;color:var(--home-ink)}
.home-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.08fr) 220px;align-items:end;min-height:560px;border-radius:30px;color:#fff;box-shadow:0 22px 50px rgba(20,38,58,.14);background:#132132}
.home-hero::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--home-red) 0 33.333%,var(--home-turquoise) 33.333% 66.666%,var(--home-anthracite) 66.666%);z-index:3}
.home-hero-media,.home-hero-overlay,.home-hero-slide{position:absolute;inset:0}.home-hero-media{z-index:0}.home-hero-slide{opacity:0;background-size:cover;background-position:center center;transition:opacity .8s ease,transform 5.8s ease;transform:scale(1.02)}.home-hero-slide.is-active{opacity:1;transform:scale(1.06)}.home-hero-overlay{background:linear-gradient(90deg,rgba(12,23,35,.82) 0%,rgba(12,23,35,.72) 38%,rgba(12,23,35,.45) 70%,rgba(12,23,35,.36) 100%),linear-gradient(180deg,rgba(6,12,18,.20) 0%,rgba(6,12,18,.10) 42%,rgba(6,12,18,.34) 100%)}
.home-hero-copy,.home-hero-aside{position:relative;z-index:2}.home-hero-copy{padding:72px 54px 52px;align-self:end}.home-kicker{display:inline-flex;align-items:center;gap:9px;font-size:11px;font-weight:900;letter-spacing:.12em;color:#5f7183}.home-hero .home-kicker,.home-choice .home-kicker{color:#d3e0ec}.home-kicker::before{content:"";width:8px;height:8px;border-radius:2px;background:var(--home-red)}.home-hero .home-kicker::before,.home-choice .home-kicker::before{background:var(--home-turquoise)}
.home-hero h1{max-width:760px;margin:16px 0 18px;font-size:clamp(48px,5.8vw,80px);line-height:.96;letter-spacing:-.055em;color:#fff;text-shadow:0 8px 24px rgba(0,0,0,.22)}.home-hero-copy>p{max-width:650px;margin:0;color:#e8eff6;font-size:18px;line-height:1.65;text-shadow:0 2px 10px rgba(0,0,0,.15)}.home-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.home-btn-light{background:rgba(255,255,255,.95)!important;color:#172231!important;border:1px solid rgba(255,255,255,.95)!important}.home-btn-light:hover{background:#fff!important}.home-trust{display:flex;gap:30px;flex-wrap:wrap;margin-top:38px;padding-top:24px;border-top:1px solid rgba(255,255,255,.18);color:#d5e0ea;font-size:12px}.home-trust b{display:block;color:#fff;font-size:18px;margin-bottom:2px}
.home-hero-aside{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:16px;padding:0 28px 28px 0}.home-hero-note{width:220px;padding:18px 20px;border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(10,19,29,.64);backdrop-filter:blur(10px);box-shadow:0 12px 30px rgba(0,0,0,.15)}.home-hero-note small{display:block;color:#d0dbe6;font-size:9px;letter-spacing:.14em}.home-hero-note strong{display:block;margin:4px 0;color:#fff;font-size:27px}.home-hero-note p{margin:0;color:#dfe8f1;font-size:11px;line-height:1.45}
.home-hero-dots{display:flex;gap:9px;padding:9px 11px;border-radius:999px;background:rgba(11,19,29,.52);backdrop-filter:blur(8px)}.home-hero-dots button{width:11px;height:11px;border:0;border-radius:50%;padding:0;background:rgba(255,255,255,.35);cursor:pointer;transition:transform .2s ease,background .2s ease}.home-hero-dots button.is-active,.home-hero-dots button:hover{background:#fff;transform:scale(1.15)}
.home-section{margin-top:62px}.home-section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:20px}.home-section-head h2{margin:5px 0 0;font-size:clamp(30px,4vw,43px);line-height:1.08;letter-spacing:-.035em}.home-section-head>a{color:#314a63;font-size:13px;font-weight:800;text-decoration:none;white-space:nowrap}.home-section-head>a:hover{color:var(--home-red)}
.home-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.home-profile-card{position:relative;overflow:hidden;display:grid;grid-template-columns:134px 1fr;min-height:166px;border:1px solid var(--home-line);border-radius:20px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 9px 25px rgba(19,42,66,.045);transition:.22s}.home-profile-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--home-red)}.home-profile-card:nth-child(3n+2)::before{background:var(--home-turquoise)}.home-profile-card:nth-child(3n)::before{background:var(--home-anthracite)}.home-profile-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(19,42,66,.09);border-color:#cbd8e3}.home-profile-img{display:flex;align-items:center;justify-content:center;padding:12px;background:#f7f9fa}.home-profile-img img{width:100%;height:138px;object-fit:contain}.home-profile-copy{padding:20px 18px 17px 17px;display:flex;flex-direction:column}.home-profile-copy>span{font-size:9px;font-weight:900;letter-spacing:.12em;color:#8b98a5}.home-profile-copy>strong{font-size:23px;margin:3px 0 7px}.home-profile-copy p{flex:1;margin:0;color:#667687;font-size:12px;line-height:1.45}.home-profile-copy div{margin-top:10px;font-size:11px;font-weight:800;color:#30465c}
.home-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-product-card{overflow:hidden;border:1px solid var(--home-line);border-radius:21px;background:#fff;box-shadow:0 9px 25px rgba(19,42,66,.045)}.home-product-image{display:flex;height:270px;padding:18px;background:#f6f8fa}.home-product-image img{width:100%;height:100%;object-fit:contain}.home-product-body{padding:20px 22px 22px}.home-product-body>span{color:#758495;font-size:10px;font-weight:900;letter-spacing:.08em}.home-product-body h3{margin:5px 0 16px;font-size:20px}.home-product-body h3 a{color:inherit;text-decoration:none}.home-product-price{font-size:23px;font-weight:900;color:#1d3248}
.home-services-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.home-service-card{display:flex;flex-direction:column;overflow:hidden;min-height:100%;border:1px solid var(--home-line);border-radius:20px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 8px 24px rgba(19,42,66,.04);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.home-service-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(19,42,66,.08);border-color:#cbd8e3}.home-service-visual{aspect-ratio:16/10;padding:16px 16px 8px;background:radial-gradient(circle at 82% 16%,rgba(78,205,196,.07),transparent 30%),linear-gradient(180deg,#fff 0%,#f7fafc 100%)}.home-service-card img{display:block;width:100%;height:100%;object-fit:contain;object-position:center center;filter:contrast(1.02) saturate(.98);background:transparent}.home-service-copy{padding:21px 18px 22px;border-top:1px solid rgba(225,232,239,.85)}.home-service-card span{display:block;color:var(--home-red);font-size:10px;font-weight:900;letter-spacing:.08em}.home-service-card strong{display:block;margin:5px 0 7px;font-size:20px}.home-service-card p{margin:0;color:#687789;font-size:12px;line-height:1.5}
.home-choice{position:relative;overflow:hidden;margin-top:62px;display:grid;grid-template-columns:1fr auto;gap:38px;align-items:center;padding:42px 46px;border-radius:25px;background:linear-gradient(135deg,#102030 0%,#17324a 58%,#1f435d 100%);color:#fff;box-shadow:0 20px 44px rgba(20,38,58,.12)}.home-choice::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--home-red),var(--home-turquoise),var(--home-anthracite))}.home-choice h2{max-width:730px;margin:7px 0 12px;font-size:clamp(29px,4vw,44px);line-height:1.08;color:#fff}.home-choice p{max-width:760px;margin:0;color:#e0e7ee;line-height:1.65;font-size:16px}.home-choice-actions{display:flex;gap:10px;flex-direction:column;min-width:220px;position:relative;z-index:1}.home-choice .btn.btn-primary{box-shadow:0 10px 22px rgba(0,0,0,.12)}.home-btn-dark{background:rgba(255,255,255,.06)!important;color:#fff!important;border:1px solid rgba(255,255,255,.42)!important}.home-btn-dark:hover{background:rgba(255,255,255,.12)!important;border-color:var(--home-turquoise)!important}
@media(max-width:1000px){.home-hero{grid-template-columns:1fr;min-height:520px}.home-hero-copy{padding:54px 34px 24px}.home-hero-aside{align-items:flex-start;padding:0 0 24px 34px}.home-profile-grid,.home-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-choice{grid-template-columns:1fr}.home-choice-actions{flex-direction:row;min-width:0}}
@media(max-width:720px){.home-page{padding:12px 12px 45px}.home-hero{border-radius:22px;min-height:500px}.home-hero-copy{padding:42px 25px 18px}.home-hero h1{font-size:44px}.home-hero-copy>p{font-size:15px}.home-hero-aside{padding:0 0 18px 25px;gap:12px}.home-hero-note{width:190px;padding:15px 16px}.home-hero-dots{padding:8px 10px}.home-trust{gap:18px}.home-section{margin-top:45px}.home-section-head{align-items:start;flex-direction:column;gap:8px}.home-profile-grid,.home-product-grid,.home-services-grid{grid-template-columns:1fr}.home-profile-card{grid-template-columns:115px 1fr}.home-product-image{height:235px}.home-choice{padding:30px 24px}.home-choice-actions{flex-direction:column}.home-choice-actions .btn{width:100%}}


/* =============================================================================
   HOME CONSULTANT CTA — v3.8
   ============================================================================= */
.home-choice{
    isolation:isolate;
    min-height:310px;
    padding:54px 48px;
    background:#101d2b;
}
.home-choice-bg{
    position:absolute;
    z-index:-2;
    inset:-28px 0;
    background-image:url('/images/home/consultant.webp');
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center var(--home-choice-y,50%);
    transform:translate3d(0,var(--home-choice-shift,0px),0) scale(1.025);
    will-change:transform;
}
.home-choice::after{
    content:"";
    position:absolute;
    z-index:-1;
    inset:0;
    background:linear-gradient(90deg,rgba(7,16,26,.96) 0%,rgba(9,20,31,.90) 42%,rgba(10,21,32,.54) 66%,rgba(10,21,32,.18) 100%);
}
.home-choice-copy{position:relative;z-index:1;max-width:750px}
.home-choice .home-kicker{color:#d9e6f0}
.home-choice h2{max-width:700px;text-shadow:0 4px 18px rgba(0,0,0,.24)}
.home-choice p{max-width:690px;color:#edf3f7;text-shadow:0 2px 10px rgba(0,0,0,.18)}
.home-choice-actions{align-self:center}
@media(max-width:900px){
    .home-choice{min-height:360px;padding:42px 34px}
    .home-choice-bg{background-position:62% center;opacity:.88}
    .home-choice::after{background:linear-gradient(90deg,rgba(7,16,26,.96) 0%,rgba(9,20,31,.90) 55%,rgba(10,21,32,.58) 100%)}
}
@media(max-width:720px){
    .home-choice{min-height:auto;padding:34px 24px 250px}
    .home-choice-bg{inset:0;background-size:auto 58%;background-position:right bottom;transform:none!important;will-change:auto}
    .home-choice::after{background:linear-gradient(180deg,rgba(7,16,26,.98) 0%,rgba(7,16,26,.92) 54%,rgba(7,16,26,.44) 78%,rgba(7,16,26,.12) 100%)}
}
@media(prefers-reduced-motion:reduce){.home-choice-bg{transform:none!important;will-change:auto}}
