/* Light-touch refinement using unslop by Damir Sokolovsky, CC BY 4.0.
   Source: https://github.com/heydamir/unslop
   License: https://creativecommons.org/licenses/by/4.0/
   Keep the existing brand, imagery, section order and responsive grids. */
:root {
  --ui-muted: #657385;
  --ui-line: #dce5ed;
  --ui-hover-line: #a6bdce;
  --ui-shadow: 0 4px 16px rgba(23, 32, 42, .06);
  --ui-ease: cubic-bezier(.2, .7, .3, 1);
}

/* Make small supporting text readable without competing with titles. */
body { text-rendering: optimizeLegibility; }
.sec-title, .page-hero-copy h1, .pi-title, .cta h2 {
  font-weight: 600;
  letter-spacing: 0;
}
.sec-en, .page-hero-en, .hero-eyebrow {
  letter-spacing: .08em;
  font-weight: 500;
}
.sec-en, .side-head p, .product-model, .news-meta time, .side-count {
  color: var(--ui-muted);
}
.sec-en { font-size: 12px; margin-top: 8px; }
.side-head p { font-size: 11px; letter-spacing: .06em; }
.hero-copy h1, .hero-copy h2 { font-weight: 600; letter-spacing: 0; }
.hero-desc { line-height: 1.85; }
.sec-desc, .cat-body p, .product-desc, .news-desc { line-height: 1.8; }
.product-model, .news-meta time, .result-count, .pg-num, .side-count,
.sc-tel, .header-tel strong { font-variant-numeric: tabular-nums; }
.sec-head-main { padding-left: 16px; }
.sec-head-main::before { background: var(--c-main); }

/* News has a compact horizontal mobile layout; keep those insets intact. */
.news-page .news-card:hover .news-thumb img { transform: none; }
.news-page .news-thumb img { transition: none; }
.news-page .news-meta time { color: var(--ui-muted); }
.news-page .news-more, .news-page .news-card:hover .news-more {
  gap: 4px;
  transition: color 180ms var(--ui-ease);
}
@media (min-width: 768px) {
  .news-page .news-body { padding: 20px; }
  .news-page .news-desc { font-size: 14px; line-height: 1.8; }
  .news-page .news-card { transition: border-color 180ms var(--ui-ease), box-shadow 180ms var(--ui-ease); }
  .news-page .news-card:hover, .news-page .news-card:focus-within {
    transform: none;
    border-color: var(--ui-hover-line);
    box-shadow: var(--ui-shadow);
  }
}

/* Equal components share an inset rhythm; grid columns stay unchanged. */
.cat-body, .product-body, .news-body { padding: 20px; }
.cat-body { gap: 8px; }
.product-name, .cat-body h3, .news-title { line-height: 1.6; }
.product-model { margin-top: 8px; letter-spacing: 0; }
.product-desc, .news-desc { font-size: 14px; }
.product-btn, .news-more { margin-top: 16px; }
.news-meta { gap: 8px; margin-bottom: 12px; }
.news-tag { padding: 2px 8px; }

/* Quiet hover feedback instead of lifting the card and zooming the photo. */
.cat-card, .product-card, .news-card {
  border-color: var(--ui-line);
  box-shadow: none;
  transition: border-color 180ms var(--ui-ease), box-shadow 180ms var(--ui-ease);
}
.cat-card:hover, .product-card:hover, .news-card:hover,
.cat-card:focus-within, .product-card:focus-within, .news-card:focus-within {
  border-color: var(--ui-hover-line);
  box-shadow: var(--ui-shadow);
  transform: none;
}
.cat-card:hover .cat-thumb img,
.product-card:hover .product-thumb img,
.news-card:hover .news-thumb img { transform: none; }
.cat-card .cat-thumb img, .product-card .product-thumb img,
.news-card .news-thumb img { transition: none; }
.more-link, .cat-more { transition: color 180ms var(--ui-ease); }
.more-link, .more-link:hover { gap: 8px; }
.cat-more, .cat-card:hover .cat-more { gap: 4px; }

/* Preserve both existing accent palettes, with legible action labels. */
.btn { min-height: 44px; padding-inline: 24px; border-radius: 6px; }
.btn-primary { background: var(--c-main); }
.btn-primary:hover { background: #02466d; }
body:not(.page-home) { --c-accent-dark: #0b7304; }
.page-home .btn-accent { color: #172534; }
.page-home .btn-accent:hover { color: #172534; }
.product-btn { min-height: 40px; display: inline-flex; align-items: center; }
.catalog-search input[type=search]::placeholder { color: var(--ui-muted); opacity: 1; }
.catalog-search input[type=search]:focus-visible {
  outline: 2px solid var(--c-main);
  outline-offset: 2px;
}
.pg-title, .side-head h2 { font-weight: 600; letter-spacing: 0; }
.pg-head { gap: 16px; }
.prod-item { min-height: 44px; }

/* The imagery remains the visual focal point; secondary panels stay quiet. */
.cta { background: var(--c-primary); }
.side-contact { background: var(--c-main); }
.empty-state { background: var(--c-soft); }
.footer-brand p, .footer-contact li { color: rgba(255, 255, 255, .74); }
.footer-bottom { color: rgba(255, 255, 255, .65); line-height: 1.8; }
.footer-friends a { color: rgba(255, 255, 255, .74); }
.footer-col li a { transition: color 180ms var(--ui-ease); }
.footer-col li a:hover { padding-left: 0; text-decoration: underline; text-underline-offset: 4px; }

/* Keyboard feedback matches pointer feedback without hiding focus rings. */
.btn:focus-visible, .product-btn:focus-visible, .prod-item:focus-visible,
.news-more:focus-visible, .more-link:focus-visible { outline-color: var(--c-main); }
.hero .btn:focus-visible, .cta .btn:focus-visible,
.site-footer a:focus-visible { outline-color: #fff; }

/* Explicit child visibility must not keep a closed mobile menu interactive. */
@media (max-width: 1023px) {
  .site-header .nav:not(.is-open) .dropdown {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  .cat-body, .product-body, .news-body { padding: 16px; }
  .catalog-grid .product-body { padding: 16px; }
  .sec-en { font-size: 11px; letter-spacing: .06em; }
  .sec-head { gap: 16px; }
  .catalog-search { padding: 12px; gap: 8px; }
  .catalog-search .btn { padding-inline: 16px; }
  .product-desc, .news-desc { font-size: 13px; }
  .footer-col li a { display: inline-block; padding-block: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
