:root{
  --black:#000;
  --white:#fff;
  --graphite:#1a1a1a;
  --graphite-soft:#2a2a2a;
  --line:#e5e5e5;
  --accent:#8B0000;
  --accent-hover:#a00000;
  --muted:#888;
  --max:1200px;
  --radius:10px;
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  background:var(--white);
  color:var(--graphite);
  line-height:1.5;
  font-size:17px;
  -webkit-text-size-adjust:100%;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
h1,h2,h3,p{margin:0}
.section{padding:60px 20px;max-width:var(--max);margin:0 auto}
.section--dark{background:var(--graphite);color:var(--white)}
.section__title{font-size:32px;font-weight:900;letter-spacing:-.02em;margin-bottom:12px;text-transform:uppercase}
.section__sub{color:var(--muted);margin-bottom:28px;max-width:540px}
.section--dark .section__sub{color:#bbb}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:0 22px;min-height:48px;border-radius:var(--radius);
  font-weight:700;letter-spacing:.02em;transition:.2s;
}
.btn--accent{background:var(--accent);color:var(--white)}
.btn--accent:hover{background:var(--accent-hover)}
.btn--block{width:100%}

/* HERO */
.hero{
  background:var(--black);color:var(--white);
  text-align:center;padding:80px 20px 60px;
  position:relative;overflow:hidden;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 20% 0%,rgba(139,0,0,.35),transparent 60%),
             radial-gradient(circle at 80% 100%,rgba(139,0,0,.18),transparent 50%);
  pointer-events:none;
}
.hero__logo{margin:0 auto 32px;max-width:560px;width:80%;position:relative;z-index:1}
.hero__logo img{filter:invert(1) brightness(2)}
.hero__title{
  font-size:clamp(48px,12vw,96px);font-weight:900;
  letter-spacing:-.04em;text-transform:uppercase;line-height:1;
  position:relative;z-index:1;
}
.hero__tagline{
  font-size:18px;margin:18px 0 32px;color:#ccc;
  position:relative;z-index:1;
}
.hero__cta{
  display:inline-block;padding:0 32px;min-height:52px;line-height:52px;
  background:var(--accent);color:var(--white);border-radius:var(--radius);
  font-weight:700;position:relative;z-index:1;transition:.2s;
}
.hero__cta:hover{background:var(--accent-hover)}

/* NAV */
.nav{
  position:sticky;top:0;z-index:50;background:var(--white);
  border-bottom:1px solid var(--line);
  display:flex;justify-content:flex-start;gap:6px;padding:10px 12px;
  overflow-x:auto;-webkit-overflow-scrolling:touch;
  scroll-snap-type:none;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none}
.nav a{min-height:44px;display:inline-flex;align-items:center;
  padding:0 18px;border-radius:var(--radius);
  font-weight:600;white-space:nowrap;transition:.2s;
}
.nav a:hover{background:var(--graphite);color:var(--white)}

/* CART FAB */
.cart-btn{
  position:fixed;right:20px;bottom:20px;z-index:60;
  width:60px;height:60px;border-radius:50%;
  background:var(--accent);color:var(--white);
  font-size:26px;display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}
.cart-btn__badge{
  position:absolute;top:-4px;right:-4px;
  background:var(--white);color:var(--accent);
  border-radius:999px;min-width:22px;height:22px;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:800;padding:0 6px;
}

/* CART PANEL */
.cart{
  position:fixed;inset:0;z-index:100;
  background:rgba(0,0,0,.55);display:flex;align-items:flex-end;
  justify-content:center;
}
.cart[hidden]{display:none}
.cart__panel{
  background:var(--white);color:var(--graphite);
  width:100%;max-width:520px;max-height:92vh;
  border-radius:20px 20px 0 0;padding:20px;
  display:flex;flex-direction:column;gap:14px;
  overflow-y:auto;
}
@media(min-width:680px){
  .cart{align-items:center}
  .cart__panel{border-radius:20px;max-height:86vh}
}
.cart__head{display:flex;justify-content:space-between;align-items:center}
.cart__head h3{font-size:22px;font-weight:900}
.cart__close{font-size:22px;padding:6px 12px;min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
.cart__items{display:flex;flex-direction:column;gap:10px}
.cart__empty{text-align:center;color:var(--muted);padding:20px}
.cart__delivery{
  font-size:14px;color:#ddd;
  background:var(--graphite);padding:10px 14px;border-radius:var(--radius);
}
.cart__address{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px}
.cart__address textarea{
  width:100%;padding:10px 12px;border:1px solid var(--line);
  border-radius:var(--radius);font:inherit;resize:vertical;
}
.cart__total{font-size:20px;font-weight:800;display:flex;justify-content:space-between}

/* CART ITEM */
.cart-item{
  display:flex;flex-direction:column;gap:10px;
  padding:12px;border:1px solid var(--line);border-radius:var(--radius);
}
.cart-item__top{
  display:flex;gap:12px;align-items:center;min-width:0;
}
.cart-item__thumb{width:60px;height:60px;border-radius:8px;background:var(--graphite);overflow:hidden;flex-shrink:0}
.cart-item__thumb img{width:100%;height:100%;object-fit:cover}
.cart-item__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cart-item__title{font-weight:700;font-size:15px;line-height:1.3;overflow-wrap:break-word;word-break:break-word}
.cart-item__meta{font-size:13px;color:var(--muted)}
.cart-item__bottom{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.cart-item__qty{display:flex;align-items:center;gap:8px;flex-shrink:0}
.cart-item__qty button{
  min-width:48px;min-height:48px;width:48px;height:48px;border-radius:8px;
  background:var(--graphite);color:var(--white);
  font-weight:700;font-size:20px;line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
}
.cart-item__qty-value{
  min-width:32px;text-align:center;font-weight:800;font-size:16px;
}
.cart-item__price{font-weight:800;text-align:right;flex:1;min-width:0;font-size:16px}
.cart-item__remove{
  width:44px;height:44px;color:var(--accent);font-weight:700;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;font-size:20px;
}

/* PRODUCTS */
.products{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;
}
.product{
  background:var(--white);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;
  transition:.2s;
}
.section--dark .product{background:var(--graphite-soft);border-color:#333}
.product:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.08)}
.product__gallery{
  position:relative;background:#000;aspect-ratio:3/4;overflow:hidden;
}
.product__img{width:100%;height:100%;object-fit:cover;transition:none;animation:none}
.product__nav{
  position:absolute;top:50%;transform:translateY(-50%);
  min-width:48px;min-height:48px;width:48px;height:48px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;
  font-size:24px;line-height:1;display:none;align-items:center;justify-content:center;
}
.product__nav--prev{left:10px}
.product__nav--next{right:10px}
.product__gallery:hover .product__nav{display:flex}
.product__counter{
  position:absolute;bottom:10px;right:10px;
  background:rgba(0,0,0,.6);color:#fff;border-radius:999px;
  padding:6px 12px;font-size:12px;font-weight:700;
}
.product__body{padding:18px;display:flex;flex-direction:column;gap:10px;flex:1}
.product__title{font-size:20px;font-weight:800;text-transform:uppercase}
.product__desc{font-size:14px;color:var(--muted);flex:1}
.section--dark .product__desc{color:#bbb}
.product__price{font-size:22px;font-weight:900;color:var(--accent);display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.product__price-now{font-size:22px;font-weight:900;color:var(--accent)}
.product__price-old{font-size:15px;font-weight:700;color:var(--muted);text-decoration:line-through;text-decoration-thickness:2px}
.section--dark .product__price-old{color:#bbb}
.product__sizes{display:flex;flex-direction:column;gap:6px}
.product__sizes-label{font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase}
.section--dark .product__sizes-label{color:#bbb}
.product__size-list{display:flex;flex-wrap:wrap;gap:6px}
.size-chip{
  padding:8px 14px;min-width:48px;min-height:48px;
  border:2px solid var(--line);border-radius:8px;font-weight:700;
  background:var(--white);color:var(--graphite);transition:.15s;
}
.section--dark .size-chip{background:transparent;color:var(--white);border-color:#444}
.size-chip:hover{border-color:var(--graphite)}
.size-chip.active{background:var(--accent);color:var(--white);border-color:var(--accent)}
.product__add{margin-top:auto;min-height:48px}
.product__size-link{display:inline-flex;align-self:flex-start;align-items:center;min-height:44px;font-size:13px;font-weight:700;color:var(--muted);text-decoration:none;border-bottom:1px dashed currentColor;padding:0 2px 2px}
.product__size-link:hover{color:var(--accent)}
.section--dark .product__size-link{color:#bbb}

/* SIZE CHART ILLUSTRATION */
.size-chart-illustration{
  max-width:320px;margin:0 auto 24px;
  background:var(--white);border-radius:var(--radius);
  padding:14px;border:1px solid #333;
}
.size-chart-illustration img{width:100%;height:auto;display:block;border-radius:6px}

/* SIZE TABLE */
.size-table__heading{font-size:18px;margin:24px 0 10px;text-transform:uppercase;letter-spacing:.04em}
.size-table-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid #333}
.section--dark .size-table-wrap{border-color:#333}
.size-table{width:100%;border-collapse:collapse;min-width:560px}
.size-table th,.size-table td{
  padding:12px 14px;text-align:left;border-bottom:1px solid #333;
}
.size-table thead{background:#000;color:var(--white)}
.size-table th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#fff;font-weight:800}
.size-table tbody tr:last-child td{border-bottom:0}

/* CALC */
.calc-tabs{display:flex;gap:8px;margin-bottom:16px}
.calc-tab{
  min-height:48px;padding:10px 22px;border-radius:var(--radius);font-weight:700;
  background:var(--line);color:var(--graphite);transition:.2s;
}
.calc-tab.active{background:var(--graphite);color:var(--white)}
.calc{
  display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;
  max-width:560px;
}
.calc__field{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px;flex:1;min-width:180px}
.calc__field input{
  padding:12px 14px;border:2px solid var(--line);border-radius:var(--radius);
  font:inherit;font-size:16px;min-height:48px;
}
.calc__field input:focus{outline:0;border-color:var(--accent)}
.calc__result{
  flex:1 0 100%;margin-top:6px;padding:14px 16px;
  background:var(--accent);color:var(--white);border-radius:var(--radius);font-weight:700;
}

/* WORLD PHOTO GRID — keep each image at its original aspect ratio. */
.world-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.world-grid__item{display:block;min-width:0;border-radius:var(--radius);overflow:hidden;background:#000;cursor:zoom-in;line-height:0}
.world-grid__item img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;transition:transform .35s ease}
.world-grid__item:hover img{transform:scale(1.02)}
@media(max-width:900px){.world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.world-grid{grid-template-columns:1fr;gap:14px}}
@media(max-width:560px){
  .section{padding:44px 16px}
  .hero{padding:60px 18px 44px}
  .section__title{font-size:26px}
  .cart-btn{width:56px;height:56px;font-size:24px}
}

/* REVIEWS */
.reviews{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.reviews--inline{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;margin-top:18px;padding-top:18px;border-top:1px dashed #444}
.review--card{
  background:var(--graphite-soft);
  border:1px solid #333;
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:.2s;
}
.review--card:hover{border-color:var(--accent);transform:translateY(-3px);box-shadow:0 12px 24px rgba(0,0,0,.35)}
.review__media{
  background:#000;
  aspect-ratio:4/3;
  overflow:hidden;
  border-bottom:1px solid #333;
}
.review__media img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:center top;
  cursor:zoom-in;
}
.review__body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
.review__meta{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.review__stars{color:#ffc23a;font-size:14px;letter-spacing:2px;line-height:1}
.review__source{
  display:inline-flex;align-items:center;gap:4px;
  padding:4px 10px;border-radius:999px;
  font-size:11px;font-weight:800;letter-spacing:.04em;
  text-transform:uppercase;color:var(--white);
  background:#444;
}
.review__source--telegram{background:#2AABEE}
.review__source--instagram{background:linear-gradient(45deg,#f09433,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888)}
.review__source--market{background:#FFCC00;color:#1a1a1a}
.review__source--site{background:var(--accent)}
.review__quote{
  font-size:14px;line-height:1.55;
  color:#e5e5e5;
  border-left:3px solid var(--accent);
  padding:4px 0 4px 12px;
  margin:2px 0;
  flex:1;
}
.review__author{
  display:flex;justify-content:space-between;align-items:baseline;
  gap:8px;flex-wrap:wrap;
  font-size:12px;color:#aaa;
  padding-top:10px;border-top:1px solid #333;
}
.review__author strong{color:#fff;font-weight:800;font-size:13px}

/* старая форма отзыва */
.review-form{
  display:flex;flex-direction:column;gap:10px;max-width:560px;
  margin-top:14px;
}
.review-form input[type=text],.review-form textarea{
  padding:12px 14px;border:1px solid #444;border-radius:var(--radius);
  background:transparent;color:var(--white);font:inherit;min-height:48px;
}
.review-form__photo{
  position:relative;display:flex;align-items:center;gap:12px;
  padding:12px 14px;border:1px dashed #555;border-radius:var(--radius);
  cursor:pointer;font-weight:600;min-height:48px;overflow:hidden;flex-wrap:wrap;
}
.review-form__photo input{
  position:absolute;inset:0;width:100%;height:100%;
  opacity:0;cursor:pointer;font-size:0;
}
.review-form__photo-text{display:inline-flex;align-items:center;gap:10px;pointer-events:none}
.review-form__photo-preview{
  display:none;width:64px;height:64px;border-radius:8px;
  object-fit:cover;border:1px solid #444;background:#111;
}
.review-form__photo-preview.is-visible{display:block}
.review-form__photo-remove{
  display:none;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:50%;
  background:#2a2a2a;color:#fff;border:1px solid #444;
  font-size:16px;line-height:1;cursor:pointer;
}
.review-form__photo-remove.is-visible{display:inline-flex}
.review-form__note{
  width:100%;font-size:13px;color:#bbb;margin-top:4px;
}
.review-form__note--err{color:#ff8a8a}
.review-form__note--ok{color:#9fe3a3}

.review-add{margin-top:36px}
.review-add > summary{
  list-style:none;cursor:pointer;
  display:inline-flex;align-items:center;
  min-height:48px;padding:0 22px;
  background:var(--accent);color:var(--white);
  border-radius:var(--radius);font-weight:700;
  transition:.2s;
}
.review-add > summary::-webkit-details-marker{display:none}
.review-add > summary:hover{background:var(--accent-hover)}
.review-add[open] > summary{margin-bottom:14px}

/* lightbox */
.review-lightbox{
  position:fixed;inset:0;z-index:200;
  background:rgba(0,0,0,.85);
  display:flex;align-items:center;justify-content:center;
  padding:20px;
}
.review-lightbox[hidden]{display:none}
.review-lightbox img{
  max-width:92vw;max-height:92vh;
  object-fit:contain;border-radius:8px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.review-lightbox__close{
  position:absolute;top:16px;right:16px;
  width:48px;height:48px;border-radius:50%;
  background:rgba(255,255,255,.15);color:#fff;
  font-size:22px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}

/* CONTACTS */
.contacts{display:flex;flex-wrap:wrap;gap:12px}
.contacts__item{
  min-height:48px;padding:16px 22px;background:var(--graphite);color:var(--white);
  border-radius:var(--radius);font-weight:700;transition:.2s;display:inline-flex;align-items:center;
}
.contacts__item:hover{background:var(--accent)}

/* FOOTER */
.footer{
  background:var(--black);color:#888;text-align:center;
  padding:24px;font-size:14px;
}
