*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;background:var(--white);color:var(--text);
  font-family:var(--font);font-weight:400;line-height:1.5;-webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:var(--font);margin:0;font-weight:700;letter-spacing:-0.01em;}
h1{font-weight:800;}
.mono{font-family:'IBM Plex Mono', monospace;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
.wrap{max-width:1180px;margin:0 auto;padding:0 28px;}
@media(max-width:640px){.wrap{padding:0 18px;}}

.top-banner{position:sticky;top:0;z-index:50;}
.topbar{background:var(--white);color:var(--text);font-size:13px;}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;padding:8px 28px 8px 200px;flex-wrap:wrap;gap:6px;}
.topbar a{opacity:0.8;}
.topbar a:hover{opacity:1;}
.topbar-links{display:flex;gap:18px;}

header.main{background:var(--white);box-shadow:0 1px 0 rgba(16,28,34,0.06);}
header.main .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 28px 0 200px;min-height:68px;}
.corner-logo{position:absolute;top:0;left:0;height:100%;width:184px;display:flex;align-items:center;justify-content:center;background:var(--white);z-index:5;padding:10px 14px;box-sizing:border-box;text-align:center;}
.corner-logo img, .corner-logo video{max-width:100%;max-height:100%;object-fit:contain;}
.corner-logo .logo-text{font-size:14px;line-height:1.25;}
@media(max-width:640px){
  .corner-logo{width:120px;padding:8px;}
  .topbar .wrap{padding-left:132px;}
  header.main .wrap{padding-left:132px;}
}
.logo{display:flex;align-items:center;gap:10px;flex:none;}
.logo img{height:40px;max-height:40px;width:auto;display:block;}
.logo-mark{width:34px;height:34px;flex:none;}
.logo-text{font-family:var(--font);font-weight:700;font-size:18px;letter-spacing:0.01em;line-height:1.15;}
.logo-text span{color:var(--brass);}
.header-right{display:flex;align-items:center;gap:22px;flex:1;justify-content:flex-end;min-width:0;}
nav.primary{display:flex;align-items:center;gap:20px;font-size:14px;flex-wrap:nowrap;white-space:nowrap;}
nav.primary a:hover{color:var(--brass-dark);}
.btn{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg, var(--brass), var(--glass));color:var(--white);padding:12px 22px;border-radius:6px;font-size:11px;font-weight:700;border:none;cursor:pointer;transition:filter .15s, transform .15s;white-space:nowrap;}
.btn:hover{filter:brightness(0.93);transform:translateY(-1px);}
@media(max-width:640px){.btn{font-size:18px;padding:11px 20px;}}
.btn.ghost{background:transparent;color:var(--text);border:1px solid var(--ink);}
.btn.ghost:hover{background:var(--ink);color:var(--white);}
.menu-toggle{display:none;background:none;border:none;cursor:pointer;flex:none;}
@media(max-width:1200px){nav.primary{gap:14px;font-size:15px;}}
@media(max-width:900px){.header-right nav.primary, .header-right .header-cta{display:none;} .menu-toggle{display:block;}}

.hero{background:var(--ink);color:var(--white);position:relative;overflow:hidden;}
.hero-bg-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(14,26,38,0.35) 0%, rgba(14,26,38,0.15) 40%, rgba(14,26,38,0.45) 100%);z-index:1;}
.hero.has-media h1, .hero.has-media .lead, .hero.has-media .eyebrow-line{text-shadow:0 2px 10px rgba(0,0,0,0.55);}
.hero .wrap{position:relative;z-index:2;}
.hero.has-media .wrap{grid-template-columns:1fr;max-width:760px;padding-top:120px;padding-bottom:110px;text-align:center;}
.hero.has-media .eyebrow-line{justify-content:center;}
.hero.has-media .hero-actions{justify-content:center;}
.hero.has-media{min-height:480px;}
@media(max-width:640px){.hero.has-media{min-height:380px;} .hero.has-media .wrap{padding-top:70px;padding-bottom:60px;}}
.hero .wrap{display:grid;grid-template-columns:1.1fr 0.9fr;gap:40px;padding:72px 28px 64px;align-items:center;}
@media(max-width:900px){.hero .wrap{grid-template-columns:1fr;padding:48px 20px 40px;}}
.eyebrow-line{display:flex;align-items:center;gap:10px;color:#9db0ac;font-size:13px;margin-bottom:22px;}
.eyebrow-line .tick{width:22px;height:1px;background:var(--brass);}
.hero h1{font-size:51px;line-height:1.15;font-weight:300;color:var(--white);max-width:680px;}
@media(max-width:640px){.hero h1{font-size:32px;}}
.hero p.lead{margin-top:20px;color:#c4cdc9;font-size:16.5px;max-width:480px;}
.hero-actions{display:flex;gap:14px;margin-top:32px;flex-wrap:wrap;}
.hero-stats{display:flex;gap:36px;margin-top:52px;padding-top:28px;border-top:1px solid rgba(255,255,255,0.28);flex-wrap:wrap;justify-content:center;}
.hero-stats div .num{font-family:var(--font);font-size:26px;color:var(--brass);font-weight:700;}
.hero-stats div .lbl{font-size:12.5px;color:#93a19c;margin-top:2px;}
.hero-art svg{width:100%;height:auto;}

section{padding:80px 0;}
@media(max-width:640px){section{padding:52px 0;}}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:44px;flex-wrap:wrap;}
.section-head h2{font-size:30px;max-width:520px;}
.section-head .idx{font-family:'IBM Plex Mono';font-size:13px;color:var(--steel);border-left:2px solid var(--brass);padding-left:10px;}
.kicker{color:var(--glass);font-size:13.5px;font-weight:500;margin-bottom:10px;}

.about-grid{display:grid;grid-template-columns:0.9fr 1.1fr;gap:56px;align-items:start;}
@media(max-width:900px){.about-grid{grid-template-columns:1fr;}}
.about-grid p{color:var(--steel);font-size:15.5px;max-width:500px;}
.fact-list{margin-top:28px;display:grid;grid-template-columns:1fr 1fr;gap:20px 28px;}
.fact{border-top:1px solid var(--line);padding-top:12px;}
.fact .num{font-family:var(--font);font-size:22px;font-weight:700;}
.fact .lbl{font-size:13px;color:var(--steel);margin-top:2px;}

.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);}
@media(max-width:900px){.cat-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){.cat-grid{grid-template-columns:1fr;}}
.cat-card{background:var(--white);padding:28px 24px;display:flex;flex-direction:column;gap:16px;transition:background .15s;}
.cat-card:hover{background:var(--paper-2);}
.cat-card h3{font-size:16.5px;}
.cat-card p{font-size:13.5px;color:var(--steel);margin:0;}

.prod-strip{display:flex;gap:1px;overflow-x:auto;background:var(--line);border:1px solid var(--line);}
.prod-card{background:var(--white);min-width:250px;flex:1 0 250px;padding:22px;}
.prod-thumb{aspect-ratio:4/3;background:var(--paper-2);display:flex;align-items:center;justify-content:center;margin-bottom:16px;overflow:hidden;}
.prod-thumb img{width:100%;height:100%;object-fit:cover;}
.prod-card .cat{font-family:'IBM Plex Mono';font-size:11px;color:var(--glass);margin-bottom:6px;}
.prod-card h4{font-size:15px;line-height:1.3;}
.prod-card .price{margin-top:12px;font-size:13px;color:var(--steel);}

.serv-list{border-top:1px solid var(--line);}
.serv-row{display:grid;grid-template-columns:70px 1fr 1fr;gap:24px;padding:22px 0;border-bottom:1px solid var(--line);align-items:center;}
@media(max-width:760px){.serv-row{grid-template-columns:44px 1fr;} .serv-row .desc{grid-column:2;}}
.serv-row .n{font-family:'IBM Plex Mono';color:var(--brass);font-size:14px;}
.serv-row h4{font-size:16.5px;}
.serv-row .desc{color:var(--steel);font-size:14px;}

.client-marquee{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:26px 0;overflow:hidden;background:var(--paper-2);}
.client-track{display:flex;gap:48px;white-space:nowrap;animation:scroll 32s linear infinite;align-items:center;}
.client-track span, .client-track img{font-family:'IBM Plex Mono';font-size:13.5px;color:var(--steel);}
.client-track img{height:28px;width:auto;filter:grayscale(1);}
@keyframes scroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@media(prefers-reduced-motion:reduce){.client-track{animation:none;}}

.cta{background:var(--paper-2);color:var(--text);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.cta .wrap{display:block;text-align:center;}
.cta h2{color:var(--text);font-size:34px;}
.cta p{color:var(--steel);margin-top:12px;font-size:15.5px;}
.cta .cta-form{max-width:480px;margin:0 auto;text-align:left;}
.cta-form{background:var(--white);color:var(--text);padding:26px;display:flex;flex-direction:column;gap:12px;}
.cta-form input, .cta-form textarea{padding:12px 14px;border:1px solid var(--line);font-family:inherit;font-size:14px;border-radius:6px;}
.cta-form .btn{justify-content:center;margin-top:4px;border:none;cursor:pointer;}
.cta-form .fine{font-size:11.5px;color:var(--steel);}
.form-msg{font-size:13.5px;padding:10px 12px;border-radius:6px;}
.form-msg.ok{background:#e9f7ef;color:#1e6b3e;}
.form-msg.err{background:#fdeaea;color:#8a1f1f;}

footer{background:var(--paper-2);color:var(--steel);padding-top:60px;border-top:1px solid var(--line);}
.foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:32px;padding:0 28px 40px;border-bottom:1px solid var(--line);max-width:1180px;margin:0 auto;}
@media(max-width:800px){.foot-grid{grid-template-columns:1fr 1fr;}}
.foot-grid h5{color:var(--text);font-size:27px;font-weight:600;margin-bottom:14px;}
.foot-grid ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;font-size:13.5px;}
.foot-grid ul a:hover{color:var(--text);}
.foot-brand p{font-size:13.5px;max-width:260px;color:var(--steel);margin-top:12px;}
.foot-bottom{display:flex;justify-content:space-between;padding:20px 28px;font-size:12.5px;color:var(--steel);flex-wrap:wrap;gap:8px;max-width:1180px;margin:0 auto;}

.mobile-menu{display:none;flex-direction:column;background:var(--white);border-bottom:1px solid var(--line);}
.mobile-menu.open{display:flex;}
.mobile-menu a{padding:14px 28px;border-top:1px solid var(--line);font-size:14.5px;}

/* Static clients (no animation) */
.client-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);}
.client-card{background:var(--white);padding:24px;display:flex;align-items:center;justify-content:center;min-height:80px;}
.client-card img{max-height:44px;width:auto;max-width:100%;filter:grayscale(1);opacity:0.85;}
.client-card span{font-family:'IBM Plex Mono';font-size:13px;color:var(--steel);text-align:center;}

/* Catalog page */
.catalog-filters{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 32px;}
.catalog-filters input[type=text]{flex:1;min-width:200px;padding:11px 14px;border:1px solid var(--line);border-radius:6px;font-family:inherit;font-size:14px;}
.catalog-filters select{padding:11px 14px;border:1px solid var(--line);border-radius:6px;font-family:inherit;font-size:14px;background:var(--white);}
.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px;}
.catalog-card{background:var(--white);border:1px solid var(--line);border-radius:8px;overflow:hidden;display:block;transition:box-shadow .15s, transform .15s;}
.catalog-card:hover{box-shadow:0 6px 18px rgba(16,28,34,0.10);transform:translateY(-2px);}
.catalog-thumb{position:relative;aspect-ratio:4/3;background:var(--paper-2);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.catalog-thumb img{width:100%;height:100%;object-fit:cover;}
.discount-badge{position:absolute;top:10px;left:10px;background:var(--brass);color:#fff;font-size:11px;font-weight:600;padding:3px 9px;border-radius:6px;text-transform:uppercase;letter-spacing:0.03em;}
.catalog-card-body{padding:16px;}
.catalog-card-body .cat{font-family:'IBM Plex Mono';font-size:11px;color:var(--glass);margin-bottom:6px;}
.catalog-card-body h4{font-size:15px;line-height:1.3;margin-bottom:10px;}
.price-row{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;}
.price-row .price, .price-block .price{font-weight:700;color:var(--text);}
.old-price{font-size:13px;color:var(--steel);text-decoration:line-through;}
.empty-note{padding:50px 20px;text-align:center;color:var(--steel);font-size:14.5px;border:1px dashed var(--line);}

/* Product detail page */
.back-link{display:inline-block;font-size:13.5px;color:var(--steel);margin-bottom:22px;}
.back-link:hover{color:var(--text);}
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:start;}
@media(max-width:800px){.product-detail{grid-template-columns:1fr;}}
.product-media{background:var(--paper-2);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;min-height:320px;overflow:hidden;}
.product-media img{width:100%;height:100%;object-fit:contain;max-height:520px;}
.product-media-empty{padding:80px 20px;color:var(--steel);font-size:14px;}
.product-info .cat a{font-family:'IBM Plex Mono';font-size:12px;color:var(--glass);}
.product-info h1{font-size:26px;margin-top:8px;margin-bottom:16px;}
.price-block{margin-bottom:18px;}
.product-description{color:var(--steel);font-size:15px;line-height:1.65;margin-bottom:22px;}
.product-info .btn{margin-right:8px;}
.news-body{max-width:760px;margin:0 auto;font-size:15.5px;line-height:1.75;color:var(--text);}

/* Sahifa/bo'lim boshidagi banner (rasm yoki video) — radwag.com uslubi:
   tepada media, pastida katta sarlavha (.panel-title) */
.page-hero-media{width:100%;max-height:420px;overflow:hidden;border-radius:14px;margin-bottom:32px;box-shadow:0 16px 40px rgba(14,26,38,0.16);}
.page-hero-media img, .page-hero-media video{width:100%;height:100%;max-height:420px;object-fit:cover;display:block;}
.cta .page-hero-media{margin-bottom:24px;}
@media(max-width:640px){.page-hero-media{max-height:220px;border-radius:10px;margin-bottom:22px;} .page-hero-media img, .page-hero-media video{max-height:220px;}}

/* Nav typography per spec: sans-serif, 14-16px, weight 400-500, line-height 20-24px */
nav.primary a, .mobile-menu a{font-family:var(--font);font-weight:600;line-height:22px;}
nav.primary{font-size:13px;}
@media(max-width:1200px){nav.primary{font-size:15px;}}
.mobile-menu a{font-size:15px;}

/* Umumiy: bo'lim/panel sarlavhasi — katta, markazlashgan (radwag.com uslubi) */
.panel-title{text-align:center;max-width:760px;margin:0 auto 40px;}
.panel-title .kicker{justify-content:center;display:flex;}
.panel-title h2{font-size:36px;line-height:1.15;}
.panel-title p{color:var(--steel);font-size:15.5px;margin-top:10px;}
.cta .panel-title p{color:var(--steel);}
@media(max-width:640px){.panel-title h2{font-size:26px;}}
.about-solo{max-width:680px;margin:0 auto;}
.about-solo p{color:var(--steel);font-size:15.5px;}

/* Category grid: centered instead of stretched */
.cat-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:1px;background:var(--line);border:1px solid var(--line);}
.cat-card{flex:1 1 260px;max-width:300px;}

/* Default white background for services when no custom bg set */
#services:not(.section-bg){background:var(--white);}

/* Partners grid — centered */
.partner-grid{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:36px;}
.partner-card{background:none;border:none;padding:10px;width:160px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;transition:transform .15s, opacity .15s;}
.partner-card:hover{transform:translateY(-2px);opacity:0.85;}
.partner-card img{max-height:52px;max-width:100%;object-fit:contain;filter:grayscale(0.3);}
.partner-name{font-size:13.5px;color:var(--text);font-weight:500;}

/* Reviews gallery — centered grid with lightbox trigger */
.gallery-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;}
.gallery-item{border:1px solid var(--line);border-radius:8px;padding:0;background:none;cursor:pointer;width:220px;height:220px;overflow:hidden;}
.gallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s;}
.gallery-item:hover img{transform:scale(1.04);}

.lightbox{position:fixed;inset:0;background:rgba(10,16,20,0.92);display:none;align-items:center;justify-content:center;z-index:200;flex-direction:column;padding:30px;}
.lightbox.open{display:flex;}
.lightbox img{max-width:90vw;max-height:80vh;object-fit:contain;}
.lightbox-caption{color:#e6e9e6;font-size:14px;margin-top:14px;max-width:600px;text-align:center;}
.lightbox-close{position:absolute;top:20px;right:28px;background:none;border:none;color:#fff;font-size:34px;line-height:1;cursor:pointer;}

/* Live search suggestions dropdown (catalog page) */
.search-wrap{position:relative;flex:1;min-width:220px;}
.search-wrap input{width:100%;}
.search-suggest{display:none;position:absolute;top:100%;left:0;right:0;background:var(--white);border:1px solid var(--line);border-top:none;max-height:340px;overflow-y:auto;z-index:40;box-shadow:0 10px 24px rgba(16,28,34,0.12);}
.search-suggest a{display:flex;align-items:center;gap:10px;padding:9px 12px;font-size:13.5px;color:var(--text);border-bottom:1px solid var(--line);}
.search-suggest a:hover{background:var(--paper-2);}
.search-suggest a img{width:32px;height:32px;object-fit:cover;flex:none;}
.search-suggest .s-noimg{width:32px;height:32px;background:var(--paper-2);flex:none;display:inline-block;}

/* Per-section optional background image — contained "panel" look:
   image stays crisp, text gets just enough backing to stay legible,
   and the panel's own margin/shadow/radius separates it from neighboring sections. */
.bg-panel{position:relative;background-size:cover;background-position:center;background-repeat:no-repeat;
  border-radius:14px;overflow:hidden;padding:42px 32px;margin:6px 0;
  box-shadow:0 16px 40px rgba(14,26,38,0.18);}
.bg-panel::before{content:'';position:absolute;inset:0;z-index:1;}
.bg-panel.overlay-light::before{background:rgba(243,244,239,0.5);}
.bg-panel.overlay-dark::before{background:rgba(14,26,38,0.5);}
.bg-panel > *{position:relative;z-index:2;}
.bg-panel h1,.bg-panel h2,.bg-panel h3,.bg-panel h4{text-shadow:0 1px 4px rgba(0,0,0,0.18);}
.bg-panel.overlay-light .kicker,.bg-panel.overlay-light p,.bg-panel.overlay-light .lbl{text-shadow:0 1px 3px rgba(255,255,255,0.6);}
@media(max-width:640px){.bg-panel{padding:28px 20px;border-radius:10px;}}
