/* ==========================================================================
   Pesticide.ro - foaie de stil (fara framework-uri, fara fonturi externe)
   Mobile first: regulile de baza sunt pentru telefon; ecranele mari sunt in @media.
   ========================================================================== */

:root {
  --green: #047639;
  --green-dark: #035c2c;
  --green-ink: #0f3d22;
  --green-50: #eef6f0;
  --green-100: #dcecdf;
  --amber: #f0a92e;
  --ink: #18261d;
  --muted: #5a6a5f;
  --line: #dde5df;
  --bg: #f4f6f2;
  --surface: #ffffff;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --info-bg: #e9f2fb;
  --info: #1d4f80;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 40, 24, .06), 0 4px 16px rgba(16, 40, 24, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; color: var(--green-ink); margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.3rem); letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p, ul, ol, dl, address { margin: 0 0 1em; }
address { font-style: normal; }
sup { font-size: .6em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.js .no-js-only { display: none; }
[hidden] { display: none !important; }

/* --- antet -------------------------------------------------------------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: block; flex: 0 1 auto; }
.logo img { display: block; width: 170px; height: auto; }
.header-tools { display: none; }

.nav-toggle {
  display: none; align-items: center; gap: 8px; padding: 10px 14px; font: inherit; font-weight: 600;
  color: var(--green-ink); background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-sm); cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ""; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.main-nav { background: var(--green); }
.main-nav ul { list-style: none; margin: 0 auto; padding-top: 6px; padding-bottom: 6px; display: flex; flex-direction: column; }
.main-nav a { display: block; padding: 11px 12px; color: #fff; text-decoration: none; font-weight: 600; border-radius: var(--radius-sm); }
.main-nav a:hover, .main-nav a.is-active { background: rgba(255, 255, 255, .16); color: #fff; }
.js .main-nav { display: none; }
.js .main-nav.is-open { display: block; }

/* --- structura paginii -------------------------------------------------- */
.page { padding-top: 20px; padding-bottom: 40px; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow); min-width: 0; }
.narrow { max-width: 860px; margin: 0 auto; }
.aside { display: grid; gap: 16px; align-content: start; min-width: 0; }

/* --- coloana laterala --------------------------------------------------- */
.side-cards { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.side-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease;
}
.side-card:hover { transform: translateY(-2px); border-color: var(--green); color: var(--ink); }
.side-card img { width: 64px; height: 64px; flex: none; }
.side-card strong { display: block; color: var(--green-ink); line-height: 1.25; }
.side-card small { display: block; color: var(--muted); font-size: .8rem; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.box-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1 1 auto; min-width: 0; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shots a { display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.shots img { display: block; width: 100%; }
.shots span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: .72rem; color: #fff; background: rgba(15, 61, 34, .78); text-align: center; }

/* --- butoane ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 44px;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius-sm); transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green-50); }
.btn-ghost { color: var(--green-ink); background: var(--green-50); }
.btn-ghost:hover { background: var(--green-100); color: var(--green-ink); }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: .9rem; }

/* --- formulare ---------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select {
  width: 100%; min-height: 44px; padding: 9px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #b9c6bd; border-radius: var(--radius-sm);
}
input:focus, select:focus { border-color: var(--green); outline: 3px solid rgba(4, 118, 57, .22); outline-offset: 0; }
input[aria-invalid="true"] { border-color: var(--danger); }
label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 4px; }
.radio { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 4px 20px 4px 0; min-height: 32px; }
.radio input { width: 18px; height: 18px; accent-color: var(--green); }
.req { color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
.form-narrow { max-width: 460px; }
.field { min-width: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; background: var(--green-50); border-radius: var(--radius); }
.req-note { color: var(--muted); font-size: .9rem; }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.captcha-row img { border: 1px solid var(--line); border-radius: var(--radius-sm); flex: none; }
.captcha-row input { flex: 1 1 160px; max-width: 240px; }
.order-total { background: var(--green-50); border-radius: var(--radius); padding: 12px 16px; }
.order-total strong { display: block; font-size: 1.5rem; color: var(--green-ink); line-height: 1.2; }
.order-total small, .help { color: var(--muted); font-size: .9rem; }

.search-form { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); padding: 16px; margin-bottom: 20px; background: var(--green-50); border-radius: var(--radius); }
.search-form label { margin: 0; }
.guide-filter { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); padding: 16px; margin-bottom: 24px; background: var(--green-50); border-radius: var(--radius); align-items: end; }

/* --- mesaje ------------------------------------------------------------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border-left: 4px solid; }
.alert-success { background: var(--green-50); border-color: var(--green); color: var(--green-ink); }
.alert-error { background: var(--danger-bg); border-color: var(--danger); color: #7a1a14; }
.alert-info { background: var(--info-bg); border-color: var(--info); color: #173e63; }
.note { background: #fff7e6; border-left: 4px solid var(--amber); padding: 10px 14px; border-radius: var(--radius-sm); }

/* --- prima pagina ------------------------------------------------------- */
.hero { padding: 4px 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.lead { font-size: 1.12rem; color: #2b3d31; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.hero-actions .btn { flex: 1 1 240px; }

.file-list { display: grid; gap: 8px; margin: 20px 0 28px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); background: #fff; }
.file:hover { border-color: var(--green); background: var(--green-50); color: var(--ink); }
.file-name { flex: 1 1 auto; font-weight: 600; min-width: 0; }
.file-meta { flex: none; color: var(--muted); font-size: .85rem; }
.file-ext {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 30px;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--green); border-radius: 6px;
}
.file-zip .file-ext, .file-ext.file-zip { background: #8a6d1d; }
.file-pdf .file-ext, .file-ext.file-pdf { background: #b3261e; }
.file-web .file-ext, .file-ext.file-web { background: #1d4f80; }
.file-link { display: flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; }
.file-link:hover span:last-child { text-decoration: underline; }

.cols-3, .cols-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; background: #fff; min-width: 0; }
.card h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 10px; border-bottom: 2px solid var(--green-100); }
.card > :last-child { margin-bottom: 0; }
.card ul { padding-left: 1.15em; }
.card li { margin-bottom: .45em; }
.card li::marker { color: var(--green); }

.price-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; margin-bottom: 24px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); }
.price { display: block; font-size: 2rem; font-weight: 800; color: var(--green-ink); line-height: 1.1; }
.price-note { color: var(--muted); font-size: .92rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding: 0 0 0 30px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.contact-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 1em; }
.contact-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding-top: 10px; }
.contact-list dd { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.contact-list dd:last-child { border-bottom: 0; }

/* --- tabele ------------------------------------------------------------- */
.table-wrap { margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: top; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--green-50); white-space: nowrap; }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot th, .table tfoot td { border-top: 2px solid var(--green); font-weight: 700; }
.table .total { font-size: 1.15rem; color: var(--green-ink); }
.product-name { font-weight: 700; color: var(--green-ink); }
.sort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sort::after { content: "↕"; opacity: .45; }
.sort.is-asc::after { content: "↑"; opacity: 1; color: var(--green); }
.sort.is-desc::after { content: "↓"; opacity: 1; color: var(--green); }

/* pe telefon, randurile tabelelor devin carduri */
@media (max-width: 719px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table, .table tbody, .table tfoot, .table tr, .table td, .table tfoot th { display: block; width: 100%; }
  .table tbody tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 10px; background: #fff; }
  .table tbody td { padding: 3px 0; text-align: left; white-space: normal; }
  .table tbody td[data-label]::before { content: attr(data-label) ": "; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
  .table tbody td:empty { display: none; }
  .table tbody td.num:not([data-label]) { display: none; }
  .table tfoot tr { padding: 8px 12px; }
  .table tfoot th, .table tfoot td { border: 0; padding: 2px 0; text-align: left; }
  .table-products .sort-bar { display: flex; }
}

.result-count { color: var(--muted); }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; background: #fff; }
.pagination a:hover { border-color: var(--green); background: var(--green-50); }
.pagination .is-current { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

.recent { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.recent h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.recent a { color: var(--muted); }

/* --- cautare ------------------------------------------------------------ */
.results { list-style: none; padding: 0; margin: 0 0 20px; }
.result { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.result-img { flex: none; }
.result-img img { display: block; width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.result h3 { margin-bottom: 4px; }
.result p { margin: 0; color: var(--muted); font-size: .94rem; }
.result > div { min-width: 0; }

/* --- ghiduri ------------------------------------------------------------ */
.guide-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.guide-card:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow); color: var(--ink); }
.guide-card img, .guide-card-noimg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--green-100); }
.guide-card-body { padding: 10px 12px 12px; }
.guide-card strong { display: block; color: var(--green-ink); font-style: italic; line-height: 1.25; }
.guide-card small { display: block; color: var(--muted); margin-top: 2px; }

.breadcrumb { margin-bottom: 10px; font-size: .92rem; }
.breadcrumb a { text-decoration: none; font-weight: 600; }
.guide-names { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px 16px; background: var(--green-50); border-radius: var(--radius); }
.guide-names dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.guide-names dd { margin: 0 0 6px; font-weight: 600; }
.guide-text { max-width: 75ch; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--green-100); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* --- noutati, ghid instalare, harta, acord ------------------------------ */
.news-list { display: grid; gap: 12px; margin-bottom: 24px; }
.news { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.news h2 { font-size: 1rem; margin: 0; padding: 10px 16px; background: var(--green-50); }
.news ul { margin: 0; padding: 12px 16px 12px 36px; }
.news li { margin-bottom: .4em; }
.news li::marker { color: var(--green); }

.steps { list-style: none; padding: 0; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 16px 16px 16px 16px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before { content: "Pasul " counter(step); display: inline-block; margin-bottom: 8px; padding: 2px 10px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--green); border-radius: 999px; }
.step img { display: block; margin: 12px auto; border: 1px solid var(--line); border-radius: 6px; }
.step-text p { margin: .5em 0; }

.sitemap, .sitemap ul { list-style: none; padding: 0; margin: 0; }
.sitemap > li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sitemap > li > a { font-weight: 700; }
.sitemap ul { margin: 8px 0 4px; display: grid; gap: 2px 16px; grid-template-columns: minmax(0, 1fr); font-size: .93rem; }
.sitemap ul a { text-decoration: none; }
.sitemap ul a:hover { text-decoration: underline; }

.license { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.license h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.license-text { max-height: 260px; overflow: auto; padding: 14px 16px; font-size: .86rem; line-height: 1.5; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.license-text p { margin: 0 0 .7em; }

/* --- subsol ------------------------------------------------------------- */
.site-footer { background: var(--green-ink); color: #d7e6db; padding: 28px 0; font-size: .93rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.footer-nav a { color: #fff; text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { margin: 0; color: #b9cfbf; }

/* --- lightbox ----------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 25, 15, .9); }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: var(--radius-sm); background: #fff; }
.lightbox figcaption { color: #fff; text-align: center; font-size: .92rem; }
.lightbox button { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; font-size: 1.5rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, .16); border: 0; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; margin-top: -23px; }
.lightbox .lb-next { right: 12px; top: 50%; margin-top: -23px; }
.lightbox-open { overflow: hidden; }

/* ==========================================================================
   Ecrane mai mari
   ========================================================================== */
@media (min-width: 560px) {
  .wrap { padding: 0 24px; }
  .content { padding: 28px 24px; }
  .logo img { width: 200px; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full { grid-column: 1 / -1; }
  .search-form { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
  .guide-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .side-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-list { grid-template-columns: 130px minmax(0, 1fr); }
  .contact-list dt { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .contact-list dd { padding: 10px 0; }
  .contact-list dt:last-of-type { border-bottom: 0; }
  .sitemap ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-names { grid-template-columns: 190px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
  .guide-names dd { margin: 0; }
}

@media (min-width: 720px) {
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-wide-left { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .table tbody tr { border-bottom: 1px solid var(--line); }
  .table tbody tr:hover { background: #f8fbf8; }
  .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
  .file-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .header-bar { padding-top: 16px; padding-bottom: 16px; }
  .logo img { width: 232px; }
  .header-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
  .util-nav { display: flex; gap: 18px; font-size: .9rem; font-weight: 600; }
  .util-nav a { color: var(--muted); text-decoration: none; }
  .util-nav a:hover { color: var(--green); text-decoration: underline; }
  .datagram { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; text-decoration: none; }
  .datagram img { display: block; width: 105px; height: auto; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .main-nav, .js .main-nav { display: block; }
  .main-nav ul { flex-direction: row; gap: 4px; padding-top: 8px; padding-bottom: 8px; }
  .main-nav a { padding: 10px 16px; }
  .main-nav .only-mobile { display: none; }

  .page { padding-top: 28px; padding-bottom: 56px; }
  .page.has-aside { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
  .page.has-aside .content { order: 2; }
  .page.has-aside .aside { order: 1; }
  .content { padding: 36px 40px; }
  .side-cards { grid-template-columns: minmax(0, 1fr); }
  .side-card { flex-direction: row; text-align: left; gap: 14px; padding: 12px 14px; }
  .side-card img { width: 56px; height: 56px; }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-actions .btn { flex: 0 1 auto; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sitemap ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) and (max-width: 1139px) {
  .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1140px) {
  .guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

@media print {
  .site-header, .aside, .site-footer, .btn, .license { display: none !important; }
  .content { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; }
}
