:root {
  --ink: #0e0f13;
  --ink-soft: #5b6068;
  --gold: #c9a24b;
  --gold-dark: #a9863a;
  --bg: #ffffff;
  --bg-soft: #f4f4f1;
  --line: #e8e8e4;
  --radius: 18px;
  --max: 1240px;
  --shadow: 0 10px 30px rgba(14, 15, 19, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }

/* Шапка */
.announcement { background: var(--ink); color: #f5f5f4; text-align: center; font-size: 12.5px; padding: 9px 16px; letter-spacing: .04em; }
.header-inner { display: flex; align-items: center; gap: 26px; padding-top: 16px; padding-bottom: 16px; }
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 50; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.03em; white-space: nowrap; }
.logo-accent { color: var(--gold); margin-left: 4px; }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-link { position: relative; display: flex; align-items: center; text-decoration: none; }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }

/* Герой */
.hero { background: radial-gradient(1000px 500px at 85% -10%, rgba(201,162,75,.22), transparent 60%), #0d0e12; color: #f5f5f4; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 76px 24px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin-bottom: 20px; }
.hero p { color: #b9bdc6; font-size: 17px; margin-bottom: 30px; max-width: 46ch; }
.hero img { border-radius: 24px; aspect-ratio: 4/3.4; object-fit: cover; width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.hero-badge { display: inline-block; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border: 1px solid rgba(201,162,75,.4); border-radius: 999px; padding: 7px 16px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Кнопки */
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid var(--ink); cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Секции */
.section { padding: 68px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.section-head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.section-head a:hover { color: var(--gold-dark); }
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: 36px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.page-head p { color: var(--ink-soft); max-width: 65ch; }

/* Карточки товаров */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card { text-decoration: none; display: block; }
.watermarked { position: relative; }
.watermark-logo {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.25)); opacity: .95; pointer-events: none; z-index: 2;
}
.product-card img:not(.watermark-logo) {
  width: 100%; aspect-ratio: 4/4.6; object-fit: contain;
  background: linear-gradient(160deg, #f7f7f4, #eceeea);
  border-radius: var(--radius); padding: 8px;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover img:not(.watermark-logo) { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .card-body { padding: 14px 4px; }
.product-card .card-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 600; }
.product-card h3 { font-size: 16px; font-weight: 600; margin: 3px 0 5px; letter-spacing: -.01em; }
.price { font-weight: 700; }
.price-compare { color: var(--ink-soft); text-decoration: line-through; font-weight: 400; font-size: 14px; margin-left: 8px; }
.badge-sale { display: inline-block; background: #f7edd7; color: #8a6a1d; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* Категории */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.category-tile span { color: var(--ink-soft); font-weight: 500; font-size: 14px; }
.category-tile:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.section-soft .category-tile { background: #fff; }

/* Фильтры каталога */
.shop-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 34px; }
.shop-filters a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); transition: all .15s; }
.shop-filters a.active, .shop-filters a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Страница товара */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; padding: 36px 0 50px; }
.product-layout .main-img { border-radius: 24px; aspect-ratio: 4/4.4; object-fit: contain; background: linear-gradient(160deg, #f7f7f4, #eceeea); width: 100%; padding: 16px; }
.breadcrumbs { font-size: 13px; color: var(--ink-soft); padding: 24px 0 0; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.product-info h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 12px; }
.product-info .price { font-size: 26px; }
.product-info .description { color: var(--ink-soft); margin: 18px 0; }
.size-label { font-weight: 600; font-size: 14px; margin: 22px 0 12px; display: block; }
.size-options { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.size-options input { position: absolute; opacity: 0; }
.size-options label { border: 1px solid var(--line); border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .12s; display: inline-block; }
.size-options label:hover { border-color: var(--ink); }
.size-options input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-options input:focus-visible + label { outline: 2px solid var(--gold); }
.product-details { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.product-details li { margin-left: 18px; color: var(--ink-soft); font-size: 14px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--ink-soft); }

/* Корзина и формы */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; padding: 30px 0 60px; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row img { width: 96px; height: 108px; object-fit: contain; background: var(--bg-soft); border-radius: 12px; }
.cart-row h3 { font-size: 16px; }
.cart-row .meta { color: var(--ink-soft); font-size: 14px; }
.qty-input { width: 64px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.link-button { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-size: 13px; }
.summary-card { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; height: fit-content; }
.summary-card h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 10px; }
.summary-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.summary-card .row.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; font-weight: 800; font-size: 19px; }
.summary-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
form .field { margin-bottom: 16px; }
label.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.form-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.empty-state { text-align: center; padding: 70px 0; }
.empty-state h1, .empty-state h2 { margin-bottom: 12px; letter-spacing: -.02em; }
.empty-state p { color: var(--ink-soft); margin-bottom: 14px; }
.empty-state .btn { margin-top: 10px; }

/* Текстовые страницы */
.prose { max-width: 760px; padding: 20px 0 60px; }
.prose h2 { margin: 30px 0 10px; font-size: 22px; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 10px; }
.prose ul, .prose ol { margin-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 13px; font-size: 14px; text-align: left; }
.prose th { background: var(--bg-soft); }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h2 { font-size: 17px; margin: 0 0 6px; }

/* Подвал */
.site-footer { background: #0d0e12; color: #b9bdc6; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 30px; padding: 56px 24px 36px; }
.footer-grid h3 { color: #fff; font-size: 13px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a { display: block; color: #b9bdc6; text-decoration: none; font-size: 14px; padding: 3px 0; transition: color .15s; }
.footer-grid a:hover { color: #fff; }
.footer-grid p, .footer-grid address { font-size: 14px; font-style: normal; margin-top: 12px; }
.footer-logo { color: #fff; font-size: 19px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #23262e; padding-top: 20px; padding-bottom: 26px; font-size: 13px; }
.footer-hours { color: #8a8f99; }

/* Админка */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; }
.admin-nav { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin: 20px 0 26px; flex-wrap: wrap; }
.admin-nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.admin-nav a:hover { color: var(--ink); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { background: var(--bg-soft); }
.admin-table img { width: 46px; height: 46px; object-fit: contain; background: var(--bg-soft); border-radius: 8px; }
.status-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg-soft); }
.status-new { background: #eff6ff; color: #1d4ed8; }
.status-paid { background: #f0fdf4; color: #166534; }
.status-shipped { background: #fef3c7; color: #92400e; }
.admin-login { max-width: 380px; margin: 70px auto; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; }
.stat-card .num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stat-card .lbl { color: var(--ink-soft); font-size: 14px; }

/* Адаптивность */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-inner, .product-layout, .cart-layout { grid-template-columns: 1fr; }
  .hero-inner { padding: 44px 24px; gap: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .category-grid { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 12px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
}
