/* ===== CSS Variables ===== */
:root {
  /* Colors - WCAG AA compliant - Светлый милитари */
  --color-bg: #F7F8F4;
  --color-bg-secondary: #EEF0E8;
  --color-bg-card: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #4A4A4A;
  --color-text-muted: #6B6B6B;
  --color-accent: #4A5D3F;
  --color-accent-hover: #3A4D2F;
  --color-accent-light: #5C6F56;
  --color-border: #E5E7E0;
  --color-border-light: #F0F1ED;
  --color-success: #1B7340;
  --color-error: #C53030;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-xs: 12px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 40px;
  --line-height: 1.6;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing - 8pt grid */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;

  /* Layout */
  --max-width: 1200px;
  --max-width-content: 800px;

  /* Shadows - тонкие и элегантные */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.10);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition: 200ms ease-out;
  --transition-slow: 300ms ease-out;

  /* Border radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.container--narrow {
  max-width: var(--max-width-content);
}

.section {
  padding: var(--space-4) 0;
}

.section--hero {
  padding: var(--space-4) 0;
}
.section--hero-compact {
  padding: var(--space-3) 0 var(--space-2);
}
.section--hero-compact .hero__title {
  font-size: var(--font-size-xl);
  margin-bottom: 0.5rem;
}
.section--hero-compact .hero__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ===== Provenance Bar (parent brand link) ===== */
.provenance-bar {
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  padding: 6px 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.4;
}

.provenance-bar a {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: color var(--transition);
}

.provenance-bar__logo {
  display: inline-block;
  height: 16px;
  width: auto;
  vertical-align: -3px;
  margin-right: 4px;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.provenance-bar a:hover .provenance-bar__logo {
  opacity: 1;
}

.provenance-bar a:hover {
  color: var(--color-text);
}

.provenance-bar__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c4870f;
  vertical-align: middle;
  margin: 0 8px;
}

/* ===== Header ===== */
.header {
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}

.header__logo {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
}

.header__logo:hover {
  color: var(--color-text);
}

.nav {
  display: flex;
  gap: var(--space-3);
}

.nav__link {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  padding: var(--space-1) 0;
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) 0;
}

.hero__content {
  order: 1;
}

.hero__image {
  order: 2;
  justify-self: end;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.hero__image:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.hero__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 44px;
  box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  box-shadow: none;
}

.btn--secondary:hover {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--secondary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--color-bg-card);
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.btn--sm {
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-sm);
}

/* ===== Cards ===== */
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.card--clickable {
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  color: inherit;
  display: flex;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-light);
}

.card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease-out;
}

.card:hover .card__image img {
  transform: scale(1.08);
}

.card__content {
  padding: var(--space-3);
}

.card__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

.card__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
}

.card__specs {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.card__sku {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.card__price {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0;
}

.card__price span {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Compact cards in 4-column grid */
.grid--4 .card {
  border-radius: var(--radius-md);
}

.grid--4 .card__content {
  padding: var(--space-2);
}

.grid--4 .card__title {
  font-size: var(--font-size-base);
  margin-bottom: 4px;
  line-height: 1.3;
}

.grid--4 .card__description {
  font-size: var(--font-size-xs);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid--4 .card__specs,
.grid--4 .card__sku {
  font-size: 11px;
  margin-bottom: 4px;
}

.grid--4 .card__price {
  font-size: var(--font-size-base);
}

.grid--4 .card__price span {
  font-size: var(--font-size-xs);
}

.grid--4 .card__image {
  aspect-ratio: 1 / 1;
}

/* ===== Tag Card (Product) ===== */
.tag-card {
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.tag-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tag-card--selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74, 93, 63, 0.15), var(--shadow-md);
}

.tag-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-2);
}

.tag-card__header {
  margin: var(--space-4);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.tag-card__name {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}

.tag-card__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.tag-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.tag-card__shape,
.tag-card__dimensions {
  color: var(--color-text-secondary);
}

.tag-card__price-section {
  margin: 0 var(--space-4);
  margin-bottom: var(--space-3);
}

.tag-card__price-title {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.tag-card__price-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.tag-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.tag-card__price-row:hover {
  border-color: var(--color-accent);
}

.tag-card__price-row:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(74, 93, 63, 0.05);
}

.tag-card__price-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
}

.tag-card__price-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.tag-card__price-label input[type="radio"]:hover {
  border-color: var(--color-accent);
}

.tag-card__price-label input[type="radio"]:checked {
  border-color: var(--color-accent);
}

.tag-card__price-label input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
}

.tag-card__price-value {
  font-weight: 600;
}

/* ===== Order block (CTA + extras) ===== */
.order-block {
  margin: var(--space-4);
  margin-top: var(--space-3);
}

/* Главный CTA — крупная контрастная кнопка */
.order-cta {
  display: block;
  width: 100%;
  padding: var(--space-3);
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: var(--font-size-lg);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.order-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.order-cta:active {
  transform: translateY(0);
}

.order-cta:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 2px;
}

/* Шорткат «не знаете, что выбрать» */
.order-help {
  display: block;
  width: 100%;
  margin-top: var(--space-2);
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-family: inherit;
  font-size: var(--font-size-sm);
  text-align: center;
  cursor: pointer;
  padding: var(--space-1);
  transition: color var(--transition);
}

.order-help:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Свёрнутый блок «Дополнительно» */
.extras {
  margin-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2);
}

.extras__summary {
  list-style: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  user-select: none;
}

.extras__summary::-webkit-details-marker {
  display: none;
}

.extras__summary::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(-45deg);
  transition: transform var(--transition);
}

.extras[open] .extras__summary::before {
  transform: rotate(45deg);
}

.extras__body {
  margin-top: var(--space-2);
}

.extras__option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.extras__option:hover {
  border-color: var(--color-accent);
}

.extras__option:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(74, 93, 63, 0.05);
}

.extras__option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.extras__name {
  flex: 1;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.extras__price {
  font-weight: 600;
  color: var(--color-text);
}

.extras__hint {
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ===== Order Messengers (в модалке заказа) ===== */
.modal__messenger-prompt {
  text-align: center;
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.order-messengers {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.order-messenger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  min-height: 52px;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.order-messenger:hover {
  transform: translateY(-1px);
}

/* Max — основной канал (первый) */
.order-messenger--max {
  border-color: #FF7A00;
  background: #FF7A00;
  color: #fff;
}

.order-messenger--max:hover {
  background: #ED6F00;
  border-color: #ED6F00;
}

.order-messenger--vk:hover {
  border-color: #0077FF;
  color: #0077FF;
}

.order-messenger--telegram:hover {
  border-color: #0088CC;
  color: #0088CC;
}

/* На мобильном CTA закреплён внизу прокручиваемой модалки */
@media (max-width: 768px) {
  .product-modal .order-cta {
    position: sticky;
    bottom: var(--space-2);
    z-index: 2;
  }
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: var(--space-3);
}

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

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== Steps ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.step {
  display: flex;
  gap: var(--space-2);
}

.step__number {
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

.step__content {
  flex: 1;
}

.step__title {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.step__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.04);
  padding: var(--space-4) 0;
  margin-top: var(--space-6);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer__copy {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.footer__link:hover {
  color: var(--color-text);
}

.footer__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer__note {
  flex-basis: 100%;
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  margin-bottom: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.footer__note a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.footer__note a:hover {
  color: var(--color-text);
}

.footer__brand {
  flex-basis: 100%;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.footer__brand-name {
  font-weight: var(--font-weight-semibold);
}

.footer__brand a {
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.footer__brand a:hover {
  border-bottom-color: var(--color-text-secondary);
}

.footer__legal {
  flex-basis: 100%;
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ===== Photo Strip (spravka header) ===== */
.photo-strip {
  overflow: hidden;
  margin: var(--space-3) 0 var(--space-2);
}

.photo-strip__inner {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.photo-strip__img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
}

/* ===== FAQ Accordion ===== */
.faq-section {
  margin: var(--space-6) 0;
}

.faq-section__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  line-height: var(--line-height);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: var(--space-2);
  transition: transform 200ms ease-out;
  color: var(--color-text-muted);
}

.faq-item.open .faq-question__icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 var(--space-2);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===== Info Blocks ===== */
.info-block {
  background: var(--color-bg-card);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin: var(--space-3) 0;
  box-shadow: var(--shadow-sm);
}

.info-block--success {
  border-left-color: var(--color-success);
}

.info-block--warning {
  border-left-color: var(--color-error);
}

/* ===== Help Block ===== */
.help-block {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  max-width: 500px;
  margin: var(--space-4) auto 0;
}

.help-block__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 var(--space-1);
}

.help-block__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-2);
}

.help-block__buttons {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Lists ===== */
.list {
  list-style: none;
  padding: 0;
}

.list--check li {
  position: relative;
  padding-left: var(--space-3);
  margin-bottom: var(--space-1);
}

.list--check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}

.list--cross li::before {
  content: '✗';
  color: var(--color-error);
}

/* ===== Responsive ===== */

/* Large desktop: keep 4 columns compact */
@media (min-width: 1201px) {
  .grid--4 {
    gap: var(--space-3);
  }
}

/* Desktop: 1024-1200px - 3 columns */
@media (max-width: 1200px) {
  .grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Slightly larger cards for 3 columns */
  .grid--4 .card__title {
    font-size: var(--font-size-lg);
  }

  .grid--4 .card__description {
    font-size: var(--font-size-sm);
  }
}

/* Tablet: 768-1024px - 2 columns */
@media (max-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 .card__image {
    aspect-ratio: 4 / 3;
  }
}

/* Mobile: <= 768px */
@media (max-width: 768px) {
  :root {
    --font-size-3xl: 28px;
    --font-size-2xl: 24px;
    --font-size-xl: 20px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    flex-direction: column;
    padding: var(--space-2);
    border-bottom: 1px solid var(--color-border);
  }

  .nav--open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .grid {
    gap: var(--space-2);
  }

  /* Restore normal card sizes on mobile (full width) */
  .grid--4 .card__content {
    padding: var(--space-3);
  }

  .grid--4 .card__title {
    font-size: var(--font-size-lg);
  }

  .grid--4 .card__description {
    font-size: var(--font-size-sm);
    -webkit-line-clamp: unset;
  }

  .grid--4 .card__specs,
  .grid--4 .card__sku {
    font-size: var(--font-size-xs);
  }

  .grid--4 .card__price {
    font-size: var(--font-size-lg);
  }

  .grid--4 .card__image {
    aspect-ratio: 16 / 9;
  }

  .messenger-select__buttons {
    flex-direction: column;
  }

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

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    order: 2;
  }

  .hero__image {
    order: 1;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 400px;
  }

  .hero__title {
    font-size: var(--font-size-xl);
  }

  /* Disable hover effects on touch */
  .card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease-out, visibility 250ms ease-out;
}

.modal--open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal__content {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  max-width: 400px;
  width: 100%;
  padding: var(--space-4);
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(-10px);
  transition: transform 250ms ease-out;
}

.modal--open .modal__content {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms ease;
}

.modal__close:hover {
  color: var(--color-text);
}

.modal__close:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.modal__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
  text-align: center;
}

.modal__order-summary {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

.modal__order-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.modal__order-label {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.modal__order-value {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.modal__messenger-name {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.modal__privacy-consent {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  background: var(--color-bg);
  border-radius: var(--radius);
}

.modal__privacy-consent a {
  color: var(--color-accent);
  text-decoration: underline;
}

.modal__privacy-consent a:hover {
  color: var(--color-accent-hover);
}

.modal__buttons {
  display: flex;
  gap: var(--space-2);
}

.modal__btn {
  flex: 1;
  padding: var(--space-2);
  border-radius: var(--radius);
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
}

.modal__btn--cancel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.modal__btn--cancel:hover {
  background: var(--color-border);
}

.modal__btn--confirm {
  background: var(--color-accent);
  border: none;
  color: #FFFFFF;
}

.modal__btn--confirm:hover {
  background: var(--color-accent-hover);
}

/* ===== Copy Modal ===== */
.modal__content--wide {
  max-width: 480px;
}

.copy-modal__instruction {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.copy-modal__message {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
  font-size: var(--font-size-sm);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: var(--space-3);
  color: var(--color-text);
  line-height: 1.5;
}

.copy-modal__copy-btn {
  width: 100%;
  padding: var(--space-3);
  font-size: var(--font-size-lg);
  font-weight: 600;
  background: var(--color-accent);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 56px;
}

.copy-modal__copy-btn:hover {
  background: var(--color-accent-hover);
}

.copy-modal__copy-btn--copied {
  background: var(--color-success);
}

.copy-modal__copy-btn--copied:hover {
  background: var(--color-success);
}

.copy-modal__status {
  text-align: center;
  font-size: var(--font-size-sm);
  min-height: 24px;
  margin: var(--space-2) 0;
  color: var(--color-text-muted);
}

.copy-modal__status--success {
  color: var(--color-success);
  font-weight: 500;
}

.copy-modal__status--error {
  color: var(--color-error);
}

/* ===== Product Modal ===== */
.product-modal .modal__content--product {
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6) var(--space-4) var(--space-4);
}

.product-modal .modal__close {
  top: var(--space-3);
  right: var(--space-3);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.product-modal .modal__close:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.product-modal .tag-card {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.product-modal .tag-card__header {
  margin-bottom: var(--space-3);
}

/* Скролл в модальном окне */
.product-modal .modal__content--product::-webkit-scrollbar {
  width: 8px;
}

.product-modal .modal__content--product::-webkit-scrollbar-track {
  background: var(--color-bg);
  border-radius: 4px;
}

.product-modal .modal__content--product::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.product-modal .modal__content--product::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-light);
}

/* ===== Image Gallery ===== */
.tag-card__image-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.tag-card__image-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-card__image-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.tag-card__image-main img:hover {
  transform: scale(1.05);
}

.image-zoom-btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.image-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.image-zoom-btn:active {
  transform: scale(0.98);
}

.image-zoom-btn svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.tag-card__image-thumbs {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  padding: 2px;
}

.gallery-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.gallery-thumb:hover {
  border-color: var(--color-accent-light);
  transform: scale(1.05);
}

.gallery-thumb--active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

/* ===== Image Modal ===== */
.image-modal .modal__content--image {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
}

.image-modal .modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.image-modal .modal__close:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.image-modal #image-modal-img {
  max-width: 100%;
  max-height: calc(90vh - 100px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  cursor: zoom-out;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.image-modal #image-modal-img:hover {
  opacity: 0.95;
  transform: scale(0.995);
}

.image-modal__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.image-modal__caption {
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 500;
  text-align: center;
  max-width: 600px;
}

.image-modal__counter {
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* ===== Works Gallery (B1.1) — горизонтальная лента ===== */
.works-gallery {
  margin-top: var(--space-3);
}

.works-strip {
  position: relative;
}

.works-strip__track {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px var(--space-1);
  scrollbar-width: thin;
}

.works-tile {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  padding: 0;
  border: none;
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.works-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.works-tile:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.works-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.works-tile:hover img {
  transform: scale(1.04);
}

.works-tile__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-3) var(--space-2) var(--space-1);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* видео-плитка: лёгкое затемнение + кнопка play */
.works-tile--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.works-tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 1;
  transition: background var(--transition), transform var(--transition);
}

.works-tile__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

.works-tile--video:hover .works-tile__play {
  background: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.08);
}

/* стрелки прокрутки (показываются только если лента длиннее экрана) */
.works-strip__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), opacity var(--transition);
}

.works-strip--scrollable .works-strip__arrow {
  display: flex;
}

.works-strip__arrow--prev { left: 4px; }
.works-strip__arrow--next { right: 4px; }

.works-strip__arrow:hover { background: var(--color-bg-secondary); }

.works-strip__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .works-tile {
    width: 220px;
    aspect-ratio: 1 / 1;
  }
  /* на тач-экранах листают свайпом, стрелки прячем */
  .works-strip--scrollable .works-strip__arrow {
    display: none;
  }
}

/* ===== Video Modal (VK iframe) ===== */
.video-modal .modal__content--video {
  width: min(92vw, 960px);
  max-width: 960px;
  padding: 0;
  background: transparent;
  position: relative;
}

.video-modal .modal__close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.video-modal .modal__close:hover { background: #fff; transform: scale(1.1); }

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #000;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Reviews (B1.2) ===== */
.reviews-summary {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.reviews-summary__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  min-width: 150px;
}

.reviews-summary__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.reviews-summary__star {
  color: #f5a623;
}

.reviews-summary__src {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.review-card {
  margin: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.review-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.review-card__meta {
  display: flex;
  flex-direction: column;
}

.review-card__name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.review-card__source {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.review-card__text {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height);
}

.reviews__cta {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .reviews {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all var(--transition-fast);
  color: var(--color-text);
}

.modal__nav:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.modal__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.modal__nav--prev {
  left: -60px;
}

.modal__nav--next {
  right: -60px;
}

@media (max-width: 768px) {
  .image-modal .modal__close {
    top: -45px;
    right: 10px;
  }

  .modal__nav {
    width: 40px;
    height: 40px;
  }

  .modal__nav--prev {
    left: 10px;
  }

  .modal__nav--next {
    right: 10px;
  }

  .image-modal #image-modal-img {
    max-height: calc(90vh - 120px);
  }

  .tag-card__image-thumbs {
    gap: 6px;
  }

  .gallery-thumb {
    width: 50px;
    height: 50px;
  }

  /* Bundle section на мобильных */
  .bundle-section {
    margin: 0 var(--space-2);
    margin-bottom: var(--space-3);
  }

  .recommended-bundle {
    padding: var(--space-2);
  }

  .recommended-bundle__title {
    font-size: var(--font-size-base);
  }

  .recommended-bundle__price {
    font-size: var(--font-size-lg);
  }

  .bundle-option {
    padding: var(--space-2);
  }

  .bundle-option__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .bundle-option__price {
    font-size: var(--font-size-base);
  }

  .individual-option {
    font-size: var(--font-size-xs);
  }

  /* Product modal на мобильных */
  .product-modal .modal__content--product {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: var(--space-5) var(--space-2) var(--space-2);
  }

  .product-modal .modal__close {
    top: var(--space-2);
    right: var(--space-2);
  }
}

/* ===== Search Component ===== */
#search-section {
  scroll-margin-top: 80px;
}

.search-container {
  max-width: 480px;
  margin: 0 auto var(--space-3);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-2);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.search-box__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  margin-right: var(--space-1);
  transition: color var(--transition);
}

.search-box:focus-within .search-box__icon {
  color: var(--color-accent);
}

.search-box__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  font-family: var(--font-family);
  padding: var(--space-1) 0;
}

.search-box__input::placeholder {
  color: var(--color-text-muted);
}

.search-box__clear {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  margin-left: var(--space-1);
}

.search-box__clear:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text);
}

.search-box__clear:active {
  transform: scale(0.95);
}

.search-results-info {
  text-align: center;
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

/* Empty search results */
.search-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-6) var(--space-3);
}

.search-empty__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.search-empty__text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.search-empty__reset {
  background: none;
  border: none;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  transition: color var(--transition-fast);
}

.search-empty__reset:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
    margin-bottom: var(--space-2);
  }

  .search-box {
    padding: var(--space-2);
    border-radius: var(--radius-md);
  }

  .search-box__input {
    font-size: var(--font-size-base);
  }

  .search-box__icon {
    width: 18px;
    height: 18px;
  }

  .search-box__input::placeholder {
    font-size: var(--font-size-sm);
  }

  .search-empty {
    padding: var(--space-4) var(--space-2);
  }

  .search-empty__title {
    font-size: var(--font-size-lg);
  }

  .search-empty__text {
    font-size: var(--font-size-sm);
  }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

/* ===== Theme Toggle Button ===== */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-text-secondary);
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-bg-secondary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --color-bg: #141614;
  --color-bg-secondary: #1c1e1c;
  --color-bg-card: #222422;
  --color-text: #e8e8e4;
  --color-text-secondary: #b8b8b4;
  --color-text-muted: #888884;
  --color-accent: #7da06d;
  --color-accent-hover: #8eb47e;
  --color-accent-light: #6b8a5e;
  --color-border: #333633;
  --color-border-light: #2a2c2a;
  --color-success: #4aad6a;
  --color-error: #e05050;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Dark overrides for hardcoded colors */
[data-theme="dark"] .header {
  background: rgba(20, 22, 20, 0.95);
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .nav {
  background: var(--color-bg-card);
}

[data-theme="dark"] .recommended-bundle {
  background: linear-gradient(135deg, #1a2e1e 0%, #1e3322 100%);
}

[data-theme="dark"] .bundle-option input[type="radio"]:checked {
  background: var(--color-bg-card);
}

[data-theme="dark"] .product-modal .modal__close {
  background: rgba(34, 36, 34, 0.9);
  color: var(--color-text);
}

[data-theme="dark"] .product-modal .modal__close:hover {
  background: var(--color-bg-card);
}

[data-theme="dark"] .image-modal .modal__close,
[data-theme="dark"] .modal__nav {
  background: rgba(34, 36, 34, 0.9);
  color: var(--color-text);
}

[data-theme="dark"] .image-modal .modal__close:hover,
[data-theme="dark"] .modal__nav:hover:not(:disabled) {
  background: var(--color-bg-card);
}

[data-theme="dark"] .image-modal__caption {
  background: rgba(34, 36, 34, 0.95);
}

[data-theme="dark"] .image-modal__counter {
  background: rgba(34, 36, 34, 0.9);
}

[data-theme="dark"] .tag-card__price-row:has(input:checked) {
  background: rgba(125, 160, 109, 0.1);
}

[data-theme="dark"] .bundle-option:hover,
[data-theme="dark"] .change-bundle-btn:hover {
  background: rgba(125, 160, 109, 0.05);
}

[data-theme="dark"] .bundle-option:has(input:checked) {
  background: rgba(74, 173, 106, 0.08);
}

[data-theme="dark"] .individual-option:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .messenger-btn {
  background: var(--color-bg-secondary);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

[data-theme="dark"] .messenger-btn:hover {
  background: var(--color-bg-card);
}

/* Dark theme for article inline styles */
[data-theme="dark"] .tip-card {
  background: var(--color-bg-secondary);
}

[data-theme="dark"] .summary-box {
  background: rgba(74, 173, 106, 0.08);
}

[data-theme="dark"] .compare-table th {
  background: var(--color-bg-secondary);
  color: var(--color-text);
}

[data-theme="dark"] .compare-table tr:hover {
  background: var(--color-bg-secondary);
}

[data-theme="dark"] .highlight {
  color: var(--color-accent);
}

[data-theme="dark"] .tip-block {
  background: rgba(249, 168, 37, 0.08);
  border-left-color: #b8860b;
}

[data-theme="dark"] .engrave-example {
  background: rgba(74, 173, 106, 0.08);
}

/* Dark theme images — keep light background for product photos */
[data-theme="dark"] .tag-card__image,
[data-theme="dark"] .card__image {
  background: var(--color-bg-secondary);
}

/* Dark overrides for article inline styles (hardcoded colors) */
/* Light background blocks → dark bg */
[data-theme="dark"] .dept-card,
[data-theme="dark"] .mat-card,
[data-theme="dark"] .usecase,
[data-theme="dark"] .bundle-card,
[data-theme="dark"] .step,
[data-theme="dark"] .care-do,
[data-theme="dark"] .price-table th,
[data-theme="dark"] .mat-table th,
[data-theme="dark"] .summary-table th,
[data-theme="dark"] .compare-table td:first-child {
  background: var(--color-bg-secondary) !important;
}

/* Green background blocks → dark green tint */
[data-theme="dark"] .verdict,
[data-theme="dark"] .summary-box,
[data-theme="dark"] .engrave-example {
  background: rgba(74, 173, 106, 0.08) !important;
}

/* Red background → dark red tint */
[data-theme="dark"] .care-dont {
  background: rgba(224, 80, 80, 0.08) !important;
}

/* Yellow tip blocks → dark yellow tint */
[data-theme="dark"] .tip-block {
  background: rgba(249, 168, 37, 0.08) !important;
  border-left-color: #b8860b !important;
}

/* Table hover → dark bg */
[data-theme="dark"] .price-table tr:hover,
[data-theme="dark"] .mat-table tr:hover,
[data-theme="dark"] .summary-table tr:hover,
[data-theme="dark"] .compare-table tr:hover {
  background: var(--color-bg-secondary) !important;
}

/* Green accent titles → theme accent */
[data-theme="dark"] .dept-card__title,
[data-theme="dark"] .mat-card__title,
[data-theme="dark"] .usecase__title,
[data-theme="dark"] .tip-card__title,
[data-theme="dark"] .bundle-card__price,
[data-theme="dark"] .price-highlight,
[data-theme="dark"] .highlight,
[data-theme="dark"] .care-do__title,
[data-theme="dark"] .checklist li::before {
  color: var(--color-accent) !important;
}

/* Red titles */
[data-theme="dark"] .care-dont__title {
  color: var(--color-error) !important;
}

/* Orange text */
[data-theme="dark"] .tip-block strong {
  color: #ffa726 !important;
}

/* Dark text shades → theme text colors */
[data-theme="dark"] .dept-card__text,
[data-theme="dark"] .mat-card__text,
[data-theme="dark"] .usecase__text,
[data-theme="dark"] .tip-card__text,
[data-theme="dark"] .step__text,
[data-theme="dark"] .engrave-example,
[data-theme="dark"] .price-table th,
[data-theme="dark"] .mat-table th,
[data-theme="dark"] .summary-table th,
[data-theme="dark"] .compare-table th {
  color: var(--color-text) !important;
}

[data-theme="dark"] .dept-card__specs,
[data-theme="dark"] .usecase__who,
[data-theme="dark"] .bundle-card__desc,
[data-theme="dark"] .price-note,
[data-theme="dark"] .engrave-example__label,
[data-theme="dark"] .bundle-card__old {
  color: var(--color-text-muted) !important;
}

/* Step number circles */
[data-theme="dark"] .step__num {
  background: var(--color-accent) !important;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Exit-intent Popup ===== */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
.exit-popup-overlay--visible {
  opacity: 1;
}
.exit-popup {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.exit-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
  padding: 0.25rem;
}
.exit-popup__close:hover {
  color: var(--color-text);
}
.exit-popup__title {
  font-size: var(--font-size-lg);
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.exit-popup__text {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.exit-popup__btn {
  display: inline-block;
}

/* ===== Engraving Calculator ===== */
.calc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
.calc__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.calc__sides {
  display: flex;
  gap: 0.5rem;
}
.calc__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: border-color 0.2s, background 0.2s;
}
.calc__radio--active {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
}
.calc__radio input { display: none; }
.calc__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-size-sm);
  cursor: pointer;
}
.calc__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.calc__card {
  position: relative;
  text-align: center;
  padding: 1.25rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}
.calc__card:hover {
  border-color: var(--color-primary);
}
.calc__card--standard {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.calc__card-badge {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.calc__card-name {
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.calc__card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.calc__card-discount {
  font-size: var(--font-size-xs);
  color: var(--color-success, #16a34a);
  margin-bottom: 0.75rem;
  min-height: 1.2em;
}
.calc__btn {
  width: 100%;
}
.calc__note {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 0;
}

/* Coupon result */
.calc__coupon {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.calc__coupon p {
  margin-bottom: 0.75rem;
}
.calc__coupon-code {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.1em;
  background: var(--color-surface-alt, #f3f4f6);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  user-select: all;
}
[data-theme="dark"] .calc__coupon-code {
  background: rgba(255,255,255,0.05);
}
.calc__coupon-copy {
  margin-bottom: 0.5rem;
}
.calc__coupon-hint {
  font-size: var(--font-size-xs);
  color: var(--color-success, #16a34a);
  margin-bottom: 1rem;
}
#coupon-go {
  display: inline-block;
}

/* Coupon field in product modal */
.modal__coupon {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.modal__coupon-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}
.modal__coupon-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.modal__coupon-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: var(--font-size-sm);
  letter-spacing: 0.05em;
  background: var(--color-bg);
  color: var(--color-text);
}
.modal__coupon-input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.modal__coupon-status {
  font-size: var(--font-size-sm);
  min-width: 1.5rem;
  text-align: center;
}
.modal__coupon-info {
  margin-top: 0.5rem;
  font-size: var(--font-size-xs);
  color: var(--color-success, #16a34a);
}
.modal__coupon-hint {
  margin-top: 0.5rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}
.modal__coupon-hint a {
  color: var(--color-primary);
}
.modal__coupon-label a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Calculator responsive */
@media (max-width: 640px) {
  .calc__cards {
    grid-template-columns: 1fr;
  }
  .calc__controls {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 999;
}
.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-accent-hover, var(--color-accent));
  box-shadow: var(--shadow-lg);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 640px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
  z-index: 1000;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner--visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cookie-banner__text {
  flex: 1;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__btn {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
  }
  .cookie-banner__btn {
    width: 100%;
  }
}
