/* ===== BAIK prototype — shared structure (themed via CSS variables) ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font-body);color:var(--text);background:var(--bg);
  line-height:1.6;font-size:16px;-webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--font-head);line-height:1.12;letter-spacing:var(--head-tracking,-.01em);color:var(--text)}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.ic{width:24px;height:24px}
.ic-sm{width:17px;height:17px;display:inline-block;vertical-align:-3px}

/* ---- buttons ---- */
.btn{
  display:inline-flex;align-items:center;gap:8px;font-family:var(--font-head);
  font-weight:600;font-size:15px;padding:13px 22px;border-radius:var(--btn-radius);
  border:1px solid transparent;cursor:pointer;transition:.2s ease;white-space:nowrap;
}
.btn-sm{padding:9px 16px;font-size:14px}
.btn-primary{background:var(--brand);color:var(--on-brand);box-shadow:var(--btn-shadow)}
.btn-primary:hover{background:var(--brand-2);transform:translateY(-2px)}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--border-strong)}
.btn-ghost:hover{border-color:var(--brand);color:var(--brand)}
.btn-light{background:#fff;color:var(--brand-ink);}
.btn-light:hover{transform:translateY(-2px)}

/* ---- header ---- */
.site-header{
  position:sticky;top:0;z-index:50;background:var(--header-bg);
  backdrop-filter:saturate(160%) blur(12px);border-bottom:1px solid var(--header-border);
}
.header-inner{display:flex;align-items:center;gap:32px;height:72px}
.logo{display:inline-flex;align-items:center;gap:11px}
.logo-crown{height:34px;width:auto}
.logo-word-img{height:21px;width:auto}
.logo-lg{gap:16px}
.logo-lg .logo-crown{height:54px}
.logo-lg .logo-word-img{height:33px}
/* wordmark is black artwork → flip to white on dark surfaces */
.site-footer .logo-word-img,.is-dark-logo .logo-word-img{filter:brightness(0) invert(1)}
.nav-main{display:flex;gap:6px;margin-right:auto}
.nav-main a{
  font-family:var(--font-head);font-weight:600;font-size:15px;color:var(--muted);
  padding:8px 14px;border-radius:8px;transition:.15s;
}
.nav-main a:hover{color:var(--text);background:var(--surface-2)}
.nav-main a.is-active{color:var(--brand)}
.header-actions{display:flex;align-items:center;gap:16px}
.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:6px}
.nav-toggle span{width:24px;height:2px;background:var(--text);border-radius:2px;transition:.2s}

/* ---- hero ---- */
.hero{position:relative;padding:72px 0 0;overflow:hidden;background:var(--hero-bg);color:var(--hero-text)}
.hero h1,.hero .lead,.hero .eyebrow{color:var(--hero-text)}
.hero-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.eyebrow{
  display:inline-block;font-family:var(--font-head);font-weight:600;font-size:13px;
  letter-spacing:.12em;text-transform:uppercase;color:var(--brand-2);margin-bottom:18px;
  padding:6px 14px;border:1px solid var(--hero-chip-border);border-radius:99px;background:var(--hero-chip-bg);
}
.hero h1{font-size:clamp(34px,5vw,58px);font-weight:800;margin-bottom:22px}
.hero h1 .accent{color:var(--brand)}
.hero .lead{font-size:18px;color:var(--hero-muted);max-width:560px;margin-bottom:32px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.hero-visual{position:relative;height:100%;min-height:360px;display:grid;place-items:center}
.orb{position:absolute;width:340px;height:340px;border-radius:50%;
  background:var(--orb);filter:blur(8px);opacity:.9}
.glass-card{
  position:relative;width:min(360px,100%);padding:30px;border-radius:24px;
  background:var(--glass-bg);border:1px solid var(--glass-border);
  box-shadow:var(--shadow-lg);backdrop-filter:blur(8px);text-align:center;color:var(--glass-text)}
.glass-card .logo{justify-content:center;margin-bottom:18px;color:var(--glass-text)}
.glass-stat{font-size:15px;color:var(--glass-text);opacity:.9}
.glass-stat span{display:block;font-family:var(--font-head);font-weight:800;font-size:46px;color:var(--brand);opacity:1}
.glass-bars{display:flex;gap:10px;justify-content:center;align-items:flex-end;height:64px;margin-top:22px}
.glass-bars i{width:28px;border-radius:6px 6px 0 0;background:var(--brand);opacity:.85}
.glass-bars i:nth-child(1){height:40%}.glass-bars i:nth-child(2){height:65%}
.glass-bars i:nth-child(3){height:100%;opacity:1}.glass-bars i:nth-child(4){height:55%}
.glass-bars i:nth-child(5){height:78%}

/* ---- stats ---- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:64px;
  padding:34px 0;border-top:1px solid var(--hero-divider)}
.stat-num{font-family:var(--font-head);font-weight:800;font-size:40px;color:var(--brand);line-height:1}
.stat-label{color:var(--hero-muted);font-size:14px;margin-top:6px}

/* ---- sections ---- */
.section{padding:88px 0}
.section-alt{background:var(--surface-2)}
.section-head{max-width:680px;margin:0 0 44px}
.kicker{display:inline-block;font-family:var(--font-head);font-weight:700;font-size:13px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--brand);margin-bottom:12px}
.section-head h2{font-size:clamp(26px,3.4vw,40px);font-weight:800}
.section-sub{color:var(--muted);font-size:17px;margin-top:14px}
.row-head{max-width:none;display:flex;justify-content:space-between;align-items:flex-end;gap:24px}

/* ---- grid + cards ---- */
.grid{display:grid;gap:24px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--card-radius);
  padding:30px;transition:.22s ease;position:relative;box-shadow:var(--card-shadow)}
.card:hover{transform:translateY(-4px);box-shadow:var(--card-shadow-hover);border-color:var(--card-hover-border)}
.card h3{font-size:19px;font-weight:700;margin:18px 0 10px}
.card p{color:var(--muted);font-size:15.5px}
.card-ic{
  width:52px;height:52px;border-radius:14px;display:grid;place-items:center;
  color:var(--brand);background:var(--ic-bg);border:1px solid var(--ic-border)}
.card-link{display:inline-flex;align-items:center;gap:6px;margin-top:16px;
  font-family:var(--font-head);font-weight:600;font-size:14.5px;color:var(--brand)}
.card-link:hover{gap:10px}
.dir-num{position:absolute;top:26px;right:30px;font-family:var(--font-head);font-weight:800;
  font-size:30px;color:var(--num-color)}
.news-card time{font-family:var(--font-head);font-weight:700;font-size:14px;color:var(--brand)}
.news-card p{margin-top:12px;color:var(--text)}
.news-card .news-img{width:100%;height:172px;object-fit:cover;border-radius:12px;margin-bottom:16px;border:1px solid var(--border)}

/* certificate gallery */
.cert-gallery{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.cert-thumb{display:block;aspect-ratio:3/4;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface);transition:.2s}
.cert-thumb img{width:100%;height:100%;object-fit:cover}
.cert-thumb:hover{transform:translateY(-4px);box-shadow:var(--card-shadow-hover);border-color:var(--brand)}

/* dark section (Базис) */
.section-dark{background:var(--dark-bg);color:var(--dark-text)}
.section-dark .kicker{color:var(--accent)}
.section-dark .section-head h2{color:var(--dark-text)}
.bazis-card{background:var(--dark-card);border-color:var(--dark-border);box-shadow:none}
.bazis-card:hover{border-color:var(--accent)}
.bazis-card h3{color:var(--dark-text)}
.bazis-card p{color:var(--dark-muted)}
.bazis-idx{font-family:var(--font-head);font-weight:800;font-size:26px;color:var(--accent);margin-bottom:8px}

/* certificates */
.certs{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.cert{
  display:grid;place-items:center;text-align:center;padding:26px 20px;min-height:96px;
  border:1px solid var(--border);border-radius:var(--card-radius);background:var(--surface);
  font-family:var(--font-head);font-weight:600;color:var(--muted);transition:.2s}
.cert:hover{color:var(--brand);border-color:var(--brand);background:var(--ic-bg)}

/* CTA band */
.cta-band{background:var(--cta-bg);color:#fff;padding:64px 0}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap}
.cta-band h2{color:#fff;font-size:clamp(24px,3vw,34px)}
.cta-band p{color:rgba(255,255,255,.82);margin-top:8px}

/* footer */
.site-footer{background:var(--footer-bg);color:var(--footer-text)}
.footer-inner{display:grid;grid-template-columns:1.6fr 1fr 1.4fr;gap:40px;padding:64px 0 40px}
.footer-brand .logo{color:var(--footer-logo);margin-bottom:16px}
.footer-brand p{color:var(--footer-muted);font-size:15px;max-width:320px}
.site-footer h4{font-family:var(--font-head);font-size:13px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--footer-muted);margin-bottom:16px}
.footer-nav{display:flex;flex-direction:column;gap:10px}
.footer-nav a{color:var(--footer-text);font-size:15px}
.footer-nav a:hover{color:var(--accent)}
.footer-contacts p{color:var(--footer-muted);font-size:15px;margin-bottom:8px}
.footer-bottom{border-top:1px solid var(--footer-border);padding:22px 0;color:var(--footer-muted);font-size:14px}

/* ---- inner-page hero ---- */
.page-hero{background:var(--hero-bg);color:var(--hero-text);padding:54px 0 58px;border-bottom:1px solid var(--hero-divider)}
.page-hero .eyebrow{margin-bottom:14px}
.page-hero h1{font-size:clamp(30px,4vw,46px);font-weight:800;color:var(--hero-text)}
.page-hero p{color:var(--hero-muted);font-size:18px;max-width:640px;margin-top:14px}
.crumbs{font-size:13px;color:var(--muted);margin-bottom:18px;letter-spacing:.02em}
.crumbs a{color:var(--brand)}

/* numbered card (specialization) */
.num-card .dir-num{position:static;display:block;margin-bottom:6px}

/* product grid */
.product-featured{display:grid;grid-template-columns:1.1fr 1fr;gap:0;border:1px solid var(--border);
  border-radius:var(--card-radius);overflow:hidden;background:var(--surface);margin-bottom:24px}
.product-featured .pf-copy{padding:40px}
.product-featured .pf-name{font-family:var(--font-head);font-weight:800;font-size:30px;
  background:var(--grad,none);-webkit-background-clip:text;background-clip:text;color:var(--brand)}
.product-featured .pf-side{background:var(--ic-bg);display:grid;place-items:center;padding:40px;color:var(--brand)}
.product-featured .pf-side svg{width:96px;height:96px}
.product-featured .pf-side img{max-width:200px;max-height:140px;width:auto;object-fit:contain}
.product-featured .pf-copy p{color:var(--muted);margin:10px 0 16px}
.prod .prod-img{width:46px;height:46px;object-fit:contain}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.prod{display:flex;flex-direction:column;gap:12px;padding:22px;border:1px solid var(--border);
  border-radius:var(--card-radius);background:var(--surface);transition:.2s}
.prod:hover{transform:translateY(-3px);border-color:var(--card-hover-border);box-shadow:var(--card-shadow-hover)}
.prod .card-ic{width:44px;height:44px}
.prod span{font-family:var(--font-head);font-weight:600;font-size:14.5px;line-height:1.3}

/* industries grid */
.ind-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.ind{display:flex;align-items:center;gap:14px;padding:20px;border:1px solid var(--border);
  border-radius:var(--card-radius);background:var(--surface);transition:.2s}
.ind:hover{transform:translateY(-3px);border-color:var(--brand);box-shadow:var(--card-shadow-hover)}
.ind .card-ic{width:44px;height:44px;flex:none}
.ind .ind-ic{width:44px;height:44px;flex:none;border-radius:12px;background:var(--ic-bg);border:1px solid var(--ic-border);display:grid;place-items:center}
.ind .ind-ic img{width:24px;height:24px;object-fit:contain}
.ind span{font-family:var(--font-head);font-weight:600;font-size:15px}
.ind-detail{display:grid;grid-template-columns:.8fr 1.2fr;gap:36px;align-items:center;margin-top:40px;
  padding:36px;border:1px solid var(--border);border-radius:var(--card-radius);background:var(--surface-2)}
.ind-detail .id-visual{aspect-ratio:4/3;border-radius:14px;background:var(--ic-bg);display:grid;place-items:center;color:var(--brand);overflow:hidden}
.ind-detail .id-visual svg{width:110px;height:110px}
.ind-detail .id-visual img{max-width:80%;max-height:80%;object-fit:contain}
.ind-detail h3{font-size:24px;font-weight:800;margin-bottom:14px}
.ind-detail p{color:var(--muted)}

/* vacancies */
.vac-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.vac{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px;
  border:1px solid var(--border);border-radius:var(--card-radius);background:var(--surface);transition:.2s}
.vac:hover{transform:translateY(-3px);border-color:var(--card-hover-border);box-shadow:var(--card-shadow-hover)}
.vac h3{font-size:18px;font-weight:700;margin-bottom:8px}
.badge{display:inline-block;font-family:var(--font-head);font-weight:700;font-size:11px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--brand);background:var(--ic-bg);border:1px solid var(--ic-border);
  padding:4px 10px;border-radius:99px}
.vac .apply{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;
  border:1px solid var(--border-strong);color:var(--brand);transition:.2s}
.vac .apply:hover{background:var(--brand);color:#fff;border-color:var(--brand)}
.vac-card h3{font-size:18px;font-weight:700}
.vac-card .vac-text{color:var(--muted);font-size:14.5px;line-height:1.6;margin:12px 0 4px}

/* pillars */
.pillars{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.pillar{text-align:center;padding:26px 18px;border:1px solid var(--border);border-radius:var(--card-radius);background:var(--surface)}
.pillar .card-ic{margin:0 auto 14px}
.pillar h3{font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;margin-bottom:8px}
.pillar p{font-size:13.5px;color:var(--muted)}

/* team */
.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.member{padding:26px;border:1px solid var(--border);border-radius:var(--card-radius);background:var(--surface);text-align:center;transition:.2s}
.member:hover{transform:translateY(-3px);box-shadow:var(--card-shadow-hover)}
.avatar{width:72px;height:72px;border-radius:50%;margin:0 auto 16px;display:grid;place-items:center;
  font-family:var(--font-head);font-weight:800;font-size:24px;color:#fff;background:var(--grad,var(--brand))}
.avatar.avatar-photo{padding:0;background:var(--ic-bg);overflow:hidden;width:96px;height:96px}
.avatar.avatar-photo img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.member h3{font-size:16px;font-weight:700;margin-bottom:4px}
.member p{font-size:13.5px;color:var(--muted)}

/* contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}
.contact-grid iframe,.map-ph{width:100%;height:100%;min-height:360px;border:0;border-radius:var(--card-radius);
  background:var(--ic-bg)}
.contact-form{padding:32px;border:1px solid var(--border);border-radius:var(--card-radius);background:var(--surface);display:flex;flex-direction:column;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:13px;font-weight:600;color:var(--muted)}
.field input,.field textarea{font:inherit;padding:13px 15px;border:1px solid var(--border-strong);
  border-radius:10px;background:var(--surface);color:var(--text);transition:.15s;width:100%}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--ic-bg)}
.info-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}
.info{padding:28px;border:1px solid var(--border);border-radius:var(--card-radius);background:var(--surface)}
.info .card-ic{margin-bottom:16px}
.info h3{font-size:14px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}
.info p{font-size:14.5px;color:var(--muted)}
.info a{color:var(--brand)}
.alert-success{background:#E9F7EF;border:1px solid #BFE9D0;color:#1E7A46;padding:14px 18px;border-radius:12px;margin-bottom:24px;font-weight:600}

/* ---- responsive ---- */
@media(max-width:960px){
  .product-grid,.ind-grid,.team-grid{grid-template-columns:repeat(2,1fr)}
  .pillars{grid-template-columns:repeat(3,1fr)}
  .product-featured,.ind-detail,.contact-grid{grid-template-columns:1fr}
  .info-cards{grid-template-columns:1fr}
  .cert-gallery{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:960px){
  .nav-main{position:fixed;inset:72px 0 auto 0;flex-direction:column;background:var(--header-bg);
    padding:16px 24px;gap:4px;border-bottom:1px solid var(--header-border);
    transform:translateY(-130%);transition:.28s;box-shadow:var(--shadow-lg)}
  body.nav-open .nav-main{transform:translateY(0)}
  .nav-toggle{display:flex}
  .header-actions{margin-left:auto}
  .footer-inner{grid-template-columns:1fr 1fr;gap:32px 40px;padding:48px 0 36px}
  .footer-brand{grid-column:1 / -1}
  .hero-inner{grid-template-columns:1fr;gap:40px}
  .hero-visual{order:-1;min-height:280px}
  .grid-3{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .header-inner{gap:16px}
  .nav-main{margin-right:0}
  .section{padding:60px 0}
  .grid-3,.grid-2,.certs,.product-grid,.ind-grid,.team-grid,.vac-grid{grid-template-columns:1fr}
  .pillars,.cert-gallery{grid-template-columns:repeat(2,1fr)}
  .stats{grid-template-columns:repeat(2,1fr);gap:20px}
  .row-head{flex-direction:column;align-items:flex-start}
  .cta-inner{flex-direction:column;align-items:flex-start}
  .footer-inner{grid-template-columns:1fr;gap:36px;padding:44px 0 32px}
  .footer-nav{gap:8px}
  .footer-nav a{padding:5px 0}
  .footer-contacts p{margin-bottom:10px}
}
