/* ADIN — газоблок, теплоблок, металлочерепица в Алматы */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:16px;line-height:1.6;color:#1a1a1a;background:#fff;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}

/* === Container === */
.container{max-width:1200px;margin:0 auto;padding:0 20px}

/* === Header === */
.header{
  position:sticky;top:0;z-index:100;background:#fff;
  border-bottom:1px solid #eaeaea;box-shadow:0 1px 3px rgba(0,0,0,0.04);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 0;gap:20px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:22px;color:#1a1a1a}
.logo-mark{
  width:38px;height:38px;background:#ff6b1c;border-radius:8px;
  display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:16px;
}
.nav{display:flex;gap:28px;align-items:center}
.nav a{font-weight:500;font-size:15px;color:#444;transition:color .2s}
.nav a:hover,.nav a.active{color:#ff6b1c}
.header-phone{display:flex;align-items:center;gap:8px;font-weight:700;font-size:16px;color:#1a1a1a;white-space:nowrap}
.header-phone svg{width:18px;height:18px;color:#ff6b1c}
.menu-toggle{display:none;width:32px;height:32px;flex-direction:column;justify-content:center;gap:5px}
.menu-toggle span{display:block;width:24px;height:2px;background:#1a1a1a;transition:.3s}

/* === Buttons === */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 26px;border-radius:8px;font-weight:600;font-size:15px;
  transition:transform .15s,box-shadow .2s,background .2s;cursor:pointer;
}
.btn-primary{background:#ff6b1c;color:#fff;box-shadow:0 4px 14px rgba(255,107,28,.3)}
.btn-primary:hover{background:#e85a0a;transform:translateY(-1px);box-shadow:0 6px 20px rgba(255,107,28,.4)}
.btn-whatsapp{background:#25D366;color:#fff;box-shadow:0 4px 14px rgba(37,211,102,.3)}
.btn-whatsapp:hover{background:#1ebe5a;transform:translateY(-1px);box-shadow:0 6px 20px rgba(37,211,102,.4)}
.btn-outline{background:transparent;color:#1a1a1a;border:2px solid #1a1a1a}
.btn-outline:hover{background:#1a1a1a;color:#fff}
.btn-lg{padding:18px 32px;font-size:16px}

/* === Hero === */
.hero{
  position:relative;padding:80px 0 70px;
  background:linear-gradient(135deg,#0d1f2d 0%,#1e3a52 100%);
  color:#fff;overflow:hidden;
}
.hero::before{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(circle at 80% 20%,rgba(255,107,28,.15) 0%,transparent 50%);
  pointer-events:none;
}
.hero-inner{position:relative;display:grid;grid-template-columns:1.2fr 1fr;gap:50px;align-items:center}
.hero-badge{
  display:inline-block;padding:6px 14px;background:rgba(255,107,28,.15);
  color:#ff8c4d;font-size:13px;font-weight:600;border-radius:50px;margin-bottom:20px;
  border:1px solid rgba(255,107,28,.3);
}
.hero h1{font-size:48px;line-height:1.15;font-weight:800;margin-bottom:18px;letter-spacing:-.02em}
.hero h1 span{color:#ff6b1c}
.hero p{font-size:18px;color:#c5cdd6;margin-bottom:30px;max-width:550px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.hero-stats{display:flex;gap:32px;margin-top:40px;padding-top:32px;border-top:1px solid rgba(255,255,255,.1)}
.hero-stat strong{display:block;font-size:28px;font-weight:800;color:#ff8c4d}
.hero-stat span{font-size:13px;color:#a8b1bc}
.hero-image{position:relative}
.hero-image img{border-radius:12px;box-shadow:0 30px 60px rgba(0,0,0,.4)}
.hero-image::after{
  content:'';position:absolute;top:-15px;right:-15px;width:100%;height:100%;
  border:2px solid #ff6b1c;border-radius:12px;z-index:-1;
}

/* === Section === */
.section{padding:80px 0}
.section-light{background:#f8f8f8}
.section-title{text-align:center;margin-bottom:50px}
.section-title .eyebrow{
  display:inline-block;color:#ff6b1c;font-size:13px;font-weight:700;text-transform:uppercase;
  letter-spacing:.1em;margin-bottom:10px;
}
.section-title h2{font-size:38px;font-weight:800;line-height:1.2;letter-spacing:-.02em}
.section-title p{font-size:17px;color:#666;margin-top:14px;max-width:600px;margin-left:auto;margin-right:auto}

/* === Products === */
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.product-card{
  background:#fff;border-radius:14px;overflow:hidden;
  border:1px solid #eaeaea;transition:transform .25s,box-shadow .25s;
}
.product-card:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(0,0,0,.08)}
.product-image{aspect-ratio:4/3;overflow:hidden;background:#eee}
.product-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.product-card:hover .product-image img{transform:scale(1.05)}
.product-body{padding:24px}
.product-body h3{font-size:22px;font-weight:700;margin-bottom:8px}
.product-price{color:#ff6b1c;font-size:18px;font-weight:700;margin-bottom:12px}
.product-body p{color:#666;font-size:14px;margin-bottom:18px;min-height:60px}
.product-actions{display:flex;gap:10px}
.product-actions .btn{flex:1;padding:12px;font-size:14px}

/* === Features === */
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.feature{
  padding:30px;background:#fff;border-radius:12px;border:1px solid #eaeaea;
  transition:transform .2s,border-color .2s;
}
.feature:hover{transform:translateY(-4px);border-color:#ff6b1c}
.feature-icon{
  width:56px;height:56px;background:#fff5ed;border-radius:12px;
  display:flex;align-items:center;justify-content:center;margin-bottom:18px;
}
.feature-icon svg{width:28px;height:28px;color:#ff6b1c}
.feature h3{font-size:19px;font-weight:700;margin-bottom:8px}
.feature p{color:#666;font-size:15px}

/* === Sizes Table === */
.sizes-table{
  background:#fff;border-radius:12px;overflow:hidden;
  border:1px solid #eaeaea;max-width:700px;margin:0 auto;
}
.sizes-table table{width:100%;border-collapse:collapse}
.sizes-table th{
  background:#0d1f2d;color:#fff;padding:16px;text-align:left;font-weight:600;font-size:14px;
}
.sizes-table td{padding:14px 16px;border-bottom:1px solid #f0f0f0;font-size:15px}
.sizes-table tr:last-child td{border-bottom:none}
.sizes-table tr:hover td{background:#fafafa}
.sizes-table .price{font-weight:700;color:#ff6b1c}

/* === CTA Section === */
.cta-section{
  background:linear-gradient(135deg,#ff6b1c 0%,#e85a0a 100%);
  color:#fff;text-align:center;padding:70px 0;
}
.cta-section h2{font-size:36px;font-weight:800;margin-bottom:14px}
.cta-section p{font-size:18px;margin-bottom:28px;opacity:.95;max-width:600px;margin-left:auto;margin-right:auto}
.cta-section .btn-whatsapp{background:#fff;color:#1a1a1a}
.cta-section .btn-whatsapp:hover{background:#f0f0f0}

/* === Articles === */
.articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.article-card{
  background:#fff;border-radius:12px;overflow:hidden;border:1px solid #eaeaea;
  transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column;
}
.article-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.07)}
.article-image{aspect-ratio:16/10;overflow:hidden;background:#eee}
.article-image img{width:100%;height:100%;object-fit:cover}
.article-body{padding:22px;flex:1;display:flex;flex-direction:column}
.article-meta{font-size:13px;color:#999;margin-bottom:8px}
.article-body h3{font-size:18px;font-weight:700;margin-bottom:10px;line-height:1.35}
.article-body p{font-size:14px;color:#666;margin-bottom:16px;flex:1}
.article-link{color:#ff6b1c;font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:6px}

/* === Article page === */
.article-page{padding:60px 0;max-width:800px;margin:0 auto}
.article-page h1{font-size:38px;font-weight:800;line-height:1.2;margin-bottom:14px;letter-spacing:-.02em}
.article-page .article-meta{font-size:14px;color:#888;margin-bottom:30px}
.article-page .article-hero{
  width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;margin-bottom:30px;background:#eee;
}
.article-page .article-hero img{width:100%;height:100%;object-fit:cover}
.article-page h2{font-size:26px;font-weight:700;margin:32px 0 14px;letter-spacing:-.01em}
.article-page h3{font-size:20px;font-weight:700;margin:24px 0 10px}
.article-page p{margin-bottom:16px;font-size:17px;line-height:1.7;color:#333}
.article-page ul,.article-page ol{margin:0 0 18px 22px}
.article-page li{margin-bottom:8px;font-size:17px;line-height:1.6;color:#333}
.article-page strong{color:#1a1a1a;font-weight:700}
.article-page a{color:#ff6b1c;text-decoration:underline}

/* === Contacts === */
.contacts-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:start}
.contact-info h2{font-size:32px;font-weight:800;margin-bottom:24px}
.contact-item{display:flex;gap:16px;margin-bottom:24px;align-items:flex-start}
.contact-item-icon{
  width:48px;height:48px;background:#fff5ed;border-radius:10px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}
.contact-item-icon svg{width:22px;height:22px;color:#ff6b1c}
.contact-item h4{font-size:14px;color:#888;font-weight:500;margin-bottom:4px}
.contact-item p,.contact-item a{font-size:17px;font-weight:600;color:#1a1a1a}
.contact-item a:hover{color:#ff6b1c}

/* === Footer === */
.footer{background:#0d1f2d;color:#a8b1bc;padding:60px 0 24px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
.footer h4{color:#fff;font-size:16px;font-weight:700;margin-bottom:18px}
.footer ul{list-style:none}
.footer li{margin-bottom:10px}
.footer a{font-size:14px;color:#a8b1bc;transition:color .2s}
.footer a:hover{color:#ff6b1c}
.footer .logo{color:#fff;margin-bottom:14px}
.footer-about{font-size:14px;line-height:1.6;margin-bottom:16px}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);padding-top:24px;
  display:flex;justify-content:space-between;font-size:13px;flex-wrap:wrap;gap:10px;
}

/* === Floating WhatsApp === */
.float-wa{
  position:fixed;bottom:24px;right:24px;z-index:99;
  width:60px;height:60px;border-radius:50%;background:#25D366;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(37,211,102,.4);
  transition:transform .2s;animation:pulse 2s infinite;
}
.float-wa:hover{transform:scale(1.08)}
.float-wa svg{width:32px;height:32px;color:#fff}
@keyframes pulse{
  0%,100%{box-shadow:0 8px 24px rgba(37,211,102,.4)}
  50%{box-shadow:0 8px 24px rgba(37,211,102,.7),0 0 0 12px rgba(37,211,102,.0)}
}

/* === Discount Modal === */
.modal{
  position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:200;
  display:none;align-items:center;justify-content:center;padding:20px;
}
.modal.open{display:flex}
.modal-content{
  background:#fff;border-radius:16px;padding:40px;max-width:440px;width:100%;
  text-align:center;position:relative;animation:modalIn .3s ease;
}
@keyframes modalIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
.modal-close{
  position:absolute;top:16px;right:16px;width:32px;height:32px;
  border-radius:50%;background:#f0f0f0;display:flex;align-items:center;justify-content:center;
  font-size:18px;color:#666;
}
.modal-content h3{font-size:24px;font-weight:800;margin-bottom:10px}
.modal-content p{color:#666;margin-bottom:20px}
.modal-code{
  background:#fff5ed;border:2px dashed #ff6b1c;border-radius:10px;
  padding:18px;font-size:28px;font-weight:800;color:#ff6b1c;letter-spacing:.1em;margin-bottom:20px;
}
.modal-content .btn{width:100%}

/* === Responsive === */
@media (max-width:900px){
  .hero h1{font-size:36px}
  .hero-inner{grid-template-columns:1fr;gap:30px}
  .hero{padding:50px 0}
  .section{padding:50px 0}
  .section-title h2{font-size:28px}
  .products-grid,.features,.articles-grid{grid-template-columns:1fr}
  .contacts-grid{grid-template-columns:1fr;gap:30px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px}
  .nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;flex-direction:column;padding:20px;border-top:1px solid #eaeaea;gap:16px;box-shadow:0 8px 16px rgba(0,0,0,.08)}
  .nav.open{display:flex}
  .menu-toggle{display:flex}
  .header-phone span{display:none}
  .hero-stats{flex-wrap:wrap;gap:20px}
  .article-page h1{font-size:28px}
}
@media (max-width:540px){
  .hero h1{font-size:28px}
  .section-title h2{font-size:24px}
  .cta-section h2{font-size:26px}
  .float-wa{width:54px;height:54px;bottom:18px;right:18px}
}

/* ===== Page Header (для страниц teploblok, stati, kontakty) ===== */
.page-header{
  background:linear-gradient(135deg,#0d1f2d 0%,#1e3a52 100%);
  color:#fff;padding:60px 0 50px;
  position:relative;overflow:hidden;
}
.page-header::before{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(circle at 80% 30%,rgba(255,107,28,.15) 0%,transparent 60%);
  pointer-events:none;
}
.page-header > .container{position:relative}
.page-header .eyebrow{color:#ff6b1c;font-size:13px;font-weight:700;letter-spacing:2px;text-transform:uppercase;display:inline-block;margin-bottom:14px}
.page-header h1{font-size:clamp(28px,4.2vw,46px);font-weight:800;line-height:1.15;letter-spacing:-0.02em;max-width:800px;margin-bottom:14px}
.page-header p{color:#c8cdd3;font-size:17px;max-width:720px}

/* ===== Sizes grid (на странице теплоблока) ===== */
.sizes-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;
}
.size-card{
  background:#fafaf7;border:1px solid #eee;border-radius:10px;
  padding:20px 22px;display:flex;flex-direction:column;gap:6px;
  transition:border .2s,transform .2s;
}
.size-card:hover{border-color:#ff6b1c;transform:translateY(-2px)}
.size-card strong{font-size:18px;font-weight:700;color:#1a1a1a}
.size-card span{font-size:13px;color:#888}

/* ===== Content wrap (текстовые блоки страниц) ===== */
.content-wrap{max-width:780px;margin:0 auto}
.content-wrap h2{font-size:28px;font-weight:800;letter-spacing:-0.01em;margin:36px 0 16px}
.content-wrap h2:first-child{margin-top:0}
.content-wrap h3{font-size:22px;font-weight:700;margin:28px 0 12px}
.content-wrap p{font-size:17px;line-height:1.7;margin-bottom:16px;color:#333}
.content-wrap p strong{color:#e85a0a}
.content-wrap ul,.content-wrap ol{margin:0 0 20px 24px}
.content-wrap li{font-size:17px;line-height:1.7;margin-bottom:8px}

/* ===== Contacts grid (страница контактов) ===== */
.contacts-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px;
}
.contact-card{
  background:#fff;border:1px solid #eee;border-radius:14px;
  padding:32px 24px;text-align:center;
  transition:transform .2s,box-shadow .2s,border-color .2s;
  display:block;color:inherit;
}
.contact-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,0.08);border-color:#ff6b1c}
.contact-icon{
  width:60px;height:60px;margin:0 auto 18px;border-radius:14px;
  background:linear-gradient(135deg,#ff6b1c,#e85a0a);color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.contact-icon svg{width:28px;height:28px}
.contact-card h3{font-size:15px;font-weight:600;color:#888;margin-bottom:8px;text-transform:uppercase;letter-spacing:0.5px}
.contact-value{font-size:19px;font-weight:700;color:#1a1a1a;margin-bottom:10px}
.contact-hint{font-size:13px;color:#888;display:block}

/* ===== Mobile ===== */
@media (max-width:820px){
  .nav,.header-phone{display:none}
  .menu-toggle{display:flex}
  .nav.open{
    display:flex;position:absolute;top:100%;left:0;right:0;
    background:#fff;flex-direction:column;padding:20px;gap:16px;
    border-top:1px solid #eee;box-shadow:0 4px 12px rgba(0,0,0,0.08);
  }
  .hero-inner{grid-template-columns:1fr;gap:36px}
}
@media (max-width:600px){
  .hero{padding:50px 0 60px}
  .section{padding:50px 0}
  .footer-bottom{flex-direction:column;gap:8px;text-align:center}
}

/* Фикс: кнопки WhatsApp в hero на мобильном не должны переноситься в 3 строки */
.hero-cta .btn{white-space:nowrap}
@media (max-width:480px){
  .hero-cta{flex-direction:column;align-items:stretch}
  .hero-cta .btn{justify-content:center;width:100%}
  .hero h1{font-size:32px}
}

/* Размер иконок WhatsApp в кнопках */
.btn svg{width:18px;height:18px;flex-shrink:0}
.btn-lg svg{width:20px;height:20px}
