:root{--bg:#f4f6f8;--white:#fff;--dark:#111c27;--dark2:#0c1520;--muted:#677583;--line:#dfe5eb;--orange:#ff5a00;--orange2:#ff7b1a;--max:1280px;--shadow:0 18px 50px rgba(13,24,35,.16)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:#07111b;color:var(--dark);line-height:1.45}body.lock{overflow:hidden}a{text-decoration:none;color:inherit}img{display:block;max-width:100%}button,input,select,textarea{font:inherit}.container{width:min(var(--max),calc(100% - 48px));margin-inline:auto}.section{padding:62px 0;background:var(--white)}.section--compact{padding:42px 0 20px}.section--light{background:#f6f8fa}.text-muted{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(35px,4.7vw,58px);line-height:1.05;text-transform:uppercase;letter-spacing:-.035em;margin-bottom:20px;max-width:710px}h1::first-line{color:#fff}h1{color:#fff}h1::after{content:""}h2{font-size:clamp(25px,2.5vw,36px);line-height:1.1;text-transform:uppercase;letter-spacing:-.025em;margin-bottom:14px}h3{font-size:20px;line-height:1.15;margin-bottom:8px}.lead{font-size:20px;color:#fff;max-width:500px}.eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--orange);font-size:13px;letter-spacing:.12em;text-transform:uppercase;font-weight:900;margin:0 0 12px}.eyebrow:before{content:"";width:36px;height:2px;background:var(--orange)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:15px 24px;border:0;border-radius:3px;font-weight:900;text-transform:uppercase;font-size:14px;cursor:pointer;transition:.2s}.btn:hover{transform:translateY(-2px)}.btn--primary{color:#fff;background:linear-gradient(135deg,var(--orange),var(--orange2));box-shadow:0 16px 30px rgba(255,90,0,.24)}.btn--ghost{color:#fff;border:1px solid rgba(255,255,255,.65);background:rgba(10,18,28,.35)}.btn--wide{width:100%}.notice{grid-column:1/-1;background:#e9f8f0;color:#0c6c47;padding:12px 14px;border-radius:8px;font-weight:800}.header{background:#fff;position:sticky;top:0;z-index:80;box-shadow:0 2px 16px rgba(0,0,0,.08)}.header__inner{height:108px;display:flex;align-items:center;justify-content:space-between;gap:28px}.logo{display:flex;align-items:center;gap:13px;min-width:255px}.logo img{width:74px;height:74px;object-fit:contain}.logo__text strong{display:block;font-size:25px;line-height:1;font-weight:950;letter-spacing:.01em}.logo__text span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.21em;color:#596775;font-weight:800;margin-top:7px}.nav{display:flex;align-items:center;gap:40px;font-size:14px;font-weight:950;text-transform:uppercase}.nav a{position:relative;padding:43px 0;color:#15202b}.nav a.active,.nav a:hover{color:var(--orange)}.nav a:after{content:"";position:absolute;left:0;bottom:24px;width:0;height:2px;background:var(--orange);transition:.2s}.nav a.active:after,.nav a:hover:after{width:100%}.header__actions{display:flex;align-items:center;gap:22px}.header__phone{display:flex;align-items:center;gap:10px;white-space:nowrap}.phone-icon{width:28px;height:28px;color:#101a25}.phone-icon svg{width:28px;height:28px}.header__phone b{display:block;font-size:20px}.header__phone small{display:block;font-size:13px;color:#566473;font-weight:700}.burger{display:none;width:46px;height:46px;border:0;background:transparent;position:relative}.burger span,.burger:before,.burger:after{content:"";position:absolute;right:3px;width:32px;height:2px;background:#172330;transition:.2s}.burger span{top:22px}.burger:before{top:13px}.burger:after{top:31px}.burger.active span{opacity:0}.burger.active:before{top:22px;transform:rotate(45deg)}.burger.active:after{top:22px;transform:rotate(-45deg)}.hero{position:relative;min-height:390px;background:linear-gradient(90deg,rgba(9,18,28,.95) 0%,rgba(9,18,28,.82) 32%,rgba(9,18,28,.18) 72%,rgba(9,18,28,.05) 100%),url('/assets/img/hero-construction.svg') center/cover no-repeat}.hero__inner{min-height:390px;display:flex;align-items:center}.hero__content{padding:35px 0 78px}.hero__content h1{max-width:640px}.hero__content h1::first-line{color:#fff}.hero__content h1{color:#fff}.hero__content h1 span,.accent{color:var(--orange)}.hero__actions{display:flex;gap:12px;margin-top:28px}.hero-stats{background:#fff;height:0}.stats-panel{position:relative;transform:translateY(-47px);z-index:10;background:linear-gradient(90deg,#152330,#0c1722);color:#fff;display:grid;grid-template-columns:repeat(5,1fr);box-shadow:var(--shadow);min-height:96px}.stats-panel:after{content:"";position:absolute;right:-44px;bottom:0;border-style:solid;border-width:96px 44px 0 0;border-color:#0c1722 transparent transparent transparent}.stat-item{display:flex;align-items:center;gap:18px;padding:22px 25px;border-right:1px solid rgba(255,255,255,.13)}.stat-item:last-child{border-right:0}.stat-icon{width:44px;height:44px;flex:0 0 auto;color:#fff}.stat-icon svg{width:44px;height:44px}.stat-item b{display:block;font-size:22px}.stat-item span{display:block;font-size:13px;color:#c7d1db}.section-line-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-line-head h2{margin:0;display:flex;align-items:center;gap:11px}.section-line-head h2:before{content:"";width:36px;height:2px;background:var(--orange)}.section-line-head a{display:inline-flex;align-items:center;gap:9px;color:#15202b;font-size:15px}.section-line-head a svg{width:18px;height:18px}.services-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:9px}.service-tile{min-height:118px;border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px 8px;transition:.2s}.service-tile:hover{border-color:var(--orange);transform:translateY(-3px);box-shadow:0 10px 28px rgba(15,28,40,.12)}.service-tile__icon{height:46px;color:#101a25;display:flex;align-items:center;margin-bottom:9px}.service-tile__icon svg{width:48px;height:48px}.service-tile b{font-size:13px;line-height:1.15}.projects-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.project-card{background:#111e2b;border-radius:3px;overflow:hidden;box-shadow:0 10px 24px rgba(11,20,30,.15)}.project-card__image{height:160px;display:block;position:relative;overflow:hidden;background:#ced7df}.project-card__image img{width:100%;height:100%;object-fit:cover;transition:.3s}.project-card:hover img{transform:scale(1.05)}.project-card__image:after{content:"";position:absolute;inset:auto 0 0;height:64%;background:linear-gradient(0deg,rgba(7,14,22,.85),transparent)}.project-year{position:absolute;right:9px;top:9px;z-index:2;background:#101a25;color:#fff;border-radius:3px;padding:5px 8px;font-size:13px;font-weight:900}.project-card__body{padding:17px 18px 19px;color:#fff}.project-card__body h3{font-size:18px;margin:0 0 5px}.project-card__body p{font-size:13px;color:#c8d2dc;margin-bottom:12px}.project-card__body span{display:inline-block;border:1px solid rgba(255,255,255,.22);border-radius:3px;padding:6px 9px;font-size:12px;color:#dfe7ee}.process-strip{background:linear-gradient(90deg,#111e2b,#0b151f);color:#fff;padding:34px 0 28px}.process-strip h2{text-align:center;margin-bottom:24px}.process-row{display:grid;grid-template-columns:repeat(5,1fr);gap:36px;position:relative}.process-step{display:grid;grid-template-columns:58px 1fr;gap:14px;align-items:start;position:relative}.process-step:not(:last-child):after{content:"→";position:absolute;right:-28px;top:22px;color:#9aa8b5}.process-icon{width:58px;height:58px;color:#d7e1ea}.process-icon svg{width:58px;height:58px}.process-step b{color:var(--orange);font-size:20px}.process-step h3{font-size:16px;margin:0;color:#fff}.process-step p{font-size:12px;color:#c4ced8;margin:3px 0 0}.request-strip{background:#fff;padding:25px 0;border-bottom:1px solid var(--line)}.request-inner{display:grid;grid-template-columns:1fr 1.45fr;gap:30px;align-items:center}.request-title h2{font-size:22px;margin:0 0 5px}.request-title p{color:#5b6876;margin:0}.quick-form{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:center}.quick-form input,.quick-form select,input,select,textarea{width:100%;border:1px solid #d7dee5;background:#fff;min-height:52px;padding:13px 15px;outline:none}.quick-form input:focus,.quick-form select:focus,input:focus,select:focus,textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,90,0,.12)}.about{background:#fff}.about-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:42px;align-items:center}.about-card{background:#f4f6f8;border:1px solid var(--line);padding:35px;text-align:center}.about-card img{width:180px;margin:auto auto 18px}.about-card b{display:block;font-size:28px}.about-card span{text-transform:uppercase;letter-spacing:.18em;color:#596775;font-size:12px;font-weight:900}.check-list{padding:0;margin:22px 0 0;list-style:none;display:grid;gap:10px}.check-list li{display:flex;gap:10px;color:#4c5966;font-weight:700}.check-list li:before{content:"✓";color:var(--orange);font-weight:950}.docs{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.doc{display:block;background:#fff;border:1px solid var(--line);padding:20px}.doc span{display:inline-grid;place-items:center;background:#111e2b;color:#fff;padding:6px 8px;margin-bottom:12px;font-weight:900}.doc b{display:block}.doc small{color:#617080}.faq{display:grid;grid-template-columns:.8fr 1.2fr;gap:36px}.accordion{display:grid;gap:10px}.accordion__item{background:#fff;border:1px solid var(--line)}.accordion__btn{width:100%;border:0;background:#fff;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;text-align:left;font-weight:900;cursor:pointer}.accordion__btn span:last-child{color:var(--orange);font-size:24px}.accordion__content{max-height:0;overflow:hidden;transition:max-height .25s}.accordion__content p{padding:0 20px 18px;color:#667482;margin:0}.contacts{background:#0b151f;color:#fff}.contacts__grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:28px}.contact-card,.contact-form{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);padding:28px}.contact-form{background:#fff;color:#111c27}.contact-list{display:grid;gap:16px;margin-top:22px}.contact-list a,.contact-list div{display:flex;gap:12px;color:#d8e2ec}.contact-list svg{width:25px;height:25px;color:var(--orange);flex:0 0 auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:7px}.field--full{grid-column:1/-1}label{font-size:13px;font-weight:900;color:#354455}textarea{min-height:110px;resize:vertical}.footer{background:#07111b;color:#8d9daa;padding:26px 0}.footer__inner{display:flex;justify-content:space-between;gap:20px;font-size:14px}.footer b{color:#fff}.mobile-bar{display:none}.inner-hero{background:linear-gradient(135deg,#0c1520,#162433);color:#fff;padding:70px 0}.breadcrumbs{font-size:14px;color:#c8d3de;margin-bottom:14px}.content-page{background:#fff;padding:60px 0}.content-card{background:#fff;border:1px solid var(--line);box-shadow:0 12px 34px rgba(17,28,39,.08);padding:28px}.split{display:grid;grid-template-columns:1fr 1fr;gap:36px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:#fff;border:1px solid var(--line);padding:24px}.icon{color:var(--orange);width:52px}.icon svg{width:52px;height:52px}.service-card ul{padding-left:18px}.card__link{display:inline-flex;margin-top:18px;color:var(--orange);font-weight:900}@media(max-width:1180px){.container{width:min(var(--max),calc(100% - 30px))}.header__inner{height:88px}.logo{min-width:210px}.logo img{width:64px;height:64px}.logo__text strong{font-size:21px}.nav{gap:22px}.header__phone b{font-size:16px}.stats-panel{grid-template-columns:repeat(3,1fr);transform:translateY(-38px)}.stats-panel:after{display:none}.hero-stats{height:auto;background:#fff}.services-grid{grid-template-columns:repeat(4,1fr)}.projects-grid{grid-template-columns:repeat(2,1fr)}.process-row{grid-template-columns:repeat(2,1fr)}.process-step:not(:last-child):after{display:none}.request-inner,.about-grid,.faq,.contacts__grid,.split{grid-template-columns:1fr}.quick-form{grid-template-columns:1fr 1fr}.docs{grid-template-columns:repeat(2,1fr)}}@media(max-width:860px){body{background:#fff}.header__inner{height:86px}.logo img{width:60px;height:60px}.logo__text strong{font-size:19px}.logo__text span{font-size:9px}.header__actions{display:none}.burger{display:block}.nav{position:fixed;display:none;top:86px;left:14px;right:14px;background:#fff;box-shadow:var(--shadow);border:1px solid var(--line);padding:10px;flex-direction:column;align-items:stretch;gap:0;z-index:90}.nav.active{display:flex}.nav a{padding:15px}.nav a:after{display:none}.hero{min-height:335px;background-position:center}.hero__inner{min-height:335px}.hero__content{padding:34px 0}.hero__content h1{font-size:28px;max-width:340px}.hero__content h1::after{content:""}.lead{font-size:14px;max-width:300px}.hero__actions{display:grid;gap:8px;margin-top:18px;max-width:360px}.stats-panel{display:grid;grid-template-columns:repeat(2,1fr);transform:none;margin:0;width:100%;box-shadow:none;background:#101b26}.stat-item{padding:18px 16px;border-color:rgba(255,255,255,.1)}.stat-item:nth-child(5){grid-column:1/-1}.stat-icon,.stat-icon svg{width:34px;height:34px}.stat-item b{font-size:17px}.stat-item span{font-size:11px}.section{padding:34px 0}.section--compact{padding:26px 0}.section-line-head h2{font-size:20px}.section-line-head a{font-size:12px}.services-grid{grid-template-columns:repeat(3,1fr);gap:6px}.service-tile{min-height:96px}.service-tile__icon svg{width:38px;height:38px}.service-tile b{font-size:11px}.projects-grid{grid-template-columns:1fr}.process-row{grid-template-columns:1fr;gap:20px}.process-step{grid-template-columns:48px 1fr}.process-icon,.process-icon svg{width:48px;height:48px}.quick-form{grid-template-columns:1fr}.request-title h2{font-size:18px}.docs{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.footer{padding-bottom:94px}.footer__inner{display:grid}.mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:100;display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-top:1px solid var(--line);box-shadow:0 -10px 30px rgba(0,0,0,.12)}.mobile-bar a{min-height:74px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:12px;font-weight:950;text-transform:uppercase}.mobile-bar a:nth-child(2){background:var(--orange);color:#fff}.mobile-bar svg{width:25px;height:25px}}@media(max-width:520px){.container{width:calc(100% - 22px)}.services-grid{grid-template-columns:repeat(2,1fr)}.stats-panel{grid-template-columns:1fr}.stat-item:nth-child(5){grid-column:auto}.hero__content h1{font-size:25px}.logo{min-width:0}.logo__text strong{font-size:17px}.logo__text span{letter-spacing:.12em}.section-line-head{align-items:flex-start}.about-card img{width:130px}}

/* ===== FIX 2026-06-01: исправление наложения блоков и шапки на десктопе ===== */
@media (min-width:1181px){
  :root{--max:1500px;}
  .container{width:min(var(--max),calc(100% - 140px));}
  .header__inner{height:104px;gap:20px;}
  .logo{min-width:292px;flex:0 0 auto;}
  .logo img{width:70px;height:70px;}
  .logo__text strong{font-size:24px;white-space:nowrap;}
  .nav{gap:30px;white-space:nowrap;flex:0 1 auto;}
  .nav a{white-space:nowrap;padding:41px 0;}
  .nav a:after{bottom:23px;}
  .header__actions{gap:16px;flex:0 0 auto;}
  .header__phone b{font-size:19px;white-space:nowrap;}
  .header .btn{padding:14px 21px;min-height:56px;}

  /* Панель преимуществ теперь занимает место в потоке и не перекрывает услуги */
  .hero-stats{height:72px;background:#fff;overflow:visible;position:relative;z-index:25;}
  .stats-panel{transform:translateY(-47px);margin-bottom:0;}
  #services.section--compact{padding-top:30px;}

  /* Чуть ближе к мокапу: первый экран не растягивает нижние блоки */
  .hero{min-height:500px;}
  .hero__inner{min-height:500px;}
  .hero__content{padding:42px 0 86px;}
}

@media (min-width:1181px) and (max-width:1380px){
  :root{--max:1320px;}
  .container{width:min(var(--max),calc(100% - 48px));}
  .logo{min-width:255px;}
  .nav{gap:22px;font-size:13px;}
  .header__phone b{font-size:17px;}
  .header .btn{padding:13px 18px;font-size:13px;}
}

@media (max-width:1180px){
  .hero-stats{height:auto;overflow:visible;}
  #services.section--compact{padding-top:34px;}
}

@media (max-width:860px){
  #services.section--compact{padding-top:26px;}
}

/* ===== CMS upgrade ===== */
.hero{background:linear-gradient(90deg,rgba(7,14,22,var(--hero-overlay,.62)),rgba(7,14,22,.38)),var(--hero-bg);background-size:cover;background-position:center;position:relative;overflow:hidden}.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.hero-video+ .container,.hero .container{position:relative;z-index:2}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,14,22,var(--hero-overlay,.62)),rgba(7,14,22,.35));z-index:1;pointer-events:none}.consent{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.25;color:#5b6876;text-transform:none;font-weight:700}.contacts .consent{color:#333}.quick-form .consent{grid-column:1/-1}.consent input{width:auto;min-height:auto;margin-top:2px}.consent a{color:var(--orange);text-decoration:underline}.calc-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:34px;align-items:start}.calc-result{margin-top:24px;background:#111e2b;color:#fff;padding:24px;border-left:5px solid var(--orange)}.calc-result span{display:block;font-size:38px;font-weight:950;letter-spacing:-.04em}.calc-result small{display:block;color:#c9d5df}.calc-form{background:#fff;border:1px solid var(--line);padding:26px;box-shadow:0 12px 34px rgba(17,28,39,.08)}.range-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.range-row input{padding:0;accent-color:var(--orange);min-height:auto}.range-row output{font-weight:950;color:var(--orange);min-width:80px;text-align:right}.inner-hero h1{max-width:100%;}.content-card img{width:100%;max-height:430px;object-fit:cover}.nav a{white-space:nowrap}@media(max-width:1180px){.calc-grid{grid-template-columns:1fr}}@media(max-width:860px){.calc-result span{font-size:29px}.quick-form .consent{order:5}.quick-form button{order:6}}


/* Preserve manual paragraphs and indents from admin textareas */
.text-format,
.lead,
.text-muted,
.project-card__body p,
.process-step p,
.request-title p,
.about p,
.contact-card p,
.accordion__content p,
.doc small,
.inner-hero p,
.content-card p,
.content-card li,
.contacts__grid p {
  white-space: pre-wrap;
}


/* Object gallery */
.project-main-photo{border-radius:6px;margin-bottom:22px;width:100%;max-height:520px;object-fit:cover}
.object-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.object-gallery__item{display:block;border-radius:6px;overflow:hidden;background:#eef2f5;border:1px solid var(--line)}
.object-gallery__item img{width:100%;height:150px;object-fit:cover;transition:.2s}
.object-gallery__item:hover img{transform:scale(1.04)}
.text-format{white-space:pre-wrap}
@media(max-width:760px){.object-gallery{grid-template-columns:repeat(2,1fr)}.object-gallery__item img{height:120px}}





/* Lightbox gallery viewer v2 */
.object-gallery__item{position:relative;cursor:zoom-in}
.object-gallery__zoom{
  position:absolute;left:10px;bottom:10px;z-index:2;display:inline-flex;align-items:center;justify-content:center;
  min-height:30px;padding:6px 11px;border-radius:999px;background:rgba(17,28,39,.82);color:#fff;font-size:12px;font-weight:950;
  opacity:0;transform:translateY(6px);transition:.18s ease;pointer-events:none
}
.object-gallery__item:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent,rgba(0,0,0,.34));opacity:0;transition:.18s ease}
.object-gallery__item:hover:after,.object-gallery__item:hover .object-gallery__zoom{opacity:1;transform:translateY(0)}

.lightbox{position:fixed;inset:0;z-index:9999;display:none;background:rgba(4,10,17,.94);backdrop-filter:blur(12px);color:#fff}
.lightbox.is-open{display:block}
.lightbox__dialog{position:absolute;inset:18px;display:grid;grid-template-rows:52px minmax(0,1fr) 88px;gap:12px}
.lightbox__top{display:flex;justify-content:space-between;align-items:center;gap:16px}
.lightbox__title-wrap{min-width:0;display:flex;align-items:baseline;gap:10px}
.lightbox__title{min-width:0;font-size:16px;font-weight:950;color:#eef5fb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lightbox__counter{color:#aebdca;font-weight:850;font-size:14px;white-space:nowrap}
.lightbox__actions{display:flex;align-items:center;gap:8px}
.lightbox__button{
  width:44px;height:44px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;
  cursor:pointer;display:grid;place-items:center;font-size:24px;line-height:1;transition:.18s ease;text-decoration:none
}
.lightbox__button:hover{background:rgba(255,90,0,.95);border-color:rgba(255,90,0,.95)}
.lightbox__button--close{font-size:34px;padding-bottom:4px}
.lightbox__stage{min-height:0;position:relative;display:flex;align-items:center;justify-content:center;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.12)}
.lightbox__image{max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none;transition:opacity .14s ease}
.lightbox__image.is-loading{opacity:.18}
.lightbox__nav{
  position:absolute;top:50%;transform:translateY(-50%);width:58px;height:84px;border:0;border-radius:8px;background:rgba(0,0,0,.38);
  color:#fff;font-size:46px;line-height:1;cursor:pointer;transition:.18s ease;z-index:2
}
.lightbox__nav:hover{background:rgba(255,90,0,.95)}
.lightbox__nav--prev{left:14px}.lightbox__nav--next{right:14px}
.lightbox__thumbs{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;padding:4px 2px 10px;scrollbar-width:thin}
.lightbox__thumb{flex:0 0 auto;width:104px;height:70px;border:2px solid transparent;border-radius:8px;padding:0;overflow:hidden;background:#13202d;cursor:pointer;opacity:.58;transition:.18s ease}
.lightbox__thumb:hover{opacity:.9}.lightbox__thumb.is-active{border-color:var(--orange);opacity:1}
.lightbox__thumb img{width:100%;height:100%;object-fit:cover}
.lightbox__hint{color:#8fa0b1;font-size:12px;font-weight:750;align-self:center;white-space:nowrap}
body.lightbox-lock{overflow:hidden}

@media(min-width:1000px){
  .lightbox__dialog{inset:24px 32px 18px;grid-template-columns:minmax(0,1fr) 124px;grid-template-rows:54px minmax(0,1fr)}
  .lightbox__top{grid-column:1/-1}
  .lightbox__stage{grid-column:1/2;grid-row:2/3}
  .lightbox__thumbs{grid-column:2/3;grid-row:2/3;display:grid;grid-auto-rows:74px;grid-template-columns:1fr;align-content:start;overflow-y:auto;overflow-x:hidden;padding:0 6px 0 0}
  .lightbox__thumb{width:100%;height:74px}
}
@media(max-width:760px){
  .object-gallery__zoom{opacity:1;transform:none;background:rgba(17,28,39,.72)}
  .lightbox__dialog{inset:0;padding:10px;grid-template-rows:46px minmax(0,1fr) 74px;gap:8px}
  .lightbox__stage{border-radius:10px;border-left:0;border-right:0}
  .lightbox__nav{width:44px;height:60px;font-size:34px;background:rgba(0,0,0,.28)}
  .lightbox__nav--prev{left:4px}.lightbox__nav--next{right:4px}
  .lightbox__thumb{width:76px;height:54px}
  .lightbox__title{font-size:13px;max-width:58vw}
  .lightbox__counter{font-size:12px}
  .lightbox__button{width:38px;height:38px;font-size:20px}
  .lightbox__button--close{font-size:30px}
  .lightbox__hint{display:none}
}


/* ===== Mobile adaptive audit fix 2026-06-01 ===== */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  min-width:0;
}

body *,
body *::before,
body *::after{
  min-width:0;
}

img,
video,
svg,
iframe{
  max-width:100%;
}

main,
header,
footer,
section,
.hero,
.hero-stats,
.request-strip,
.process-strip,
.contacts{
  max-width:100%;
  overflow-x:hidden;
}

.container{
  max-width:100%;
}

.btn,
input,
select,
textarea,
button{
  max-width:100%;
}

.logo,
.logo__text,
.nav,
.header__actions,
.header__phone,
.section-line-head,
.stat-item,
.project-card__body,
.contact-list a,
.contact-list div,
.footer__inner,
.mobile-bar a{
  min-width:0;
}

.logo__text strong,
.logo__text span,
.project-card__body h3,
.project-card__body p,
.contact-list span,
.footer__inner span{
  overflow-wrap:anywhere;
}

@media(max-width:860px){
  .container{
    width:calc(100% - 28px);
  }

  .header{
    overflow:visible;
  }

  .header__inner{
    height:82px;
    gap:10px;
  }

  .logo{
    flex:1 1 auto;
    min-width:0;
    gap:9px;
  }

  .logo img{
    width:56px;
    height:56px;
    flex:0 0 56px;
  }

  .logo__text{
    min-width:0;
    overflow:hidden;
  }

  .logo__text strong{
    font-size:18px;
    line-height:1.05;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .logo__text span{
    font-size:9px;
    letter-spacing:.12em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .burger{
    width:42px;
    height:42px;
    flex:0 0 42px;
  }

  .nav{
    top:82px;
    left:14px;
    right:14px;
    max-width:calc(100vw - 28px);
    max-height:calc(100svh - 100px);
    overflow:auto;
  }

  .hero{
    min-height:auto;
    background-position:center;
  }

  .hero__inner{
    min-height:0;
    display:block;
  }

  .hero__content{
    width:100%;
    max-width:100%;
    padding:32px 0 36px;
  }

  .hero__content h1{
    max-width:100%;
    font-size:clamp(24px,7vw,30px);
    line-height:1.12;
    letter-spacing:-.025em;
    overflow-wrap:break-word;
  }

  .lead{
    max-width:100%;
    font-size:14px;
    line-height:1.45;
  }

  .hero__actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    max-width:100%;
    gap:10px;
  }

  .hero__actions .btn{
    width:100%;
    min-height:56px;
    padding:14px 12px;
    text-align:center;
    white-space:normal;
    line-height:1.18;
  }

  .hero-stats{
    height:auto;
    background:#101b26;
    overflow:hidden;
  }

  .hero-stats .container{
    width:100%;
  }

  .stats-panel{
    width:100%;
    max-width:100%;
    transform:none;
    margin:0;
    box-shadow:none;
    background:#101b26;
    overflow:hidden;
  }

  .stats-panel:after{
    display:none!important;
  }

  .stat-item{
    width:100%;
    padding:18px 18px;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.1);
  }

  .stat-item:last-child{
    border-bottom:0;
  }

  .stat-item b{
    font-size:18px;
    line-height:1.1;
  }

  .stat-item span{
    font-size:12px;
    line-height:1.35;
  }

  .section-line-head{
    flex-wrap:wrap;
    align-items:flex-start;
    gap:10px;
  }

  .section-line-head h2{
    flex:1 1 100%;
    max-width:100%;
  }

  .section-line-head a{
    max-width:100%;
    white-space:normal;
    line-height:1.25;
  }

  .services-grid,
  .projects-grid,
  .docs,
  .form-grid,
  .quick-form,
  .contacts__grid,
  .request-inner,
  .about-grid,
  .faq,
  .split,
  .calc-grid{
    max-width:100%;
  }

  .service-tile,
  .project-card,
  .doc,
  .contact-card,
  .contact-form,
  .content-card,
  .about-card{
    max-width:100%;
  }

  .process-step{
    max-width:100%;
  }

  .quick-form input,
  .quick-form select,
  .quick-form textarea,
  .quick-form button{
    width:100%;
  }

  .footer{
    padding-bottom:calc(94px + env(safe-area-inset-bottom));
  }

  .mobile-bar{
    left:0;
    right:0;
    bottom:0;
    width:100%;
    max-width:100%;
    padding-bottom:env(safe-area-inset-bottom);
  }

  .mobile-bar a{
    min-width:0;
    text-align:center;
    line-height:1.1;
    overflow-wrap:anywhere;
  }
}

@media(max-width:520px){
  .container{
    width:calc(100% - 24px);
  }

  .hero-stats .container{
    width:100%;
  }

  .stats-panel{
    grid-template-columns:1fr;
  }

  .stat-item:nth-child(5){
    grid-column:auto;
  }

  .services-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .service-tile{
    min-height:102px;
    padding:10px 7px;
  }

  .service-tile b{
    font-size:11px;
    line-height:1.2;
    overflow-wrap:break-word;
  }

  .project-card__body{
    padding:14px;
  }

  .request-strip{
    padding:18px 0;
  }

  .contact-card,
  .contact-form,
  .content-card,
  .about-card{
    padding:18px;
  }
}

@media(max-width:380px){
  .container{
    width:calc(100% - 20px);
  }

  .header__inner{
    height:76px;
  }

  .logo img{
    width:50px;
    height:50px;
    flex-basis:50px;
  }

  .logo__text strong{
    font-size:15px;
  }

  .logo__text span{
    font-size:8px;
    letter-spacing:.1em;
  }

  .burger{
    width:38px;
    height:38px;
    flex-basis:38px;
  }

  .burger span,
  .burger:before,
  .burger:after{
    width:28px;
  }

  .nav{
    top:76px;
    left:10px;
    right:10px;
    max-width:calc(100vw - 20px);
  }

  .hero__content h1{
    font-size:23px;
  }

  .hero__actions .btn{
    font-size:12px;
    min-height:52px;
  }

  .stat-item{
    padding:16px 14px;
    gap:13px;
  }

  .stat-icon,
  .stat-icon svg{
    width:30px;
    height:30px;
  }

  .section-line-head h2{
    font-size:18px;
  }

  .services-grid{
    gap:7px;
  }

  .mobile-bar a{
    font-size:10px;
    min-height:68px;
  }

  .mobile-bar svg{
    width:22px;
    height:22px;
  }
}

@media(max-width:340px){
  .services-grid{
    grid-template-columns:1fr;
  }

  .logo__text span{
    display:none;
  }

  .mobile-bar a{
    font-size:9px;
  }
}


/* ===== Desktop stability fix 2026-06-01 ===== */
/* После мобильного аудита overflow-x:hidden на section начал обрезать
   вынесенную вверх панель преимуществ. На десктопе возвращаем видимость
   по вертикали и фиксируем место панели в потоке страницы. */
@media(min-width:861px){
  section,
  .hero-stats,
  .request-strip,
  .process-strip,
  .contacts{
    overflow-x:clip!important;
    overflow-y:visible!important;
  }

  .hero{
    overflow:hidden!important;
  }

  .hero-stats{
    position:relative;
    z-index:35;
    background:#fff;
  }

  .hero-stats .container{
    overflow:visible!important;
  }

  .stats-panel{
    position:relative;
    z-index:40;
    overflow:visible!important;
  }
}

@media(min-width:1181px){
  .hero{
    min-height:500px!important;
  }

  .hero__inner{
    min-height:500px!important;
  }

  .hero__content{
    padding:42px 0 86px!important;
  }

  .hero-stats{
    height:auto!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
  }

  .stats-panel{
    min-height:96px!important;
    transform:translateY(-47px)!important;
    margin-bottom:-47px!important;
  }

  .stats-panel:after{
    display:block;
  }

  #services.section--compact{
    padding-top:50px!important;
  }
}

@media(min-width:861px) and (max-width:1180px){
  .hero-stats{
    height:auto!important;
    padding:0!important;
    overflow:visible!important;
  }

  .stats-panel{
    transform:translateY(-32px)!important;
    margin-bottom:-32px!important;
  }

  #services.section--compact{
    padding-top:44px!important;
  }
}


/* ===== About section admin-editable upgrade ===== */
.about-btn{
  margin-top:22px;
}

.about-card p{
  margin:14px 0 0;
  color:#5b6876;
  font-size:14px;
  line-height:1.45;
  white-space:pre-wrap;
}

.about .check-list{
  margin-bottom:0;
}


/* ===== Mobile forms, cookie banner and to-top fix 2026-06-01 ===== */

/* Более аккуратная мобильная верстка согласия в формах */
.consent{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:flex-start;
  gap:10px;
  width:100%;
  max-width:100%;
  font-size:13px;
  line-height:1.35;
  color:#4f5c69;
  text-transform:none;
  font-weight:750;
}

.consent input{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  margin:0!important;
  border-radius:8px;
  flex:0 0 auto;
  accent-color:var(--orange);
}

.consent span{
  display:block;
  min-width:0;
  overflow-wrap:anywhere;
}

.consent a{
  color:var(--orange);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
  font-weight:900;
}

/* Кнопка наверх */
.to-top{
  position:fixed;
  right:22px;
  bottom:24px;
  z-index:120;
  width:52px;
  height:52px;
  border:0;
  border-radius:999px;
  background:var(--dark);
  color:#fff;
  box-shadow:0 18px 44px rgba(17,28,39,.22);
  display:grid;
  place-items:center;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:.22s ease;
}

.to-top span{
  font-size:26px;
  line-height:1;
  font-weight:950;
}

.to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.to-top:hover{
  background:var(--orange);
}

/* Плашка cookie */
.cookie-banner{
  position:fixed;
  left:24px;
  bottom:24px;
  z-index:130;
  width:min(640px,calc(100vw - 48px));
  display:none;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:16px 18px;
  border:1px solid rgba(17,28,39,.12);
  background:rgba(255,255,255,.96);
  color:#263646;
  box-shadow:0 18px 60px rgba(17,28,39,.18);
  backdrop-filter:blur(14px);
}

.cookie-banner.is-visible{
  display:grid;
}

.cookie-banner__text{
  min-width:0;
  font-size:14px;
  line-height:1.4;
  font-weight:700;
}

.cookie-banner__text a{
  color:var(--orange);
  text-decoration:underline;
  font-weight:900;
}

.cookie-banner__btn{
  border:0;
  border-radius:3px;
  min-height:42px;
  padding:10px 16px;
  background:var(--orange);
  color:#fff;
  font-weight:950;
  text-transform:uppercase;
  cursor:pointer;
}

.cookie-banner__btn:hover{
  background:var(--orange2);
}

/* Исправления мобильной формы заявки по скриншоту */
@media(max-width:860px){
  .request-strip{
    padding:32px 0 28px;
  }

  .request-inner{
    display:grid;
    grid-template-columns:1fr!important;
    gap:18px;
    align-items:start;
  }

  .request-title h2{
    font-size:24px;
    line-height:1.15;
    margin-bottom:10px;
  }

  .request-title p{
    font-size:18px;
    line-height:1.45;
  }

  .quick-form{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    width:100%;
    max-width:100%;
  }

  .quick-form input,
  .quick-form select,
  .quick-form textarea{
    width:100%;
    min-height:58px;
    font-size:17px;
    padding:14px 16px;
    border-radius:0;
  }

  .quick-form .consent{
    grid-column:1/-1!important;
    order:20;
    padding:6px 2px 2px;
  }

  .quick-form button{
    order:30;
    width:100%;
    min-height:60px;
    font-size:15px;
    line-height:1.15;
  }

  .contact-form .consent,
  .calc-form .consent,
  .content-card .consent{
    margin-top:4px;
  }

  .form-grid{
    grid-template-columns:1fr!important;
  }

  .field--full{
    grid-column:1/-1;
  }

  .footer{
    padding-bottom:calc(108px + env(safe-area-inset-bottom));
  }

  .to-top{
    right:14px;
    bottom:calc(92px + env(safe-area-inset-bottom));
    width:46px;
    height:46px;
    z-index:121;
  }

  .to-top span{
    font-size:24px;
  }

  .cookie-banner{
    left:10px;
    right:10px;
    bottom:calc(88px + env(safe-area-inset-bottom));
    width:auto;
    grid-template-columns:1fr;
    gap:10px;
    padding:14px;
    z-index:122;
  }

  .cookie-banner__text{
    font-size:12px;
    line-height:1.35;
  }

  .cookie-banner__btn{
    width:100%;
    min-height:42px;
  }

  body.has-cookie .to-top{
    bottom:calc(222px + env(safe-area-inset-bottom));
  }
}

@media(max-width:380px){
  .request-title h2{
    font-size:21px;
  }

  .request-title p{
    font-size:16px;
  }

  .consent{
    grid-template-columns:30px minmax(0,1fr);
    gap:9px;
    font-size:12px;
  }

  .consent input{
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    min-height:26px!important;
  }

  .cookie-banner{
    padding:12px;
  }

  body.has-cookie .to-top{
    bottom:calc(214px + env(safe-area-inset-bottom));
  }
}


/* ===== Sales proof upgrade: projects, reviews, uploads, calculator 2026-06-01 ===== */
.project-card--strong .project-card__body{display:flex;flex-direction:column;gap:10px}
.project-card__meta-line{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:2px}
.project-card__meta-line span{display:inline-flex;padding:5px 8px;border-radius:3px;background:#eef3f7;color:#314152;font-size:11px;font-weight:900;text-transform:uppercase}
.project-photo-count{position:absolute;left:10px;bottom:10px;z-index:2;background:rgba(255,90,0,.94);color:#fff;border-radius:3px;padding:5px 8px;font-size:11px;font-weight:950;text-transform:uppercase}
.project-proof{display:grid;gap:6px;margin-top:2px}
.project-proof small{display:block;color:#617181;font-size:12px;line-height:1.35}
.project-proof b{color:#1c2a38;font-weight:850}
.project-more{display:inline-flex;align-items:center;gap:8px;margin-top:auto;color:var(--orange);font-size:13px;font-weight:950;text-transform:uppercase}
.project-more svg{width:17px;height:17px}

.project-detail h2{margin-top:26px}
.project-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 24px}
.project-detail-grid div{border:1px solid var(--line);background:#f7fafc;padding:14px;border-radius:4px}
.project-detail-grid span{display:block;color:#6a7785;font-size:12px;font-weight:900;text-transform:uppercase;margin-bottom:4px}
.project-detail-grid b{display:block;color:#172330;font-size:15px;line-height:1.25}

.file-field small,.quick-file small{display:block;margin-top:6px;color:#657484;font-size:12px;line-height:1.35}
.file-field input[type=file],.quick-file input[type=file]{padding:12px;background:#fff;border:1px dashed #c9d3dc}
.quick-file{min-width:180px}
.quick-file input{width:100%}

.reviews{background:#fff}
.reviews-intro{max-width:760px;margin:-16px 0 24px}
.reviews-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.reviews-grid--page{grid-template-columns:repeat(2,minmax(0,1fr))}
.review-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);padding:22px;border-radius:6px;display:flex;flex-direction:column;gap:12px}
.review-card__top{display:flex;gap:12px;align-items:center}
.review-card__top img,.review-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;background:#101b26;color:#fff;display:grid;place-items:center;font-weight:950;font-size:22px;flex:0 0 52px}
.review-card__top b{display:block;font-size:16px;line-height:1.1}
.review-card__top small{display:block;color:#667583;font-size:12px;margin-top:4px}
.review-rating{color:var(--orange);letter-spacing:.08em;font-size:15px}
.review-card p{color:#445363;font-size:14px;line-height:1.55;margin:0}
.review-object{display:inline-flex;align-self:flex-start;background:#eef3f7;border-radius:999px;padding:6px 10px;color:#354657;font-size:12px;font-weight:900}
.review-letter{display:inline-flex;align-self:flex-start;color:var(--orange);font-weight:950;font-size:13px;text-transform:uppercase;margin-top:auto}
.lead-files{display:grid;gap:5px}
.lead-files a{color:var(--orange);font-size:12px;font-weight:900;text-decoration:underline}

.calc-result span{min-height:1.05em}

@media(max-width:980px){
  .project-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reviews-grid,.reviews-grid--page{grid-template-columns:1fr}
}

@media(max-width:860px){
  .quick-file{width:100%;order:18}
  .quick-file input{min-height:auto!important}
  .project-detail-grid{grid-template-columns:1fr}
  .project-card__meta-line span{font-size:10px}
}


/* ===== Services page mobile fix 2026-06-02 ===== */
/* Исправляет страницу /services: на телефонах карточки больше не стоят
   узкими тремя колонками, текст не обрезается и не создаёт горизонтальный скролл. */

.grid-3{
  min-width:0;
}

.service-card{
  min-width:0;
  overflow:hidden;
}

.service-card h3,
.service-card p,
.service-card .text-muted,
.service-card a{
  max-width:100%;
  overflow-wrap:break-word;
  word-break:normal;
}

@media(max-width:1024px){
  .content-page .grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }
}

@media(max-width:760px){
  .content-page{
    padding-bottom:calc(104px + env(safe-area-inset-bottom));
  }

  .content-page .grid-3{
    grid-template-columns:1fr!important;
    gap:14px;
  }

  .service-card{
    display:grid;
    grid-template-columns:54px minmax(0,1fr);
    column-gap:14px;
    row-gap:6px;
    align-items:start;
    padding:18px!important;
    min-height:auto!important;
  }

  .service-card .icon{
    grid-row:1 / 4;
    width:54px;
    height:54px;
    margin:0!important;
  }

  .service-card .icon svg{
    width:42px;
    height:42px;
  }

  .service-card h3{
    font-size:20px;
    line-height:1.15;
    margin:0 0 4px;
    text-transform:none;
    letter-spacing:-.01em;
  }

  .service-card .text-muted{
    font-size:15px;
    line-height:1.45;
    margin:0;
  }

  .service-card .card__link{
    display:inline-flex;
    align-items:center;
    justify-content:flex-start;
    min-height:36px;
    margin-top:6px;
    font-size:14px;
    line-height:1.2;
    white-space:normal;
  }
}

@media(max-width:380px){
  .content-page .grid-3{
    gap:12px;
  }

  .service-card{
    grid-template-columns:46px minmax(0,1fr);
    column-gap:12px;
    padding:16px!important;
  }

  .service-card .icon{
    width:46px;
    height:46px;
  }

  .service-card .icon svg{
    width:36px;
    height:36px;
  }

  .service-card h3{
    font-size:18px;
  }

  .service-card .text-muted{
    font-size:14px;
  }
}

@media(max-width:340px){
  .service-card{
    grid-template-columns:1fr;
  }

  .service-card .icon{
    grid-row:auto;
  }
}


/* ===== Reviews heading responsive fix 2026-06-02 ===== */
/* Исправляет заголовок блока «Отзывы»: на десктопе ссылка аккуратно справа,
   на мобильных — заголовок, описание и ссылка идут в правильном порядке,
   без лишней оранжевой линии перед H2. */

.reviews .section-line-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:18px 28px;
  margin-bottom:8px;
}

.reviews .section-line-head > div{
  min-width:0;
}

.reviews .section-line-head .eyebrow{
  margin-bottom:12px;
}

.reviews .section-line-head h2{
  max-width:820px;
  margin:0;
}

.reviews .section-line-head h2::before,
.reviews .section-line-head h2:before{
  display:none!important;
  content:none!important;
}

.reviews .section-line-head > a{
  justify-self:end;
  align-self:center;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:850;
}

.reviews .section-line-head > a svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
}

.reviews-intro{
  margin:0 0 28px;
  max-width:760px;
}

@media(max-width:760px){
  .reviews{
    padding-top:54px;
  }

  .reviews .section-line-head{
    display:grid!important;
    grid-template-columns:1fr;
    gap:12px;
    align-items:start;
    margin-bottom:12px;
  }

  .reviews .section-line-head .eyebrow{
    margin-bottom:12px;
    font-size:13px;
    letter-spacing:.18em;
  }

  .reviews .section-line-head h2{
    width:100%;
    max-width:100%;
    font-size:clamp(26px,7vw,34px);
    line-height:1.12;
    letter-spacing:-.035em;
    overflow-wrap:break-word;
  }

  .reviews .section-line-head > a{
    justify-self:start;
    align-self:start;
    order:3;
    margin-top:2px;
    padding:0;
    font-size:16px;
    line-height:1.25;
  }

  .reviews-intro{
    margin:0 0 24px;
    font-size:17px;
    line-height:1.45;
    max-width:100%;
  }
}

@media(max-width:380px){
  .reviews .section-line-head h2{
    font-size:24px;
  }

  .reviews-intro{
    font-size:16px;
  }

  .reviews .section-line-head > a{
    font-size:15px;
  }
}


/* ===== Legal pages and footer documents 2026-06-02 ===== */
.legal-page .content-card{
  max-width:980px;
  margin:0 auto;
}
.legal-page h2{
  margin:32px 0 12px;
  font-size:24px;
  line-height:1.2;
}
.legal-page p,
.legal-page li{
  color:#465465;
  font-size:16px;
  line-height:1.65;
}
.legal-page ul{
  margin:10px 0 0;
  padding-left:22px;
}
.legal-page a{
  color:var(--orange);
  font-weight:850;
  text-decoration:underline;
  text-underline-offset:3px;
}
.legal-note{
  border-left:4px solid var(--orange);
  background:#fff5ef;
  color:#334251;
  padding:16px 18px;
  margin:0 0 24px;
  font-weight:750;
  line-height:1.45;
}
.legal-links-inline{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:30px;
}
.legal-links-inline a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:999px;
  background:#eef3f7;
  color:#172330;
  text-decoration:none;
}
.footer__inner{
  align-items:flex-start;
}
.footer__links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  justify-content:flex-end;
  max-width:760px;
}
.footer__links a{
  color:#c7d3df;
  font-size:13px;
  font-weight:750;
  text-decoration:none;
}
.footer__links a:hover{
  color:#fff;
}
@media(max-width:860px){
  .legal-page .content-card{
    padding:20px;
  }
  .legal-page h2{
    font-size:21px;
  }
  .legal-page p,
  .legal-page li{
    font-size:15px;
    line-height:1.55;
  }
  .footer__inner{
    display:grid!important;
    gap:12px;
  }
  .footer__links{
    justify-content:flex-start;
    gap:8px 12px;
  }
  .footer__links a{
    font-size:12px;
  }
}


/* ===== Legal requisites fields/pages 2026-06-02 ===== */
.legal-requisites-list{
  display:grid;
  gap:8px;
  padding:18px 20px;
  margin:16px 0 24px;
  border:1px solid var(--line);
  background:#f7fafc;
  list-style:none;
}

.legal-requisites-list li{
  margin:0;
  color:#334456;
  line-height:1.45;
}

.legal-requisites-list b{
  color:#101b26;
}

.legal-page pre{
  white-space:pre-wrap;
}

@media(max-width:760px){
  .legal-requisites-list{
    padding:14px;
    font-size:14px;
  }
}


/* ===== Lead popup form desktop/mobile 2026-06-02 ===== */
.lead-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  color:#101b26;
}

.lead-modal.is-open{
  display:block;
}

.lead-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,10,17,.72);
  backdrop-filter:blur(8px);
}

.lead-modal__dialog{
  position:relative;
  width:min(680px,calc(100vw - 32px));
  max-height:calc(100svh - 36px);
  overflow:auto;
  margin:18px auto;
  top:50%;
  transform:translateY(-50%);
  background:#fff;
  border:1px solid rgba(17,28,39,.12);
  box-shadow:0 30px 90px rgba(0,0,0,.32);
  padding:30px;
}

.lead-modal__close{
  position:absolute;
  right:14px;
  top:14px;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#eef3f7;
  color:#101b26;
  font-size:32px;
  line-height:1;
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:2;
}

.lead-modal__close:hover{
  background:var(--orange);
  color:#fff;
}

.lead-modal__head{
  padding-right:48px;
  margin-bottom:18px;
}

.lead-modal__head .eyebrow{
  margin-bottom:10px;
}

.lead-modal__head h2{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.035em;
}

.lead-modal__head p{
  margin:0;
  color:#647384;
  font-size:16px;
  line-height:1.45;
}

.lead-modal__notice{
  margin:0 0 16px;
}

.lead-modal__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.lead-modal .field{
  margin:0;
}

.lead-modal input,
.lead-modal select,
.lead-modal textarea{
  width:100%;
}

.lead-modal textarea{
  min-height:112px;
  resize:vertical;
}

.lead-modal .consent{
  margin-top:2px;
}

body.lead-modal-lock{
  overflow:hidden;
}

@media(max-width:760px){
  .lead-modal__dialog{
    width:100%;
    max-height:calc(100svh - env(safe-area-inset-top));
    min-height:auto;
    margin:0;
    top:auto;
    bottom:0;
    transform:none;
    position:absolute;
    left:0;
    right:0;
    padding:22px 16px calc(22px + env(safe-area-inset-bottom));
    border-radius:18px 18px 0 0;
    border-left:0;
    border-right:0;
    border-bottom:0;
  }

  .lead-modal__head{
    padding-right:44px;
    margin-bottom:16px;
  }

  .lead-modal__head h2{
    font-size:26px;
    line-height:1.12;
  }

  .lead-modal__head p{
    font-size:14px;
  }

  .lead-modal__grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .lead-modal input,
  .lead-modal select{
    min-height:54px;
    font-size:16px;
  }

  .lead-modal textarea{
    min-height:96px;
    font-size:16px;
  }

  .lead-modal__close{
    width:40px;
    height:40px;
    right:12px;
    top:12px;
  }
}

@media(max-width:380px){
  .lead-modal__dialog{
    padding:18px 12px calc(18px + env(safe-area-inset-bottom));
  }

  .lead-modal__head h2{
    font-size:23px;
  }

  .lead-modal__head p{
    font-size:13px;
  }
}


/* ===== Lead popup close button center fix 2026-06-02 ===== */
.lead-modal__close{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  font-size:0!important;
  line-height:1!important;
  text-indent:-9999px;
  overflow:hidden;
}

.lead-modal__close::before,
.lead-modal__close::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:18px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transform-origin:center;
}

.lead-modal__close::before{
  transform:translate(-50%,-50%) rotate(45deg);
}

.lead-modal__close::after{
  transform:translate(-50%,-50%) rotate(-45deg);
}

@media(max-width:760px){
  .lead-modal__close::before,
  .lead-modal__close::after{
    width:17px;
    height:2px;
  }
}


/* ===== Phone input UX mask 2026-06-02 ===== */
input[name="phone"],
input[data-phone-input]{
  font-variant-numeric:tabular-nums;
  letter-spacing:.01em;
}

input[name="phone"]::placeholder,
input[data-phone-input]::placeholder{
  color:#9aa7b3;
}

input[name="phone"]:invalid,
input[data-phone-input]:invalid{
  box-shadow:none;
}

@media(max-width:760px){
  input[name="phone"],
  input[data-phone-input]{
    font-size:16px!important;
  }
}


/* ===== Footer grid, links and spacing fix 2026-06-02 ===== */
.footer{
  background:#07111b;
  color:#8d9daa;
  padding:34px 0;
}

.footer__inner{
  display:grid!important;
  grid-template-columns:minmax(190px,.9fr) minmax(150px,.7fr) minmax(250px,1.1fr);
  gap:26px 34px;
  align-items:start;
  font-size:14px;
}

.footer__brand{
  min-width:0;
  display:grid;
  gap:6px;
}

.footer__brand b{
  color:#fff;
  font-size:15px;
  line-height:1.25;
}

.footer__brand span{
  display:block;
  color:#95a5b5;
  font-size:13px;
  line-height:1.35;
}

.footer__brand small{
  display:block;
  color:#728190;
  font-size:13px;
  line-height:1.35;
}

.footer__title{
  margin:0 0 10px;
  color:rgba(255,255,255,.52);
  font-size:11px;
  line-height:1.2;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.16em;
}

.footer__nav{
  min-width:0;
  display:grid;
  align-content:start;
  gap:8px;
}

.footer__nav a,
.footer__links a{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  color:#c7d3df;
  font-size:13px;
  line-height:1.3;
  font-weight:800;
  text-decoration:none;
  overflow-wrap:break-word;
}

.footer__nav a:hover,
.footer__links a:hover{
  color:#fff;
}

.footer__links{
  display:grid!important;
  justify-content:start!important;
  max-width:none!important;
  gap:8px!important;
}

.footer-requisites{
  grid-column:1 / -1;
  width:100%;
  margin-top:8px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.12);
}

.footer-requisites__title{
  display:block;
}

.footer-requisites__body{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px 22px;
}

.footer-requisites__item{
  min-width:0;
  display:grid;
  gap:4px;
}

.footer-requisites__item span{
  color:rgba(255,255,255,.5);
  font-size:10px;
  line-height:1.25;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.footer-requisites__item b{
  color:rgba(255,255,255,.86);
  font-size:13px;
  line-height:1.35;
  font-weight:750;
  overflow-wrap:anywhere;
}

.footer-requisites__toggle{
  display:none;
}

.contact-list a,
.contact-list div{
  align-items:flex-start;
}

.contact-list span{
  display:grid;
  gap:3px;
  min-width:0;
}

.contact-list small{
  display:block;
  color:#a8b6c4;
  font-size:12px;
  line-height:1.35;
  margin:0;
}

@media(max-width:1180px){
  .footer__inner{
    grid-template-columns:minmax(180px,.8fr) minmax(140px,.7fr) minmax(220px,1fr);
    gap:24px;
  }

  .footer-requisites__body{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:860px){
  .footer{
    padding:28px 0 calc(108px + env(safe-area-inset-bottom));
  }

  .footer__inner{
    grid-template-columns:1fr 1fr;
    gap:22px;
  }

  .footer__brand{
    grid-column:1 / -1;
  }

  .footer__nav a{
    width:auto;
  }

  .footer-requisites{
    grid-column:1 / -1;
    margin-top:2px;
    padding-top:16px;
  }

  .footer-requisites__title{
    display:none;
  }

  .footer-requisites__toggle{
    display:block;
    width:100%;
    min-height:44px;
    border:1px solid rgba(255,255,255,.18);
    background:rgba(255,255,255,.04);
    color:#fff;
    font-weight:950;
    text-align:left;
    padding:10px 42px 10px 14px;
    position:relative;
    cursor:pointer;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:12px;
  }

  .footer-requisites__toggle::after{
    content:"+";
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    font-size:22px;
    line-height:1;
    color:var(--orange);
  }

  .footer-requisites.is-open .footer-requisites__toggle::after{
    content:"−";
  }

  .footer-requisites__body{
    display:none;
    grid-template-columns:1fr;
    gap:10px;
    padding:14px 4px 0;
  }

  .footer-requisites.is-open .footer-requisites__body{
    display:grid;
  }
}

@media(max-width:520px){
  .footer__inner{
    grid-template-columns:1fr;
    gap:18px;
  }

  .footer__nav{
    gap:7px;
  }

  .footer__nav a{
    font-size:13px;
  }

  .footer-requisites__item b{
    font-size:12px;
  }
}


/* ===== Security hardening 2026-06-02 ===== */
.hp-field{
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}


/* ===== AJAX lead form status 2026-06-02 ===== */
.ajax-form-notice,
.lead-modal__notice--ajax{
  margin:0 0 14px;
}

.notice.is-error{
  background:#fff2f0;
  color:#9b1c1c;
  border-color:#ffd0cb;
}

.notice.is-success{
  background:#f0fff5;
  color:#176b36;
  border-color:#bde8c9;
}

button[disabled]{
  opacity:.72;
  cursor:not-allowed;
}


/* ===== FAQ accordion UX/UI upgrade 2026-06-03 ===== */
/* Улучшенный UX/UI FAQ: компактные карточки, плавное открытие,
   один открытый вопрос на мобильной версии, аккуратные состояния. */

.faq{
  min-width:0;
}

.accordion{
  min-width:0;
}

.accordion__item{
  min-width:0;
  overflow:hidden;
  border:1px solid #dce4eb;
  background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.accordion__item.open{
  border-color:rgba(255,90,0,.35);
  box-shadow:0 18px 48px rgba(16,27,38,.08);
}

.accordion__btn{
  width:100%;
  min-width:0;
  border:0;
  background:#fff;
  color:#101b26;
  text-align:left;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.accordion__btn span:first-child{
  min-width:0;
  max-width:100%;
  overflow-wrap:break-word;
  word-break:normal;
}

.accordion__btn span:last-child{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  color:var(--orange);
  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.accordion__content{
  max-height:0;
  overflow:hidden;
  padding:0!important;
  opacity:0;
  visibility:hidden;
  transition:max-height .28s ease, opacity .22s ease, padding .22s ease;
}

.accordion__item.open .accordion__content{
  opacity:1;
  visibility:visible;
}

.accordion__content p{
  margin:0;
  color:#536170;
}

@media(min-width:761px){
  .accordion{
    display:grid;
    gap:12px;
  }

  .accordion__item{
    border-radius:0;
  }

  .accordion__btn{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 40px;
    gap:18px;
    align-items:center;
    padding:22px 24px!important;
    font-size:18px;
    line-height:1.25;
    font-weight:950;
  }

  .accordion__btn span:last-child{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#fff3ec;
    font-size:28px;
    line-height:1;
  }

  .accordion__item.open .accordion__btn span:last-child{
    background:var(--orange);
    color:#fff;
  }

  .accordion__item.open .accordion__content{
    padding:0 24px 24px!important;
  }

  .accordion__content p{
    font-size:16px;
    line-height:1.55;
    max-width:760px;
  }
}

@media(max-width:760px){
  .section.section--light:has(.faq){
    padding-top:46px;
    padding-bottom:42px;
  }

  .faq{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:22px!important;
  }

  .faq .eyebrow{
    margin:0 0 12px;
    font-size:12px;
    line-height:1;
    letter-spacing:.18em;
  }

  .faq h2{
    margin:0 0 12px;
    font-size:clamp(27px,7.6vw,36px);
    line-height:1.08;
    letter-spacing:-.045em;
  }

  .faq .text-muted{
    margin:0;
    max-width:100%;
    font-size:16px;
    line-height:1.48;
  }

  .accordion{
    display:grid;
    gap:10px;
  }

  .accordion__item{
    border-radius:14px;
    box-shadow:0 8px 22px rgba(16,27,38,.045);
  }

  .accordion__item.open{
    background:linear-gradient(180deg,#fff 0%,#fffaf7 100%);
    transform:translateY(-1px);
  }

  .accordion__btn{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 36px;
    gap:14px;
    align-items:center;
    min-height:72px;
    padding:16px 14px 16px 18px!important;
    border:0;
    color:#101b26!important;
    font-size:18px!important;
    line-height:1.18!important;
    font-weight:950!important;
  }

  .accordion__btn span:first-child{
    color:#101b26!important;
  }

  .accordion__btn span:last-child{
    width:36px;
    height:36px;
    border-radius:50%;
    justify-self:end;
    align-self:center;
    background:#fff2e9;
    color:var(--orange)!important;
    font-size:0!important;
    position:relative;
    box-shadow:0 8px 18px rgba(255,90,0,.12);
  }

  .accordion__btn span:last-child::before,
  .accordion__btn span:last-child::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:15px;
    height:3px;
    border-radius:999px;
    background:currentColor;
    transform:translate(-50%,-50%);
  }

  .accordion__btn span:last-child::after{
    transform:translate(-50%,-50%) rotate(90deg);
  }

  .accordion__item.open .accordion__btn span:last-child{
    background:var(--orange);
    color:#fff!important;
    transform:rotate(180deg);
  }

  .accordion__item.open .accordion__btn span:last-child::after{
    opacity:0;
  }

  .accordion__item.open .accordion__content{
    padding:0 18px 18px!important;
  }

  .accordion__content p{
    padding:14px 0 0;
    border-top:1px solid #edf1f5;
    font-size:15px;
    line-height:1.55;
  }
}

@media(max-width:380px){
  .section.section--light:has(.faq){
    padding-top:40px;
    padding-bottom:38px;
  }

  .faq{
    gap:20px!important;
  }

  .faq h2{
    font-size:26px;
  }

  .faq .text-muted{
    font-size:15px;
  }

  .accordion{
    gap:9px;
  }

  .accordion__btn{
    grid-template-columns:minmax(0,1fr) 32px;
    gap:10px;
    min-height:66px;
    padding:15px 12px 15px 15px!important;
    font-size:16px!important;
    line-height:1.22!important;
  }

  .accordion__btn span:last-child{
    width:32px;
    height:32px;
  }

  .accordion__btn span:last-child::before,
  .accordion__btn span:last-child::after{
    width:13px;
    height:2.5px;
  }

  .accordion__item.open .accordion__content{
    padding:0 15px 16px!important;
  }

  .accordion__content p{
    font-size:14px;
  }
}


/* ===== Mobile hero video autoplay / no play overlay fix 2026-06-03 ===== */
.hero{
  isolation:isolate;
}

.hero-video,
.hero video.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  pointer-events:none;
  border:0;
  background:transparent;
}

.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-overlay-play-button{
  display:none!important;
  opacity:0!important;
  -webkit-appearance:none!important;
}

.hero-video::cue{
  display:none;
}

.hero.has-video-fallback .hero-video{
  display:none!important;
}

@media(max-width:760px){
  .hero-video,
  .hero video.hero-video{
    min-width:100%;
    min-height:100%;
    transform:translateZ(0);
  }
}
