/* ОфисПлюс — дизайн-система */

:root {
  --color-bg: #f3f1ec;
  --color-bg-subtle: #ebe7df;
  --color-surface: #ffffff;
  --color-ink: #1a2228;
  --color-muted: #5a6570;
  --color-border: rgba(26, 34, 40, 0.1);
  --color-primary: #2a6f6b;
  --color-primary-hover: #225a57;
  --color-accent: #c45c2c;
  --color-accent-soft: rgba(196, 92, 44, 0.12);
  --color-danger: #c0392b;
  --color-danger-soft: rgba(192, 57, 43, 0.1);
  --shadow-sm: 0 1px 2px rgba(26, 34, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 34, 40, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 34, 40, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  background-image: radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(42, 111, 107, 0.05),
      transparent 70%
    ),
    radial-gradient(
      ellipse 80% 50% at 100% 100%,
      rgba(196, 92, 44, 0.03),
      transparent 65%
    );
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.container {
  width: min(1160px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* ——— Шапка ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(250, 248, 244, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo:hover .logo__img {
  opacity: 0.88;
}

.logo__img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: min(200px, 45vw);
  object-fit: contain;
  transition: opacity var(--transition);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.nav a {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--color-primary);
  background: rgba(42, 111, 107, 0.08);
}

.nav a.nav__link--accent {
  color: var(--color-accent);
  font-weight: 600;
}

.nav a.nav__link--accent:hover {
  background: var(--color-accent-soft);
  color: #a34d24;
}

.site-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.site-header__actions a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
}

.site-header__actions a:hover {
  color: var(--color-primary);
  background: rgba(42, 111, 107, 0.06);
}

.site-header__actions .btn--sm {
  padding: 0.45rem 1rem;
}

/* ——— Кнопки ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(42, 111, 107, 0.25);
  transition: background var(--transition), transform 0.15s ease,
    box-shadow var(--transition);
}

.btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(42, 111, 107, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: rgba(42, 111, 107, 0.06);
  color: var(--color-primary-hover);
}

.btn--danger {
  background: var(--color-danger);
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.25);
}

.btn--danger:hover {
  background: #a93226;
}

.btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  box-shadow: none;
}

.btn--block {
  width: 100%;
}

/* ——— Hero / главная ——— */

.main {
  padding-bottom: 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
}

.hero__text h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--color-ink);
}

.hero__text h1 span {
  color: var(--color-primary);
}

.hero__text p {
  margin: 0 0 0.85rem;
  color: var(--color-muted);
  max-width: 36ch;
}

.hero__slider {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.slider {
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: inherit;
}

.slide {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: none;
}

.slide.active {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink);
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform 0.15s ease;
  z-index: 2;
}

.slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

/* Блоки под hero */

.info-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (max-width: 800px) {
  .info-blocks {
    grid-template-columns: 1fr;
  }
}

.why-us {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.why-us h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: var(--color-ink);
}

.why-us p {
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.why-us ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--color-muted);
}

.why-us li {
  margin-bottom: 0.35rem;
}

.advantages {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.adv-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.adv-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(42, 111, 107, 0.2);
}

.adv-item__icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.adv-item strong {
  display: block;
  color: var(--color-ink);
  font-size: 0.98rem;
}

.adv-item p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* ——— Товары ——— */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 3rem;
}

.product {
  background: var(--color-surface);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.product-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.45rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.product-qty {
  width: 92px !important;
  padding: 0.45rem 0.6rem !important;
  text-align: center;
}

.product h4 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--color-ink);
  line-height: 1.35;
  flex-grow: 1;
  min-height: 2.7em;
}

.product .price {
  margin: 0.5rem 0 0.85rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.product form {
  margin: 0;
  margin-top: auto;
}

.product .btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* ——— Каталог: сетка с сайдбаром ——— */

.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.catalog-layout > .catalog-left-search {
  grid-column: 1;
  grid-row: 1;
}

.catalog-layout > .catalog-sidebar {
  grid-column: 1;
  grid-row: 2;
}

.catalog-layout > .catalog-products {
  grid-column: 2;
  grid-row: 2;
}

@media (max-width: 768px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
}

.catalog-sidebar {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.catalog-sidebar h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--color-ink);
}

.catalog-left-search {
  margin-bottom: 1.25rem;
}

.cat-search {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f2fffc 100%);
  border: 1px solid rgba(34, 169, 155, 0.24);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.cat-search input {
  margin-bottom: 0;
  width: auto;
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  height: 100%;
}

.cat-search input:focus {
  box-shadow: none;
}

.cat-search .btn {
  margin-top: 0 !important;
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
}

.cat-search__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(34, 169, 155, 0.18);
  padding: 0 0.65rem;
  height: 44px;
  padding-right: 5px;
}

.cat-search__icon {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
}

/* Категории: bottom sheet (мобилки) */
.cat-sheet-btn {
  display: none;
  height: 44px;
  padding: 0 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(34, 169, 155, 0.24);
  background: #fff;
  color: var(--color-ink);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.cat-sheet {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cat-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cat-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 56, 0.45);
  backdrop-filter: blur(4px);
}

.cat-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  border: 1px solid rgba(94, 120, 178, 0.18);
  box-shadow: var(--shadow-lg);
  transform: translateY(10%);
  transition: transform 0.2s ease;
  max-height: 75vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.cat-sheet.is-open .cat-sheet__panel {
  transform: translateY(0);
}

.cat-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(94, 120, 178, 0.16);
}

.cat-sheet__close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(94, 120, 178, 0.2);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-muted);
}

.cat-sheet__list {
  padding: 0.75rem 0.75rem 1rem;
  overflow: auto;
}

.cat-sheet__list .cat-link {
  display: block;
  margin: 0 0 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(94, 120, 178, 0.14);
  background: #fff;
  color: var(--color-ink);
  font-weight: 650;
}

.cat-sheet__list .cat-link.is-active {
  background: var(--color-primary);
  border-color: rgba(34, 169, 155, 0.35);
  color: #fff;
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-list li {
  margin-bottom: 0.35rem;
}

.cat-link {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background var(--transition), color var(--transition);
}

.cat-link:hover {
  background: rgba(42, 111, 107, 0.08);
  color: var(--color-primary);
}

.cat-link.is-active {
  background: var(--color-primary);
  color: #fff;
}

.cat-link.is-active:hover {
  color: #fff;
  background: var(--color-primary-hover);
}

.catalog-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

/* Старые классы categories для совместимости */
.categories a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  margin: 0 0.35rem 0.35rem 0;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.categories a:hover {
  background: var(--color-primary);
  color: #fff;
}

.categories a.is-active {
  background: var(--color-primary);
  color: #fff;
}

/* ——— Корзина ——— */

.cart {
  max-width: 640px;
  margin: 0 auto 3rem;
  background: var(--color-surface);
  padding: 1.75rem 1.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.cart-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item:last-of-type {
  border-bottom: none;
}

.cart-item__title {
  font-weight: 500;
  color: var(--color-ink);
  display: block;
}

.cart-item__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-item__main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cart-item__price {
  font-weight: 600;
  color: var(--color-primary);
  text-align: right;
  min-width: 80px;
}

.cart-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cart-qty-label {
  font-size: 0.875rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.cart-qty-input {
  width: 65px;
  padding: 0.5rem 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  text-align: center;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cart-qty-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(42, 111, 107, 0.1);
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-qty-input[type=number] {
  -moz-appearance: textfield;
}

.cart-total {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--color-bg-subtle);
  text-align: right;
}

.cart-total h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: var(--color-ink);
}

.cart-total form {
  display: inline-block;
}

.cart--empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--color-muted);
}

/* ——— Формы ——— */

.form-card {
  max-width: 420px;
  margin: 0 auto 3rem;
}

.form-card--wide {
  max-width: 520px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(42, 111, 107, 0.15);
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button[type="submit"],
form .btn {
  margin-top: 0.25rem;
}

.form-inline {
  display: inline;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.alert--error {
  background: var(--color-danger-soft);
  color: #922b21;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.alert--success {
  background: rgba(39, 174, 96, 0.12);
  color: #1e6b3d;
  border: 1px solid rgba(39, 174, 96, 0.25);
}

/* ——— Toast уведомление ——— */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--color-ink);
  font-size: 0.95rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ——— Модальное окно ——— */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 34, 40, 0.45);
  z-index: 999;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--color-surface);
  width: min(360px, 90vw);
  padding: 1.75rem;
  margin: 10vh auto;
  border-radius: var(--radius-md);
  position: relative;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--color-muted);
  line-height: 1;
}

.close:hover {
  color: var(--color-ink);
}

/* ——— Подвал ——— */

.footer {
  background: linear-gradient(180deg, #243038 0%, #1a2228 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.75rem 0 2rem;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  text-align: center;
}

@media (max-width: 700px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1rem;
}

.footer a {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer a:hover {
  color: #fff;
}

.footer p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

/* ——— Админ / личный кабинет ——— */

.admin,
.user {
  max-width: 880px;
  margin: 0 auto 3rem;
  background: var(--color-surface);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.admin--wide {
  max-width: 1000px;
}

.admin__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin a.btn,
.admin a.btn--secondary,
.user a.btn,
.user a.btn--secondary {
  display: inline-flex;
}

.admin a,
.user a {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(42, 111, 107, 0.2);
  transition: background var(--transition), transform 0.15s ease;
}

.admin button,
.user button {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(42, 111, 107, 0.2);
  transition: background var(--transition), transform 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.admin button:hover,
.user button:hover {
  background: var(--color-primary-hover);
  color: #fff !important;
}

.admin button.link-danger,
.user button.link-danger {
  background: var(--color-danger);
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.25);
}

.admin button.link-danger:hover,
.user button.link-danger:hover {
  background: #a93226;
}

.admin a:hover,
.user a:hover {
  background: var(--color-primary-hover);
  color: #fff !important;
}

.admin a.link-danger,
.user a.link-danger {
  background: var(--color-danger);
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.25);
}

.admin a.link-danger:hover,
.user a.link-danger:hover {
  background: #a93226;
}

.admin a.link-muted,
.user a.link-muted {
  background: var(--color-bg-subtle);
  color: var(--color-ink) !important;
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.admin a.link-muted:hover,
.user a.link-muted:hover {
  background: var(--color-bg);
  color: var(--color-primary) !important;
}

.user a.btn,
.admin a.btn {
  background: var(--color-primary);
  color: #fff !important;
  border: none;
  padding: 0.65rem 1.2rem;
}

.user a.btn--secondary,
.admin a.btn--secondary {
  background: var(--color-surface);
  color: var(--color-primary) !important;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.user a.btn--secondary:hover,
.admin a.btn--secondary:hover {
  background: rgba(42, 111, 107, 0.06);
  color: var(--color-primary-hover) !important;
}

.admin-product {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 600px) {
  .admin-product {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .admin-product img {
    margin: 0 auto;
  }
}

.admin-product:last-child {
  border-bottom: none;
}

.admin-product img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.admin-product__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.admin-product__actions a,
.admin-product__actions button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), transform 0.15s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.admin-product__actions a {
  background: var(--color-primary);
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(42, 111, 107, 0.2);
}

.admin-product__actions a:hover {
  background: var(--color-primary-hover);
}

.admin-product__actions button {
  background: var(--color-danger);
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.25);
}

.admin-product__actions button:hover {
  background: #a93226;
}

/* ——— FAQ / details ——— */

details {
  margin-bottom: 0.65rem;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-ink);
}

details[open] summary {
  margin-bottom: 0.5rem;
}

/* ——— Заголовки страниц ——— */

.page-title {
  text-align: center;
  margin: 2.25rem 0 1.25rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.page-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.page-content--fluid {
  max-width: none;
  width: min(1160px, 92vw);
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.content-card {
  padding: 1.35rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.content-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
  color: var(--color-ink);
}

.content-card p,
.content-card li {
  color: var(--color-muted);
  margin: 0;
}

.content-card ul,
.content-card ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.content-card a {
  font-weight: 600;
}

h3 {
  color: var(--color-ink);
}

/* ——— Заказы ——— */

.order-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.support-message {
  white-space: pre-wrap;
  color: var(--color-muted);
  text-align: left;
  margin-top: 0.25rem;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.order-item__info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.order-item__link {
  margin-left: 0.5rem;
  font-weight: 600;
}

.order-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.order-status--processing {
  background: rgba(255, 193, 7, 0.15);
  color: #d68910;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.order-status--confirmed {
  background: rgba(33, 150, 243, 0.15);
  color: #1976d2;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.order-status--shipped {
  background: rgba(156, 39, 176, 0.15);
  color: #7b1fa2;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.order-status--delivered {
  background: rgba(76, 175, 80, 0.15);
  color: #388e3c;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.order-status--cancelled {
  background: rgba(244, 67, 54, 0.15);
  color: #d32f2f;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.order-details {
  margin-top: 1rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 0;
  border: 1px solid var(--color-border);
}

.order-details summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  user-select: none;
}

.order-details summary:hover {
  background: rgba(34, 169, 155, 0.05);
}

.order-details[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.order-details__content {
  padding: 1.25rem;
}

.order-details__content h4 {
  margin: 1.25rem 0 0.65rem;
  font-size: 0.95rem;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.order-details__content h4:first-child {
  margin-top: 0;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  font-size: 0.9rem;
}

.order-detail-grid strong {
  color: var(--color-muted);
  font-weight: 600;
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-status-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.order-status-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
}

.order-status-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(34, 169, 155, 0.15);
}

.order-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0;
}

.order-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.order-line__text {
  flex: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.text-muted-block {
  padding: 1.5rem;
  color: var(--color-muted);
}

.text-muted {
  display: block;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* Utility */
.mt-sm {
  margin-top: 0.75rem;
}
.mt-md {
  margin-top: 1.25rem;
}

/* ===== Редизайн v2 (светлая тема) ===== */

:root {
  --color-bg: #f6f9ff;
  --color-bg-subtle: #edf3ff;
  --color-surface: #ffffff;
  --color-ink: #1a2640;
  --color-muted: #5a6b8a;
  --color-border: rgba(72, 95, 143, 0.16);
  --color-primary: #22a99b;
  --color-primary-hover: #1b8f84;
  --color-accent: #ff7d5f;
  --shadow-sm: 0 6px 16px rgba(24, 117, 111, 0.12);
  --shadow-md: 0 12px 28px rgba(24, 117, 111, 0.16);
  --shadow-lg: 0 20px 45px rgba(24, 117, 111, 0.2);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 26px;
}

body {
  background:
    radial-gradient(1100px 520px at -10% -5%, rgba(34, 169, 155, 0.08), transparent 70%),
    radial-gradient(900px 520px at 110% 5%, rgba(255, 125, 95, 0.06), transparent 70%),
    linear-gradient(180deg, #f7faff 0%, #f2f7ff 100%);
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(89, 112, 164, 0.18);
  box-shadow: 0 8px 25px rgba(44, 68, 124, 0.08);
}

.nav a {
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: rgba(34, 169, 155, 0.24);
  background: rgba(34, 169, 155, 0.1);
}

.page-content,
.form-card .page-content,
.cart,
.admin,
.user,
.catalog-sidebar,
.why-us,
.product,
.content-card,
details {
  border: 1px solid rgba(94, 120, 178, 0.16);
  box-shadow: 0 12px 30px rgba(55, 81, 141, 0.1);
}

.hero {
  align-items: stretch;
  padding-top: 2.25rem;
}

.hero__text {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(102, 127, 181, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-md);
}

.hero__slider {
  min-height: 340px;
  border: 1px solid rgba(103, 129, 183, 0.24);
}

.slider {
  position: relative;
  min-height: 340px;
}

.slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.85s ease, transform 1.2s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero__slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 27, 56, 0.56) 100%);
  pointer-events: none;
  z-index: 1;
}

.slider-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  z-index: 3;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 0.95rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

.slider-btn {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(34, 169, 155, 0.25);
}

.slider-btn:hover {
  background: #fff;
}

.adv-item {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.product {
  overflow: hidden;
}

.product img {
  transition: transform 0.45s ease;
}

.product:hover img {
  transform: scale(1.03);
}

.btn {
  border-radius: 13px;
}

.btn--secondary {
  background: #f8faff;
}

.footer {
  margin-top: 1.5rem;
  background: linear-gradient(180deg, #f5f8ff 0%, #eaf1ff 100%);
  color: var(--color-muted);
  border-top: 1px solid rgba(94, 120, 178, 0.2);
}

.footer h4 {
  color: #6076a2;
}

.footer a {
  color: #495f88;
}

.footer a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(94, 120, 178, 0.2);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .footer__bottom {
    flex-direction: column;
    align-items: center;
  }
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-label {
  margin: 0 0 0.25rem;
  color: var(--color-muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.profile-greeting {
  margin: 0;
  font-weight: 600;
  color: var(--color-primary);
}

.profile-stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}

.profile-stat {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(94, 120, 178, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.profile-stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.profile-stat strong {
  font-size: 1.2rem;
  color: var(--color-ink);
}

.profile-notes {
  border: 1px solid rgba(94, 120, 178, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  background: #f8faff;
}

.profile-notes h3 {
  margin-top: 0;
}

.profile-notes ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.popular-block {
  margin-top: 2rem;
  padding: 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #f2fffc 100%);
  border: 1px solid rgba(34, 169, 155, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.popular-products {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 900px) {
  .popular-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .popular-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .popular-block__head .btn {
    width: 100%;
  }
}

.popular-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.popular-block__head h2 {
  margin: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

@media (max-width: 840px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 480px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  border: 1px solid rgba(34, 169, 155, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f2fffc 100%);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.admin-stat-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.admin-stat-card strong {
  font-size: 1.5rem;
  color: var(--color-ink);
}

.admin-widgets {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.9rem;
}

@media (max-width: 780px) {
  .admin-widgets {
    grid-template-columns: 1fr;
  }
}

.admin-widget {
  border: 1px solid rgba(34, 169, 155, 0.24);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.admin-widget h3 {
  margin: 0 0 0.75rem;
}

.admin-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-mini-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f8fffd;
}

.admin-mini-list small {
  grid-column: 1 / -1;
  color: var(--color-muted);
}

.admin-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* ——— Инфографика (главная): OfficePlus ——— */

.officeplus-infographic {
  --opi-bg: var(--color-bg);
  --opi-surface: var(--color-surface);
  --opi-border: rgba(34, 169, 155, 0.24);
  --opi-primary: var(--color-primary);
  --opi-primary-dark: var(--color-primary-hover);
  --opi-ink: var(--color-ink);
  --opi-muted: var(--color-muted);
  --opi-soft: rgba(34, 169, 155, 0.08);
  --opi-shadow: var(--shadow-md);
  --opi-radius: var(--radius-md);

  padding: 2rem 0 2.5rem;
  background:
    radial-gradient(1200px 600px at 50% 60%, rgba(34, 169, 155, 0.07), rgba(34, 169, 155, 0) 75%),
    var(--opi-bg);
}

.officeplus-infographic .opi-container {
  width: min(1160px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.officeplus-infographic .opi-card {
  background: var(--opi-surface);
  border: 1px solid var(--opi-border);
  border-radius: var(--opi-radius);
  box-shadow: var(--opi-shadow);
  padding: 1rem 1.1rem;
}

.officeplus-infographic .opi-head {
  text-align: left;
}

.officeplus-infographic .opi-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--opi-border);
  background: var(--opi-soft);
  color: var(--opi-primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.officeplus-infographic .opi-head h2 {
  margin: 0.2rem 0 0.4rem;
  color: var(--opi-ink);
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.officeplus-infographic .opi-head p {
  margin: 0;
  color: var(--opi-muted);
  max-width: 70ch;
}

.officeplus-infographic .opi-grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.officeplus-infographic .opi-grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.officeplus-infographic .opi-card h3 {
  margin: 0.2rem 0 0.8rem;
  color: var(--opi-ink);
  font-size: 1.08rem;
}

.officeplus-infographic .opi-card h4 {
  margin: 0.6rem 0 0.35rem;
  color: var(--opi-ink);
  font-size: 1rem;
}

.officeplus-infographic .opi-card p {
  color: var(--opi-muted);
}

.officeplus-infographic .opi-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.officeplus-infographic .opi-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--opi-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
}

.officeplus-infographic .opi-list strong {
  display: block;
  font-size: 0.94rem;
  color: var(--opi-ink);
}

.officeplus-infographic .opi-list small {
  display: block;
  color: var(--opi-muted);
  font-size: 0.83rem;
  line-height: 1.25;
}

.officeplus-infographic .opi-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--opi-soft);
  border: 1px solid var(--opi-border);
  color: var(--opi-primary-dark);
}

.officeplus-infographic .opi-icon svg {
  width: 18px !important;
  height: 18px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.officeplus-infographic .opi-icon svg circle,
.officeplus-infographic .opi-icon svg path {
  stroke: currentColor;
}

.officeplus-infographic .opi-solutions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0.75rem 0;
}

.officeplus-infographic .opi-solution-item {
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--opi-border);
  border-radius: 14px;
  background: rgba(34, 169, 155, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.officeplus-infographic .opi-solution-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--opi-shadow);
  border-color: rgba(34, 169, 155, 0.34);
}

.officeplus-infographic .opi-solution-item .opi-icon {
  margin-bottom: 0.6rem;
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.officeplus-infographic .opi-solution-item .opi-icon svg {
  width: 20px !important;
  height: 20px !important;
}

.officeplus-infographic .opi-solution-item h4 {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--opi-ink);
  line-height: 1.3;
}

.officeplus-infographic .opi-process {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.6rem;
}

.officeplus-infographic .opi-step {
  border: 1px solid var(--opi-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.65rem;
  display: grid;
  gap: 0.5rem;
}

.officeplus-infographic .opi-step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--opi-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.officeplus-infographic .opi-step-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}

.officeplus-infographic .opi-step p {
  margin: 0;
}

.officeplus-infographic .opi-step p strong {
  display: block;
  font-size: 0.92rem;
  color: var(--opi-ink);
}

.officeplus-infographic .opi-step p small {
  display: block;
  color: var(--opi-muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.officeplus-infographic .opi-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--opi-primary);
  line-height: 1;
}

.officeplus-infographic .opi-feature {
  text-align: center;
  padding: 1.2rem;
}

.officeplus-infographic .opi-feature h4 {
  margin: 0.5rem 0 0.4rem;
}

.officeplus-infographic .opi-feature p {
  color: var(--opi-muted);
  font-size: 0.88rem;
  margin: 0;
}

@media (max-width: 768px) {
  .officeplus-infographic .opi-grid-2,
  .officeplus-infographic .opi-grid-3,
  .officeplus-infographic .opi-process {
    grid-template-columns: 1fr;
  }

  .officeplus-infographic .opi-process .opi-arrow {
    display: none;
  }

  .officeplus-infographic .opi-process {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .officeplus-infographic .opi-process .opi-step {
    margin-bottom: 0.5rem;
  }

  .officeplus-infographic .opi-solutions {
    grid-template-columns: 1fr;
  }

  .officeplus-infographic .opi-head h2 {
    font-size: 1.3rem;
  }

  .officeplus-infographic .opi-head p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .officeplus-infographic .opi-card {
    padding: 0.8rem;
  }

  .officeplus-infographic .opi-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .officeplus-infographic .opi-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .officeplus-infographic .opi-solution-item .opi-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .officeplus-infographic .opi-solution-item h4 {
    font-size: 0.85rem;
  }
}

/* ——— Mobile nav (только мобильные) ——— */

.site-name {
  display: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(34, 169, 155, 0.25);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.mobile-profile-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(34, 169, 155, 0.25);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--color-primary);
}

.mobile-profile-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-ink);
  opacity: 0.85;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 56, 0.45);
  backdrop-filter: blur(4px);
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 90vw);
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(94, 120, 178, 0.18);
  box-shadow: var(--shadow-lg);
  transform: translateX(8%);
  transition: transform 0.2s ease;
  padding: 0.9rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(94, 120, 178, 0.16);
}

.mobile-nav__title {
  font-weight: 700;
  color: var(--color-ink);
}

.mobile-nav__close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(94, 120, 178, 0.2);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-muted);
}

.mobile-nav__links a {
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(94, 120, 178, 0.16);
  background: #fff;
  color: var(--color-ink);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.mobile-nav__links a:hover {
  background: rgba(34, 169, 155, 0.08);
  border-color: rgba(34, 169, 155, 0.25);
}

.mobile-nav__actions {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(94, 120, 178, 0.16);
}

.mobile-nav__actions .btn,
.mobile-nav__actions a {
  width: 100%;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .site-header__actions {
    display: none;
  }

  .site-header__inner {
    justify-content: flex-start;
  }

  .logo {
    order: 1;
  }

  .site-name {
    display: block;
    order: 2;
  }

  .mobile-profile-btn {
    display: inline-flex;
    order: 3;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
    order: 4;
  }

  .site-header__inner {
    flex-wrap: nowrap;
  }

  .logo__img {
    height: 2.2rem;
  }

  /* Hero перестройка */
  .hero {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.5rem 0 1rem;
  }

  .hero__text {
    order: 1;
  }

  .hero__slider {
    order: 2;
    min-height: 220px;
  }

  .slider {
    min-height: 220px;
  }

  .slide {
    min-height: 220px;
  }

  .hero__text p {
    max-width: none;
  }

  /* Каталог: поиск + карточки */
  .catalog-layout {
    gap: 1.25rem;
    grid-template-columns: 1fr;
  }

  .catalog-left-search {
    margin-bottom: 0;
  }

  .catalog-layout > .catalog-left-search,
  .catalog-layout > .cat-sheet-btn,
  .catalog-layout > .catalog-products {
    grid-column: 1;
  }

  .catalog-layout > .catalog-left-search {
    grid-row: 1;
  }

  .catalog-layout > .cat-sheet-btn {
    grid-row: 1;
    justify-self: end;
  }

  .catalog-layout > .catalog-products {
    grid-row: 2;
  }

  .cat-search {
    gap: 0.55rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    flex-wrap: nowrap;
  }

  .cat-search__field {
    flex: 1 1 auto;
    min-width: 0;
  }

  .cat-search .btn {
    display: none;
  }

  .cat-sheet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .catalog-sidebar.categories {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1160px, calc(100vw - 32px));
  }

  .slider-btn,
  .slider-dots {
    display: none;
  }

  .slider-caption {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.92rem;
  }

  .page-content,
  .cart,
  .admin,
  .user {
    padding: 1.25rem;
  }

  .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .product img {
    aspect-ratio: 1 / 1;
  }

  .product {
    padding: 0.95rem;
  }

  .product h4 {
    font-size: 0.92rem;
  }

  .product .btn {
    min-height: 44px;
    font-size: 0.9rem;
  }

  .product-qty {
    min-height: 44px;
  }

  .cat-search {
    flex-wrap: nowrap;
  }

  .cat-search__field {
    flex: 1 1 auto;
  }

  .cat-sheet-btn {
    height: 44px;
    padding: 0 0.85rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .admin__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin__toolbar a {
    width: 100%;
    justify-content: center;
  }

  .admin-quick-links {
    display: grid;
  }

  .admin-quick-links a {
    width: 100%;
    justify-content: center;
  }
}

.profile-auth-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* ——— Checkout ——— */
.checkout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.25rem;
  align-items: start;
}

.checkout__form {
  display: grid;
  gap: 1rem;
}

.checkout-card {
  background: var(--color-surface);
  border: 1px solid rgba(94, 120, 178, 0.16);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(55, 81, 141, 0.1);
  padding: 1.25rem 1.35rem;
}

.checkout-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--color-ink);
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.checkout-field {
  display: grid;
  gap: 0.35rem;
}

.checkout-field span {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.checkout-field--wide {
  grid-column: 1 / -1;
}

.checkout-radio {
  display: grid;
  gap: 0.55rem;
  color: var(--color-ink);
}

.checkout-radio label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(94, 120, 178, 0.16);
  background: #fff;
}

.checkout-radio input[type="radio"] {
  width: 18px;
  height: 18px;
}

.checkout-agree {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(94, 120, 178, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

.checkout-agree label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--color-ink);
  font-weight: 600;
}

.checkout-agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
}

.checkout-summary-list {
  display: grid;
  gap: 0.6rem;
}

.checkout-summary-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.6rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(94, 120, 178, 0.14);
  background: #fff;
}

.checkout-summary-title {
  color: var(--color-ink);
  font-weight: 600;
  line-height: 1.25;
}

.checkout-summary-qty {
  color: var(--color-muted);
  font-weight: 700;
  white-space: nowrap;
}

.checkout-summary-sum {
  color: var(--color-primary);
  font-weight: 800;
  white-space: nowrap;
}

.checkout-totals {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
  color: var(--color-ink);
}

.checkout-totals > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.checkout-totals hr {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(94, 120, 178, 0.18);
  margin: 0.25rem 0;
}

.checkout-total-pay strong {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .checkout {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    padding: 1.15rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "t s"
      "q s";
  }

  .checkout-summary-title {
    grid-area: t;
  }

  .checkout-summary-qty {
    grid-area: q;
  }

  .checkout-summary-sum {
    grid-area: s;
    align-self: center;
  }
}

/* ——— Thank you ——— */
.thankyou {
  max-width: 720px;
}

.thankyou__card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(94, 120, 178, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  text-align: center;
}

.thankyou__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(34, 169, 155, 0.12);
  color: var(--color-primary);
  font-weight: 900;
  font-size: 1.75rem;
}

.thankyou__meta {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
  color: var(--color-ink);
}

.thankyou__meta span {
  color: var(--color-muted);
  font-weight: 700;
}

.thankyou__actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}



/* ——— Адаптивные стили для заказов ——— */

@media (max-width: 768px) {
  .order-item__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-status-form {
    flex-direction: column;
    align-items: stretch;
  }

  .order-status-select {
    width: 100%;
  }

  .order-status-form .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .admin-product {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .admin-product img {
    margin: 0 auto;
  }

  .admin-product__actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .order-line {
    flex-direction: column;
    text-align: center;
  }

  .order-line img {
    margin: 0 auto;
  }
}
