/* ==========================================================================
   ООО «БСТК» — стили сайта
   ========================================================================== */

/* ---------- Шрифты (локально, без Google Fonts) ---------- */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/inter-cyrillic-400-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/inter-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/inter-cyrillic-500-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/inter-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/inter-cyrillic-600-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/inter-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/inter-cyrillic-700-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/inter-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Oswald";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/oswald-cyrillic-500-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Oswald";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/oswald-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Oswald";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/oswald-cyrillic-600-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Oswald";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/oswald-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Oswald";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/oswald-cyrillic-700-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Oswald";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/oswald-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Переменные ---------- */
:root{
  --primary-50:#eef4ff;--primary-100:#dbe8ff;--primary-200:#bfd3f7;--primary-400:#7599d5;
  --primary-500:#527bc1;--primary-600:#315eaa;--primary-700:#204993;--primary-800:#163b7f;
  --accent-50:#f4f7fc;--accent-100:#e6edf8;--accent-400:#8ea7cf;--accent-500:#718fbe;--accent-600:#5b78a9;
  --steel-50:#f8fafc;--steel-100:#f1f5f9;--steel-200:#e2e8f0;--steel-300:#cbd5e1;--steel-400:#94a3b8;
  --steel-500:#64748b;--steel-600:#475569;--steel-700:#334155;--steel-800:#1e293b;--steel-900:#0f172a;--steel-950:#020617;
  --success:#16a34a;--danger:#dc2626;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-head:"Oswald","Arial Narrow",Arial,sans-serif;
  --radius:12px;--radius-lg:16px;
  --shadow-md:0 4px 12px rgba(15,23,42,.08);
  --shadow-lg:0 10px 30px rgba(15,23,42,.12);
  --shadow-xl:0 20px 50px rgba(15,23,42,.18);
  --ease:cubic-bezier(.2,.7,.2,1);
  --header-h:80px;
}

/* ---------- База ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--header-h);-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font-body);font-size:16px;line-height:1.55;color:var(--steel-900);background:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body.is-locked{overflow:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:600;margin:0;line-height:1.15}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--primary-500);outline-offset:2px}

.container{width:100%;max-width:1280px;margin:0 auto;padding:0 24px}
.rel{position:relative}
.ic{width:16px;height:16px;flex-shrink:0;display:inline-block;vertical-align:middle}
.ic--md{width:20px;height:20px}
.ic--lg{width:24px;height:24px}
.ic--xl{width:32px;height:32px}

/* ---------- Кнопки ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;border-radius:10px;padding:12px 22px;font-size:15px;line-height:1.2;transition:background-color .2s,box-shadow .2s,transform .2s,color .2s;white-space:nowrap}
.btn--sm{padding:10px 20px;font-size:14px}
.btn--lg{padding:16px 28px;font-size:16px}
.btn--block{width:100%}
.btn--primary{background:var(--primary-600);color:#fff;box-shadow:var(--shadow-md)}
.btn--primary:hover{background:var(--primary-700);box-shadow:0 10px 25px rgba(49,94,170,.35);transform:translateY(-1px)}
.btn--primary:disabled{opacity:.6;cursor:progress;transform:none}
.btn--glass{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.btn--glass:hover{background:rgba(255,255,255,.2)}
.btn--white{background:#fff;color:var(--primary-700);font-weight:700;box-shadow:var(--shadow-lg)}
.btn--white:hover{background:var(--steel-50);transform:scale(1.03)}
.btn__arrow{transition:transform .2s}
.btn:hover .btn__arrow{transform:translateX(4px)}

/* ---------- Верхняя полоса ---------- */
.topbar{background:var(--steel-950);color:var(--steel-300);font-size:14px;display:none}
.topbar__inner{display:flex;align-items:center;justify-content:space-between;padding-top:8px;padding-bottom:8px}
.topbar__group{display:flex;align-items:center;gap:24px}
.topbar__item{display:inline-flex;align-items:center;gap:8px}
.topbar__item .ic{color:var(--primary-400)}
a.topbar__item:hover{color:#fff}
.topbar__muted{color:var(--steel-400);margin-right:-16px}
.topbar__accent{color:var(--accent-400);font-family:var(--font-head);font-weight:700;font-size:16px}

/* ---------- Шапка ---------- */
.header{position:sticky;top:0;z-index:50;background:#fff;color:var(--steel-900);transition:background-color .3s,box-shadow .3s;box-shadow:0 1px 0 var(--steel-100)}
.header.is-scrolled{background:rgba(255,255,255,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 8px 30px rgba(15,23,42,.12)}
.header__inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:var(--header-h)}
.logo{display:flex;align-items:center;gap:14px;flex-shrink:0}
.logo__img{height:64px;width:auto;object-fit:contain}
.logo--footer .logo__img{height:64px}
.logo__text{display:none;flex-direction:column;padding-left:14px;border-left:1px solid var(--steel-200)}
.logo--footer .logo__text{border-left-color:rgba(255,255,255,.15)}
.logo__name{font-family:var(--font-head);font-weight:700;font-size:19px;line-height:1.15;letter-spacing:.02em}
.logo__sub{font-size:12px;color:var(--steel-500);line-height:1.3}
.nav{display:none;align-items:center;gap:28px}
.nav a{position:relative;font-size:14px;font-weight:500;color:var(--steel-700);transition:color .2s}
.nav a::after{content:"";position:absolute;left:0;bottom:-6px;height:2px;width:0;background:var(--primary-600);transition:width .3s}
.nav a:hover{color:var(--primary-600)}
.nav a:hover::after{width:100%}
.header__actions{display:none;align-items:center;gap:18px}
.header__phone{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-head);font-weight:700;font-size:18px;white-space:nowrap}
.header__phone .ic{color:var(--primary-600)}
.header__phone:hover{color:var(--primary-600)}
.burger{padding:8px;color:var(--steel-700);display:inline-flex}
.burger__close{display:none}
.burger[aria-expanded="true"] .burger__open{display:none}
.burger[aria-expanded="true"] .burger__close{display:block}
.mobile-menu{background:#fff;border-top:1px solid var(--steel-200);animation:fadeIn .25s ease;box-shadow:0 20px 30px rgba(15,23,42,.08)}
.mobile-menu__nav{display:flex;flex-direction:column;gap:2px;padding-top:12px;padding-bottom:20px}
.mobile-menu__nav>a{display:flex;align-items:center;justify-content:space-between;padding:12px;border-radius:10px;font-weight:500;color:var(--steel-700)}
.mobile-menu__nav>a:hover{background:var(--steel-50);color:var(--primary-600)}
.mobile-menu__footer{margin-top:10px;padding-top:14px;border-top:1px solid var(--steel-200);display:flex;flex-direction:column;gap:12px}
.mobile-menu__phone{display:flex;align-items:center;gap:8px;font-family:var(--font-head);font-weight:700;font-size:20px;padding:0 12px}
.mobile-menu__phone .ic{color:var(--primary-600)}

/* ---------- Первый экран ---------- */
.hero{position:relative;height:90vh;min-height:600px;max-height:960px;overflow:hidden;background:var(--steel-900);color:#fff}
.hero__slide{position:absolute;inset:0;opacity:0;transition:opacity 1s ease}
.hero__slide.is-active{opacity:1}
.hero__bg{position:absolute;inset:0;background-size:cover;background-position:center}
.hero__slide.is-active .hero__bg{animation:kenburns 8s ease-out forwards}
.hero__shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,6,23,.9) 0%,rgba(15,23,42,.7) 50%,rgba(15,23,42,.3) 100%)}
.hero__content{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center}
.hero__text{max-width:672px}
.pill{display:inline-flex;align-items:center;gap:8px;background:rgba(49,94,170,.9);padding:8px 16px;border-radius:999px;font-size:14px;font-weight:600;margin-bottom:24px}
.pill__dot{width:8px;height:8px;border-radius:50%;background:var(--accent-400);animation:pulse 2s infinite}
.hero__title{font-size:clamp(34px,5.4vw,60px);font-weight:700;line-height:1.1;margin-bottom:16px;text-wrap:balance}
.hero__subtitle{font-size:clamp(17px,1.6vw,20px);color:var(--steel-200);margin-bottom:32px;max-width:576px}
.hero__buttons{display:flex;flex-direction:column;gap:16px}
.hero__arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:48px;height:48px;border-radius:50%;display:none;align-items:center;justify-content:center;background:rgba(255,255,255,.1);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#fff;transition:background-color .2s}
.hero__arrow:hover{background:rgba(255,255,255,.22)}
.hero__arrow--prev{left:24px}
.hero__arrow--next{right:24px}
.hero__dots{position:absolute;bottom:32px;left:50%;transform:translateX(-50%);z-index:3;display:flex;gap:12px}
.hero__dot{height:8px;width:8px;border-radius:999px;background:rgba(255,255,255,.4);transition:width .3s,background-color .3s}
.hero__dot:hover{background:rgba(255,255,255,.65)}
.hero__dot.is-active{width:40px;background:var(--primary-500)}
.hero__badge{position:absolute;right:32px;bottom:32px;z-index:3;width:112px;height:112px;border-radius:50%;background:var(--accent-500);display:none;flex-direction:column;align-items:center;justify-content:center;box-shadow:var(--shadow-xl);animation:scaleIn .5s ease-out both}
.hero__badge b{font-family:var(--font-head);font-size:32px;line-height:1}
.hero__badge span{font-size:12px;font-weight:500;line-height:1.2;text-align:center;margin-top:4px}

/* ---------- Секции ---------- */
.section{padding:96px 0;position:relative;overflow:hidden}
.section--gray{background:var(--steel-50)}
.section-head{margin-bottom:56px}
.section-head--center{text-align:center}
.section-head--center .lead{max-width:672px;margin:16px auto 0}
.section-head--split{display:flex;flex-direction:column;gap:20px}
.section-head--split .lead{max-width:448px}
.eyebrow{display:inline-block;font-family:var(--font-head);font-weight:600;font-size:14px;text-transform:uppercase;letter-spacing:.18em;color:var(--primary-600);margin-bottom:12px}
.eyebrow--light{color:var(--primary-400)}
.h2{font-size:clamp(32px,4vw,48px);font-weight:700;line-height:1.12;color:var(--steel-900);text-wrap:balance}
.h2--light{color:#fff}
.h2+.lead{margin-top:24px}
.lead{font-size:18px;line-height:1.65;color:var(--steel-600)}
.lead+.lead{margin-top:20px}
.lead--muted{color:var(--steel-500)}
.lead--light{color:var(--steel-300)}
.grid{display:grid;gap:24px}

.photo{position:relative;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-xl);background:var(--steel-200)}
.photo img{width:100%;height:400px;object-fit:cover;transition:transform .7s var(--ease)}
.photo:hover img{transform:scale(1.05)}
.photo::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(15,23,42,.4),transparent 60%);pointer-events:none}
.photo--xl img{height:500px}

.icon-box{width:44px;height:44px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.icon-box--soft{background:var(--primary-100);color:var(--primary-600)}
.icon-box--accent{background:var(--accent-100);color:var(--accent-600)}

.float-card{position:absolute;background:#fff;border:1px solid var(--steel-100);border-radius:var(--radius);box-shadow:var(--shadow-xl);padding:22px;display:none}
.float-card--bl{left:-32px;bottom:-32px;max-width:320px}
.float-card--tr{right:-24px;top:-24px;padding:18px 20px}
.float-card__head{display:flex;align-items:center;gap:12px}
.float-card__head>b{font-family:var(--font-head);font-size:18px}
.float-card p{margin-top:10px;font-size:14px;color:var(--steel-500)}
.float-card__big{display:block;font-family:var(--font-head);font-size:24px;line-height:1}
.float-card small{display:block;font-size:12px;color:var(--steel-500);margin-top:4px}

/* ---------- О компании ---------- */
.about__blob{position:absolute;top:0;right:0;width:384px;height:384px;border-radius:50%;background:var(--primary-50);transform:translate(50%,-50%);filter:blur(60px);opacity:.7}
.about__top{display:grid;gap:64px;margin-bottom:80px;align-items:start}
.about__media{position:relative}
.feature{background:#fff;border:1px solid var(--steel-100);border-radius:var(--radius);padding:28px;transition:box-shadow .3s,border-color .3s,transform .3s}
.feature:hover{box-shadow:var(--shadow-xl);border-color:var(--primary-200);transform:translateY(-4px)}
.feature__icon{width:56px;height:56px;border-radius:12px;background:var(--steel-50);color:var(--steel-700);display:flex;align-items:center;justify-content:center;margin-bottom:20px;transition:background-color .3s,color .3s}
.feature:hover .feature__icon{background:var(--primary-600);color:#fff}
.feature h3{font-size:20px;margin-bottom:10px}
.feature p{font-size:14px;color:var(--steel-500);line-height:1.65}

/* ---------- Цифры ---------- */
.stats{background:var(--steel-900);color:#fff}
.stats__bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.2}
.stats__shade{position:absolute;inset:0;background:linear-gradient(90deg,var(--steel-950),rgba(15,23,42,.9),rgba(15,23,42,.7))}
.stats__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:40px 24px}
.stat{text-align:center}
.stat__num{font-family:var(--font-head);font-weight:700;font-size:clamp(40px,5vw,60px);line-height:1.1;margin-bottom:10px;transition:color .3s;font-variant-numeric:tabular-nums}
.stat:hover .stat__num{color:var(--primary-400)}
.stat__suffix{color:var(--primary-500)}
.stat__bar{height:4px;width:64px;margin:0 auto;background:var(--primary-600);border-radius:4px;transition:width .3s}
.stat:hover .stat__bar{width:96px}
.stat p{margin:16px auto 0;font-size:14px;line-height:1.4;color:var(--steel-400);max-width:200px}

/* ---------- Услуги ---------- */
.service{background:#fff;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md);transition:box-shadow .5s,transform .5s;display:flex;flex-direction:column}
.service:hover{box-shadow:var(--shadow-xl);transform:translateY(-8px)}
.service__media{position:relative;height:224px;overflow:hidden;background:var(--steel-200)}
.service__media img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.service:hover .service__media img{transform:scale(1.1)}
.service__media::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(15,23,42,.8),rgba(15,23,42,.2) 45%,transparent)}
.service__icon{position:absolute;top:16px;left:16px;z-index:1;width:48px;height:48px;border-radius:12px;background:rgba(255,255,255,.92);color:var(--steel-800);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-lg);transition:background-color .3s,color .3s}
.service:hover .service__icon{background:var(--primary-600);color:#fff}
.service__body{padding:24px;display:flex;flex-direction:column;flex:1}
.service__body h3{font-size:20px;margin-bottom:12px;transition:color .2s}
.service:hover h3{color:var(--primary-600)}
.service__body p{font-size:14px;color:var(--steel-500);line-height:1.65;margin-bottom:16px}
.link-more{margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:4px;color:var(--primary-600);font-weight:600;font-size:14px;transition:gap .2s}
.link-more:hover{gap:8px;color:var(--primary-700)}
.promo{margin-top:48px;border-radius:var(--radius-lg);padding:32px;background:linear-gradient(90deg,var(--primary-600),var(--primary-700));color:#fff;display:flex;flex-direction:column;align-items:center;gap:24px;text-align:center;box-shadow:var(--shadow-xl)}
.promo h3{font-size:clamp(24px,2.6vw,30px);font-weight:700;margin-bottom:8px}
.promo p{color:var(--primary-100)}

/* ---------- Наши работы ---------- */
.project{position:relative;display:block;width:100%;aspect-ratio:4/3;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-md);text-align:left;transition:box-shadow .5s,transform .5s;background:var(--steel-200)}
.project:hover{box-shadow:var(--shadow-xl);transform:translateY(-8px)}
.project img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.project:hover img{transform:scale(1.1)}
.project::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(2,6,23,.9),rgba(15,23,42,.3) 50%,transparent)}
.project__cap{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:20px;color:#fff}
.project__num{display:inline-block;font-size:12px;font-weight:600;color:var(--primary-200);background:rgba(15,23,42,.6);padding:4px 10px;border-radius:999px;margin-bottom:8px}
.project__title{display:block;font-family:var(--font-head);font-size:18px;font-weight:600;line-height:1.2}
.project__meta{display:flex;align-items:center;gap:5px;margin-top:6px;font-size:12px;color:var(--steel-300);line-height:1.3}
.project__meta .ic{width:13px;height:13px;color:var(--primary-400)}

/* ---------- Преимущества ---------- */
.adv__blob{position:absolute;bottom:0;left:0;width:320px;height:320px;border-radius:50%;background:var(--accent-100);transform:translate(-50%,50%);filter:blur(60px);opacity:.6}
.adv__grid{display:grid;gap:64px;align-items:center}
.adv__media{position:relative;order:2}
.adv__list{margin-top:32px;display:flex;flex-direction:column;gap:20px}
.adv__list li{display:flex;gap:16px}
.adv__icon{flex-shrink:0;width:48px;height:48px;border-radius:12px;background:#fff;border:1px solid var(--steel-200);color:var(--steel-700);display:flex;align-items:center;justify-content:center;box-shadow:0 1px 2px rgba(15,23,42,.05);transition:all .3s}
.adv__list li:hover .adv__icon{background:var(--primary-600);border-color:var(--primary-600);color:#fff}
.adv__list h3{font-size:18px;margin-bottom:4px}
.adv__list p{font-size:14px;color:var(--steel-500);line-height:1.65}

/* ---------- Новости ---------- */
.news{background:#fff;border:1px solid var(--steel-100);border-radius:var(--radius-lg);overflow:hidden;transition:box-shadow .5s,transform .5s}
.news:hover{box-shadow:var(--shadow-xl);transform:translateY(-8px)}
.news__media{position:relative;height:224px;overflow:hidden;background:var(--steel-200)}
.news__media img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.news:hover .news__media img{transform:scale(1.1)}
.news__date{position:absolute;top:16px;left:16px;display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.92);padding:6px 12px;border-radius:999px;font-size:12px;font-weight:600;color:var(--steel-700)}
.news__date .ic{width:14px;height:14px;color:var(--primary-600)}
.news__body{padding:24px}
.news__body h3{font-size:18px;margin-bottom:12px;line-height:1.25;transition:color .2s}
.news:hover h3{color:var(--primary-600)}
.news__body p{font-size:14px;color:var(--steel-500);line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- Контакты ---------- */
.contacts{background:var(--steel-900);color:#fff}
.contacts__bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.1}
.contacts__grid{display:grid;gap:48px}
.contact-list{margin-top:40px;display:flex;flex-direction:column;gap:20px}
.contact-list a,.contact-list__row{display:flex;align-items:center;gap:16px}
.contact-list__icon{width:48px;height:48px;border-radius:12px;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;transition:background-color .3s;flex-shrink:0}
.contact-list a:hover .contact-list__icon{background:var(--primary-600)}
.contact-list small{display:block;font-size:14px;color:var(--steel-400)}
.contact-list b{display:block;font-family:var(--font-head);font-weight:700;font-size:18px;transition:color .2s;word-break:break-word}
.contact-list a:hover b{color:var(--primary-400)}

/* ---------- Формы ---------- */
.form-card{background:#fff;color:var(--steel-900);border-radius:var(--radius-lg);padding:32px;box-shadow:var(--shadow-xl);align-self:start}
.form-card__title{font-size:24px;font-weight:700;margin-bottom:8px}
.form-card__text{font-size:14px;color:var(--steel-500);margin-bottom:24px}
.lead-form{display:flex;flex-direction:column;gap:18px}
.lead-form .form-card__text{margin-bottom:6px}
.field{display:flex;flex-direction:column;gap:8px}
.field__label{font-size:14px;font-weight:500;color:var(--steel-700)}
.field__label i{font-style:normal;color:var(--danger)}
.field input,.field textarea{width:100%;font:inherit;font-size:16px;color:var(--steel-900);background:#fff;border:1px solid var(--steel-200);border-radius:10px;padding:12px 16px;transition:border-color .2s,box-shadow .2s;resize:vertical;min-height:48px}
.field textarea{min-height:96px}
.field input::placeholder,.field textarea::placeholder{color:var(--steel-400)}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--primary-500);box-shadow:0 0 0 3px rgba(82,123,193,.25)}
.field.is-invalid input{border-color:var(--danger);box-shadow:0 0 0 3px rgba(220,38,38,.12)}
.field__error{font-size:13px;color:var(--danger);min-height:0}
.field__error:empty{display:none}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

.consent{display:flex;align-items:flex-start;gap:12px;cursor:pointer;font-size:13px;line-height:1.5;color:var(--steel-500);position:relative}
.consent input{position:absolute;opacity:0;width:20px;height:20px;margin:0;cursor:pointer}
.consent__box{flex-shrink:0;width:20px;height:20px;margin-top:1px;border:1.5px solid var(--steel-300);border-radius:5px;background:#fff;display:flex;align-items:center;justify-content:center;transition:all .2s}
.consent__box::after{content:"";width:10px;height:6px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translate(1px,-1px);opacity:0;transition:opacity .15s}
.consent input:checked+.consent__box{background:var(--primary-600);border-color:var(--primary-600)}
.consent input:checked+.consent__box::after{opacity:1}
.consent input:focus-visible+.consent__box{box-shadow:0 0 0 3px rgba(82,123,193,.35)}
.consent.is-invalid .consent__box{border-color:var(--danger)}
.consent a{color:var(--primary-600);text-decoration:underline;text-decoration-color:rgba(49,94,170,.35);text-underline-offset:2px}
.consent a:hover{text-decoration-color:currentColor}
.field__error--consent{margin-top:-10px}
.form-status{font-size:14px;text-align:center}
.form-status:empty{display:none}
.form-status.is-error{color:var(--danger)}
.form-success{text-align:center;padding:48px 0;animation:scaleIn .4s ease-out}
.form-success__icon{width:80px;height:80px;border-radius:50%;background:#dcfce7;color:var(--success);display:inline-flex;align-items:center;justify-content:center;margin-bottom:24px}
.form-success h3{font-size:24px;font-weight:700;margin-bottom:12px}
.form-success p{color:var(--steel-500);max-width:360px;margin:0 auto}

/* ---------- Подвал ---------- */
.footer{background:var(--steel-950);color:var(--steel-400);padding:64px 0 32px}
.footer__grid{display:grid;gap:40px}
.footer .logo{margin-bottom:20px}
.footer .logo__name{color:#fff}
.footer__about p{font-size:14px;line-height:1.65;max-width:448px}
.footer__about p+p{margin-top:20px}
.footer__copy{color:var(--steel-500)}
.footer h4{color:#fff;font-size:16px;margin-bottom:20px}
.footer__links{display:flex;flex-direction:column;gap:12px;font-size:14px}
.footer__links a:hover,.footer__contacts a:hover{color:var(--primary-400)}
.footer__contacts{display:flex;flex-direction:column;gap:16px;font-size:14px}
.footer__contacts li,.footer__contacts a{display:flex;align-items:flex-start;gap:12px}
.footer__contacts .ic{color:var(--primary-500)}
.footer__bottom{margin-top:48px;padding-top:32px;border-top:1px solid var(--steel-800);display:flex;flex-direction:column;gap:16px;font-size:12px;line-height:1.6;color:var(--steel-500)}
.footer__bottom p{max-width:672px}
.footer__legal{display:flex;flex-wrap:wrap;gap:8px 24px}
.footer__legal a{color:var(--steel-400);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(148,163,184,.4)}
.footer__legal a:hover{color:#fff}

/* ---------- Лайтбокс ---------- */
.lightbox{position:fixed;inset:0;z-index:100;background:rgba(2,6,23,.95);display:flex;align-items:center;justify-content:center;padding:24px;animation:fadeIn .25s ease}
.lightbox__fig{margin:0;max-width:896px;width:100%}
.lightbox__fig img{width:100%;max-height:70vh;object-fit:contain;border-radius:8px}
.lightbox figcaption{margin-top:20px;text-align:center;color:#fff;display:flex;flex-direction:column;gap:6px;align-items:center}
.lightbox__num{font-size:14px;font-weight:600;color:var(--primary-400)}
.lightbox__title{font-family:var(--font-head);font-size:24px}
.lightbox__desc{color:var(--steel-400);max-width:576px}
.lightbox__close{position:absolute;top:20px;right:20px;width:48px;height:48px;display:flex;align-items:center;justify-content:center;color:#fff}
.lightbox__nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;display:flex;align-items:center;justify-content:center;color:#fff}
.lightbox__nav--prev{left:8px}
.lightbox__nav--next{right:8px}
.lightbox__close:hover,.lightbox__nav:hover{color:var(--primary-400)}

/* ---------- Модальные окна ---------- */
.modal{position:fixed;inset:0;z-index:110;display:flex;align-items:center;justify-content:center;padding:16px}
.modal__overlay{position:absolute;inset:0;background:rgba(2,6,23,.7);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:fadeIn .2s ease}
.modal__dialog{position:relative;background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-xl);width:100%;max-height:calc(100vh - 32px);overflow:auto;animation:modalIn .3s var(--ease)}
.modal__dialog--form{max-width:480px;padding:32px}
.modal__dialog--doc{max-width:760px;display:flex;flex-direction:column;overflow:hidden}
.modal__close{position:absolute;top:12px;right:12px;width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--steel-500);z-index:2}
.modal__close:hover{background:var(--steel-100);color:var(--steel-900)}
.modal--doc{z-index:120}
.doc-modal__head{display:flex;align-items:center;gap:12px;padding:24px 64px 18px 28px;border-bottom:1px solid var(--steel-100)}
.doc-modal__head h3{font-size:22px}
.doc-modal__body{padding:20px 28px;overflow:auto;flex:1;min-height:120px}
.doc-modal__foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 28px;border-top:1px solid var(--steel-100);background:var(--steel-50)}
.doc-modal__open{font-size:14px;color:var(--primary-600);text-decoration:underline;text-underline-offset:3px}

/* Типографика документов (политика / согласие) */
.doc{font-size:15px;line-height:1.7;color:var(--steel-700)}
.doc h1{font-size:30px;margin-bottom:20px;color:var(--steel-900)}
.doc h2{font-size:20px;margin:28px 0 12px;color:var(--steel-900)}
.doc h2:first-child{margin-top:0}
.doc h3{font-size:17px;margin:20px 0 10px;color:var(--steel-900)}
.doc p{margin:0 0 12px}
.doc ul,.doc ol{margin:0 0 12px;padding-left:22px}
.doc ul{list-style:disc}
.doc li{margin-bottom:6px}
.doc a{color:var(--primary-600);text-decoration:underline}
.doc-loading{display:flex;align-items:center;justify-content:center;padding:40px;color:var(--steel-400)}
.doc-loading::before{content:"";width:22px;height:22px;border-radius:50%;border:2px solid var(--steel-200);border-top-color:var(--primary-600);animation:spin .8s linear infinite;margin-right:12px}

/* ---------- Cookie-баннер ---------- */
.cookie{position:fixed;left:16px;right:16px;bottom:16px;z-index:90;background:#fff;color:var(--steel-900);border-radius:var(--radius-lg);box-shadow:0 20px 60px rgba(2,6,23,.3);padding:20px 22px;max-width:600px;animation:cookieIn .5s var(--ease)}
.cookie__head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.cookie__head .ic{color:var(--primary-600)}
.cookie__head b{font-size:18px;font-weight:700}
.cookie p{font-size:14px;line-height:1.45;color:var(--steel-600)}
.cookie__actions{display:flex;justify-content:flex-end;align-items:center;gap:24px;margin-top:16px}
.cookie__more{font-size:15px;color:var(--steel-700);text-decoration:underline;text-underline-offset:3px}
.cookie__more:hover{color:var(--primary-600)}

/* ---------- Анимации ---------- */
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes fadeInUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
@keyframes scaleIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
@keyframes modalIn{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
@keyframes cookieIn{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes kenburns{from{transform:scale(1) translate(0,0)}to{transform:scale(1.15) translate(-2%,-2%)}}
@keyframes pulse{50%{opacity:.4}}
@keyframes spin{to{transform:rotate(360deg)}}
.anim-up{animation:fadeInUp .7s ease-out both}
.d1{animation-delay:.1s}.d2{animation-delay:.2s}.d3{animation-delay:.3s}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s var(--ease)}
.reveal.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .reveal{opacity:1;transform:none}
}

/* ---------- Адаптив ---------- */
@media (min-width:640px){
  .logo__text{display:flex}
  .hero__buttons{flex-direction:row}
  .grid--3,.grid--4{grid-template-columns:repeat(2,1fr)}
  .cookie{left:24px;bottom:24px;right:auto;padding:22px 26px}
}
@media (min-width:768px){
  .hero__arrow{display:flex}
  .float-card{display:block}
  .section-head--split{flex-direction:row;align-items:flex-end;justify-content:space-between}
  .promo{flex-direction:row;justify-content:space-between;text-align:left;padding:40px}
  .footer__grid{grid-template-columns:repeat(2,1fr)}
  .footer__bottom{flex-direction:row;justify-content:space-between;align-items:flex-start}
  .footer__legal{flex-direction:column;align-items:flex-end;flex-shrink:0;text-align:right}
}
@media (min-width:1024px){
  .topbar{display:block}
  .nav,.header__actions{display:flex}
  .burger,.mobile-menu{display:none!important}
  .hero__badge{display:flex}
  .grid--3{grid-template-columns:repeat(3,1fr)}
  .grid--4{grid-template-columns:repeat(4,1fr)}
  .stats__grid{grid-template-columns:repeat(4,1fr)}
  .about__top,.adv__grid,.contacts__grid{grid-template-columns:1fr 1fr}
  .adv__media{order:0}
  .footer__grid{grid-template-columns:2fr 1fr 1fr}
}
@media (min-width:1024px) and (max-width:1599px){
  .logo__text{display:none}
}
@media (min-width:1024px) and (max-width:1279px){
  .nav{gap:16px}
  .nav a{font-size:13px}
  .header__inner{gap:16px}
  .header__actions{gap:12px}
  .header__phone{font-size:16px}
  .header__actions .btn{padding:10px 14px}
}
@media (max-width:767px){
  .section{padding:72px 0}
  .container{padding:0 16px}
  .photo img{height:300px}
  .photo--xl img{height:340px}
  .form-card,.modal__dialog--form{padding:24px}
  .doc-modal__head{padding:20px 56px 14px 20px}
  .doc-modal__body{padding:16px 20px}
  .doc-modal__foot{padding:14px 20px}
  .hero{min-height:560px}
  .cookie__actions{gap:18px}
}
