﻿:root {
  --bg: #f4f2ef;
  --surface: #fff;
  --text: #1f2327;
  --muted: #5f666e;
  --steel: #202426;
  --steel-soft: #303638;
  --wood: #8c5a3c;
  --accent: #c96f2d;
  --accent-dark: #a6531f;
  --line: #d6d1cc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #e8e2d8 0, transparent 35%), linear-gradient(180deg, #f8f7f4 0%, #efeae4 100%);
}
.container { width: min(1140px, 92%); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(248,247,244,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(30,34,35,.06); }
.header-top { color: #eee7dd; background: var(--steel); font-size: .76rem; }
.header-top__wrap, .header-top__wrap div { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.header-top__wrap { min-height: 29px; }
.header-top a { color: #eee7dd; text-decoration: none; }
.header-main { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--steel); text-decoration: none; }
.brand-mark { display: grid; width: 146px; height: 76px; place-items: center; overflow: hidden; }
.brand__logo { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { color: var(--steel); font-family: 'Russo One', sans-serif; font-size: 1.02rem; letter-spacing: .07em; transform: scaleX(1.08); transform-origin: left center; }
.brand-copy small { margin-top: 6px; color: var(--wood); font-size: .74rem; font-weight: 800; letter-spacing: .18em; transform: scaleX(1.08); transform-origin: left center; }
.main-nav { display: flex; gap: 6px; align-items: center; }
.main-nav a { padding: 8px 9px; border-radius: 8px; color: var(--muted); font-size: .88rem; font-weight: 700; text-decoration: none; transition: .2s ease; }
.main-nav a:hover { color: var(--steel); background: #eee8e0; }
.main-nav .nav-social { color: var(--wood); font-size: .74rem; letter-spacing: .08em; }
.cart-link { color: #fff !important; background: var(--steel) !important; }
.cart-link span { display: inline-grid; min-width: 18px; height: 18px; place-items: center; margin-left: 4px; border-radius: 50%; color: #fff; background: var(--accent); font-size: .7rem; }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--steel); }
.intro { position: relative; overflow: hidden; padding: 34px 0 22px; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, rgba(255,255,255,.86), rgba(232,226,216,.8)); }
.intro::after { position: absolute; right: -70px; bottom: -105px; width: 310px; height: 210px; border: 24px solid rgba(140,90,60,.08); border-radius: 50%; content: ''; }
.intro__content { position: relative; z-index: 1; }
.intro h1 { max-width: 920px; margin-bottom: 12px; }
.intro p { max-width: 980px; margin: 8px 0; color: var(--muted); line-height: 1.65; }
.intro__accent { padding: 11px 14px; border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; background: rgba(255,255,255,.66); }
.intro__accent strong { color: var(--steel); }
.hero { padding: 58px 0 20px; }
.eyebrow { color: var(--wood); font-size: .8rem; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }
h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { margin: 0 0 14px; }
.lead { color: var(--muted); }
.section { padding: 24px 0 32px; }
.group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.group-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease;
}
.group-card:hover { transform: translateY(-2px); }
.group-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #ddd; }
.group-card__body { padding: 12px; }
.group-card__body p { margin: 0; color: var(--muted); font-size: .92rem; }
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.products--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.products--featured .product__body { padding: 10px; gap: 6px; }
.products--featured .product__body p:not(.price) { display: none; }
.products--featured .product__actions { display: grid; grid-template-columns: 1fr; }
.products--featured .btn { padding: 8px 10px; font-size: .86rem; }
.product {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: grid;
}
.product img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #ddd; }
.product__body { padding: 12px; display: grid; gap: 8px; }
.product__body h3, .product__body p { margin: 0; }
.product__link { display: block; }
.product__title { color: inherit; text-decoration: none; }
.product__title:hover { color: var(--wood); }
.product__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.price { font-weight: 800; }
.price small, .product-detail__price small, .cart-item__price small, .config-submit strong small { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; font-weight: 600; }
.config-submit strong small { color: #d8d1c8; }
.btn { border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; padding: 10px 12px; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; text-align: center; }
.btn--secondary { background: var(--steel); }
.back-link { color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 12px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 20px; align-items: start; }
.product-detail__gallery, .product-detail__intro, .detail-section { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.product-detail__gallery img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: #ddd; }
.product-detail__price { color: var(--wood); font-size: 1.35rem; font-weight: 800; }
.product-config-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .92fr); gap: 16px; align-items: start; }
.detail-section { margin-top: 16px; }
.detail-section--options { position: sticky; top: 78px; }
.spec-list { margin: 0; }
.spec-list div { display: grid; grid-template-columns: minmax(170px, .36fr) 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.spec-list div:first-child { border-top: 0; }
.spec-list dt { color: var(--muted); font-weight: 700; }
.spec-list dd { margin: 0; }
.options-form { display: grid; gap: 10px; }
.option-field { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.option-field > span, .option-field legend { color: var(--steel); font-weight: 800; }
select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; font: inherit; }
.swatches { display: grid; gap: 8px; margin-top: 4px; }
.swatch-choice { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.swatch-choice input { width: auto; margin: 0; }
.swatch { width: 22px; height: 22px; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.22); border-radius: 5px; background: var(--swatch); }
.dimension-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.dimension-select { display: grid; gap: 5px; }
.dimension-select span, .option-field small { color: var(--muted); font-size: .86rem; }
.option-field small { display: block; margin-top: 8px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 5px; }
.checkbox-grid input { width: auto; margin: 0; }
.config-submit { display: grid; gap: 10px; padding: 14px; border-radius: 10px; background: var(--steel); color: #fff; }
.config-submit p { display: grid; gap: 4px; margin: 0; }
.config-submit span { color: #cbc6bf; font-size: .86rem; }
.config-submit strong { font-size: 1.3rem; }
.config-submit .btn { width: 100%; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 16px; align-items: start; }
.cart, .order-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 10px 25px rgba(32,36,38,.05); }
.order-form { position: sticky; top: 96px; }
.form-hint { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item > img { width: 92px; height: 82px; border-radius: 8px; object-fit: cover; background: #ddd; }
.cart-item__title { color: var(--steel); font-weight: 800; text-decoration: none; }
.cart-item__price { margin-top: 4px; color: var(--wood); font-weight: 700; }
.cart-actions { display: flex; gap: 6px; }
.cart-actions button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.cart-config { display: grid; gap: 3px; margin-top: 8px; color: var(--muted); font-size: .82rem; }
.cart-config span { color: var(--steel); font-weight: 700; }
.reviews { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; }
.review-card { flex: 0 0 min(330px, 84vw); padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; scroll-snap-align: start; }
.review-card__person { display: flex; gap: 10px; align-items: center; }
.review-card__person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #ddd; }
.review-card h3, .review-card p { margin: 0; }
.review-card > p { margin-top: 12px; color: var(--muted); line-height: 1.55; }
.review-card__person p { color: var(--muted); font-size: .86rem; }
.section--about { background: linear-gradient(135deg, #262b2d, #34302d); color: #f7f2eb; }
.section--about .lead { color: #d6d0c7; line-height: 1.7; }
.section--about p:not(.eyebrow) { line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 28px; align-items: center; }
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.skills-grid article { display: grid; gap: 5px; min-height: 110px; align-content: center; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); }
.skills-grid strong { color: #e8904e; font-size: 1.2rem; }
.skills-grid span { color: #d6d0c7; font-size: .84rem; }
.site-footer { color: #d8d1c8; background: #1d2122; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 22px; padding: 30px 0; }
.brand--footer { color: #fff; }
.brand--footer .brand-mark { width: 98px; height: 52px; }
.brand--footer .brand-copy strong { color: #fff; font-size: .88rem; }
.site-footer h3 { margin: 0 0 10px; color: #fff; font-size: .9rem; }
.site-footer p { color: #aaa49c; font-size: .84rem; line-height: 1.6; }
.site-footer a, .site-footer span { display: block; margin: 6px 0; color: #c8c1b8; font-size: .82rem; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-socials { display: flex; gap: 6px; margin-top: 10px; }
.footer-socials a { padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; color: #fff; font-size: .72rem; letter-spacing: .08em; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; font: inherit; }
.form-status { color: var(--muted); }
@media (max-width: 1100px) { .group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; }
  .product-config-grid { grid-template-columns: 1fr; }
  .detail-section--options { position: static; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-form { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header-top__wrap span { display: none; }
  .header-top__wrap { justify-content: center; min-height: 27px; }
  .header-main { min-height: 68px; }
  .brand-mark { width: 104px; height: 68px; }
  .brand-copy strong { font-size: .76rem; letter-spacing: .04em; }
  .brand-copy small { margin-top: 4px; font-size: .58rem; letter-spacing: .11em; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 95px; left: 0; right: 0; display: none; padding: 10px 4%; border-bottom: 1px solid var(--line); background: #f8f7f4; box-shadow: 0 10px 20px rgba(32,36,38,.08); }
  .main-nav--open { display: grid; }
  .main-nav a { padding: 10px; }
  .intro { padding: 24px 0 16px; }
  .intro h1 { font-size: 1.62rem; }
  .group-grid, .products--featured, .products { grid-template-columns: 1fr; }
  .dimension-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .spec-list div { grid-template-columns: 1fr; gap: 4px; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item > img { width: 70px; height: 68px; }
  .cart-actions { grid-column: 2; }
  .skills-grid, .footer-grid { grid-template-columns: 1fr; }
}
