/* ===== TOKENS ===== */
:root{
  --navy: #09193A;
  --navy-2: #0e2148;
  --black: #1a1a1a;
  --gray-text: #4a4a4a;
  --border: #dcdcdc;
  --white: #ffffff;
  --container: 1200px;
  --gap: 20px;
  --radius: 10px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter', sans-serif;
  color:var(--black);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}
h1,h2,h3{
  font-family:'Oswald', sans-serif;
  text-transform:uppercase;
  letter-spacing:0.5px;
  line-height:1.05;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{list-style:none;}
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

/* ===== PHOTO CONTAINERS (заполняются картинками из ACF) ===== */
.ph-photo{
  position:relative;
  width:100%;
  height:100%;
  min-height:220px;
  border-radius:var(--radius);
  overflow:hidden;
  background:#e9e9e9;
  background-size:cover;
  background-position:center;
}
.ph-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ph-factory{min-height:520px;}
.ph-worker,.ph-glasssheets,.ph-engineer{min-height:100%;}
.ph-interior,.ph-glassrods{min-height:260px;}
.ph-video{min-height:340px; background:#1c1c1c;}
.ph-video video{width:100%; height:100%; object-fit:cover;}

/* Заглушка, если картинка ещё не загружена в ACF */
.ph-photo.ph-empty{
  background:repeating-linear-gradient(135deg,#e2e2e2 0 12px,#ededed 12px 24px);
  display:flex; align-items:center; justify-content:center;
  color:#9a9a9a; font-size:13px; text-align:center; padding:12px;
}

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:18px 28px;
  font-family:'Inter',sans-serif;
  font-weight:600;
  font-size:14px;
  letter-spacing:0.5px;
  text-transform:uppercase;
  border-radius:8px;
  border:1px solid transparent;
  cursor:pointer;
  transition:opacity .2s ease, transform .15s ease;
}
.btn:hover{opacity:.88;}
.btn:active{transform:translateY(1px);}
.btn-white{background:#fff; color:var(--navy); width:100%;}
.btn-dark{background:var(--navy); color:#fff; width:100%;}

/* ===== HEADER ===== */
.site-header{
  padding:22px 0;
  background:#fff;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.logo{display:flex; align-items:center; gap:10px;}
.logo-mark{flex-shrink:0;}
.logo-text{
  font-family:'Oswald',sans-serif;
  font-weight:700;
  font-size:15px;
  line-height:1;
  color:var(--navy);
}
.logo-caption{
  font-size:11px;
  letter-spacing:1px;
  color:#444;
  margin-left:6px;
  white-space:nowrap;
}
.header-actions{
  display:flex;
  align-items:center;
  gap:14px;
}
.main-nav-list{
  display:flex;
  align-items:center;
  gap:24px;
  list-style:none;
}
.main-nav-list a{
  font-size:14px;
  font-weight:500;
  color:var(--black);
  white-space:nowrap;
}
.main-nav-list a:hover{color:var(--navy);}
.search-box{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  border-radius:8px;
  padding:12px 18px;
  color:#8a8a8a;
  font-size:14px;
  min-width:220px;
}
.phone-btn{
  background:var(--navy);
  color:#fff;
  padding:12px 22px;
  border-radius:8px;
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
}

/* ===== HERO ===== */
.hero{background:var(--navy); padding-top:0;}
.hero-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  align-items:stretch;
  padding-left:0; padding-right:0;
  max-width:none;
}
.hero-text{
  background:var(--navy);
  color:#fff;
  padding:60px 40px 80px 40px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
}
.hero-text h1{
  font-size:52px;
  font-weight:700;
  margin-bottom:24px;
}
.hero-sub{
  font-size:17px;
  letter-spacing:0.5px;
  color:#dfe3ea;
  margin-bottom:44px;
  max-width:520px;
}
.hero-btn{
  position:absolute;
  left:40px; right:40px; bottom:-27px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.hero-image{border-radius:0; min-height:100%;}
.hero-image.ph-photo{border-radius:0;}

/* ===== SECTIONS ===== */
.section{padding:90px 0 0 0;}
.section-title{
  font-size:44px;
  font-weight:700;
  color:var(--black);
  margin-bottom:40px;
}

/* ===== ABOUT ===== */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--gap);
  align-items:stretch;
}
.about-grid .ph-photo{min-height:420px;}
.about-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:36px;
  display:flex;
  flex-direction:column;
  gap:20px;
  color:var(--gray-text);
  font-size:16px;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:var(--gap);
  margin-top:60px;
}
.stat-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px 24px;
  min-height:140px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.stat-dark{background:var(--navy); border-color:var(--navy); color:#fff;}
.stat-num{
  font-family:'Oswald',sans-serif;
  font-size:38px;
  font-weight:700;
}
.stat-label{
  font-size:12.5px;
  letter-spacing:0.3px;
  font-weight:600;
  text-transform:uppercase;
  color:inherit;
  opacity:.85;
}
.stat-dark .stat-label{opacity:1;}

/* ===== PROJECTS ===== */
.projects-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--gap);
}
.project-card{
  border-radius:var(--radius);
  min-height:220px;
}
.project-text{
  border:1px solid var(--border);
  padding:32px;
  display:flex;
  align-items:center;
  color:var(--gray-text);
  font-size:16px;
}
.project-text-btn{
  flex-direction:column;
  align-items:stretch;
  justify-content:space-between;
  gap:24px;
}
.project-photo{position:relative;}
.project-caption{
  position:absolute;
  left:24px; bottom:20px;
  display:flex;
  flex-direction:column;
  gap:4px;
  color:#fff;
  z-index:2;
}
.project-caption .city{font-size:13px; opacity:.9;}
.project-caption .pname{
  font-family:'Oswald',sans-serif;
  font-weight:700;
  font-size:22px;
  text-transform:uppercase;
}

/* ===== ORDER ===== */
.order-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--gap);
}
.order-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:36px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.order-card h3{font-size:22px; font-weight:600;}
.order-card p{color:var(--gray-text); font-size:15.5px;}
.order-card .btn{margin-top:auto;}

/* ===== PRODUCTS ===== */
.products-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--gap);
}
.product-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.product-item{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px 24px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:96px;
  transition:background .2s ease, color .2s ease;
  cursor:pointer;
}
.product-item-top{display:flex; justify-content:flex-end;}
.product-item .pname{font-weight:600; font-size:15px; text-transform:uppercase; letter-spacing:.3px;}
.product-item-bottom{display:flex; justify-content:space-between; align-items:center;}
.product-item .pnum{font-family:'Oswald',sans-serif; font-size:22px; font-weight:600; color:#999;}
.product-item .parrow{font-size:18px;}
.product-item.active{background:var(--navy); border-color:var(--navy); color:#fff;}
.product-item.active .pnum{color:#fff;}
.product-item:hover{border-color:var(--navy);}
.products-photos{
  display:flex;
  flex-direction:column;
  gap:var(--gap);
}
.products-photos .ph-photo{flex:1;}

/* ===== CERTS ===== */
.certs-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--gap);
}
.certs-grid .ph-photo{min-height:340px;}
.certs-stats{margin-top:40px;}

/* ===== VIDEO ===== */
.video-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
}
.play-btn{
  width:76px; height:76px;
  border-radius:50%;
  background:#fff;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  z-index:2;
}

/* ===== CALC FORM ===== */
.calc-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--gap);
  align-items:stretch;
}
.calc-grid .ph-photo{min-height:460px;}
.calc-form{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.calc-form input, .calc-form textarea{
  border:1px solid var(--border);
  border-radius:8px;
  padding:16px 18px;
  font-family:'Inter',sans-serif;
  font-size:15px;
  color:var(--black);
  resize:none;
  width:100%;
}
.calc-form input::placeholder, .calc-form textarea::placeholder{color:#9a9a9a;}
.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:13px;
  color:#555;
  cursor:pointer;
}
.checkbox-row input{width:16px; height:16px; margin-top:2px; flex-shrink:0;}
.btn-submit{margin-top:8px;}

/* ===== FOOTER ===== */
.site-footer{
  background:var(--navy);
  color:#fff;
  margin-top:100px;
  padding:56px 0 40px;
}
.footer-top{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:24px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,0.15);
}
.logo-footer .logo-text{color:#fff;}
.footer-title{
  text-align:center;
  font-size:26px;
  font-weight:700;
}
.footer-call{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  white-space:nowrap;
  justify-self:end;
}
.footer-cols{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  padding-top:36px;
}
.footer-col{display:flex; flex-direction:column; gap:12px; font-size:14px; color:#dfe3ea;}
.footer-col a{opacity:.9;}
.footer-col a:hover{opacity:1; text-decoration:underline;}
.footer-col-title{font-weight:700; font-size:13px; letter-spacing:.5px; margin-bottom:2px; color:#fff;}
.footer-hours{opacity:.75; font-size:13px;}
.social-icons{display:flex; gap:10px;}
.social-icons a{
  width:34px; height:34px;
  border-radius:50%;
  background:#fff;
  display:flex; align-items:center; justify-content:center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr;}
  .hero-image{min-height:280px;}
  .hero-text{padding:44px 24px 70px;}
  .hero-text h1{font-size:36px;}
  .hero-btn{left:24px; right:24px;}
  .about-grid, .certs-grid, .calc-grid{grid-template-columns:1fr;}
  .about-grid .ph-photo, .calc-grid .ph-photo{min-height:280px;}
  .stats-grid{grid-template-columns:1fr 1fr;}
  .projects-grid, .order-grid, .products-grid{grid-template-columns:1fr;}
  .section-title{font-size:32px;}
  .footer-top{grid-template-columns:1fr; text-align:center;}
  .footer-call{justify-self:center;}
  .footer-cols{grid-template-columns:1fr 1fr;}
  .header-inner{flex-wrap:wrap;}
  .search-box{min-width:150px;}
}

@media (max-width: 560px){
  .hero-text h1{font-size:30px;}
  .footer-cols{grid-template-columns:1fr;}
  .logo-caption{display:none;}
}
