/*
Theme Name: Bureau Inspection
Theme URI: https://bureauinspection.uz
Author: Bureau Inspection
Description: Одностраничная корпоративная тема Bureau Inspection — независимая инспекция, испытания и лабораторный анализ. Любой запрос отдаёт эту страницу. Три языка: RU / UZ / EN.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: bureau-inspection
*/

:root {
  --font-heading: "Oswald", "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 500;
  --font-body: "IBM Plex Sans", "Barlow", system-ui, sans-serif;
  --leading: 24px;
  --edge: clamp(20px, 3.4vw, 104px);
  --maxw: 1680px;
}

html { scroll-behavior: smooth; }
body { margin: 0; text-wrap: pretty; -webkit-font-smoothing: antialiased; }
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-900); }
img { max-width: 100%; }

.nav { flex-wrap: nowrap !important; }
.nav-burger { display: none; }
@media (max-width: 1000px) {
  .nav-links { display: none !important; }
  .nav-burger { display: flex; }
}

.std-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .std-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .std-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

.geo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1360px) { .geo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .geo-grid { grid-template-columns: minmax(0, 1fr) !important; } }


/* Сетки: явные колонки вместо процентных minmax — иначе на телефоне
   auto-fit оставляет 3–4 узкие колонки вместо одной */
.hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 900px) {
  .lab-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .lab-list { margin-top: 0 !important; }
  .geo-grid { margin-top: 72px !important; }
}
@media (max-width: 700px) {
  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr) !important; }
}

.lab-list > div:first-child { border-top: 0 !important; padding-top: 0 !important; }

@media (max-width: 900px) {
  .hero-kicker { white-space: normal !important; }
}
@media (max-width: 760px) {
  h1, h2 { letter-spacing: 0.01em !important; }
  h2 { font-size: clamp(28px, 7.6vw, 50px) !important; }
  .plate-scroll { overflow-x: auto; }
  .plate-scroll table { min-width: 560px; }
  .util-strip { justify-content: space-between; }
}

/* dropdowns (language + burger) — toggled by assets/js/site.js */
.bi-pop { display: none; }
.bi-pop.is-open { display: flex; }
.bi-optbtn:hover, .bi-iconbtn:hover { background: var(--color-accent-100); }
