:root {
  --ink: #061528;
  --graphite: #142238;
  --steel: #5f7188;
  --muted: #f2f7ff;
  --paper: #ffffff;
  --line: rgba(6, 21, 40, 0.1);
  --accent: #0f6fd8;
  --blue: #0f6fd8;
  --header: 104px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid rgba(15, 111, 216, 0.42);
  outline-offset: 3px;
}

.container {
  width: min(1300px, calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(54px, 8vw, 92px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(6, 21, 40, 0.06);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header__inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 138px;
  height: 92px;
  font-weight: 900;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo--footer {
  width: 168px;
  height: 116px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--graphite);
  font-size: 16px;
  font-weight: 750;
}

.nav a:hover {
  background: var(--muted);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
  line-height: 1.1;
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--accent {
  background: var(--accent);
  color: #fff;
}

.button--footer {
  background: var(--accent);
  color: #fff;
}

.button--ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button--ghost:hover {
  border-color: rgba(15, 111, 216, 0.45);
  color: var(--accent);
  background: #f7fbff;
}

.button--light {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.section-cta {
  min-height: 59px;
  padding: 16px 24px;
  font-size: 21px;
}

.menu-toggle,
.filter-toggle-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.burger span::before {
  transform: translateY(-7px);
}

.burger span::after {
  transform: translateY(5px);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding-block: 12px;
}

.mobile-nav a {
  display: block;
  padding: 13px 4px;
  font-weight: 800;
}

.hero {
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f2f7ff);
  padding-block: 38px 58px;
}

.hero-card {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  overflow: visible;
  padding-block: clamp(30px, 4vw, 58px);
}

.hero-card__content {
  color: var(--ink);
}

.hero-card__content .lead {
  max-width: 720px;
  color: var(--graphite);
}

.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(15, 111, 216, 0.1);
  padding: 7px 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card .eyebrow--dark {
  background: rgba(15, 111, 216, 0.1);
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.page-title {
  margin-bottom: 22px;
  font-size: clamp(42px, 6.4vw, 70px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.product-page .page-title {
  font-size: clamp(36px, 5.2vw, 60px);
}

.lead {
  color: var(--graphite);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.58;
}

.hero__actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.product-page .actions {
  margin-top: 16px;
}

.product-page .actions .button--primary {
  min-width: 170px;
}

.hero__actions .button {
  min-height: 59px;
  padding: 16px 24px;
  font-size: 21px;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 12px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 800;
}

.hero-card__media {
  overflow: hidden;
  border-radius: 20px;
  background: #eaf3ff;
  aspect-ratio: 4 / 3;
  align-self: center;
  box-shadow:
    0 30px 70px rgba(6, 21, 40, 0.18),
    0 12px 32px rgba(15, 111, 216, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.hero-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 950;
}

.section-head p {
  max-width: 470px;
  margin: 0;
  color: var(--steel);
  line-height: 1.65;
}

.brand-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #fff;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.brand-track:hover {
  animation-play-state: paused;
}

.brand-set {
  display: flex;
  gap: 4px;
  padding-right: 4px;
}

.brand-pill {
  display: inline-flex;
  width: 158px;
  min-width: 158px;
  height: 158px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(242, 247, 255, 0.78);
  flex: 0 0 158px;
}

.brand-pill img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.muted {
  background: var(--muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.value-card,
.product-card,
.panel,
.step,
.info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.value-card {
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.value-card:hover,
.value-card:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.value-card h3 {
  margin-bottom: 9px;
  font-size: 18px;
  line-height: 1.25;
}

.value-card p {
  color: var(--steel);
  line-height: 1.6;
}

.value-card:hover p,
.value-card:focus-visible p {
  color: rgba(255, 255, 255, 0.86);
}

.content {
  color: var(--graphite);
  font-size: 17px;
  line-height: 1.76;
}

.content h2 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.15;
}

.content h3 {
  margin-top: 26px;
  color: var(--ink);
  font-size: 21px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step {
  padding: 22px;
}

.step strong {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

.cta {
  background: var(--ink);
  color: white;
  padding-block: 54px;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta p,
.footer p {
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs {
  margin-bottom: 24px;
  color: var(--steel);
  font-size: 14px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filters {
  align-self: start;
  padding: 22px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span {
  font-size: 14px;
  font-weight: 850;
}

input,
select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 13px;
  color: var(--graphite);
  font: inherit;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.catalog-controls {
  display: flex;
  width: 100%;
  gap: 12px;
  align-items: center;
}

.catalog-controls input {
  flex: 1 1 auto;
  min-height: 40px;
  min-width: 320px;
  border-radius: 999px;
  padding-inline: 18px;
  font-size: 16px;
}

.catalog-controls select {
  flex: 0 0 150px;
  min-height: 40px;
  appearance: none;
  border-color: rgba(6, 21, 40, 0.12);
  border-radius: 999px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 25px) 50%,
    calc(100% - 17px) 50%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-inline: 18px 42px;
  color: #3a3a3a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.filter-select {
  position: relative;
  z-index: 5;
  display: inline-flex;
  flex: 0 0 150px;
}

.filter-select.is-open {
  z-index: 20;
}

.filter-select__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.filter-select__button {
  display: flex;
  min-height: 40px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(6, 21, 40, 0.12);
  border-radius: 999px;
  background: #fff;
  padding: 0 18px;
  color: #3a3a3a;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.filter-select__button::after {
  content: "";
  width: 13px;
  height: 13px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.16s ease;
}

.filter-select.is-open .filter-select__button::after {
  transform: translateY(2px) rotate(225deg);
}

.filter-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  min-width: 190px;
  overflow: hidden;
  border: 1px solid rgba(6, 21, 40, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 44px rgba(6, 21, 40, 0.16);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.filter-select.is-open .filter-select__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.filter-select__option {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 7px 18px;
  color: #2f2f2f;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.filter-select__option::before {
  content: "";
  flex: 0 0 18px;
  color: var(--ink);
  font-weight: 900;
}

.filter-select__option.is-selected::before {
  content: "✓";
}

.filter-select__option:hover,
.filter-select__option:focus-visible {
  background: rgba(15, 111, 216, 0.08);
}

.catalog-toolbar--simple {
  max-width: 760px;
  margin-bottom: 18px;
}

.catalog-count {
  margin: 0 0 18px;
  color: var(--steel);
  font-weight: 800;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.catalog-pagination[hidden] {
  display: none;
}

.pagination-button {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding-inline: 14px;
  place-items: center;
  border: 1px solid rgba(6, 21, 40, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pagination-button:hover,
.pagination-button:focus-visible,
.pagination-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pagination-button:disabled {
  cursor: not-allowed;
  border-color: rgba(6, 21, 40, 0.1);
  background: #fff;
  color: var(--steel);
  opacity: 0.45;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-grid--empty {
  display: block;
}

.product-card {
  overflow: hidden;
  display: grid;
  min-height: 420px;
  grid-template-rows: 230px 1fr;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(15, 111, 216, 0.42);
  box-shadow: 0 18px 34px rgba(6, 21, 40, 0.1);
  transform: translateY(-2px);
}

.product-card__image {
  position: relative;
  overflow: hidden;
  display: grid;
  height: 230px;
  place-items: center;
  background: #f6f7f9;
}

.product-card__slide,
.product-card__image img {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 18px;
}

.product-card__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.product-card__slide.is-active {
  opacity: 1;
}

.product-card__dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  display: flex;
  gap: 5px;
  pointer-events: none;
}

.product-card__dots span {
  flex: 1 1 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(6, 21, 40, 0.16);
}

.product-card__dots span.is-active {
  background: var(--accent);
}

.product-card__no-photo {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 22px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.product-card__body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 20px;
}

.product-card__title {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.18;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  align-self: end;
  margin-top: auto;
}

.product-card__delivery {
  flex: 0 0 auto;
  width: fit-content;
  border-radius: 999px;
  background: var(--muted);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.product-card strong {
  font-size: 18px;
  line-height: 1.2;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 34px;
  color: var(--slate);
}

.empty-state h1,
.empty-state h2 {
  margin-bottom: 10px;
  color: var(--ink);
}

.catalog-empty {
  display: grid;
  min-height: clamp(360px, 42vh, 520px);
  align-content: center;
  justify-items: center;
  padding: clamp(42px, 7vw, 72px) 24px;
  text-align: center;
}

.catalog-empty h2 {
  max-width: 680px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.catalog-empty p {
  max-width: 540px;
  margin: 0;
  color: var(--steel);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.35;
}

.catalog-empty .button {
  margin-top: 22px;
  min-width: 170px;
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 900;
}

.badge {
  border-radius: 6px;
  background: var(--muted);
  padding: 6px 8px;
}

.stock {
  color: #127650;
}

.order {
  color: var(--accent);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.pagination .active {
  background: var(--ink);
  color: white;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.product-page > * {
  min-width: 0;
}

.product-gallery {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  overflow: hidden;
}

.gallery-main {
  display: grid;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f6f7f9;
}

.gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 32px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumb {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f7f9;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 119, 224, 0.14);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.info-grid,
.spec-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-grid {
  margin-top: 26px;
}

.info-card,
.panel {
  padding: 22px;
}

.info-card dt {
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.info-card dd {
  margin: 6px 0 0;
  color: var(--graphite);
  font-weight: 800;
  line-height: 1.5;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #061528;
  color: white;
}

.footer__simple {
  min-height: 154px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
}

.footer__simple p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.footer__simple .button {
  margin-left: auto;
  white-space: nowrap;
}

.noindex-note {
  color: var(--steel);
  font-size: 14px;
}

.admin-shell {
  min-height: calc(100svh - var(--header));
  background: linear-gradient(180deg, #f7fbff, #edf5ff);
  padding-block: 42px 78px;
}

.admin-hero {
  max-width: 780px;
  margin-bottom: 28px;
}

.admin-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  font-weight: 950;
}

.admin-hero p:last-child {
  margin: 0;
  color: var(--steel);
  font-size: 18px;
  line-height: 1.6;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-tabs,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.admin-tabs {
  position: sticky;
  top: calc(var(--header) + 16px);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.admin-tab {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-align: left;
  padding: 12px 14px;
}

.admin-tab:hover,
.admin-tab.is-active {
  background: var(--accent);
  color: #fff;
}

.admin-panel {
  display: none;
  padding: 24px;
}

.admin-panel.is-active {
  display: block;
}

.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-panel__head h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.admin-panel__head p {
  margin: 0;
  color: var(--steel);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--muted);
  padding: 18px;
}

.admin-form[hidden] {
  display: none;
}

.admin-form--single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-weight: 850;
}

.admin-form__wide,
.admin-actions {
  grid-column: 1 / -1;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 13px 14px;
}

.admin-form textarea {
  resize: vertical;
}

.admin-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 14px;
}

.admin-photos > div:first-child,
.photo-preview {
  grid-column: 1 / -1;
}

.admin-photos > div:first-child > span {
  display: block;
  color: var(--graphite);
  font-weight: 900;
}

.admin-photos small {
  display: block;
  margin-top: 5px;
  color: var(--steel);
  font-weight: 650;
  line-height: 1.4;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(3, 96px);
  gap: 10px;
  align-items: center;
  min-height: 96px;
}

.photo-preview__item {
  display: grid;
  gap: 6px;
}

.photo-preview__item img {
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.photo-preview__item .admin-photo-download {
  font-size: 12px;
  text-align: center;
  color: var(--blue);
  padding: 6px 2px;
}

.photo-preview__item button {
  width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 6px;
}

.photo-preview__item button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.photo-preview > span:not(.photo-preview__item) {
  color: var(--steel);
  font-weight: 750;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-product-controls,
.admin-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 14px 0;
}

.admin-product-controls label {
  display: grid;
  gap: 6px;
  min-width: 210px;
  color: var(--graphite);
  font-weight: 850;
}

.admin-product-controls select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 0 12px;
}

.admin-bulk-actions {
  align-items: center;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  background: #f4f8ff;
  padding: 12px;
}

.admin-bulk-actions strong {
  margin-right: 4px;
}

.admin-select-column {
  width: 42px;
  text-align: center;
}

.admin-select-column input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.button--danger {
  border-color: #d93333;
  background: #fff;
  color: #b42323;
}

.button--danger:hover,
.button--danger:focus-visible {
  border-color: #b42323;
  background: #fff2f2;
}

.admin-import {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.admin-import__intro {
  grid-column: 1 / -1;
}

.admin-import__intro strong,
.admin-import label span {
  display: block;
  color: var(--graphite);
  font-weight: 900;
}

.admin-import__intro small,
.admin-import label small {
  display: block;
  margin-top: 5px;
  color: var(--steel);
  font-weight: 650;
  line-height: 1.4;
}

.admin-import input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 13px 14px;
}

.admin-back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--blue);
  font-weight: 850;
}

.admin-editor-hero {
  max-width: 920px;
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.admin-editor-card,
.admin-import-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
}

.admin-product-form {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.admin-import-card {
  position: sticky;
  top: calc(var(--header) + 16px);
}

.admin-import-card h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.admin-import-card > div > p:last-child {
  margin: 0;
  color: var(--steel);
  line-height: 1.55;
}

.admin-import--editor {
  grid-template-columns: 1fr;
  margin: 20px 0 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.admin-file-button {
  display: grid;
  gap: 7px;
  border: 1px dashed #8fb8e5;
  border-radius: 8px;
  background: #f3f8ff;
  cursor: pointer;
  padding: 16px;
}

.admin-file-button:hover {
  border-color: var(--blue);
}

.admin-file-button input {
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-template-link {
  color: var(--blue);
  font-weight: 800;
}

.admin-import-status {
  min-height: 22px;
  margin: 0;
  color: var(--graphite);
  font-weight: 750;
  line-height: 1.45;
}

.admin-search {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--graphite);
  font-weight: 850;
}

.admin-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 14px 16px;
}

.admin-product-filter-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 220px 250px;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.admin-product-filter-row .admin-search {
  margin: 0;
}

.admin-product-filter-row .admin-product-controls {
  display: contents;
  margin: 0;
}

.admin-product-filter-row .admin-product-controls label {
  min-width: 0;
}

.admin-product-filter-summary {
  grid-column: 1 / -1;
  color: var(--steel);
  font-size: 14px;
  font-weight: 750;
  margin-top: -4px;
}

@media (max-width: 860px) {
  .admin-product-filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-product-filter-row .admin-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .admin-product-filter-row {
    grid-template-columns: 1fr;
  }

  .admin-product-filter-row .admin-search {
    grid-column: auto;
  }
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table--compact {
  min-width: 420px;
}

.admin-table--names {
  min-width: 520px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--steel);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-table td span {
  display: block;
  max-width: 320px;
  margin-top: 5px;
  color: var(--steel);
  line-height: 1.45;
}

.admin-table__actions {
  white-space: nowrap;
}

.admin-table__actions button,
.admin-table__actions a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  margin-left: 6px;
  padding: 9px 11px;
  text-decoration: none;
}

.admin-table__actions button:hover,
.admin-table__actions a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.admin-products-pagination {
  justify-content: flex-start;
  margin-top: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .brand-track {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .hero-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-card__media {
    order: -1;
    width: min(100%, 820px);
    margin-inline: auto;
  }

  .hero-card__content {
    max-width: 860px;
  }
}

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

  .admin-import-card {
    position: static;
  }
  :root {
    --header: 88px;
  }

  .nav,
  .header__right {
    display: none;
  }

  .burger {
    display: grid;
  }

  .menu-toggle:checked ~ .mobile-nav {
    display: block;
  }

  .hero-card,
  .product-page,
  .spec-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    max-width: none;
  }

  .admin-tabs {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-tab {
    text-align: center;
  }

  .hero-card {
    min-height: 0;
  }

  .hero-card__media {
    order: -1;
    width: 100%;
  }

  .hero-card__media img {
    min-height: 0;
  }

  .value-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__simple {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer__simple .button {
    order: 2;
    margin-left: 0;
  }

  .footer__simple p {
    order: 3;
  }

  .catalog-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .catalog-controls input {
    grid-column: 1 / -1;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .logo {
    width: 112px;
    height: 76px;
  }

  .hero {
    padding-block: 18px 42px;
  }

  .hero-card {
    padding: 22px;
    border-radius: 14px;
  }

  .hero-card__media {
    border-radius: 16px;
  }

  .hero-card__media img {
    min-height: 0;
  }

  .hero__actions,
  .actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .value-grid,
  .product-grid,
  .info-grid,
  .card-actions,
  .admin-form,
  .catalog-controls {
    grid-template-columns: 1fr;
  }

  .catalog-controls {
    display: grid;
  }

  .catalog-controls select {
    flex-basis: auto;
  }

  .filter-select {
    width: 100%;
    flex-basis: auto;
  }

  .catalog-pagination {
    justify-content: flex-start;
  }

  .pagination-button {
    min-width: 40px;
    height: 40px;
  }

  .admin-panel,
  .admin-form {
    padding: 16px;
  }

  .admin-photos {
    grid-template-columns: 1fr;
  }

  .photo-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photo-preview img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .admin-panel__head,
  .admin-actions,
  .admin-import {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-import {
    grid-template-columns: 1fr;
  }
}

.product-card__price { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.price-note { display: block; margin-top: 4px; color: #64748b; font-size: 11px; font-weight: 400; line-height: 1.35; }
