/* Văn phòng phẩm Phú Khiết — восстановление из веб-архива (снимок 2015-11-10) */

:root {
  --brand: #3f75ff;
  --focus: #0b1b3f;
  --brand-dark: #2b56c8;
  --brand-soft: #eef3ff;
  --ink: #24292f;
  --ink-soft: #6b7280;
  --line: #dfe3e8;
  --panel: #fff;
  --bg: #f2f4f7;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1000px;
}

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

html { scroll-padding-top: 60px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/1.65 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.site-header__bar :focus-visible,
.primary-nav :focus-visible,
.hero :focus-visible { outline-color: #fff; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0; }

.wrap { max-width: var(--wrap); 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); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 500;
  border-radius: 3px;
}
.btn:hover { background: #1f3f96; text-decoration: none; }

/* ---------- шапка ---------- */

.site-header__top { background: var(--panel); }
.site-header__top-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: var(--brand-dark);
  border-radius: 6px;
  color: #fff;
}
.brand__mark svg { width: 26px; height: 26px; fill: currentColor; }
.brand__text { line-height: 1.25; }
.brand__name { display: block; font-size: 24px; font-weight: 700; color: var(--brand-dark); }
.brand__tagline { display: block; font-size: 12.5px; color: var(--ink-soft); }

.site-header__phone { margin: 0 0 0 auto; font-size: 20px; font-weight: 700; }
.site-header__phone a { color: var(--brand-dark); }

.site-header__bar { background: var(--brand-dark); position: sticky; top: 0; z-index: 40; }
.site-header__bar-inner { display: flex; align-items: center; min-height: 44px; position: relative; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle__bar { display: block; height: 2px; background: #fff; margin: 5px 0; }

.primary-nav__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.primary-nav__list a {
  display: block;
  padding: 12px 18px;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
}
.primary-nav__list a:hover { background: #1f3f96; text-decoration: none; }

/* ---------- слайдер ---------- */

.hero { position: relative; background: var(--panel); padding-top: 14px; }
.hero__track {
  position: relative;
  max-width: calc(var(--wrap) - 32px);
  margin: 0 auto;
  aspect-ratio: 980 / 370;
}
.hero__slide { margin: 0; height: 100%; }
.hero__slide[hidden] { display: none; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }

.hero__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .35);
  border: 0; border-radius: 50%;
  color: #fff; cursor: pointer;
}
.hero__nav:hover { background: rgba(0, 0, 0, .6); }
.hero__nav svg { width: 24px; height: 24px; fill: currentColor; }
.hero__nav--prev { left: 12px; }
.hero__nav--next { right: 12px; }

.hero__controls {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hero__pause {
  padding: 5px 12px;
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  font: 500 11px/1.4 var(--font);
  cursor: pointer;
}
.hero__pause:hover { background: rgba(0, 0, 0, .7); }
.hero__dots {
  display: flex; gap: 2px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, .55);
  border-radius: 999px;
}
.hero__dots button {
  width: 24px; height: 24px;
  padding: 0;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.hero__dots button::before {
  content: "";
  width: 11px; height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
}
.hero__dots button[aria-current="true"]::before { background: #fff; }

/* ---------- вводный блок ---------- */

.intro { background: var(--panel); padding: 34px 0; border-bottom: 1px solid var(--line); }
.intro h1 { font-size: clamp(22px, 3vw, 28px); color: var(--brand-dark); margin-bottom: 14px; }
.intro p { margin: 0 0 10px; max-width: 78ch; }
.intro__lead { font-size: 15.5px; font-weight: 500; }

/* ---------- сетка страницы ---------- */

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 34px;
  align-items: start;
}
.layout > * { min-width: 0; }

.widget {
  position: sticky;
  top: 60px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-bottom: 20px;
}
.widget__title {
  margin: 0;
  padding: 11px 14px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 2px 2px 0 0;
}

.cat-tree { margin: 0; padding: 6px 0; list-style: none; font-size: 13.5px; }
.cat-tree > li { padding: 6px 14px; border-bottom: 1px solid #f0f2f5; }
.cat-tree > li:last-child { border-bottom: 0; }
.cat-tree__name { display: block; font-weight: 500; }
.cat-tree__num { color: var(--brand-dark); margin-right: 5px; }
.cat-tree__sub { margin: 4px 0 0; padding: 0 0 0 18px; list-style: none; color: var(--ink-soft); }
.cat-tree__sub li { padding: 2px 0; font-size: 13px; }

.widget--support .support { margin: 0; padding: 10px 14px; list-style: none; }
.widget--support .support li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.widget--support .support li:last-child { border-bottom: 0; }
.support__im { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.support__role { margin: 0; font-size: 12px; color: var(--ink-soft); text-transform: uppercase; }
.support__name { margin: 2px 0; font-weight: 700; }
.support__phone { margin: 0; font-size: 17px; font-weight: 700; }

/* ---------- товары ---------- */

.section-title {
  margin: 0 0 18px;
  padding: 10px 14px;
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.grid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.grid--products { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }

.product {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  text-align: center;
}
.product__media {
  margin: 0 0 10px;
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product__media img { max-height: 100%; max-width: 100%; width: auto; }
.product__title { font-size: 13.5px; font-weight: 500; margin-bottom: 8px; }
.product__price { margin: auto 0 0; color: var(--brand-dark); font-weight: 700; font-size: 13px; }

.cat-blocks { margin-top: 30px; }
.cat-group {
  margin-bottom: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.cat-group > summary {
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f9fc;
}
.cat-group > summary::-webkit-details-marker { display: none; }
.cat-group > summary::before {
  content: "▸" / "";
  color: var(--brand);
  font-size: 13px;
}
.cat-group[open] > summary::before { content: "▾" / ""; }
.cat-group > summary h3 { font-size: 15px; color: var(--brand-dark); }
.cat-group .grid { padding: 16px; }

/* ---------- контакты и футер ---------- */

.contact { background: var(--panel); padding: 36px 0; border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(19px, 2.4vw, 24px); color: var(--brand-dark); margin-bottom: 18px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact__grid > * { min-width: 0; }
.contact__address { font-style: normal; }
.contact__address p { margin: 0 0 7px; }
.contact__company { font-weight: 700; font-size: 16px; }
.contact__label { display: inline-block; min-width: 96px; color: var(--ink-soft); }
.contact__cta p { margin: 0 0 16px; }

.site-footer { background: #1f2937; color: #c3cbd6; }
.site-footer__inner { padding-top: 18px; padding-bottom: 18px; }
.site-footer__company { margin: 0 0 6px; color: #fff; }
.copyright { margin: 0; font-size: 12.5px; }

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .grid--products { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .site-header__top-inner { flex-wrap: wrap; }
  .site-header__phone { width: 100%; margin-left: 0; font-size: 18px; }

  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--brand-dark);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .2);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .no-js .primary-nav { position: static; display: block; box-shadow: none; }
  .no-js .nav-toggle { display: none; }
  .primary-nav__list { flex-direction: column; }
  .primary-nav__list li { border-top: 1px solid rgba(255, 255, 255, .15); }

  .hero__nav { width: 32px; height: 32px; }
  .hero__nav--prev { left: 4px; }
  .hero__nav--next { right: 4px; }
  .grid--products { grid-template-columns: 1fr 1fr; gap: 12px; }
}

.cat-tree__name--link { display: block; padding: 3px 0; font-weight: 500; color: var(--brand-dark); }
.cat-tree__name--link:hover { text-decoration: underline; }
