/* ============================================================
   TASHKENT PROFNASTIL SERVIS — brand stylesheet
   Palette: industrial blue + white + steel grey
   ============================================================ */
:root {
  --blue: #1166b3;
  --blue-dark: #0c4a85;
  --navy: #0b2540;
  --accent: #f7a91e;       /* steel-yellow accent (from catalog) */
  --accent-dark: #e0950d;
  --ink: #1a2530;
  --muted: #607086;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --steel: #2f3a46;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(11, 37, 64, .08);
  --shadow-lg: 0 14px 40px rgba(11, 37, 64, .16);
  --container: 1200px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.4em; border-radius: var(--radius-sm); border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: .18s ease;
  background: var(--blue); color: #fff; line-height: 1; text-align: center;
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: var(--accent-dark); color: var(--navy); }
.btn--outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--lg { padding: .9em 1.8em; font-size: 1.05rem; }
.btn--sm { padding: .5em .9em; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #cdd9e6; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
.topbar__item { color: #cdd9e6; margin-right: 18px; white-space: nowrap; }
a.topbar__item:hover { color: #fff; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__social { color: #cdd9e6; }
.topbar__social:hover { color: #fff; }

/* ---------- Lang switcher ---------- */
.lang { position: relative; }
.lang__current { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff;
  padding: 3px 10px; border-radius: 6px; cursor: pointer; font-size: .82rem; }
.lang__menu { position: absolute; right: 0; top: 120%; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow); min-width: 130px; padding: 6px; display: none; z-index: 60; }
.lang.is-open .lang__menu { display: block; }
.lang__menu form { margin: 0; }
.lang__item { display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); font-size: .88rem; }
.lang__item:hover { background: var(--bg-alt); }
.lang__item.is-active { color: var(--blue); font-weight: 700; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(11,37,64,.06); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 46px; height: 46px; border-radius: 8px; display: block; flex: none; }
.logo__text { font-size: .8rem; font-weight: 700; color: var(--navy); line-height: 1.15; letter-spacing: .5px; }
.logo__text b { color: var(--blue); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; font-size: .93rem; padding: 6px 0; position: relative; }
.nav a:hover { color: var(--blue); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .2s; }
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 14px; }

.search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.search input { border: 0; padding: 8px 10px; outline: none; width: 130px; font-size: .9rem; }
.search button { border: 0; background: var(--bg-alt); padding: 8px 12px; cursor: pointer; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue-dark) 55%, var(--blue) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%;
  background: repeating-linear-gradient(105deg, rgba(255,255,255,.06) 0 18px, transparent 18px 40px);
  transform: skewX(-8deg);
}
.hero__inner { padding: 70px 20px 80px; position: relative; z-index: 2; }
.hero__content { max-width: 720px; }
.hero__eyebrow { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 40px; font-size: .82rem; letter-spacing: .3px; margin-bottom: 18px; }
.hero__title { color: #fff; font-size: 2.7rem; margin-bottom: 16px; }
.hero__lead { font-size: 1.12rem; color: #d8e4f1; max-width: 640px; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { list-style: none; display: flex; gap: 42px; margin: 42px 0 0; padding: 0; flex-wrap: wrap; }
.hero__stats b { display: block; font-size: 2rem; color: var(--accent); }
.hero__stats span { color: #c4d4e6; font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; }
.section__title { font-size: 1.9rem; margin: 0; }
.section__link { font-weight: 600; white-space: nowrap; }
.block-title { font-size: 1.4rem; margin: 32px 0 14px; }

.page-head { background: var(--bg-alt); padding: 40px 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 2.1rem; margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 760px; margin: 0; }
.page-head__phone a { font-weight: 700; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--projects { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- Category card ---------- */
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s; box-shadow: var(--shadow); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card__media { aspect-ratio: 16/10; background: var(--bg-alt); display: grid; place-items: center; overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__placeholder { font-size: 3rem; font-weight: 800; color: var(--blue); opacity: .25; }
.cat-card__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-card__title { font-size: 1.15rem; margin: 0; color: var(--navy); }
.cat-card__sub { color: var(--muted); font-size: .85rem; }
.cat-card__more { color: var(--blue); font-weight: 600; font-size: .9rem; margin-top: auto; }

/* ---------- Product card ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__media { aspect-ratio: 4/3; background: var(--bg-alt); display: grid; place-items: center; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { font-size: 2.6rem; font-weight: 800; color: var(--blue); opacity: .22; }
.card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.card__title { font-size: 1.05rem; margin: 0; }
.card__title a { color: var(--navy); }
.card__title a:hover { color: var(--blue); }
.card__desc { font-size: .88rem; color: var(--muted); margin: 0; }
.card__footer { margin-top: auto; display: flex; gap: 8px; padding-top: 8px; }

/* ---------- About teaser ---------- */
.about-teaser { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about-teaser p { color: #3a4859; }
.about-teaser__actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.about-teaser__features { list-style: none; padding: 24px; margin: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-teaser__features li { padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--steel); font-weight: 500; }
.about-teaser__features li:last-child { border-bottom: 0; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 18px; margin: 28px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; color: var(--blue); }
.stat span { color: var(--muted); font-size: .88rem; }
.check-list { padding-left: 0; list-style: none; }
.check-list li { padding: 8px 0 8px 28px; position: relative; }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Project card ---------- */
.project-card { display: block; border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--navy); box-shadow: var(--shadow); }
.project-card__media { aspect-ratio: 4/3; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.project-card:hover .project-card__media img { transform: scale(1.05); opacity: .85; }
.project-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  background: linear-gradient(transparent, rgba(11,37,64,.9)); color: #fff; }
.project-card__body h3 { color: #fff; margin: 0 0 2px; font-size: 1.05rem; }
.project-card__body span { font-size: .82rem; color: #c4d4e6; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.product__main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4/3; }
.product__main img { width: 100%; height: 100%; object-fit: contain; }
.product__noimg { display: grid; place-items: center; height: 100%; font-size: 4rem; font-weight: 800; color: var(--blue); opacity: .2; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; border: 2px solid var(--line); border-radius: 8px; overflow: hidden;
  background: #fff; cursor: pointer; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--blue); }
.product__cat { text-transform: uppercase; font-size: .78rem; letter-spacing: .5px; color: var(--muted); }
.product__title { font-size: 2rem; margin: 6px 0 14px; }
.product__lead { color: #3a4859; font-size: 1.05rem; }
.product__colors { margin: 22px 0; }
.product__colors-label { display: block; font-weight: 600; margin-bottom: 8px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); }
.product__cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.product-details { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.specs { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.specs th { background: var(--bg-alt); color: var(--steel); font-weight: 600; width: 50%; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.prose { color: #36424f; }
.prose-wide { max-width: 880px; }

/* ---------- Surface / forms ---------- */
.card-surface { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.inquiry-form__title { font-size: 1.25rem; margin-bottom: 4px; }
.inquiry-form__subtitle { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.field { margin-bottom: 12px; }
.inquiry-form input, .inquiry-form textarea, .search--page input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; font-family: inherit; }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,102,179,.12); }
.inquiry-form__note { font-size: .76rem; color: var(--muted); margin: 10px 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy), var(--blue-dark)); color: #fff; }
.cta__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; font-size: 1.9rem; }
.cta p { color: #d3e0ef; }
.cta__phones { list-style: none; padding: 0; margin: 18px 0 0; }
.cta__phones li { padding: 5px 0; }
.cta__phones a { color: #fff; font-weight: 700; font-size: 1.1rem; }
.cta__phones span { color: #aebfd2; font-weight: 400; font-size: .9rem; }

/* ---------- Breadcrumbs / chips ---------- */
.breadcrumbs { padding: 14px 0; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs__sep { margin: 0 8px; opacity: .5; }
.breadcrumbs__current { color: var(--ink); font-weight: 600; }
.subcats { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 8px 18px; font-weight: 600; color: var(--navy); }
.chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Gallery / certs ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; margin-top: 20px; }
.gallery--certs { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
.gallery__item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: block; }
.gallery__item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.gallery--certs .gallery__item img { aspect-ratio: 3/4; object-fit: contain; background: #fff; padding: 6px; }
.gallery__cap { display: block; padding: 8px 10px; font-size: .82rem; color: var(--muted); }
.cert-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.cert { flex: 0 0 200px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cert img { width: 100%; height: 260px; object-fit: contain; padding: 8px; }
.project-detail__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }

/* ---------- RAL grid ---------- */
.ral-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 12px; }
.ral { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; text-align: center; }
.ral__swatch { display: block; height: 64px; }
.ral__code { display: block; font-weight: 700; font-size: .85rem; padding: 6px 4px 0; }
.ral__name { display: block; font-size: .72rem; color: var(--muted); padding: 0 4px 6px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contacts__phones { list-style: none; padding: 0; margin: 0 0 22px; }
.contacts__phones li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.contacts__phones a { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.contacts__label { display: block; font-size: .85rem; color: var(--muted); }
.contacts__meta { list-style: none; padding: 0; }
.contacts__meta li { padding: 5px 0; }
.contacts__socials { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.map { margin-top: 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; min-height: 380px; border: 0; display: block; }
.back-link { display: inline-block; margin-bottom: 8px; color: var(--muted); font-weight: 600; }

/* ---------- Messages / alerts ---------- */
.messages { margin: 18px 0; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 10px; font-weight: 500; }
.alert--success { background: #e6f6ec; color: #14794a; border: 1px solid #b7e4c8; }
.alert--error { background: #fdecec; color: #b33; border: 1px solid #f3c2c2; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #aebfd2; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; padding: 50px 20px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.logo--footer .logo__text { color: #fff; }
.logo--footer .logo__text b { color: var(--accent); }
.footer__about { font-size: .88rem; margin-top: 14px; }
.footer__links, .footer__contacts { list-style: none; padding: 0; margin: 0; }
.footer__links li, .footer__contacts li { padding: 5px 0; font-size: .9rem; }
.footer__links a, .footer__contacts a { color: #aebfd2; }
.footer__links a:hover, .footer__contacts a:hover { color: #fff; }
.footer__contacts span { color: #7d92ab; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .82rem; color: #7d92ab; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(11,37,64,.6); backdrop-filter: blur(2px); }
.modal__dialog { position: relative; background: #fff; border-radius: var(--radius); padding: 30px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); z-index: 2; }
.modal__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.8rem;
  line-height: 1; cursor: pointer; color: var(--muted); }
.modal__close:hover { color: var(--ink); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(11,37,64,.92); display: grid; place-items: center;
  z-index: 200; padding: 30px; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-teaser, .product, .product-details, .cta__inner, .contacts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 2.1rem; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .header__inner { flex-wrap: wrap; }
  .nav { position: fixed; top: 76px; right: 0; bottom: 0; width: 78%; max-width: 320px; background: #fff;
    flex-direction: column; gap: 0; padding: 16px; box-shadow: var(--shadow-lg); transform: translateX(100%);
    transition: transform .25s; margin-left: 0; overflow-y: auto; }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); width: 100%; }
  .header__actions { margin-left: auto; }
  .search { display: none; }
}
@media (max-width: 560px) {
  .hero__inner { padding: 50px 20px 56px; }
  .hero__title { font-size: 1.8rem; }
  .hero__stats { gap: 26px; }
  .section { padding: 44px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__contacts .topbar__item:first-child { display: none; }
}
