:root {
  --ink: #292326;
  --muted: #7d7178;
  --line: #eadde2;
  --soft: #fff7f8;
  --accent: #c83d68;
  --green: #25d366;
  --shadow: 0 18px 38px rgba(80, 48, 59, .12);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Segoe UI, Arial, sans-serif; color: var(--ink); background: linear-gradient(180deg, #fff, #fff7f8 520px, #fff); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .btn { cursor: pointer; border: 0; border-radius: 8px; background: var(--accent); color: #fff; padding: 11px 16px; display: inline-flex; justify-content: center; align-items: center; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 18px; }
.topbar { background: #fff; border-bottom: 1px solid #eee; }
.top-grid { min-height: 70px; display: grid; grid-template-columns: 165px 170px 1fr 220px 38px 38px 36px 42px 42px 36px; gap: 13px; align-items: center; }
.city { display: grid; gap: 3px; font-size: 14px; }
.city b { text-decoration: underline; font-weight: 500; }
.mini-search { display: flex; border-bottom: 1px solid #ddd; }
.mini-search input { min-width: 0; border: 0; padding: 8px; outline: 0; }
.mini-search button { background: #fff; color: #222; font-size: 22px; padding: 4px 8px; }
.logo { justify-self: center; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 9px; color: #111; line-height: 1; }
.logo span { grid-row: span 2; color: #e72e44; font-size: 50px; }
.logo b { font-size: 28px; }
.logo small { color: var(--accent); font-size: 14px; }
.contacts { display: grid; gap: 5px; font-size: 16px; }
.contacts span { font-size: 15px; }
.round, .icon { display: inline-flex; align-items: center; justify-content: center; }
.round { width: 31px; height: 31px; border-radius: 50%; color: #fff; font-weight: 900; }
.wa { background: #43d561; }
.tg { background: #31a9e8; }
.icon { position: relative; font-size: 25px; min-width: 34px; }
.icon small { position: absolute; top: -2px; right: -2px; min-width: 17px; height: 17px; border-radius: 50%; background: #ef334e; color: #fff; font-size: 11px; text-align: center; line-height: 17px; }
.nav { background: #fff; border-bottom: 1px solid #eee; }
.nav .container { min-height: 65px; display: flex; align-items: center; justify-content: center; gap: 34px; overflow: visible; }
.nav a, .menu { font-size: 21px; font-weight: 700; position: relative; white-space: nowrap; }
.menu > div { display: none; position: absolute; top: 100%; left: 0; z-index: 30; width: 300px; max-height: 430px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 8px; }
.menu:hover > div { display: grid; }
.menu > div a { font-size: 15px; font-weight: 400; padding: 9px 10px; border-radius: 6px; }
.menu > div a:hover { background: var(--soft); color: var(--accent); }
.promo { background: #fff; padding-bottom: 28px; }
.promo-inner { position: relative; min-height: 415px; display: grid; grid-template-columns: 44px 1fr 1fr 44px; align-items: center; background: linear-gradient(105deg, #755041, #a97664 45%, #e0a292); overflow: hidden; }
.promo img { width: 100%; height: 415px; object-fit: cover; }
.promo-text { color: #fff; text-align: center; text-transform: uppercase; padding: 30px; }
.promo-text b { font-size: 34px; text-transform: none; }
.promo-text h1 { font-size: 28px; line-height: 1.18; font-weight: 500; }
.arrow { background: transparent; color: #555; font-size: 56px; padding: 0; }
.title h1 { text-align: center; text-transform: uppercase; color: #4a4a4a; font-size: clamp(30px, 4.2vw, 48px); font-weight: 400; }
.products-section { padding: 30px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-head h2 { margin: 0; text-transform: uppercase; font-size: 31px; font-weight: 500; }
.section-head span { color: #aaa; font-size: 22px; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { position: relative; display: flex; flex-direction: column; min-height: 470px; background: #fff; border: 1px solid #d6d6d6; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 24px rgba(80,48,59,.06); transition: .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #efb3c2; }
.product-card img { width: 100%; height: 280px; object-fit: cover; }
.badges { position: absolute; top: 176px; right: 14px; display: grid; gap: 6px; }
.badges span { min-width: 58px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(236,236,236,.92); font-size: 12px; }
.product-body { padding: 14px 18px 18px; display: flex; flex: 1; flex-direction: column; gap: 12px; }
.product-body h3 { min-height: 42px; margin: 0; font-size: 16px; font-weight: 400; line-height: 1.35; }
.muted { color: var(--muted); }
.bonus { color: #4b8a22; margin: 0; }
s { color: var(--muted); margin-left: 8px; font-size: 12px; }
.actions { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 10px; margin-top: auto; }
.actions form { display: grid; }
.actions button { background: #fff; color: #40373b; border: 1px solid #d4d4d4; text-transform: uppercase; font-weight: 800; }
.actions button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.whatsapp { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--green); color: #fff; padding: 10px 12px; font-weight: 800; }
.load-more { display: block; width: 100%; margin-top: 28px; border-radius: 6px; background: #e7e7e7; color: #4e494c; text-align: center; padding: 16px; }
.page { padding: 34px 18px; }
.catalog-layout, .cart-layout, .admin-page { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.filters, .box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.filters form, .form-grid { display: grid; gap: 12px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: #fff; }
textarea { min-height: 90px; resize: vertical; }
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-main-img { width: 100%; border-radius: 8px; aspect-ratio: 1/1; object-fit: cover; }
.big-price { font-size: 26px; }
.large { grid-template-columns: 1fr 1fr; }
.cart-line { display: grid; grid-template-columns: 74px 1fr 80px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; }
.cards, .footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-menu { position: sticky; top: 20px; display: grid; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.admin-menu a { padding: 10px 12px; border-radius: 8px; background: var(--soft); }
.admin-form { grid-template-columns: repeat(3, 1fr); }
.admin-form .wide { grid-column: span 3; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.inline { display: inline; margin-left: 8px; }
.metric { font-size: 34px; color: var(--accent); font-weight: 900; }
.narrow { max-width: 520px; margin: 0 auto; }
.error { padding: 12px; border-radius: 8px; background: #fff1f2; color: #a61935; }
.install { padding: 40px 18px; }
.footer { margin-top: 36px; padding: 34px 0; background: #33282d; color: #fff; }
.footer a, .footer p { color: #eadfe4; }
.product-modal[hidden] { display: none; }
.product-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px; background: rgba(16,14,15,.62); }
.modal-card { position: relative; width: min(904px, 96vw); max-height: 92vh; display: grid; grid-template-columns: 1.18fr .92fr; overflow: hidden auto; background: #fff; border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.34); }
.modal-close { position: absolute; top: 14px; right: 16px; z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #29141e; font-size: 28px; padding: 0; }
.modal-media { padding: 0 24px 24px; }
.modal-main-img { width: calc(100% + 48px); margin-left: -24px; height: 505px; object-fit: cover; border-radius: 0 0 18px 0; display: block; }
.modal-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 12px 0 18px; }
.modal-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 2px solid transparent; }
.modal-thumbs img.active { border-color: var(--accent); }
.modal-more { width: 100%; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #3b1426; border-radius: 14px; background: #fff; color: #2d1020; font-weight: 800; }
.modal-info { padding: 24px; overflow: auto; }
.modal-topline { display: flex; justify-content: space-between; gap: 12px; color: #5c8df7; font-size: 13px; }
.modal-info h2 { margin: 10px 0 8px; font-size: 25px; }
.rating { color: #ff9f42; margin-bottom: 18px; }
.rating a { color: #4b84ff; margin-left: 8px; font-size: 14px; }
.modal-price-row { display: grid; grid-template-columns: 1fr 128px; gap: 14px; align-items: center; margin-bottom: 12px; }
.modal-price-row strong { font-size: 25px; }
.modal-price-row p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.qty { min-height: 50px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-radius: 10px; background: #f6f4f5; text-align: center; }
.qty button { border: 0; background: transparent; color: #111; padding: 0; font-size: 26px; }
.modal-cart, .modal-buy, .modal-whatsapp { width: 100%; min-height: 50px; border-radius: 11px; margin-top: 10px; font-weight: 800; }
.modal-cart { border: 0; background: #4b062a; color: #fff; }
.modal-buy { border: 1px solid #4b062a; background: #fff; color: #4b062a; }
.modal-whatsapp { display: inline-flex; align-items: center; justify-content: center; background: #25d366; color: #fff; }
.modal-benefits { display: grid; gap: 12px; margin: 18px 0; font-size: 14px; }
.modal-benefits p { margin: 0; }
@media (max-width: 980px) {
  .top-grid { grid-template-columns: 1fr auto auto auto auto; min-height: auto; padding-top: 12px; padding-bottom: 12px; }
  .mini-search, .logo, .contacts, .icon:nth-last-child(3), .icon:nth-last-child(2) { display: none; }
  .nav .container { justify-content: flex-start; gap: 20px; overflow-x: auto; }
  .nav a, .menu { font-size: 18px; }
  .promo-inner { grid-template-columns: 1fr; }
  .arrow { display: none; }
  .promo img { height: 260px; order: -1; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout, .cart-layout, .admin-page, .product-page, .admin-form { grid-template-columns: 1fr; }
  .product-modal { padding: 12px; }
  .modal-card { grid-template-columns: 1fr; border-radius: 16px; }
  .modal-main-img { height: 360px; border-radius: 0; }
  .admin-form .wide { grid-column: span 1; }
}
@media (max-width: 560px) {
  .products-grid, .cards, .footer-grid { grid-template-columns: 1fr; }
  .promo-text h1 { font-size: 22px; }
  .modal-main-img { height: 310px; }
  .modal-thumbs { grid-template-columns: repeat(4, 1fr); }
  .modal-price-row { grid-template-columns: 1fr; }
}
