@import url('glass.css');
@import url('motion.css');

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

:root {
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --bg-elevated: #e8eaed;
  --border: rgba(0, 0, 0, 0.08);
  --text: #1a1f1c;
  --text-muted: #5c6560;
  --accent: #3d6b4f;
  --accent-hover: #4a7c59;
  --accent-glow: rgba(61, 107, 79, 0.25);
  --success: #2d8a4e;
  --danger: #c45c5c;
  --gradient-from: #4a7c59;
  --gradient-mid: #5d9469;
  --gradient-to: #7aab82;
  --gradient: linear-gradient(135deg, var(--gradient-from) 0%, var(--gradient-mid) 50%, var(--gradient-to) 100%);
  --header-bg: rgba(255, 255, 255, 0.55);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark-green"] {
  --bg: #0a0f0d;
  --bg-card: #141a17;
  --bg-elevated: #1c2420;
  --border: rgba(140, 170, 150, 0.14);
  --text: #eef2ef;
  --text-muted: #8a9a90;
  --accent: #4a7c59;
  --accent-hover: #5d9469;
  --accent-glow: rgba(74, 124, 89, 0.4);
  --success: #5cb87a;
  --danger: #c45c5c;
  --gradient-from: #3d5a47;
  --gradient-mid: #4a7c59;
  --gradient-to: #6b8f72;
  --gradient: linear-gradient(135deg, var(--gradient-from) 0%, var(--gradient-mid) 50%, var(--gradient-to) 100%);
  --header-bg: rgba(10, 15, 13, 0.42);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body[data-theme="light-gray"] {
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body[data-theme="light-gray"] .product-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

body[data-theme="light-gray"] .category-btn:hover {
  border-color: rgba(0, 0, 0, 0.15);
}


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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  justify-self: start;
}

.logo__img-text {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.logo__img {
  display: none;
}

.logo__icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.logo__text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 32px;
  justify-self: center;
}

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

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.header__actions-slot--toggle {
  width: 148px;
  display: flex;
  justify-content: flex-end;
}

.header__actions-slot--cart {
  width: 44px;
  display: flex;
  justify-content: flex-end;
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}

.cart-btn:hover {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.15);
}

.cart-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--accent);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(74, 124, 89, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 80% 20%, rgba(107, 143, 114, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: min(780px, 100%);
  margin: 0 auto 8px;
  line-height: 1.65;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Categories */
.categories {
  padding: 0 0 32px;
  background: transparent;
}

.categories__list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.categories__list::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}

.category-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.category-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.category-btn--active:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
}

/* Products */
.products {
  padding: 0 0 80px;
}

.products__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.products__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.products__count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.catalog-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.catalog-error p {
  margin-bottom: 16px;
  line-height: 1.5;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.products__grid .product-card {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--bg-card);
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card__more {
  padding: 10px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
}

.product-card--link:hover .product-card__more {
  border-color: var(--accent);
  color: var(--text);
}

.cart-item__variant {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-card__image {
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__emoji {
  display: none;
}

.product-card__photo {
  max-height: 220px;
  max-width: 92%;
  object-fit: contain;
  transition: transform var(--transition);
  position: relative;
  z-index: 1;
}

.product-card:hover .product-card__photo {
  transform: scale(1.05);
}

.product-card__badge--stock {
  background: var(--success);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  z-index: 10;
}

.product-card__badge--sale {
  background: var(--danger);
}

.product-card__badge--premium {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
}

.product-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.product-card__spec {
  padding: 4px 8px;
  background: var(--bg-elevated);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-card__spec--overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.product-card__prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-card__old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__add {
  padding: 10px 18px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  transition: all var(--transition);
  white-space: nowrap;
}

.product-card__add:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.product-card__add--added {
  background: var(--success);
}

/* Features */
.features {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 24px;
}

.feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature__text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer__col a:hover {
  opacity: 1;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease, backdrop-filter 0.45s ease;
}

.cart-overlay--open {
  opacity: 1;
  visibility: visible;
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-left: 1px solid var(--glass-border);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.25), inset 1px 0 0 rgba(255, 255, 255, 0.1);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
}

.cart--open {
  transform: translateX(0);
}

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cart__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.cart__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.cart__close:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart__empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.cart__empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item__emoji {
  display: none;
}

.cart-item__photo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item__price {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.cart-item__qty-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.cart-item__qty {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart__footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.cart__total-label {
  font-size: 1rem;
  color: var(--text-muted);
}

.cart__total-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart__checkout {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  transition: all var(--transition);
}

.cart__checkout:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.cart__checkout:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Checkout modal */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
}

.checkout-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 420px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  z-index: 301;
  padding: 24px;
}

.checkout-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.checkout-modal__header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.checkout-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.checkout-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-modal__form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-modal__form .field span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.checkout-modal__form input {
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.checkout-modal__body {
  display: block;
}

.checkout-modal__form[hidden],
.checkout-success[hidden] {
  display: none !important;
}

.checkout-modal__submit {
  width: 100%;
  padding: 14px;
}

.checkout-success {
  padding: 4px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.checkout-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: rgba(74, 124, 89, 0.15);
  color: var(--accent-hover);
  font-size: 1.5rem;
  font-weight: 700;
}

.checkout-success__title {
  font-size: 1.25rem;
}

.checkout-success__id {
  color: var(--text-muted);
}

.checkout-success__hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkout-success__subhint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.checkout-success__contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-success__contacts .btn {
  justify-content: center;
  text-align: center;
}

.checkout-success .btn--primary {
  width: 100%;
  margin-top: 4px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 14px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.toast:empty {
  display: none;
}

.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.toast--hiding {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  visibility: hidden;
}

body.has-mobile-nav .toast {
  bottom: calc(72px + 8px + env(safe-area-inset-bottom, 0px));
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
  gap: 4px;
}

.mobile-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  min-width: 56px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
  transition: color var(--transition), background var(--transition);
}

.mobile-nav__link--active {
  color: var(--accent-hover);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-nav__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  body.has-mobile-nav {
    padding-bottom: 72px;
  }

  .nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__actions-slot--toggle {
    display: none;
  }

  .catalog-toggle {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero__stats {
    gap: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

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

  .products__grid {
    grid-template-columns: 1fr;
  }
}

/* Review pages */
.review-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.review-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.review-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.review-card--wide {
  max-width: 560px;
}

.review-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.review-card__icon--sad {
  background: rgba(196, 92, 92, 0.12);
  border-color: rgba(196, 92, 92, 0.25);
}

.review-card__icon--happy {
  background: rgba(92, 184, 122, 0.12);
  border-color: rgba(92, 184, 122, 0.25);
}

.review-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.review-card__text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.review-card__bonus {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(74, 124, 89, 0.15);
  border: 1px solid rgba(74, 124, 89, 0.3);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 28px;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.star-btn {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 1.75rem;
  color: #6b7a70;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.star-btn:hover,
.star-btn:focus-visible {
  border-color: var(--accent);
  color: #c9a227;
  transform: scale(1.08);
  box-shadow: 0 4px 20px var(--accent-glow);
  outline: none;
}

.star-btn--active {
  background: rgba(74, 124, 89, 0.2);
  border-color: var(--accent);
  color: #e8c547;
}

.stars__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.review-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}

.review-action-btn:hover {
  border-color: var(--accent);
  background: rgba(74, 124, 89, 0.12);
}

.review-action-btn--primary {
  background: var(--gradient);
  border-color: transparent;
  color: white;
}

.review-action-btn--primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.review-action-btn--telegram:hover {
  border-color: #2aabee;
  background: rgba(42, 171, 238, 0.1);
}

.review-action-btn--vk:hover {
  border-color: #5181b8;
  background: rgba(81, 129, 184, 0.1);
}

.review-action-btn--avito:hover {
  border-color: #00aaff;
  background: rgba(0, 170, 255, 0.1);
}

.review-action-btn--yandex:hover {
  border-color: #fc3f1d;
  background: rgba(252, 63, 29, 0.1);
}

.review-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.review-stars-display {
  font-size: 1.5rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
  color: #e8c547;
}

@media (max-width: 480px) {
  .review-card {
    padding: 36px 24px;
  }

  .star-btn {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .stars {
    gap: 8px;
  }
}

/* Landing page */
.landing-page {
  min-height: 100vh;
}

.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: radial-gradient(ellipse at top, rgba(74, 124, 89, 0.15) 0%, transparent 60%);
}

.landing__inner {
  max-width: 640px;
  text-align: center;
}

.landing__logo {
  height: 80px;
  width: auto;
  margin: 0 auto 16px;
}

.landing__tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.landing__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.landing__choices {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: all var(--transition);
  color: inherit;
  text-decoration: none;
}

.choice-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.choice-card__icon {
  grid-row: 1 / 3;
  font-size: 2rem;
  align-self: center;
}

.choice-card__title {
  font-size: 1.15rem;
  font-weight: 700;
}

.choice-card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.choice-card__arrow {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 1.25rem;
  color: var(--accent);
}

.choice-card--used:hover {
  border-color: #5181b8;
}

.landing__links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.landing__links a {
  color: var(--accent-hover);
  text-decoration: none;
}

.landing__links a:hover {
  text-decoration: underline;
}

/* Product detail */
.product-page {
  padding: 100px 0 80px;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail__image {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-detail__emoji {
  display: none;
}

.product-detail__photo {
  max-height: 320px;
  max-width: 90%;
  object-fit: contain;
}

.product-detail__title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.product-detail__desc {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.product-detail__price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.product-detail__note {
  font-size: 0.875rem;
  color: var(--success);
  margin-bottom: 32px;
}

.option-group {
  margin-bottom: 24px;
}

.option-group__title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.option-group__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-group__list--colors {
  flex-direction: column;
  align-items: flex-start;
}

.option-btn {
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.option-btn--active {
  border-color: var(--accent);
  background: rgba(74, 124, 89, 0.15);
}

.option-btn--color {
  width: 100%;
  justify-content: flex-start;
}

.option-btn__swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.product-detail__add {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-top: 8px;
  transition: all var(--transition);
}

.product-detail__add:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Info pages */
.page-main {
  padding: 100px 0 80px;
}

.page-content {
  max-width: 720px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-lead {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.page-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 32px;
}

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

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.info-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.info-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.info-highlight {
  font-weight: 600;
  color: var(--success);
  margin-bottom: 0 !important;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.02em;
}

.why-us {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.why-us li {
  position: relative;
  padding: 22px 22px 22px 56px;
  font-size: 0.95rem;
  line-height: 1.55;
  z-index: 1;
}

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

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Catalog toggle */
.catalog-toggle {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.catalog-toggle__btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.catalog-toggle__btn--active {
  background: var(--accent);
  color: white;
}

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

/* Used panel */
.used-panel {
  padding: 0 0 48px;
}

.used-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.used-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.used-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.used-card__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--gradient);
  color: white;
}

.btn--primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

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

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

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero--compact {
  padding: 0;
  overflow: visible;
}

.hero--compact::before,
.hero--compact::after {
  display: none;
}

/* Stock */
.stock-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.stock-badge--in {
  background: rgba(92, 184, 122, 0.15);
  color: var(--success);
  border: 1px solid rgba(92, 184, 122, 0.3);
}

.stock-badge--order {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.option-stock {
  color: var(--success);
  font-size: 0.8rem;
}

.dolyami-img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  margin-top: 16px;
}

.contacts-grid {
  display: grid;
  gap: 16px;
}

.contact-big {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-hover);
  text-decoration: none;
}

.contact-address-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.contact-address-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.contact-hours {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 8px 0 16px;
}

.footer__hours {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer__address-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.85;
  transition: color var(--transition), opacity var(--transition);
  line-height: 1.4;
}

.footer__address-link:hover {
  opacity: 1;
  color: var(--accent-hover);
}

.footer__col li {
  margin-bottom: 12px;
}

.page-content--wide {
  max-width: 800px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
