:root{
  --bg:#f7f3ee;--bg2:#efe7df;--ink:#20201e;--muted:#716a64;
  --dark:#2b1d18;--dark2:#35241e;--brand:#744631;--brand2:#9a6045;
  --line:#d9cfc6;--white:#fff;--soft:#e8ded5;--green:#667453;
  --radius:12px;--max:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Manrope,Onest,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
img{display:block;width:100%}
.container{width:min(var(--max),calc(100% - 48px));margin:auto}
.eyebrow{font-size:13px;color:var(--brand);font-weight:800;letter-spacing:.01em;margin-bottom:16px}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(48px,6.1vw,80px);line-height:.95;letter-spacing:-.055em;margin-bottom:26px;max-width:930px}
h2{font-size:clamp(38px,4.5vw,60px);line-height:1;letter-spacing:-.045em;margin-bottom:22px}
h3{font-size:clamp(24px,2.1vw,32px);line-height:1.08;letter-spacing:-.025em}
p{font-size:18px;line-height:1.58}
.muted{color:var(--muted)}
.section{padding:104px 0;border-top:1px solid var(--line)}
.section.dark{background:var(--dark);color:#fff;border-top:0}
.section-head{display:grid;grid-template-columns:1.15fr .85fr;gap:60px;align-items:end;margin-bottom:56px}
.section-head .desc{color:var(--muted);max-width:520px}
.dark .section-head .desc{color:#c9bdb5}
.btn{min-height:52px;padding:0 22px;border:1px solid transparent;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:800;font-size:14px;cursor:pointer;transition:.25s}
.btn-brand{background:var(--brand);color:#fff}
.btn-brand:hover{background:var(--brand2)}
.btn-outline{border-color:rgba(255,255,255,.55);color:#fff;background:transparent}
.btn-outline:hover{background:#fff;color:var(--dark)}
.btn-light{background:#fff;color:var(--dark)}
.btn-dark{background:var(--dark);color:#fff}
.link{display:inline-flex;gap:8px;align-items:center;color:var(--brand);font-weight:800;font-size:14px}
.reveal{opacity:1;transform:none;transition:opacity .7s ease,transform .7s ease}
.js .reveal{opacity:0;transform:translateY(18px)}
.js .reveal.visible{opacity:1;transform:none}

/* header */
.header{position:fixed;z-index:100;top:0;left:0;right:0;color:#fff;border-bottom:1px solid rgba(255,255,255,.14);transition:.3s}
.header.scrolled{background:rgba(43,29,24,.94);backdrop-filter:blur(12px)}
.header-in{height:86px;display:flex;align-items:center;gap:34px}
.logo{display:flex;align-items:center;gap:12px;min-width:190px}
.logo-mark{width:38px;height:38px;border:2px solid currentColor;border-radius:9px;position:relative;transform:rotate(45deg);opacity:.95}
.logo-mark:after{content:"";position:absolute;width:12px;height:12px;border:2px solid currentColor;border-radius:50%;left:11px;top:11px}
.logo-copy strong{display:block;font-size:16px;letter-spacing:.06em}
.logo-copy span{font-size:9px;opacity:.72;letter-spacing:.08em}
.nav{display:flex;gap:23px;margin-left:auto;align-items:center}
.nav a{font-size:13px;opacity:.86}
.nav a:hover{opacity:1}
.phone{font-size:14px;font-weight:900;white-space:nowrap}
.menu-btn{width:48px;height:48px;border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer}
.menu-btn span,.menu-btn span:before,.menu-btn span:after{display:block;width:20px;height:2px;background:currentColor;content:"";position:relative}
.menu-btn span:before{position:absolute;top:-6px}.menu-btn span:after{position:absolute;top:6px}
.mobile-menu{position:fixed;z-index:120;inset:0;background:var(--dark);color:#fff;padding:28px;transform:translateX(100%);transition:.35s}
.mobile-menu.open{transform:none}
.mobile-menu-top{display:flex;justify-content:space-between;align-items:center}
.close{background:none;color:#fff;border:0;font-size:34px}
.mobile-links{display:grid;gap:20px;margin-top:70px}
.mobile-links a{font-size:32px;font-weight:800}

/* hero */
.hero{min-height:100svh;position:relative;color:#fff;display:flex;align-items:flex-end;background:#17110f}
.hero-bg{position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(18,11,8,.86) 0%,rgba(18,11,8,.68) 42%,rgba(18,11,8,.18) 72%,rgba(18,11,8,.16) 100%),url("../img/site/kotelnaya-pod-klyuch-buderus-bojler-nasosnye-gruppy.webp");background-size:cover;background-position:center}
.hero-content{position:relative;padding:170px 0 82px}
.hero-content p{max-width:760px;color:#e8dfd8;font-size:20px}
.hero-trust{display:flex;gap:26px;flex-wrap:wrap;margin:32px 0;color:#f0e6df;font-size:14px;font-weight:700}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-word{color:#d7a287}
.mission-wrap{position:relative;margin-top:-1px;background:linear-gradient(180deg,#2b1d18,#33221c);color:#fff;padding:68px 0}
.mission{max-width:980px}
.mission .eyebrow{color:#d5aa91}
.mission h2{font-size:clamp(35px,4.5vw,58px);max-width:1100px}

/* audience */
.audience{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.audience-card{min-height:520px;position:relative;overflow:hidden}
.audience-card img{height:100%;object-fit:cover;transition:transform .6s}
/* Non-clickable engineering solution cards: no hover zoom. */
.audience-card:hover img{transform:none}
.audience-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(18,12,9,.78))}
.audience-copy{position:absolute;z-index:2;left:28px;right:28px;bottom:26px;color:#fff}
.audience-copy p{font-size:15px;max-width:430px;color:#dfd6d0;margin-bottom:0}

/* services */
.services-title{max-width:760px}
.service-list{border-top:1px solid var(--line)}
.service-row{display:grid;grid-template-columns:110px 1.15fr 1fr;gap:30px;padding:27px 0;border-bottom:1px solid var(--line);align-items:center;position:relative;min-height:108px}
.service-num{color:var(--brand);font-size:18px;font-weight:800}
.service-name{font-size:28px;font-weight:800;letter-spacing:-.025em}
.service-copy{color:var(--muted);font-size:15px;line-height:1.5}
.service-preview{position:fixed;pointer-events:none;z-index:40;width:280px;height:190px;display:none;overflow:hidden;border-radius:8px;box-shadow:0 18px 50px rgba(0,0,0,.2)}
.service-preview img{height:100%;object-fit:cover}
.cta-strip{margin-top:52px;background:var(--dark);color:#fff;display:grid;grid-template-columns:1.1fr auto .9fr;align-items:center;gap:34px;padding:28px 32px}
.cta-strip h3{font-size:24px;margin:0}
.cta-strip p{font-size:13px;color:#cdbfb6;margin:0}

/* company */
.company-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:70px;align-items:start}
.company-copy p{max-width:700px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;margin-top:54px}
.stat{padding-top:22px;border-top:1px solid var(--line)}
.stat strong{display:block;font-size:clamp(54px,6vw,82px);line-height:.95;letter-spacing:-.06em;color:var(--brand)}
.stat span{display:block;font-size:14px;margin-top:12px;max-width:150px}
.founder{display:grid;grid-template-columns:.8fr 1.2fr;gap:44px;margin-top:80px;padding-top:58px;border-top:1px solid var(--line);align-items:center}
.founder-photo{height:470px;overflow:hidden;background:#ddd}
.founder-photo img{height:100%;object-fit:cover;object-position:center 34%;filter:brightness(.82) saturate(.72) contrast(1.04) sepia(.06)}
.quote{font-size:28px;line-height:1.28;letter-spacing:-.025em}
.signature{margin-top:25px;color:var(--muted);font-size:14px}
.signature b{display:block;color:var(--ink);margin-bottom:4px}

/* benefits */
.benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.benefit{padding:28px 24px 34px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:250px}
.benefit .n{color:var(--brand);font-weight:800;font-size:18px}
.benefit h3{font-size:21px;margin:28px 0 12px}
.benefit p{font-size:14px;color:var(--muted);margin:0}

/* process */
.process{display:grid;grid-template-columns:repeat(6,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.step{padding:26px 20px 32px;min-height:280px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.step .n{color:var(--brand);font-weight:800}
.step h3{font-size:18px;margin:35px 0 10px}
.step p{font-size:13px;color:var(--muted);margin:0}

/* projects */
.projects-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:48px 22px}
.project{cursor:pointer}
.project-media{height:410px;overflow:hidden;background:#ddd}
.project-media img{height:100%;object-fit:cover;transition:transform .5s}
.project:hover .project-media img{transform:scale(1.035)}
.project-meta{padding:20px 0;border-bottom:1px solid var(--line)}
.project-meta h3{margin-bottom:12px}
.project-tags{font-size:14px;color:var(--muted);line-height:1.55}
.project-data{display:flex;justify-content:space-between;gap:16px;margin-top:16px;font-size:13px}
.project-data span:last-child{color:var(--brand);font-weight:800}

/* gallery */
.gallery-bg{background:var(--dark);padding:54px 0;color:#fff}
.gallery-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}
.gallery-track{display:grid;grid-auto-flow:column;grid-auto-columns:33.4%;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.gallery-track::-webkit-scrollbar{display:none}
.gallery-item{height:360px;scroll-snap-align:start;cursor:zoom-in;overflow:hidden;background:#4a3931}
.gallery-item img{height:100%;object-fit:cover;transition:transform .45s}
.gallery-item:hover img{transform:scale(1.03)}
.gallery-controls{display:flex;gap:8px}
.circle-btn{width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;cursor:pointer}

/* reviews */
.review-layout{display:grid;grid-template-columns:1fr 1fr;gap:46px}
.video-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.video-card{position:relative;height:260px;overflow:hidden;cursor:pointer;background:#ddd}
.video-card img{height:100%;object-fit:cover;filter:brightness(.8)}
.play{position:absolute;inset:0;display:grid;place-items:center}
.play span{width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,.92);display:grid;place-items:center;color:var(--dark);font-size:23px;padding-left:4px}
.text-reviews{display:grid;gap:12px}
.review{background:#fff;border:1px solid var(--line);padding:24px}
.stars{color:#d99624;letter-spacing:.08em}
.review p{font-size:15px;color:#4f4a45;margin:13px 0}
.review button{border:0;background:none;color:var(--brand);font-weight:800;padding:0;cursor:pointer}
.review .more{display:none}
.review.open .more{display:inline}
.review.open .dots{display:none}

/* faq */
.faq-wrap{display:grid;grid-template-columns:.82fr 1.18fr;gap:70px}
.faq{border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:22px 44px 22px 0;font-size:18px;font-weight:800;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:"+";position:absolute;right:8px;top:18px;font-size:26px;color:var(--brand)}
.faq details[open] summary:after{content:"-"}
.faq details p{font-size:15px;color:var(--muted);padding:0 50px 22px 0;margin:0}

/* form */
.form-section{background:var(--bg2)}
.form-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:start}
.form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:grid;gap:7px}
.field.full{grid-column:1/-1}
label{font-size:12px;color:var(--muted);font-weight:700}
input,select{height:54px;border:1px solid var(--line);background:#fff;padding:0 15px;border-radius:0;color:var(--ink);outline:none}
input:focus,select:focus{border-color:var(--brand)}
.consent{grid-column:1/-1;display:flex;gap:9px;align-items:flex-start;color:var(--muted);font-size:12px;line-height:1.4}
.consent input{width:16px;height:16px;margin-top:0}
.form-media{height:430px;overflow:hidden}
.form-media img{height:100%;object-fit:cover}

/* footer */
.footer{background:#241814;color:#fff;padding:64px 0 28px}
.footer-grid{display:grid;grid-template-columns:1.3fr .8fr .8fr 1fr;gap:48px}
.footer p,.footer a,.footer span{font-size:13px;color:#cbbdb4;line-height:1.7}
.footer h4{margin:0 0 16px;font-size:14px}
.footer-links{display:grid;gap:5px}
.requisites{display:grid;gap:5px}
.legal{margin-top:38px;padding-top:20px;border-top:1px solid rgba(255,255,255,.14);display:flex;gap:24px;justify-content:space-between;flex-wrap:wrap}
.legal a{text-decoration:underline;text-underline-offset:3px}
.legal-panel{display:none;margin-top:18px;padding:18px 0;border-top:1px solid rgba(255,255,255,.12)}
.legal-panel.open{display:block}
.legal-panel h3{font-size:20px}
.legal-panel p{font-size:12px;color:#cbbdb4}

/* modal */
.modal{position:fixed;z-index:200;inset:0;background:rgba(21,14,11,.88);display:none;align-items:center;justify-content:center;padding:24px}
.modal.open{display:flex}
.modal-card{background:var(--bg);width:min(1080px,100%);max-height:90vh;overflow:auto;position:relative}
.modal-close{position:sticky;float:right;top:14px;right:14px;width:44px;height:44px;border-radius:50%;border:0;background:var(--dark);color:#fff;z-index:5;font-size:24px;cursor:pointer}
.lightbox-img{max-height:86vh;object-fit:contain;background:#120d0b}
.project-modal-grid{display:grid;grid-template-columns:1.05fr .95fr}
.project-modal-img{min-height:560px;height:100%;object-fit:cover}
.project-modal-copy{padding:46px}
.project-modal-copy ul{padding-left:19px;color:var(--muted);line-height:1.75}
.video-modal{padding:40px;text-align:center}
.video-modal h3{font-size:32px}
.video-frame{width:100%;height:420px;border:0;background:#111;margin:20px 0}

/* mobile */
@media(max-width:1050px){
  .nav{display:none}
  .header-in{gap:16px}
  .phone{margin-left:auto}
  .benefits{grid-template-columns:repeat(2,1fr)}
  .process{grid-template-columns:repeat(3,1fr)}
  .stats{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  .container{width:min(100% - 28px,var(--max))}
  .section{padding:72px 0}
  .header-in{height:70px}
  .logo{min-width:auto}
  .logo-copy span{display:none}
  .logo-mark{width:32px;height:32px}
  .phone{font-size:11px}
  .menu-btn{width:44px;height:44px}
  .hero{min-height:830px}
  .hero-bg{background-image:linear-gradient(180deg,rgba(20,13,10,.73) 0%,rgba(20,13,10,.45) 43%,rgba(20,13,10,.78) 76%,rgba(20,13,10,.92) 100%),url("../img/site/kotelnaya-pod-klyuch-buderus-bojler-nasosnye-gruppy.webp");background-position:65% center}
  .hero-content{padding:140px 0 56px}
  h1{font-size:44px}
  h2{font-size:36px}
  p{font-size:17px}
  .hero-content p{font-size:17px}
  .hero-actions{display:grid}
  .btn{width:100%}
  .section-head{grid-template-columns:1fr;gap:14px;margin-bottom:36px}
  .audience{grid-template-columns:1fr}
  .audience-card{min-height:420px}
  .service-row{grid-template-columns:58px 1fr;gap:12px}
  .service-copy{grid-column:2}
  .service-name{font-size:23px}
  .cta-strip{grid-template-columns:1fr;padding:24px}
  .company-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr 1fr;gap:18px}
  .stat strong{font-size:55px}
  .founder{grid-template-columns:1fr;gap:24px}
  .founder-photo{height:430px}
  .quote{font-size:23px}
  .benefits{grid-template-columns:1fr}
  .benefit{min-height:auto}
  .process{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}
  .step{min-width:78%;scroll-snap-align:start}
  .projects-grid{grid-template-columns:1fr;gap:40px}
  .project-media{height:330px}
  .gallery-track{grid-auto-columns:84%}
  .gallery-item{height:330px}
  .review-layout{grid-template-columns:1fr}
  .video-grid{grid-template-columns:1fr 1fr}
  .video-card{height:210px}
  .faq-wrap{grid-template-columns:1fr;gap:25px}
  .form-grid{grid-template-columns:1fr}
  .form{grid-template-columns:1fr}
  .field.full,.consent{grid-column:1}
  .form-media{height:320px}
  .footer-grid{grid-template-columns:1fr;gap:28px}
  .project-modal-grid{grid-template-columns:1fr}
  .project-modal-img{min-height:340px}
  .project-modal-copy{padding:28px 20px}
  .video-frame{height:300px}
}

@media(max-width:720px){
  .reveal,.js .reveal{opacity:1!important;transform:none!important}
  .service-preview{display:none!important}
  .hero{min-height:760px}
  .hero-content{padding-top:126px}
  .mission-wrap{padding:52px 0}
  .mobile-menu{overflow-y:auto;-webkit-overflow-scrolling:touch}
  .gallery-track,.process{-webkit-overflow-scrolling:touch}

  .modal{padding:10px}
  .modal-card{max-height:94svh}
}


/* revision 31.08 - desktop hero overlay, real logo, mobile menu, audience, benefits, final form */
.logo-mark{
  width:42px;height:42px;border:0!important;border-radius:0!important;
  transform:none!important;background:transparent!important;
  display:flex;align-items:center;justify-content:center;flex:0 0 42px
}
.logo-mark:after{display:none!important}
.logo-mark img{width:38px;height:38px;object-fit:contain}

/* Enki-like desktop hero: one calm, even dark layer instead of a pronounced left-right gradient */
@media(min-width:721px){
  .hero-bg{
    background-image:
      linear-gradient(rgba(24,16,12,.52),rgba(24,16,12,.52)),
      url("../img/site/kotelnaya-pod-klyuch-buderus-bojler-nasosnye-gruppy.webp")!important;
    background-position:center!important;
  }
  .menu-btn{display:none!important}
}

/* Mobile keeps the stronger readability treatment */
@media(max-width:720px){
  .header{transition:background .25s,border-color .25s,backdrop-filter .25s}
  .header.scrolled{
    background:rgba(43,29,24,.97)!important;
    border-bottom-color:rgba(255,255,255,.12)!important;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px)
  }
  .menu-btn{display:grid!important;position:relative;z-index:125;pointer-events:auto}
  .mobile-menu{pointer-events:none}
  .mobile-menu.open{pointer-events:auto}
  .audience-card:first-child img{object-position:center 30%}
}

/* Better framing for audience boiler-room photos */
.audience-card img{object-position:center 42%}
.audience-card:first-child img{object-position:center 30%}

/* Services: no floating hover images */
.service-preview{display:none!important}

/* Benefits heading should use the whole row */
.section-head.benefits-head{grid-template-columns:1fr}
.section-head.benefits-head h2{max-width:1040px}

/* Final consultation image should visually match the taller form */
.form-grid{align-items:stretch}
.form-media{height:auto;min-height:610px}
.form-media img{height:100%;min-height:610px;object-fit:cover;object-position:center}
@media(max-width:720px){
  .form-media{min-height:390px}
  .form-media img{min-height:390px}
}


/* Brand lockup aligned to source presentations */
.logo{gap:10px;min-width:206px}
.logo-mark{width:36px;height:36px;flex:0 0 36px}
.logo-mark img{width:36px;height:36px}
.logo-copy{display:flex;flex-direction:column;justify-content:center;gap:3px;line-height:1}
.logo-copy strong{
  font-size:15px!important;line-height:1!important;letter-spacing:.035em!important;
  font-weight:800;white-space:nowrap
}
.logo-copy span{
  font-size:7px!important;line-height:1.05!important;letter-spacing:.075em!important;
  opacity:.78;white-space:nowrap
}
.footer .logo{min-width:0}
@media(max-width:720px){
  .logo{gap:8px;min-width:auto}
  .logo-mark{width:32px;height:32px;flex-basis:32px}
  .logo-mark img{width:32px;height:32px}
  .logo-copy strong{font-size:13px!important}
  .logo-copy span{display:block!important;font-size:6px!important}
}

/* Desktop hero: slightly smaller/narrower copy, freeing the pumps in the photo */
@media(min-width:721px){
  .hero-content{padding-top:158px;padding-bottom:72px}
  .hero-content h1{font-size:clamp(52px,4.8vw,66px);max-width:650px;margin-left:0}
  .hero-content p{max-width:620px;font-size:18px}
  .hero-trust{max-width:650px}
}

/* Touch targets */
.project-open,.gallery-controls button,.video-card,.play{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.project-open{
  border:0;background:none;color:var(--brand);font-weight:800;font-size:13px;
  padding:10px 0;cursor:pointer;text-align:right
}
@media(max-width:720px){
  .project-open{min-height:44px;padding:12px 0}
  .gallery-controls button{min-width:48px;min-height:48px}
  .video-card{border:0;padding:0;width:100%;display:block;text-align:left}
}


@media(max-width:720px){
  #header.scrolled{background:#2b1d18!important;border-bottom:1px solid rgba(255,255,255,.14)!important}
}

/* ---- next original style block ---- */

/* REVISION 4 */

/* Mobile header: reliable in local/mobile viewers even if JS scroll events are restricted */
@media(max-width:720px){
  #header,.header,#header.scrolled{
    background:#2B1D18!important;
    border-bottom:1px solid rgba(255,255,255,.13)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .gallery-controls{display:none!important}
}

/* Service architecture */
.service-groups{display:grid;gap:72px}
.service-group-head{display:grid;grid-template-columns:110px 1fr;gap:30px;align-items:end;margin-bottom:18px}
.service-group-head .eyebrow{grid-column:1/-1;margin-bottom:4px}
.service-group-head h3{grid-column:2;font-size:34px;line-height:1.08;max-width:760px;margin:0}
@media(max-width:720px){
  .service-groups{gap:54px}
  .service-group-head{display:block}
  .service-group-head h3{font-size:28px;margin-top:12px}
}

/* Enki-inspired stages: large sequential editorial rows instead of six small cards */
.process{
  display:block!important;
  border:0!important;
  border-top:1px solid var(--line)!important;
}
.step{
  display:grid!important;
  grid-template-columns:minmax(150px,.42fr) 1.58fr!important;
  gap:56px!important;
  min-height:0!important;
  padding:42px 0 48px!important;
  border:0!important;
  border-bottom:1px solid var(--line)!important;
  align-items:start!important;
}
.step .n{
  font-size:18px!important;
  color:var(--brand)!important;
  font-weight:800!important;
}
.step h3{
  font-size:clamp(27px,2.6vw,38px)!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
  margin:0 0 16px!important;
  max-width:720px;
}
.step p{
  font-size:16px!important;
  line-height:1.65!important;
  color:var(--muted)!important;
  margin:0!important;
  max-width:760px;
}
@media(max-width:720px){
  .step{grid-template-columns:1fr!important;gap:22px!important;padding:32px 0 36px!important}
  .step h3{font-size:28px!important}
  .step p{font-size:15px!important}
}

/* Founder crop: show the left shoulder, crop more empty wall on the right */
.founder-photo img{object-position:34% 34%!important}
@media(max-width:720px){.founder-photo img{object-position:32% 34%!important}}

/* Pure CSS project details: works without JavaScript */
.project-open{
  display:inline-block;text-decoration:none;min-height:44px;line-height:24px;
  position:relative;z-index:3
}
.css-modal{
  position:fixed;inset:0;z-index:5000;background:rgba(20,13,10,.88);
  padding:28px;display:none;overflow:auto
}
.css-modal:target{display:grid;place-items:center}
.css-modal-card{
  width:min(980px,100%);background:var(--bg);position:relative;
  display:grid;grid-template-columns:1.05fr .95fr;max-height:92vh;overflow:auto
}
.css-modal-card>img{width:100%;height:100%;min-height:520px;object-fit:cover}
.css-modal-copy{padding:54px 42px}
.css-modal-copy h2{font-size:42px;margin:12px 0 20px}
.css-modal-copy p{color:var(--muted);line-height:1.65}
.css-modal-close{
  position:absolute;right:16px;top:14px;z-index:2;width:44px;height:44px;
  display:grid;place-items:center;background:var(--dark);color:#fff;text-decoration:none;
  font-size:28px
}
@media(max-width:720px){
  .css-modal{padding:0}
  .css-modal-card{display:block;width:100%;min-height:100svh;max-height:none}
  .css-modal-card>img{height:44svh;min-height:300px}
  .css-modal-copy{padding:34px 22px 48px}
  .css-modal-copy h2{font-size:34px}
}

/* Video preview itself is now a real link */
.video-card{color:inherit;text-decoration:none}
.video-card:visited{color:inherit}

/* Reviews are shown in full */
.review .more{display:inline!important}
.review button{display:none!important}

/* ---- next original style block ---- */

/* REVISION 5 */
.section-head.process-head{grid-template-columns:1fr!important}
.section-head.process-head h2{max-width:1120px!important}

.menu-toggle{position:fixed;opacity:0;pointer-events:none}
@media(max-width:1050px){
  #menuToggle:checked ~ .mobile-menu{
    transform:none!important;
    pointer-events:auto!important;
  }
  #menuToggle:checked ~ .header .menu-btn span{background:transparent!important}
  #menuToggle:checked ~ .header .menu-btn span:before{top:0!important;transform:rotate(45deg)}
  #menuToggle:checked ~ .header .menu-btn span:after{top:0!important;transform:rotate(-45deg)}
  .menu-btn span:before,.menu-btn span:after{transition:.2s}
}

/* ---- next original style block ---- */

/* REVISION 7 - keep revision 5 mobile menu, fix navigation, center desktop menu */

section[id]{scroll-margin-top:96px}
@media(max-width:720px){section[id]{scroll-margin-top:78px}}

/* Desktop header composition: logo left, menu truly centered, phone right */
@media(min-width:1051px){
  .header-in{
    position:relative;
    display:flex;
    align-items:center;
  }
  .header-in .logo{
    margin-right:auto;
    position:relative;
    z-index:2;
  }
  .header-in .nav{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    margin:0!important;
    display:flex!important;
    align-items:center;
    justify-content:center;
    gap:24px;
    white-space:nowrap;
  }
  .header-in .phone{
    margin-left:auto!important;
    position:relative;
    z-index:2;
  }
  .header-in .menu-btn{display:none!important}
}

/* Keep mobile menu exactly in the full-screen editorial style from the prior version */
@media(max-width:1050px){
  .mobile-menu{
    display:block!important;
    position:fixed!important;
    inset:0!important;
    z-index:120!important;
    background:var(--dark)!important;
    color:#fff!important;
    padding:28px!important;
    transform:translateX(100%);
    transition:transform .35s ease!important;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  #menuToggle:checked ~ .mobile-menu{
    transform:translateX(0)!important;
  }
  .mobile-links{
    display:grid!important;
    gap:20px!important;
    margin-top:70px!important;
  }
  .mobile-links a{
    display:block!important;
    font-size:32px!important;
    line-height:1.08!important;
    font-weight:800!important;
    color:#fff!important;
    min-height:44px;
    padding:4px 0;
    position:relative;
    z-index:3;
    pointer-events:auto!important;
  }
  .mobile-menu-top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }
  .mobile-menu .close{
    display:block!important;
    cursor:pointer;
    pointer-events:auto!important;
  }
  .header .menu-btn{
    cursor:pointer;
    pointer-events:auto!important;
  }
}

/* ---- next original style block ---- */

/* REVISION 8 - mobile menu inspired by reference screenshot */

@media(max-width:1050px){
  .mobile-menu{
    position:fixed!important;
    inset:0!important;
    z-index:130!important;
    background:#5A3A2D!important;
    color:#fff!important;
    padding:
      calc(22px + env(safe-area-inset-top))
      22px
      calc(28px + env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    transform:translateX(100%)!important;
    transition:transform .32s ease!important;
  }

  #menuToggle:checked ~ .mobile-menu{
    transform:translateX(0)!important;
  }

  .mobile-menu-top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-height:58px;
  }

  .mobile-menu-brand{
    color:#fff!important;
    font-size:18px!important;
    font-weight:850!important;
    letter-spacing:.02em;
    text-decoration:none!important;
  }

  .mobile-menu-close{
    width:56px;
    height:56px;
    background:#F6F1EC;
    display:grid!important;
    place-items:center;
    position:relative;
    cursor:pointer;
    flex:0 0 auto;
  }
  .mobile-menu-close span{
    position:absolute;
    width:28px;
    height:2px;
    background:#6D402E;
    display:block;
  }
  .mobile-menu-close span:first-child{transform:rotate(45deg)}
  .mobile-menu-close span:last-child{transform:rotate(-45deg)}

  .mobile-menu-divider{
    height:1px;
    background:rgba(255,255,255,.2);
    margin:18px 0 32px;
  }

  .mobile-menu-section{
    margin-bottom:34px;
  }

  .mobile-menu-caption{
    color:rgba(255,255,255,.5);
    font-size:15px;
    line-height:1.2;
    font-weight:700;
    margin-bottom:20px;
  }

  .mobile-menu-nav{
    display:grid;
    gap:18px;
  }

  .mobile-menu-nav a{
    display:block!important;
    color:#fff!important;
    font-size:19px!important;
    line-height:1.2!important;
    font-weight:760!important;
    text-decoration:none!important;
    padding:1px 0!important;
    min-height:auto!important;
  }

  .mobile-menu-cta{
    display:grid;
    gap:0;
    margin:8px 0 36px;
    max-width:100%;
  }

  .mobile-menu-cta-link{
    color:#D6B65A!important;
    font-size:20px!important;
    line-height:1.18!important;
    font-weight:780!important;
    text-decoration:none!important;
    padding:11px 0!important;
    border-bottom:1px solid rgba(214,182,90,.55);
  }

  .mobile-menu-phone{
    display:block;
    color:#fff!important;
    font-size:31px!important;
    line-height:1.05!important;
    letter-spacing:-.04em;
    font-weight:850!important;
    text-decoration:none!important;
  }

  .mobile-menu-social-grid{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
  }

  .mobile-menu-social{
    width:52px;
    height:52px;
    display:grid!important;
    place-items:center;
    background:rgba(255,255,255,.08);
    color:#fff!important;
    text-decoration:none!important;
    border:1px solid rgba(255,255,255,.08);
  }

  .mobile-menu-social span{
    font-size:11px;
    font-weight:900;
    letter-spacing:-.02em;
  }

  .mobile-menu-method{
    margin-bottom:10px;
  }

  .mobile-menu-method-row{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
  }

  .mobile-menu-method-btn{
    min-height:48px;
    display:flex!important;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.08);
    color:#fff!important;
    text-decoration:none!important;
    font-size:14px!important;
    font-weight:750!important;
    border:1px solid rgba(255,255,255,.09);
  }

  /* hide old inherited mobile menu styling artifacts */
  .mobile-links,.mobile-menu .close{display:none!important}
}

/* Small iPhone widths */
@media(max-width:390px){
  .mobile-menu{
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .mobile-menu-phone{font-size:28px!important}
  .mobile-menu-nav a{font-size:18px!important}
}

/* Окно результата отправки формы */
.form-status-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.form-status-modal.is-open{
  display:flex;
}
.form-status-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(20,14,11,.68);
  backdrop-filter:blur(3px);
}
.form-status-modal__dialog{
  position:relative;
  z-index:1;
  width:min(520px,100%);
  background:#f3e9de;
  border:1px solid rgba(75,48,36,.18);
  box-shadow:0 28px 80px rgba(20,14,11,.35);
  padding:42px 38px 34px;
  text-align:center;
}
.form-status-modal__close{
  position:absolute;
  top:13px;
  right:16px;
  width:36px;
  height:36px;
  border:0;
  background:transparent;
  color:#2b211c;
  font-size:30px;
  line-height:1;
  cursor:pointer;
}
.form-status-modal__icon{
  width:64px;
  height:64px;
  margin:0 auto 22px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#84503a;
  color:#fff;
  font-size:32px;
  font-weight:800;
}
.form-status-modal__title{
  margin:0 0 14px;
  color:#151515;
  font-size:32px;
  line-height:1.08;
  font-weight:800;
}
.form-status-modal__text{
  margin:0 auto 26px;
  max-width:410px;
  color:#66574f;
  font-size:17px;
  line-height:1.55;
}
.form-status-modal__button{
  width:100%;
  border:0;
  background:#84503a;
  color:#fff;
  padding:16px 22px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  transition:opacity .2s ease, transform .2s ease;
}
.form-status-modal__button:hover{
  opacity:.92;
}
.form-status-modal__button:active{
  transform:translateY(1px);
}
.form-status-modal.is-error .form-status-modal__icon{
  background:#7b342f;
}
body.modal-open{
  overflow:hidden;
}
@media (max-width:600px){
  .form-status-modal{
    padding:16px;
  }
  .form-status-modal__dialog{
    padding:38px 22px 26px;
  }
  .form-status-modal__title{
    font-size:27px;
  }
  .form-status-modal__text{
    font-size:16px;
  }
}

.review-layout.review-layout-single{grid-template-columns:minmax(0,820px);justify-content:center}

/* Dynamic project galleries (1.jpg ... 20.jpg) */
.css-modal-card{grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr)}
.project-gallery{min-width:0;background:#17110e;align-self:stretch;display:flex;flex-direction:column;outline:none}
.project-gallery-stage{position:relative;min-height:520px;height:min(68vh,680px);display:grid;place-items:center;overflow:hidden;background:#17110e}
.project-gallery-main{width:100%;height:100%;object-fit:contain;background:#17110e}
.project-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border:0;background:rgba(20,13,10,.72);color:#fff;font-size:22px;cursor:pointer;display:grid;place-items:center;z-index:2}
.project-gallery-prev{left:14px}.project-gallery-next{right:14px}
.project-gallery-counter{position:absolute;right:14px;bottom:14px;background:rgba(20,13,10,.75);color:#fff;padding:7px 10px;font-size:12px;line-height:1}
.project-gallery-thumbs{display:flex;gap:8px;padding:10px;overflow-x:auto;scrollbar-width:thin;background:#211814}
.project-gallery-thumb{flex:0 0 72px;width:72px;height:56px;padding:0;border:2px solid transparent;background:#2e221d;cursor:pointer;overflow:hidden;opacity:.68}
.project-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.project-gallery-thumb.is-active{border-color:#fff;opacity:1}
.project-gallery-arrow[hidden],.project-gallery-counter[hidden],.project-gallery-thumbs[hidden]{display:none!important}
@media(max-width:720px){
  .css-modal-card{display:block}
  .project-gallery-stage{height:54svh;min-height:300px}
  .project-gallery-thumb{flex-basis:64px;width:64px;height:50px}
  .project-gallery-arrow{width:42px;height:42px}
}

/* PROJECT DETAILS - gallery + description + consultation card */
.css-modal:target{
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
.css-modal-card.project-detail-card{
  display:block;
  width:min(1180px,100%);
  max-height:calc(100svh - 56px);
  overflow:auto;
  background:var(--bg);
  box-shadow:0 28px 90px rgba(20,13,10,.32);
}
.project-detail-card .css-modal-close{
  position:sticky;
  float:right;
  top:14px;
  right:14px;
  margin:14px 14px -58px 0;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(43,29,24,.92);
  backdrop-filter:blur(8px);
}
.project-detail-card .project-gallery{
  width:100%;
  background:#17110e;
}
.project-detail-card .project-gallery-stage{
  min-height:460px;
  height:min(68vh,720px);
  background:#17110e;
}
.project-detail-card .project-gallery-main{
  object-fit:contain;
  background:#17110e;
}
.project-detail-card .project-gallery-thumbs{
  padding:12px 16px;
  gap:10px;
}
.project-detail-card .project-gallery-thumb{
  flex:0 0 86px;
  width:86px;
  height:64px;
}
.project-detail-body{
  padding:52px 54px 0;
}
.project-detail-head{
  padding-bottom:34px;
  border-bottom:1px solid var(--line);
}
.project-detail-head .eyebrow{
  margin-bottom:14px;
}
.project-detail-head h2{
  max-width:900px;
  margin-bottom:26px;
  font-size:clamp(38px,4.8vw,62px);
}
.project-facts{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}
.project-facts span{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--line);
  background:var(--bg2);
  color:var(--brand);
  font-size:13px;
  line-height:1.2;
  font-weight:800;
}
.project-work-copy{
  padding:42px 0 6px;
  max-width:980px;
}
.project-work-copy h3{
  margin:0 0 24px;
  font-size:clamp(26px,2.8vw,36px);
}
.project-description{
  display:grid;
  gap:20px;
}
.project-description p{
  margin:0;
  color:#4f4944;
  font-size:17px;
  line-height:1.72;
}
.project-contact-card{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:54px;
  align-items:start;
  margin:48px -54px 0;
  padding:50px 54px 54px;
  background:var(--brand);
  color:#fff;
}
.project-contact-copy .eyebrow{
  color:#e2c8b9;
  margin-bottom:14px;
}
.project-contact-copy h3{
  margin-bottom:18px;
  color:#fff;
  font-size:clamp(30px,3.3vw,44px);
}
.project-contact-copy p{
  margin:0;
  max-width:480px;
  color:#f0dfd5;
  font-size:16px;
  line-height:1.6;
}
.project-lead-form{
  gap:12px;
}
.project-lead-form label{
  color:#f1dfd5;
}
.project-lead-form input,
.project-lead-form select{
  border-color:rgba(255,255,255,.34);
  background:#fff;
  color:var(--ink);
}
.project-lead-form .consent{
  color:#f0dfd5;
}
.project-lead-form .btn-light{
  width:100%;
  min-height:56px;
}

@media(max-width:820px){
  .css-modal{
    padding:0;
  }
  .css-modal-card.project-detail-card{
    width:100%;
    max-height:none;
    min-height:100svh;
    box-shadow:none;
  }
  .project-detail-card .project-gallery-stage{
    height:52svh;
    min-height:300px;
  }
  .project-detail-card .project-gallery-thumb{
    flex-basis:70px;
    width:70px;
    height:54px;
  }
  .project-detail-body{
    padding:34px 22px 0;
  }
  .project-detail-head{
    padding-bottom:28px;
  }
  .project-detail-head h2{
    font-size:36px;
    line-height:1.02;
  }
  .project-work-copy{
    padding-top:32px;
  }
  .project-description{
    gap:17px;
  }
  .project-description p{
    font-size:15px;
    line-height:1.67;
  }
  .project-contact-card{
    grid-template-columns:1fr;
    gap:30px;
    margin:38px -22px 0;
    padding:38px 22px 42px;
  }
  .project-lead-form{
    grid-template-columns:1fr;
  }
  .project-lead-form .field,
  .project-lead-form .field.full,
  .project-lead-form .consent{
    grid-column:1;
  }
}

@media(max-width:420px){
  .project-detail-card .css-modal-close{
    width:42px;
    height:42px;
  }
  .project-detail-card .project-gallery-stage{
    height:46svh;
    min-height:280px;
  }
  .project-facts span{
    font-size:12px;
    min-height:34px;
  }
  .project-detail-head h2{
    font-size:32px;
  }
  .project-work-copy h3{
    font-size:28px;
  }
}
body.project-modal-open{overflow:hidden}

/* =========================================================
   PROJECT UX - final revision
   Entire card opens; mixed portrait/landscape gallery; fullscreen viewer.
   ========================================================= */

/* Entire project card is one clear interaction target */
.project-card-link{
  display:block;
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  outline-offset:5px;
}
.project-card-link:visited{color:inherit}
.project-card-link:focus-visible{outline:2px solid var(--brand)}
.project-card-link .project-media{position:relative}
.project-card-link .project-card-cta{
  position:absolute;
  right:16px;
  bottom:16px;
  z-index:3;
  min-height:42px;
  padding:0 16px;
  display:flex;
  align-items:center;
  background:rgba(43,29,24,.9);
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.01em;
  backdrop-filter:blur(8px);
  transition:background .2s,transform .2s;
}
.project-card-link:hover .project-card-cta{background:var(--brand);transform:translateY(-2px)}
.project-card-link .project-open{color:var(--brand);font-weight:800;white-space:nowrap}
.project-card-link .project-open::after{content:""}
.project-card-link .project-data{align-items:center}

/* Project dialog: one continuous article, like a portfolio case page */
.css-modal[data-project-modal]{
  padding:28px;
  background:rgba(24,17,14,.84);
  backdrop-filter:blur(7px);
  overscroll-behavior:contain;
}
.css-modal[data-project-modal]:target{
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
.css-modal-card.project-detail-card{
  display:block!important;
  width:min(1220px,100%)!important;
  max-height:calc(100svh - 56px)!important;
  overflow:auto!important;
  position:relative;
  background:var(--bg)!important;
  box-shadow:0 28px 100px rgba(15,10,8,.34);
  scrollbar-gutter:stable;
}
.project-detail-card .css-modal-close{
  position:sticky!important;
  float:right;
  top:14px!important;
  right:14px!important;
  z-index:30;
  width:48px;
  height:48px;
  margin:14px 14px -62px 0!important;
  border:1px solid rgba(255,255,255,.28)!important;
  border-radius:0;
  display:grid;
  place-items:center;
  background:rgba(43,29,24,.9)!important;
  color:#fff;
  font-size:30px;
  line-height:1;
  backdrop-filter:blur(10px);
}
.project-detail-card .css-modal-close:hover{background:var(--brand)!important}

/* Gallery: portrait and landscape images are both shown without destructive cropping */
.project-detail-card .project-gallery{
  display:block!important;
  width:100%;
  min-width:0;
  background:#201713!important;
  overflow:hidden;
}
.project-detail-card .project-gallery-stage{
  position:relative;
  width:100%;
  height:clamp(500px,68vh,760px)!important;
  min-height:500px!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  isolation:isolate;
  background:#201713!important;
  cursor:zoom-in;
}
.project-gallery-backdrop,
.project-photo-viewer-backdrop{
  position:absolute;
  inset:-36px;
  z-index:-2;
  background-position:center;
  background-size:cover;
  filter:blur(30px) brightness(.42) saturate(.65);
  transform:scale(1.08);
  opacity:.85;
}
.project-gallery-stage::after,
.project-photo-viewer-stage::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(25,17,14,.34),rgba(25,17,14,.1) 50%,rgba(25,17,14,.34));
  pointer-events:none;
}
.project-detail-card .project-gallery-main{
  position:relative;
  z-index:1;
  width:100%!important;
  height:100%!important;
  max-width:100%;
  max-height:100%;
  object-fit:contain!important;
  object-position:center;
  background:transparent!important;
  cursor:zoom-in;
  user-select:none;
  -webkit-user-drag:none;
}
.project-gallery-stage.is-portrait .project-gallery-main{
  width:auto!important;
  max-width:min(58%,560px)!important;
  height:100%!important;
}
.project-gallery-stage.is-square .project-gallery-main{
  width:auto!important;
  max-width:min(78%,720px)!important;
  height:100%!important;
}
.project-gallery-arrow{
  position:absolute;
  z-index:10;
  top:50%;
  transform:translateY(-50%);
  width:52px!important;
  height:68px!important;
  border:0!important;
  border-radius:0!important;
  background:rgba(247,243,238,.94)!important;
  color:var(--dark)!important;
  display:grid!important;
  place-items:center;
  font-size:42px!important;
  font-weight:300;
  line-height:1;
  cursor:pointer;
  box-shadow:0 7px 24px rgba(0,0,0,.12);
  transition:background .2s,transform .2s;
}
.project-gallery-arrow:hover{background:#fff!important}
.project-gallery-prev{left:18px!important}
.project-gallery-next{right:18px!important}
.project-gallery-arrow[hidden]{display:none!important}
.project-gallery-counter{
  position:absolute!important;
  z-index:10;
  right:18px!important;
  bottom:18px!important;
  padding:8px 11px!important;
  background:rgba(43,29,24,.82)!important;
  color:#fff;
  font-size:12px;
  line-height:1;
  backdrop-filter:blur(8px);
}
.project-gallery-counter[hidden]{display:none!important}
.project-gallery-zoom{
  position:absolute;
  z-index:10;
  left:18px;
  bottom:18px;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(43,29,24,.76);
  color:#fff;
  font-size:21px;
  cursor:pointer;
  backdrop-filter:blur(8px);
}
.project-gallery-zoom:hover{background:var(--brand)}
.project-detail-card .project-gallery-thumbs{
  display:flex!important;
  gap:10px!important;
  width:100%;
  padding:12px 16px 14px!important;
  overflow-x:auto!important;
  background:#201713!important;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:#745544 #201713;
}
.project-detail-card .project-gallery-thumbs[hidden]{display:none!important}
.project-detail-card .project-gallery-thumb{
  flex:0 0 92px!important;
  width:92px!important;
  height:68px!important;
  padding:0!important;
  border:2px solid transparent!important;
  background:#3a2b24!important;
  opacity:.58;
  overflow:hidden;
  cursor:pointer;
  scroll-snap-align:center;
  transition:opacity .2s,border-color .2s,transform .2s;
}
.project-detail-card .project-gallery-thumb:hover{opacity:.9;transform:translateY(-1px)}
.project-detail-card .project-gallery-thumb.is-active{opacity:1;border-color:#fff!important}
.project-detail-card .project-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* Content is below the gallery, not squeezed next to it */
.project-detail-body{padding:50px 56px 0!important}
.project-detail-head{padding-bottom:34px!important;border-bottom:1px solid var(--line)}
.project-detail-head h2{max-width:970px!important;font-size:clamp(38px,4.6vw,60px)!important;line-height:1!important;margin-bottom:26px!important}
.project-facts{display:flex!important;flex-wrap:wrap;gap:9px!important}
.project-facts span{min-height:37px!important;padding:8px 13px!important;background:var(--bg2)!important}
.project-work-copy{padding:40px 0 10px!important;max-width:970px!important}
.project-work-copy h3{margin:0 0 24px!important}
.project-description{display:grid!important;gap:19px!important}
.project-description p{font-size:17px!important;line-height:1.7!important;color:#4f4944!important;margin:0!important}
.project-contact-card{
  margin:48px -56px 0!important;
  padding:48px 56px 54px!important;
  grid-template-columns:.92fr 1.08fr!important;
  gap:54px!important;
  background:var(--brand)!important;
}

/* Full-screen image viewer for close inspection */
.project-photo-viewer{
  position:fixed;
  inset:0;
  z-index:9000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(15,10,8,.96);
}
.project-photo-viewer.is-open{display:flex}
.project-photo-viewer-stage{
  position:relative;
  width:min(1500px,100%);
  height:calc(100svh - 40px);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  isolation:isolate;
  background:#17110e;
}
.project-photo-viewer-img{
  position:relative;
  z-index:2;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  background:transparent;
  user-select:none;
  -webkit-user-drag:none;
}
.project-photo-viewer-stage.is-portrait .project-photo-viewer-img{width:auto;max-width:min(58%,760px);height:100%}
.project-photo-viewer-stage.is-square .project-photo-viewer-img{width:auto;max-width:min(82%,1000px);height:100%}
.project-photo-viewer-close{
  position:fixed;
  z-index:9020;
  top:22px;
  right:24px;
  width:52px;
  height:52px;
  border:1px solid rgba(255,255,255,.32);
  background:rgba(43,29,24,.78);
  color:#fff;
  font-size:32px;
  cursor:pointer;
  backdrop-filter:blur(8px);
}
.project-photo-viewer-arrow{
  position:absolute;
  z-index:10;
  top:50%;
  transform:translateY(-50%);
  width:56px;
  height:74px;
  border:0;
  background:rgba(247,243,238,.94);
  color:var(--dark);
  font-size:44px;
  cursor:pointer;
}
.project-photo-viewer-prev{left:18px}
.project-photo-viewer-next{right:18px}
.project-photo-viewer-arrow[hidden]{display:none!important}
.project-photo-viewer-counter{
  position:absolute;
  z-index:10;
  right:22px;
  bottom:22px;
  padding:9px 12px;
  background:rgba(43,29,24,.8);
  color:#fff;
  font-size:13px;
}
body.project-modal-open,
body.photo-viewer-open{overflow:hidden!important}

@media(max-width:820px){
  .project-card-link .project-card-cta{right:12px;bottom:12px;min-height:38px;padding:0 13px}
  .css-modal[data-project-modal]{padding:0!important;background:var(--bg)!important;backdrop-filter:none}
  .css-modal-card.project-detail-card{width:100%!important;max-height:none!important;min-height:100svh!important;box-shadow:none!important;scrollbar-gutter:auto}
  .project-detail-card .css-modal-close{position:fixed!important;top:12px!important;right:12px!important;margin:0!important;width:44px;height:44px}
  .project-detail-card .project-gallery-stage{height:58svh!important;min-height:340px!important;max-height:620px}
  .project-gallery-stage.is-portrait .project-gallery-main{max-width:min(78%,440px)!important}
  .project-gallery-stage.is-square .project-gallery-main{max-width:92%!important}
  .project-gallery-arrow{width:44px!important;height:58px!important;font-size:36px!important}
  .project-gallery-prev{left:8px!important}.project-gallery-next{right:8px!important}
  .project-gallery-counter{right:10px!important;bottom:10px!important}
  .project-gallery-zoom{left:10px;bottom:10px;width:40px;height:40px}
  .project-detail-card .project-gallery-thumbs{padding:9px 10px 11px!important;gap:8px!important}
  .project-detail-card .project-gallery-thumb{flex-basis:74px!important;width:74px!important;height:56px!important}
  .project-detail-body{padding:32px 22px 0!important}
  .project-detail-head h2{font-size:clamp(31px,9vw,40px)!important;line-height:1.02!important}
  .project-work-copy{padding-top:30px!important}
  .project-description p{font-size:15px!important;line-height:1.66!important}
  .project-contact-card{grid-template-columns:1fr!important;gap:28px!important;margin:38px -22px 0!important;padding:36px 22px 42px!important}
  .project-photo-viewer{padding:0}
  .project-photo-viewer-stage{width:100%;height:100svh}
  .project-photo-viewer-stage.is-portrait .project-photo-viewer-img{max-width:86%}
  .project-photo-viewer-stage.is-square .project-photo-viewer-img{max-width:96%}
  .project-photo-viewer-close{top:12px;right:12px;width:46px;height:46px}
  .project-photo-viewer-arrow{width:44px;height:60px;font-size:36px}
  .project-photo-viewer-prev{left:6px}.project-photo-viewer-next{right:6px}
  .project-photo-viewer-counter{right:12px;bottom:12px}
}

@media(max-width:520px){
  .project-data{gap:10px!important;align-items:flex-end!important}
  .project-data span:first-child{max-width:58%}
  .project-card-link .project-open{font-size:12px}
  .project-detail-card .project-gallery-stage{height:50svh!important;min-height:300px!important}
  .project-gallery-stage.is-portrait .project-gallery-main{max-width:84%!important}
  .project-gallery-backdrop{filter:blur(24px) brightness(.38) saturate(.6)}
  .project-gallery-arrow{width:40px!important;height:54px!important}
}


/* PROJECT GALLERY - robust direct-file version */
.project-card-link{position:relative!important;overflow:hidden}
.project-card-link .project-media,.project-card-link .project-meta{pointer-events:none}
.project-card-link:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(45,30,23,.12)}
.project-card-link .project-open{font-size:24px!important;line-height:1!important;color:var(--brand)!important}
.project-gallery-stage{touch-action:pan-y;user-select:none}
.project-gallery-status{
  position:absolute;z-index:8;left:50%;top:50%;transform:translate(-50%,-50%);
  padding:10px 14px;background:rgba(43,29,24,.82);color:#fff;font-size:13px;
  backdrop-filter:blur(8px);white-space:nowrap;pointer-events:none
}
.project-gallery.is-ready .project-gallery-status{display:none}
.project-detail-card .project-gallery-main{transition:opacity .16s ease}
.project-detail-card .project-gallery-stage.is-portrait .project-gallery-main{
  width:auto!important;height:calc(100% - 28px)!important;max-width:min(62%,600px)!important;object-fit:contain!important;
  box-shadow:0 18px 50px rgba(0,0,0,.22)
}
.project-detail-card .project-gallery-stage.is-landscape .project-gallery-main{
  width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important
}
.project-detail-card .project-gallery-stage.is-square .project-gallery-main{
  width:auto!important;height:calc(100% - 28px)!important;max-width:min(82%,820px)!important;object-fit:contain!important
}
.project-photo-viewer-stage{touch-action:pan-y}
@media(max-width:820px){
  .project-card-link:hover{transform:none;box-shadow:none}
  .project-detail-card .project-gallery-stage.is-portrait .project-gallery-main{height:calc(100% - 20px)!important;max-width:82%!important}
  .project-detail-card .project-gallery-stage.is-square .project-gallery-main{height:calc(100% - 20px)!important;max-width:94%!important}
  .project-gallery-status{font-size:12px}
}

/* =========================================================
   PROJECT GALLERY v3 - show the whole photo in the viewport.
   Landscape images use the full gallery area with object-fit: contain.
   Portrait/square images fit by height; the remaining area is filled
   with a blurred copy of the same image via .project-gallery-backdrop.
   ========================================================= */
.project-detail-card .project-gallery-stage{
  position:relative!important;
  width:100%!important;
  height:clamp(520px,70vh,780px)!important;
  min-height:520px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:#211712!important;
}

.project-detail-card .project-gallery-backdrop,
.project-photo-viewer-backdrop{
  position:absolute!important;
  inset:-8%!important;
  z-index:-2!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  filter:blur(30px) brightness(.68) saturate(.92)!important;
  transform:scale(1.12)!important;
  opacity:1!important;
}

.project-detail-card .project-gallery-stage::after,
.project-photo-viewer-stage::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:-1!important;
  background:rgba(20,13,10,.10)!important;
  pointer-events:none!important;
}

/* Never crop the active project image. */
.project-detail-card .project-gallery-main{
  position:relative!important;
  z-index:1!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:transparent!important;
  box-shadow:none!important;
  max-width:100%!important;
  max-height:100%!important;
}

/* Horizontal: occupy the whole viewing area, while preserving the full frame. */
.project-detail-card .project-gallery-stage.is-landscape .project-gallery-main{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
}

/* Vertical: fit strictly by height; blurred duplicate fills the side space. */
.project-detail-card .project-gallery-stage.is-portrait .project-gallery-main{
  width:auto!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
}

/* Near-square: also fit by height so no edge is lost. */
.project-detail-card .project-gallery-stage.is-square .project-gallery-main{
  width:auto!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
}

/* Fullscreen viewer follows exactly the same rules. */
.project-photo-viewer-stage{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:#211712!important;
}
.project-photo-viewer-img{
  position:relative!important;
  z-index:2!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:transparent!important;
  max-width:100%!important;
  max-height:100%!important;
}
.project-photo-viewer-stage.is-landscape .project-photo-viewer-img{
  width:100%!important;
  height:100%!important;
}
.project-photo-viewer-stage.is-portrait .project-photo-viewer-img,
.project-photo-viewer-stage.is-square .project-photo-viewer-img{
  width:auto!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
}

@media(max-width:820px){
  .project-detail-card .project-gallery-stage{
    height:58svh!important;
    min-height:360px!important;
    max-height:680px!important;
  }
  .project-detail-card .project-gallery-stage.is-landscape .project-gallery-main{
    width:100%!important;
    height:100%!important;
  }
  .project-detail-card .project-gallery-stage.is-portrait .project-gallery-main,
  .project-detail-card .project-gallery-stage.is-square .project-gallery-main{
    width:auto!important;
    height:100%!important;
    max-width:100%!important;
  }
  .project-detail-card .project-gallery-backdrop,
  .project-photo-viewer-backdrop{
    filter:blur(26px) brightness(.64) saturate(.88)!important;
  }
}

@media(max-width:520px){
  .project-detail-card .project-gallery-stage{
    height:52svh!important;
    min-height:320px!important;
  }
}


/* PROJECT MODAL v4 - JS-controlled opening without URL hash jumps. */
.css-modal[data-project-modal].is-open{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
}


/* =========================================================
   MORE REAL WORKS - same adaptive gallery logic as projects
   v5: no destructive crop for portrait/landscape sources.
   ========================================================= */
.gallery-track{align-items:stretch}
.gallery-item{
  position:relative!important;
  isolation:isolate;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:#201713!important;
  cursor:zoom-in!important;
}
.gallery-item::before{
  content:\"\";
  position:absolute;
  inset:-28px;
  z-index:-2;
  background-image:var(--gallery-photo);
  background-position:center;
  background-size:cover;
  filter:blur(26px) brightness(.44) saturate(.68);
  transform:scale(1.1);
  opacity:.9;
}
.gallery-item::after{
  content:\"\";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(25,17,14,.34),rgba(25,17,14,.08) 50%,rgba(25,17,14,.34));
  pointer-events:none;
}
.gallery-item img{
  position:relative;
  z-index:1;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
  transition:transform .28s ease,opacity .2s ease!important;
  user-select:none;
  -webkit-user-drag:none;
}
.gallery-item:hover img{transform:scale(1.012)!important}
.gallery-item:focus-visible{outline:3px solid #fff;outline-offset:-3px}

/* The shared fullscreen viewer is also used by \"Больше реальных работ\". */
.project-photo-viewer-stage{isolation:isolate!important}
.project-photo-viewer-img{object-fit:contain!important;object-position:center!important}

@media(max-width:720px){
  .gallery-item{height:330px!important}
  .gallery-item::before{filter:blur(22px) brightness(.4) saturate(.65)}
}


/* =========================================================
   iOS / ANDROID MOBILE PROJECT SCROLL PARITY - 04.09.2026
   One vertical scroll container for project pages; horizontal photo gestures
   stay horizontal and do not hijack normal page scrolling on Safari iOS.
   ========================================================= */
.css-modal[data-project-modal].is-open{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
  touch-action:pan-y;
}
.project-gallery-stage,
.project-photo-viewer-stage{
  touch-action:pan-y!important;
  -webkit-user-select:none;
  user-select:none;
}
.project-detail-card .project-gallery-thumbs,
.gallery-track,
.process{
  -webkit-overflow-scrolling:touch;
}
.project-detail-card .project-gallery-thumbs{
  touch-action:pan-x;
  overscroll-behavior-x:contain;
}
@media(max-width:820px){
  /* Safari is most stable when the fixed modal itself is the only vertical scroller. */
  .css-modal[data-project-modal].is-open{
    height:100dvh;
    max-height:100dvh;
  }
  .css-modal-card.project-detail-card{
    overflow:visible!important;
    max-height:none!important;
    min-height:100dvh!important;
  }
}

/* =========================================================
   MORE REAL WORKS - square previews (04.09.2026)
   Preview cards are always 1:1 and crop the source image only inside
   the page gallery. Fullscreen viewer keeps the original proportions.
   ========================================================= */
#galleryTrack{
  align-items:start!important;
}
#galleryTrack .gallery-item{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  overflow:hidden!important;
  background:#201713!important;
}
#galleryTrack .gallery-item::before,
#galleryTrack .gallery-item::after{
  content:none!important;
  display:none!important;
}
#galleryTrack .gallery-item img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  background:transparent!important;
}
#galleryTrack .gallery-item:hover img{
  transform:scale(1.03)!important;
}
@media(max-width:720px){
  #galleryTrack .gallery-item{
    height:auto!important;
    aspect-ratio:1 / 1!important;
  }
}


/* Performance: first-screen copy is immediately visible. */
.js .hero-content.reveal{opacity:1;transform:none;transition:none}
.header.scrolled{background:rgba(43,29,24,.98);backdrop-filter:none;-webkit-backdrop-filter:none}
.css-modal[data-project-modal]{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
/* Small pre-blurred images preserve the photo background without a live full-screen blur. */
.project-detail-card .project-gallery-backdrop.is-preblurred,
.project-photo-viewer-backdrop.is-preblurred{filter:none!important;transform:none!important}
/* The parent must allow native horizontal scrolling in its thumbnail strip. */
.css-modal[data-project-modal].is-open{touch-action:auto}
.project-gallery-stage,.project-photo-viewer-stage{touch-action:pan-y pinch-zoom!important}
.project-detail-card .project-gallery-thumbs{touch-action:auto}
.audience-card img{transition:none}
@media(hover:none){
  .project:hover .project-media img,
  #galleryTrack .gallery-item:hover img{transform:none!important}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
  .js .reveal{opacity:1!important;transform:none!important}
}

/* Video reviews and shared compact media controls - 07.09.2026 */
.review-layout.review-layout-video{grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:clamp(28px,5vw,72px);align-items:start}
.review-layout-video>div{min-width:0}
.video-reviews{width:100%;max-width:360px}
.review-video-stage{position:relative;width:100%;aspect-ratio:9/16;background:var(--dark);border-radius:12px;overflow:hidden;border:1px solid var(--line)}
.review-video-stage iframe{display:block;width:100%;height:100%;position:absolute;inset:0;border:0}
.review-video-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}
#reviewVideoCount{font-size:14px;letter-spacing:.1em;font-variant-numeric:tabular-nums;color:var(--muted)}
.review-video-title{font-size:16px;line-height:1.45;margin:18px 0 8px;font-weight:600;min-height:2.9em}
.review-video-link{font-size:14px;color:var(--brand);text-decoration:underline;text-underline-offset:4px}
.media-nav,.gallery-controls .circle-btn,.project-gallery-arrow,.project-photo-viewer-arrow{display:grid!important;place-items:center;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:1px solid var(--line)!important;border-radius:50%!important;background:rgba(247,243,238,.97)!important;color:var(--brand)!important;box-shadow:0 3px 12px rgba(43,29,24,.10)!important;cursor:pointer;touch-action:manipulation;transition:background .18s,color .18s,box-shadow .18s}
.media-nav svg,.gallery-controls .circle-btn svg,.project-gallery-arrow svg,.project-photo-viewer-arrow svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.media-nav:hover,.gallery-controls .circle-btn:hover,.project-gallery-arrow:hover,.project-photo-viewer-arrow:hover{background:var(--brand)!important;color:#fff!important;box-shadow:0 4px 16px rgba(43,29,24,.18)!important}
.media-nav:focus-visible,.gallery-controls .circle-btn:focus-visible,.project-gallery-arrow:focus-visible,.project-photo-viewer-arrow:focus-visible{outline:2px solid var(--brand2);outline-offset:4px}
.project-gallery-arrow[hidden],.project-photo-viewer-arrow[hidden]{display:none!important}
@media(max-width:720px){
 .review-layout.review-layout-video{grid-template-columns:minmax(0,1fr);gap:36px}
 .video-reviews{max-width:340px;justify-self:center}
 .gallery-head .gallery-controls{display:flex!important}
 .gallery-head{flex-wrap:wrap;gap:16px}
}
@media(prefers-reduced-motion:reduce){.media-nav,.gallery-controls .circle-btn,.project-gallery-arrow,.project-photo-viewer-arrow{transition:none}}

/* Equal review columns; swipe surface stays outside the embedded player. */
.review-layout.review-layout-video{align-items:stretch}
.video-reviews{display:flex;flex-direction:column}
.review-video-stage{flex:1;aspect-ratio:auto;min-height:560px}
.review-swipe-area{touch-action:pan-y;user-select:none;-webkit-user-select:none;padding:16px 0 4px}
.review-swipe-hint{font-size:14px;line-height:1.4;color:var(--muted);text-align:center;margin:0 0 12px}
.review-swipe-area .review-video-controls{margin-top:0}
.review-video-link{align-self:flex-start}
@media(hover:hover) and (pointer:fine){.review-swipe-hint{display:none}}
@media(max-width:720px){.review-video-stage{flex:none;min-height:0;aspect-ratio:9/16}}

/* Restore the same content inset as engineering-solution cards. */
.project-card-link .project-meta{padding:20px 28px 26px}


/* Legal links, separate consent and compact cookie card - 08.09.2026 */
.consent a,.form-legal-note a,.cookie-banner a,.review-cookie-placeholder a{text-decoration:underline;text-underline-offset:3px}
.consent a:hover,.form-legal-note a:hover,.cookie-banner a:hover,.review-cookie-placeholder a:hover{opacity:.78}
.form-legal-note{grid-column:1/-1;margin:-8px 0 2px;padding-left:31px;font-size:12px;line-height:1.45;color:var(--muted)}
.form-legal-note a{color:inherit}
.cookie-banner{display:none;position:fixed;z-index:1000;right:18px;bottom:18px;width:min(560px,calc(100vw - 36px));color:var(--ink)}
.cookie-banner.is-visible{display:block;animation:cookieCardIn .22s ease-out both}
.cookie-banner__inner{width:100%;margin:0;background:#fff;border:1px solid rgba(86,67,57,.18);border-radius:4px;box-shadow:0 8px 28px rgba(43,29,24,.16);padding:13px 14px;display:grid;grid-template-columns:minmax(0,1fr) 142px;align-items:center;gap:14px}
.cookie-banner__copy p{font-size:12px;line-height:1.42;color:#665d58;margin:0}
.cookie-banner__links{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto auto;grid-auto-flow:column;align-items:start;gap:6px 12px;margin-top:8px}
.cookie-banner__links a{font-size:10.5px;line-height:1.25;color:var(--brand);font-weight:650;white-space:normal}
.cookie-banner__actions{display:grid;grid-template-columns:1fr;gap:6px;margin:0}
.cookie-banner__actions .btn{width:100%;min-height:34px;padding:0 10px;font-size:11px;border-radius:3px}
.cookie-essential-btn{background:#fff;border-color:var(--line);color:var(--ink)}
.cookie-essential-btn:hover{border-color:var(--brand);color:var(--brand)}
@keyframes cookieCardIn{from{opacity:0;transform:translate3d(0,8px,0)}to{opacity:1;transform:none}}
.review-video-stage{isolation:isolate}
.review-cookie-placeholder{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:linear-gradient(180deg,#2b1d18,#1b1310);color:#fff}
.review-cookie-placeholder[hidden]{display:none!important}
.review-cookie-placeholder p{font-size:15px;line-height:1.5;margin:0 0 18px;color:#e8dfd8}
.review-cookie-placeholder .btn{margin-bottom:14px}
.review-cookie-placeholder .review-cookie-placeholder__note{font-size:12px;margin:0;color:#cdbfb6}
.review-cookie-placeholder a{color:#fff}
@media(max-width:760px){
  .cookie-banner{right:8px;left:8px;bottom:8px;width:auto}
  .cookie-banner__inner{padding:12px;border-radius:4px;grid-template-columns:1fr;gap:10px}
  .cookie-banner__copy p{font-size:11.5px;line-height:1.4}
  .cookie-banner__links{gap:4px 10px;margin-top:6px}
  .cookie-banner__links a{font-size:10px}
  .cookie-banner__actions{grid-template-columns:1fr 1fr;gap:7px}
  .cookie-banner__actions .btn{min-height:36px;padding:0 8px;font-size:10.5px}
  .form-legal-note{padding-left:0;margin-top:-2px}
}
@media(max-width:390px){
  .cookie-banner__links a{white-space:normal}
}
@media(prefers-reduced-motion:reduce){.cookie-banner.is-visible{animation:none}}

/* =========================================================
   FINAL MEDIA ALIGNMENT + SQUARE VIEWERS - 08.09.2026
   1) Consultation image follows the exact height of the form column.
   2) Every opened photo is shown inside one consistent 1:1 viewing frame.
   ========================================================= */

/* Consultation: the left/content column determines the row height.
   The photo is absolutely fitted into the stretched grid cell, so it can
   never make the section taller than the form. */
@media (min-width:721px){
  #consult .form-grid{
    align-items:stretch!important;
  }
  #consult .form-media{
    position:relative!important;
    align-self:stretch!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  #consult .form-media img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center!important;
  }
}
@media (max-width:720px){
  #consult .form-media{
    position:relative!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  /* Reserve a 4:3 frame even when aspect-ratio is unavailable in Safari. */
  #consult .form-media::before{
    content:"";
    display:block;
    padding-top:75%;
  }
  #consult .form-media img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    object-fit:cover!important;
    object-position:center!important;
  }
}

/* Project gallery: all project photos are viewed as a square, regardless
   of the source orientation. The frame stays as large as the viewport allows. */
.project-detail-card .project-gallery{
  padding:18px 0 0!important;
  background:#201713!important;
}
.project-detail-card .project-gallery-stage{
  width:min(100%,calc(100svh - 116px))!important;
  max-width:860px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:1 / 1!important;
  margin:0 auto!important;
  background:#201713!important;
}
.project-detail-card .project-gallery-backdrop,
.project-detail-card .project-gallery-stage::after{
  display:none!important;
}
.project-detail-card .project-gallery-main,
.project-detail-card .project-gallery-stage.is-landscape .project-gallery-main,
.project-detail-card .project-gallery-stage.is-portrait .project-gallery-main,
.project-detail-card .project-gallery-stage.is-square .project-gallery-main{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
}
.project-detail-card .project-gallery-thumbs{
  max-width:860px!important;
  margin:0 auto!important;
}
.project-detail-card .project-gallery-thumb,
.project-detail-card .project-gallery-thumb img{
  aspect-ratio:1 / 1!important;
}
.project-detail-card .project-gallery-thumb{
  height:auto!important;
}
.project-detail-card .project-gallery-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

/* Fullscreen photo viewer shared by projects and “Больше реальных работ”. */
.project-photo-viewer{
  padding:18px!important;
}
.project-photo-viewer-stage{
  width:min(calc(100vw - 36px),calc(100svh - 36px),1180px)!important;
  height:auto!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:1 / 1!important;
  flex:0 0 auto!important;
  background:#17110e!important;
}
.project-photo-viewer-backdrop,
.project-photo-viewer-stage::after{
  display:none!important;
}
.project-photo-viewer-img,
.project-photo-viewer-stage.is-landscape .project-photo-viewer-img,
.project-photo-viewer-stage.is-portrait .project-photo-viewer-img,
.project-photo-viewer-stage.is-square .project-photo-viewer-img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
}

@media (max-width:820px){
  .project-detail-card .project-gallery{
    padding-top:0!important;
  }
  .project-detail-card .project-gallery-stage{
    width:min(100%,calc(100svh - 82px))!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1 / 1!important;
  }
  .project-detail-card .project-gallery-main,
  .project-detail-card .project-gallery-stage.is-landscape .project-gallery-main,
  .project-detail-card .project-gallery-stage.is-portrait .project-gallery-main,
  .project-detail-card .project-gallery-stage.is-square .project-gallery-main{
    width:100%!important;
    height:100%!important;
    max-width:none!important;
  }
  .project-detail-card .project-gallery-thumb{
    flex-basis:68px!important;
    width:68px!important;
    height:68px!important;
  }
  .project-photo-viewer{
    padding:8px!important;
  }
  .project-photo-viewer-stage{
    width:min(calc(100vw - 16px),calc(100svh - 16px))!important;
    height:auto!important;
    aspect-ratio:1 / 1!important;
  }
  .project-photo-viewer-img,
  .project-photo-viewer-stage.is-landscape .project-photo-viewer-img,
  .project-photo-viewer-stage.is-portrait .project-photo-viewer-img,
  .project-photo-viewer-stage.is-square .project-photo-viewer-img{
    width:100%!important;
    height:100%!important;
    max-width:none!important;
  }
}

/* Photo-copy deterrence. The actual protection is the watermark baked/served on every photo. */
img.protected-photo,
.gallery-item img,
.project-card img,
.project-gallery img,
.project-photo-viewer img,
.audience-card img,
.form-media img,
.founder-photo img{
  -webkit-user-drag:none;
  user-drag:none;
  -webkit-touch-callout:none;
  user-select:none;
  -webkit-user-select:none;
}
.hero-bg,.project-media,.gallery-item,.audience-card,.form-media,.founder-photo,
.company-grid,.project-gallery-stage,.project-photo-viewer-stage{
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
}

/* Contact options in the final page section. */
.cta-contact-actions{display:flex;flex-direction:column;gap:12px;align-items:stretch}
.cta-contact-actions .btn{white-space:nowrap;text-align:center}

/* Keep the final contact buttons together on desktop; retain the mobile layout. */
@media(min-width:721px){
  .cta-strip-contacts{grid-template-columns:minmax(0,1fr) auto;gap:12px 32px}
  .cta-strip-contacts h3,.cta-strip-contacts p{grid-column:1}
  .cta-strip-contacts .cta-contact-actions{grid-column:2;grid-row:1 / span 2;flex-direction:row;align-items:center}
}
@media(min-width:721px) and (max-width:1050px){
  .cta-strip-contacts{grid-template-columns:1fr;gap:20px}
  .cta-strip-contacts .cta-contact-actions{grid-column:1;grid-row:auto}
}
