
:root{
  --navy:#082f5b; --navy2:#0b447b; --yellow:#f4bf18; --red:#d9232e;
  --bg:#f5f8fb; --text:#10253d; --muted:#61758a; --white:#fff; --line:#dbe4ed;
  --shadow:0 18px 50px rgba(8,47,91,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
.container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.header-inner{height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.logo{height:52px;max-width:235px;object-fit:contain}
.nav{display:flex;gap:24px;font-size:14px;font-weight:700}
.nav a:hover{color:var(--navy2)}
.top-actions{display:flex;align-items:center;gap:10px}
.lang{font-weight:700;font-size:13px;color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;padding:14px 20px;font-weight:800;border:0;cursor:pointer;transition:.2s}
.btn:hover{transform:translateY(-2px)}
.btn-yellow{background:var(--yellow);color:#071f38}
.btn-navy{background:var(--navy);color:#fff}
.btn-outline{border:1px solid var(--navy);color:var(--navy);background:#fff}
.hero{background:#fff;overflow:hidden}
.hero-grid{min-height:620px;display:grid;grid-template-columns:1.05fr .95fr;align-items:stretch}
.hero-copy{padding:82px 0 70px}
.kicker{font-size:14px;letter-spacing:.10em;text-transform:uppercase;font-weight:800;color:var(--navy2)}
.kicker span{color:var(--yellow)}
h1{font-size:68px;line-height:.92;margin:24px 0 22px;letter-spacing:-.035em;color:#0a315f}
.hero p{font-size:24px;line-height:1.28;max-width:640px;margin:0 0 30px;color:#31465d}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-media{min-height:620px;background:linear-gradient(90deg,#fff0 0%,#fff0 100%),url('../assets/hero-building.jpg') center/cover no-repeat;position:relative}
.hero-media:after{content:"СОВРЕМЕННЫЕ\A ИНЖЕНЕРНЫЕ\A СИСТЕМЫ";white-space:pre;position:absolute;right:28px;top:90px;color:white;font-size:29px;line-height:1.08;font-weight:900;text-shadow:0 3px 18px rgba(0,0,0,.35)}
.trust-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.trust{background:#fff;padding:20px 26px;display:flex;align-items:center;gap:13px}
.trust b{display:block;color:var(--navy);font-size:22px}
.trust small{color:var(--muted)}
.icon-dot{width:44px;height:44px;border-radius:50%;background:#eaf1f8;display:grid;place-items:center;color:var(--navy);font-size:22px;flex:0 0 auto}
section{padding:84px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:30px}
.eyebrow{font-size:13px;font-weight:900;color:var(--navy2);text-transform:uppercase;letter-spacing:.12em}
h2{font-size:42px;line-height:1.05;margin:8px 0 0;color:#0a315f}
.section-lead{max-width:560px;color:var(--muted);line-height:1.6}
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.service-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.service-card img{width:100%;height:220px;object-fit:cover}
.service-body{padding:22px;display:flex;flex-direction:column;gap:12px;flex:1}
.service-code{font-size:34px;font-weight:900;color:var(--navy)}
.service-card.fire .service-code{color:var(--red)}
.service-title{font-size:16px;font-weight:800;line-height:1.25;min-height:40px}
.service-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.mini{padding:10px 12px;border-radius:10px;font-size:13px;font-weight:800}
.mini.call{background:#edf3f9;color:var(--navy)}
.mini.wa{background:#eaf8ef;color:#168a45}
.license{background:linear-gradient(135deg,#08325f,#0b447b);color:#fff}
.license-grid{display:grid;grid-template-columns:1fr .8fr;gap:40px;align-items:center}
.license h2{color:#fff}
.license p{color:#d8e5f2;line-height:1.7}
.license-card{background:white;color:var(--text);border-radius:22px;padding:32px;box-shadow:0 22px 60px rgba(0,0,0,.18)}
.license-mark{font-size:64px}
.license-card b{font-size:34px;color:var(--navy)}
.license-card strong{font-size:28px;color:var(--yellow);display:block;margin-top:4px}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.about-card{background:#fff;border-radius:20px;padding:34px;box-shadow:var(--shadow)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:28px}
.stat{padding:20px;background:#f0f5fa;border-radius:14px}
.stat b{display:block;font-size:34px;color:var(--navy)}
.projects{background:#fff}
.projects-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.project{border:1px solid var(--line);border-radius:16px;padding:22px;background:#fff}
.project strong{font-size:19px;color:var(--navy)}
.project small{display:block;margin-top:8px;color:var(--muted)}
.pdf-card{margin-top:26px;border:2px dashed #bdcad6;border-radius:18px;padding:26px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fbfdff}
.contact{background:#082f5b;color:#fff}
.contact h2{color:#fff}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:42px;align-items:center}
.form{background:#fff;padding:24px;border-radius:18px;display:grid;gap:12px}
.form input,.form textarea{width:100%;padding:15px 16px;border:1px solid #ccd9e4;border-radius:10px;font:inherit}
.form textarea{min-height:110px;resize:vertical}
.form-note{font-size:12px;color:#74879a}
.footer{background:#fff;padding:38px 0}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .9fr;gap:40px}
.footer p,.footer a{color:#61758a;font-size:14px;line-height:1.7}
.floating{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;flex-direction:column;gap:10px}
.float-btn{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:22px;box-shadow:0 12px 28px rgba(0,0,0,.2)}
.float-call{background:#0b447b}.float-wa{background:#19a454}
.mobile-only{display:none}
@media(max-width:920px){
  .nav{display:none}.header-inner{height:66px}.logo{height:44px}
  .hero-grid{grid-template-columns:1fr}.hero-copy{padding:55px 0}.hero-media{min-height:360px}
  h1{font-size:52px}.hero p{font-size:20px}
  .trust-strip{grid-template-columns:repeat(2,1fr)}
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .license-grid,.about-grid,.contact-grid{grid-template-columns:1fr}
  .projects-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .container{width:min(100% - 24px,1180px)}
  .top-actions .btn{display:none}.lang{display:none}
  h1{font-size:42px}h2{font-size:32px}
  section{padding:58px 0}
  .hero-media{min-height:300px}.hero-media:after{font-size:22px;top:36px;right:18px}
  .trust-strip{grid-template-columns:1fr 1fr}.trust{padding:14px}.trust b{font-size:18px}
  .services-grid{grid-template-columns:1fr}.service-card img{height:210px}
  .projects-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .section-head{display:block}
  .pdf-card{display:block}.pdf-card .btn{margin-top:14px}
  .floating{right:12px;bottom:12px}
}


/* v2 additions */
.lang-switch{display:flex;gap:6px;align-items:center}
.lang-switch button{
  border:1px solid var(--line);background:#fff;color:var(--navy);
  border-radius:9px;padding:7px 9px;font-weight:800;cursor:pointer
}
.lang-switch button.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.realworks{background:#fff}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.gallery figure{margin:0;border-radius:16px;overflow:hidden;background:#edf3f8;box-shadow:var(--shadow)}
.gallery img{width:100%;height:280px;object-fit:cover;display:block;transition:transform .25s}
.gallery figure:hover img{transform:scale(1.025)}
.gallery figcaption{padding:11px 13px;font-size:13px;color:var(--muted);background:#fff}
.video-card{margin-top:18px;border-radius:18px;overflow:hidden;background:#071f38;box-shadow:var(--shadow)}
.video-card video{width:100%;max-height:620px;display:block;background:#000}
.contact-inline{display:flex;gap:14px;flex-wrap:wrap;margin-top:14px}
.email-link{font-weight:800;color:var(--navy2)}
.seo-note{font-size:12px;color:var(--muted)}
@media(max-width:900px){
  .gallery{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .gallery{grid-template-columns:1fr}
  .gallery img{height:230px}
  .lang-switch{gap:3px}
  .lang-switch button{padding:6px 7px;font-size:12px}
}

/* Final hero — real TEVORD ventilation project */
.hero-media{
  background:
    linear-gradient(90deg,rgba(8,47,91,.05),rgba(8,47,91,.18)),
    url('../assets/hero-real-ventilation.jpg') center/cover no-repeat !important;
}
.hero-media:after{
  background:rgba(8,47,91,.72);
  padding:18px 20px;
  border-left:5px solid var(--yellow);
  border-radius:10px 0 0 10px;
}

/* 2026-09 site refinements: one-line work/project rows, static license, new transparent logo */
.logo{
  height:46px;
  width:auto;
  max-width:245px;
  object-fit:contain;
}
.footer .logo{height:50px;max-width:260px}

.license-card.license-image-only{
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.license-card.license-image-only img{
  width:100%;
  max-height:520px;
  object-fit:contain;
  display:block;
  border-radius:14px;
  background:#fff;
  user-select:none;
  -webkit-user-drag:none;
}

/* Keep every real-work photo in one horizontal row on desktop and mobile. */
.gallery{
  display:flex;
  flex-wrap:nowrap;
  gap:14px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  padding:4px 2px 14px;
  scrollbar-width:thin;
  scrollbar-color:#b7c7d7 transparent;
}
.gallery figure{
  flex:0 0 250px;
  scroll-snap-align:start;
}
.gallery img{height:190px}

/* Keep completed projects in one horizontal row on desktop and mobile. */
.projects-grid{
  display:flex;
  flex-wrap:nowrap;
  gap:14px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  padding:4px 2px 14px;
  scrollbar-width:thin;
  scrollbar-color:#b7c7d7 transparent;
}
.project{
  flex:0 0 245px;
  scroll-snap-align:start;
  min-height:104px;
}

@media(max-width:920px){
  .gallery,.projects-grid{display:flex;grid-template-columns:none}
  .gallery figure{flex-basis:72vw;max-width:300px}
  .gallery img{height:200px}
  .project{flex-basis:68vw;max-width:280px}
}
@media(max-width:600px){
  .logo{height:40px;max-width:190px}
  .footer .logo{height:46px;max-width:220px}
  .gallery{display:flex;grid-template-columns:none;gap:12px}
  .gallery figure{flex:0 0 82vw;max-width:310px}
  .gallery img{height:205px}
  .projects-grid{display:flex;grid-template-columns:none;gap:12px}
  .project{flex:0 0 78vw;max-width:290px}
  .license-card.license-image-only{padding:10px}
}
