/* SKT compact redesign 2.4.0 - overrides only. */
:root {
  --skt-compact-gap: clamp(14px, 1.6vw, 24px);
  --skt-compact-radius: 8px;
}

/* Global density and removal of small green service labels. */
.kicker,
.object-card > span,
.lab-test-card > em,
.article-row__media,
.detail-media,
.director-message,
[data-toggle-director],
[data-hide-director] {
  display: none !important;
}

.section { padding: 32px 0; }
.section + .section { padding-top: 20px; }
.section-head { margin-bottom: 16px; }
.section-head h1,
.section-head h2 { margin-bottom: 10px; }
.section-head .lead { margin-bottom: 0; }
.content-box { padding: clamp(18px, 2vw, 26px); }
p { margin-bottom: 10px; }
h1, h2, h3 { margin-bottom: 10px; }
.compact-title { margin-bottom: 18px; }
.compact-title h1 { margin: 0; }
.skt-compact-page > .section:first-child { padding-top: 24px; }

/* Header: main logo on the left, competition badge on the right. */
.home-header .header-main {
  grid-template-columns: minmax(230px, .85fr) minmax(390px, 1fr) minmax(300px, auto);
  gap: 16px;
  min-height: 78px;
}
.header-right { gap: 12px; }
.competition-badge {
  display: inline-flex;
  flex: 0 0 auto;
  width: 112px;
  height: 64px;
  padding: 3px;
  border: 1px solid rgba(32, 56, 88, .12);
  background: #fff;
  overflow: hidden;
}
.competition-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-search { max-width: 260px; }

/* Home page: all three images are smaller, text gets more space and size. */
.home .about-company { padding-top: 26px; padding-bottom: 26px; }
.home .about-row,
.home .about-row.reverse {
  grid-template-columns: minmax(210px, .52fr) minmax(0, 1.48fr);
  gap: 24px;
  padding: 20px 0;
}
.home .about-row.reverse .about-text { order: 2; }
.home .about-row.reverse .about-image { order: 1; }
.home .about-image { padding: 9px; max-width: 330px; }
.home .about-image img,
.home .about-logo-card img,
.home .lab-building-photo {
  max-height: 230px;
  object-fit: contain;
}
.home .about-text p { font-size: 18px; line-height: 1.48; }
.home .about-text h3 { font-size: 24px; }

/* Products: no repeated headings, compact workspace and immediate category content. */
.product-catalog-section { padding-top: 22px !important; }
.product-workspace { gap: 18px; grid-template-columns: minmax(250px, 292px) minmax(0, 1fr); }
.product-workspace__content { gap: 14px; }
.product-workspace .sidebar { margin: 0; }
.product-panel {
  min-height: 0;
  padding: 20px;
  border-top-width: 3px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.product-panel h2 { color: #202020; font-size: 25px; }
.product-panel p { margin-bottom: 12px; }
.product-panel__products { gap: 10px; margin-top: 14px; }
.product-panel__product { padding: 13px 15px; min-height: 0; }
.product-panel__product strong { color: #202020; }
.product-menu a,
.product-menu button { padding-top: 10px; padding-bottom: 10px; }
.product-menu a.active,
.product-menu button.active { background: var(--green); color: #fff; }
.product-menu a.active::after,
.product-menu button.active::after { color: #fff; }
.product-detail-section { padding-top: 22px !important; }
.product-detail-layout { gap: 18px; }
.product-detail--native { min-width: 0; }
.product-hero--compact {
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.product-hero--compact h1 { font-size: clamp(29px, 3vw, 42px); }
.product-hero--compact .product-pack { max-height: 210px; width: auto; object-fit: contain; }
.product-native-content > *:first-child { margin-top: 0; }
.product-native-content h2 { margin-top: 18px; font-size: 24px; }
.product-native-content h3 { margin-top: 14px; }
.technical-recommendation { margin-top: 18px; }
.technical-recommendation .doc-card { max-width: 430px; }
.product-actions { margin-top: 18px; }

/* Optimization form is denser and the service label is hidden globally. */
.optimization-page .section { padding-top: 22px; }
.optimization-page .section-head { max-width: 980px; margin-bottom: 16px; }
.optimization-page .section-head .lead { max-width: 1040px; }
.optimization-page .optimization-form { padding: 22px; }
.optimization-page .form-section { padding: 16px 0; }
.optimization-page .form-section:first-child { padding-top: 0; }
.optimization-page .form-section h2 { margin-bottom: 12px; font-size: 23px; }
.optimization-page .form-grid { gap: 12px 16px; }
.optimization-page input,
.optimization-page select,
.optimization-page textarea { min-height: 44px; }

/* Laboratory: full-width intro, no photo, compact cards and visible standards. */
.lab-overview-section { padding-top: 22px !important; }
.lab-overview-copy { max-width: 1080px; margin-bottom: 18px; }
.lab-overview-copy h1 { font-size: clamp(32px, 4vw, 48px); }
.lab-overview-copy p { max-width: 980px; font-size: 18px; }
.lab-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lab-compact-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  background: #fff;
  color: #202020;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.lab-compact-card:hover { color: #202020; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.08); }
.lab-compact-card h2 { font-size: 21px; }
.lab-compact-card p { flex: 1; color: #555; }
.gost-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 8px;
  padding: 6px 9px;
  border-radius: 4px;
  background: #eef3ef;
  color: #222;
  font-size: 13px;
  font-weight: 700;
}
.gost-badge--large { font-size: 15px; padding: 8px 11px; }
.lab-standards-panel {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
  gap: 22px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #f7f8f6;
}
.lab-standards-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lab-standards-list span { display: grid; gap: 2px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); }
.lab-standards-list strong { color: #202020; }
.lab-detail-container { max-width: 1050px; }
.lab-detail-header { margin: 14px 0 16px; }
.lab-detail-header h1 { font-size: clamp(30px, 4vw, 46px); }
.lab-detail-content img,
.lab-detail-content figure,
.lab-detail-content .btn-row,
.lab-detail-content [data-lead-type] { display: none !important; }
.lab-detail-content section { padding: 0; margin: 0 0 14px; }
.lab-detail-content h2,
.lab-detail-content h3 { font-size: 22px; margin-top: 14px; }

/* Objects: only the requested title and compact cards. */
.objects-index-section { padding-top: 22px !important; }
.object-grid--compact { gap: 14px; }
.object-grid--compact .object-card { padding-bottom: 16px; }
.object-grid--compact .object-card h2 { padding: 0 16px; margin-top: 14px; font-size: 21px; }
.object-grid--compact .object-card p { padding: 0 16px; margin: 0; color: #555; }
.object-grid--compact .card-img { aspect-ratio: 16 / 9; }
.object-detail-container { max-width: 1080px; }
.object-detail-container > h1 { margin-top: 14px; }

/* Articles: no top explanation, no card images, no director article. */
.articles-index-section { padding-top: 22px !important; }
.article-list--text-only { gap: 12px; }
.article-row--text-only { display: block; padding: 20px; min-height: 0; }
.article-row--text-only .article-row__content { max-width: 980px; }
.article-row--text-only h2 { font-size: 25px; }
.article-detail-header { margin: 14px 0 16px; }
.article-detail-header h1 { font-size: clamp(31px, 4vw, 48px); }
.article-detail-content > *:first-child { margin-top: 0; }
.article-detail-content .detail-media,
.article-detail-content > figure:first-child { display: none !important; }
.diploma-grid,
.diplomas-grid { gap: 12px; }
.diploma-card { padding: 8px; }

/* Contacts: no map duplication; business-like hours instead of a timetable. */
.contacts-compact-section { padding-top: 22px !important; }
.contacts-compact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contacts-compact-grid .contact-card { min-height: 100%; }
.business-hours {
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: #f4f6f3;
}
.business-hours span { font-size: 13px; color: #666; text-transform: uppercase; letter-spacing: .04em; }
.business-hours strong { font-size: 20px; color: #202020; }
.business-hours small { color: #666; }

/* Footer: site map/contacts above, two equal maps on every page. */
.original-footer { padding-top: 0; }
.footer-summary-grid {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 30px;
  padding: 26px 0 16px;
}
.footer-summary-grid h3,
.footer-maps-grid h3 { margin-bottom: 10px; }
.footer-sitemap ul { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.footer-sitemap li { margin: 0; }
.footer-maps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 10px 0 28px;
}
.footer-map-card { max-width: none; }
.footer-map-card__heading { min-height: 72px; }
.footer-map-card__heading p { margin: 0; }
.footer-map-card iframe { height: 210px; }
.footer-map-link { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.footer-bottom__links { display: flex; align-items: center; gap: 14px; }
.wordpress-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #3858a6 !important;
  opacity: .88;
  transition: opacity .15s ease, transform .15s ease;
}
.wordpress-admin-link:hover { opacity: 1; transform: translateY(-1px); color: #3858a6 !important; }
.wordpress-admin-link svg { width: 18px; height: 18px; }

.back-link { display: inline-flex; margin-bottom: 8px; color: #444; font-weight: 700; }
.back-link:hover { color: #111; }

@media (max-width: 1200px) {
  .home-header .header-main { grid-template-columns: minmax(210px, 250px) minmax(340px, 1fr) minmax(255px, auto); }
  .competition-badge { width: 92px; height: 56px; }
  .site-search { max-width: 210px; }
}

@media (max-width: 992px) {
  .competition-badge { display: none; }
  .home-header .header-main { grid-template-columns: minmax(190px, 230px) minmax(310px, 1fr) minmax(210px, 250px); }
  .lab-compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-standards-panel { grid-template-columns: 1fr; }
  .object-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .section { padding: 24px 0; }
  h1 { font-size: 30px; }
  .home .about-row,
  .home .about-row.reverse { grid-template-columns: 1fr; gap: 14px; padding: 16px 0; }
  .home .about-row.reverse .about-text,
  .home .about-row.reverse .about-image { order: initial; }
  .home .about-image { max-width: 100%; }
  .home .about-image img,
  .home .about-logo-card img,
  .home .lab-building-photo { max-height: 210px; }
  .home .about-text p { font-size: 17px; }

  .product-workspace,
  .product-detail-layout { grid-template-columns: 1fr; gap: 14px; }
  .product-workspace .sidebar { grid-column: auto; grid-row: auto; }
  .product-workspace__content { grid-column: auto; }
  .product-panel { padding: 16px; }
  .product-panel__products { grid-template-columns: 1fr; }
  .product-hero--compact { grid-template-columns: 1fr; }
  .product-hero--compact .product-pack { max-height: 180px; margin-inline: auto; }

  .optimization-page .optimization-form { padding: 16px; }
  .lab-compact-grid,
  .lab-standards-list,
  .contacts-compact-grid,
  .footer-summary-grid,
  .footer-maps-grid,
  .object-grid--compact { grid-template-columns: 1fr; }
  .lab-compact-card { min-height: 0; }
  .footer-summary-grid { gap: 18px; }
  .footer-maps-grid { gap: 16px; }
  .footer-map-card__heading { min-height: 0; }
  .footer-map-card iframe { height: 190px; }
  .article-row--text-only { padding: 16px; }
  .best-product-row { display: none !important; }
  .diplomas-section,
  .best-product-home-block { display: none !important; }
  .footer-bottom .container { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .lab-compact-card,
  .wordpress-admin-link { transition: none; }
}
