* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Georgia, 'Times New Roman', serif; color: #2b2723; background: #faf7f3; line-height: 1.6; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
a { color: #8c7a68; text-decoration: none; }
a:hover { text-decoration: underline; }
header.top { border-bottom: 1px solid #D6D1CB; background: #fff; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; flex-wrap: wrap; gap: 10px; }
.logo { font-size: 28px; letter-spacing: 3px; font-weight: bold; color: #2b2723; }
.logo span { color: #8c7a68; }
nav a { margin-left: 22px; color: #4a453f; font-size: 16px; }
nav a:hover { color: #8c7a68; text-decoration: none; }
.hero { text-align: center; padding: 38px 0 10px; }
.hero img { max-width: 460px; width: 100%; border-radius: 12px; }
.hero h1 { font-size: 34px; margin: 22px 0 8px; }
.hero p { color: #5d574f; max-width: 620px; margin: 0 auto; }
h2.section { font-size: 26px; text-align: center; margin: 40px 0 18px; letter-spacing: 1px; }
.products { display: flex; gap: 20px; flex-wrap: wrap; }
.card { flex: 1 1 340px; background: #fff; border: 1px solid #D6D1CB; border-radius: 12px; padding: 26px; position: relative; }
.card h3 { font-size: 23px; margin-bottom: 4px; }
.card .sub { color: #8c7a68; font-style: italic; margin-bottom: 12px; }
.card ul { margin: 10px 0 16px 18px; color: #4a453f; }
.card li { margin-bottom: 5px; }
.badge { display: inline-block; background: #B26A4C; color: #fff; font-size: 12px; letter-spacing: 1px; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; margin-bottom: 12px; }
.btn { display: inline-block; background: #B26A4C; color: #fff; padding: 11px 22px; border-radius: 8px; font-size: 15px; }
.btn:hover { background: #96543A; text-decoration: none; }
.btn.light { background: #fff; color: #2b2723; border: 1px solid #2b2723; }
.strip { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.strip .cell { flex: 1 1 240px; background: #fff; border: 1px solid #D6D1CB; border-radius: 12px; padding: 20px; text-align: center; }
.strip .cell h4 { font-size: 18px; margin-bottom: 6px; }
.strip .cell p { color: #5d574f; font-size: 15px; }
section.box { background: #fff; border: 1px solid #D6D1CB; border-radius: 12px; padding: 26px; margin-top: 22px; }
section.box h2 { font-size: 24px; text-align: center; margin-bottom: 10px; }
section.box p { color: #4a453f; }
.center { text-align: center; }
.steps { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.step { flex: 1 1 200px; background: #fff; border: 1px solid #D6D1CB; border-radius: 12px; padding: 20px; text-align: center; }
.step img { max-width: 130px; height: auto; border-radius: 8px; margin-bottom: 10px; }
.step .num { color: #B26A4C; font-style: italic; }
.step h4 { font-size: 17px; margin: 4px 0 6px; }
.step p { color: #5d574f; font-size: 15px; }
.note { color: #7a746c; font-size: 14px; font-style: italic; text-align: center; margin-top: 16px; }
footer { text-align: center; color: #8a857e; font-size: 14px; padding: 34px 0 38px; }
.product-hero { text-align: center; padding: 34px 0 4px; }
.product-hero h1 { font-size: 34px; }
.product-hero .sub { color: #B26A4C; font-style: italic; font-size: 19px; }
.logoimg { height: 52px; width: 52px; border-radius: 50%; vertical-align: middle; margin-right: 12px; object-fit: cover; }
.logowrap { display: flex; align-items: center; }
.catalog { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.item { flex: 1 1 260px; max-width: 290px; background: #fff; border: 1px solid #D6D1CB; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; }
.item h3 { font-size: 15px; margin-bottom: 2px; }
.item .size { color: #8c7a68; font-style: italic; font-size: 14px; margin-bottom: 8px; }
.item .kind { color: #8a857e; font-size: 13.5px; margin-bottom: 8px; }
.item p { color: #4a453f; font-size: 15px; }
.item .price { display: flex; gap: 26px; margin-top: auto; border-top: 1px solid #ece7e0; padding-top: 10px; font-size: 15px; align-items: center; justify-content: space-between; }
.item .price b { color: #96543A; font-size: 20px; }
.item .price .lbl { color: #8a857e; font-size: 13px; display: block; }
.item .price .price-rub { color: #8a857e; font-size: 15px; white-space: nowrap; }
.rate-note { max-width: 680px; margin: 18px auto 0; color: #8a857e; font-size: 13px; line-height: 1.5; text-align: center; }
.item .tag { display: inline-block; background: #F6E7DC; color: #96543A; border: 1px solid #E3C3AC; font-size: 12px; letter-spacing: 1px; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; }
.terms { text-align: left; max-width: 680px; margin: 0 auto; }
.terms li { margin-bottom: 8px; color: #4a453f; }
.biglogo { width: 110px; height: 110px; border-radius: 50%; }
.hero img.biglogo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto; display: block; }
.item .pimg { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; background: #ffffff; border: 1px solid #ece7e0; border-radius: 8px; margin-bottom: 12px; }
.item .pimg { cursor: zoom-in; }
#lightbox { position: fixed; inset: 0; background: rgba(30,26,22,.88); display: none; align-items: center; justify-content: center; z-index: 99; cursor: zoom-out; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 92vh; background: #fff; border-radius: 10px; }
.trust-list { text-align: left; max-width: 680px; margin: 14px auto 0; }
.trust-list li { margin-bottom: 10px; color: #4a453f; }
@media (max-width: 640px) {
  .item { max-width: none; }
  nav a { margin-left: 14px; }
  .hero h1 { font-size: 27px; }
}

/* Accent system: warm terracotta on the light grey-beige base */
.hero { background: linear-gradient(180deg, #F7E9DF 0%, #FAF7F3 80%); border-radius: 0 0 18px 18px; }
h2.section::after { content: ""; display: block; width: 56px; height: 3px; background: #C98A5E; border-radius: 2px; margin: 10px auto 0; }
.card h3 { border-left: 4px solid #C98A5E; padding-left: 10px; }
/* Compact category tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 641px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
a.tile { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; background: #fff; border: 1px solid #D6D1CB; border-left: 4px solid #C98A5E; border-radius: 10px; padding: 13px 14px 12px; color: #2b2723; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a.tile:visited { color: #2b2723; border-color: #D6D1CB; border-left-color: #C98A5E; }
/* A tile is one big link but must behave like a button: never underlined in
   any state. The global a:hover underline is excluded for tiles only inside
   the (hover:hover) media below, so on touch devices the sticky :hover used
   to underline the tapped tile's title and button. Kill it for all states
   and for everything inside the tile. */
a.tile:link, a.tile:visited, a.tile:hover, a.tile:active, a.tile:focus { text-decoration: none; }
a.tile .tname, a.tile .tgo, a.tile *:hover, a.tile *:active, a.tile *:visited { text-decoration: none !important; }
.tile .tname { display: block; font-size: 17px; font-weight: bold; line-height: 1.3; margin-bottom: 9px; }
.tile .tgo { display: inline-block; margin-top: auto; background: #B26A4C; color: #fff; font-size: 13px; padding: 5px 14px; border-radius: 6px; }
/* Tile hover only on devices with a real hover (mouse): on touch screens
   :hover sticks to the last tapped tile and makes it look darker than the rest */
@media (hover: hover) and (pointer: fine) {
  a.tile:hover { text-decoration: none; border-color: #C98A5E; border-left-color: #B26A4C; }
  a.tile:hover .tgo { background: #96543A; }
}
/* Card kind row: type text left, «Описание» button right (opens modal) */
.item .pop { color: #96543A; font-size: 12.5px; line-height: 1.35; margin: -2px 0 8px; }
.kind-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.kind-row .kind { margin-bottom: 0; }
.desc-btn { flex: 0 0 auto; font-family: inherit; font-size: 13.5px; letter-spacing: .4px; color: #96543A; background: #F6E7DC; border: 1px solid #E3C3AC; border-radius: 20px; padding: 4px 13px; cursor: pointer; }
.desc-btn:hover { background: #E3C3AC; }

/* Product description pop-up (one shared modal for all catalog cards) */
.desc-modal-overlay { position: fixed; inset: 0; background: rgba(43,39,35,.55); display: none; align-items: center; justify-content: center; z-index: 110; padding: 16px; }
.desc-modal-overlay.open { display: flex; }
.desc-modal { background: #fff; border: 1px solid #D6D1CB; border-radius: 12px; max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 24px 26px; box-shadow: 0 18px 50px rgba(43,39,35,.25); }
.desc-modal h3 { font-size: 19px; line-height: 1.35; margin-bottom: 10px; border-left: 4px solid #C98A5E; padding-left: 10px; }
.desc-modal p { color: #4a453f; font-size: 15.5px; }
.desc-modal-comp { margin-top: 16px; border-top: 1px dashed #E3C3AC; padding-top: 12px; }
.desc-modal-comp h4 { color: #96543A; font-size: 15px; letter-spacing: .4px; margin-bottom: 4px; }
.desc-modal-close { border: none; cursor: pointer; font-family: inherit; margin-top: 20px; }

/* Cart */
#cart-link { color: #96543A; font-weight: bold; }
.buy-row { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.add-btn { border: none; cursor: pointer; font-family: inherit; padding: 9px 18px; font-size: 14px; }
.del-btn { background: #fff; border: 1px solid #D6D1CB; color: #8a8178; padding: 8px 14px; border-radius: 8px; font-size: 14px; cursor: pointer; font-family: inherit; }
.del-btn:hover { color: #96543A; border-color: #C98A5E; background: #F6E7DC; }
.cart-fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 8px; background: #B26A4C; color: #fff; padding: 11px 18px; border-radius: 999px; box-shadow: 0 4px 14px rgba(43,39,35,.28); font-size: 15px; font-weight: bold; text-decoration: none; }
.cart-fab:hover { background: #96543A; text-decoration: none; }
.cart-fab svg { width: 20px; height: 20px; flex: 0 0 auto; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.st-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #C98A5E; background: #F6E7DC; color: #96543A; font-size: 17px; line-height: 1; cursor: pointer; font-family: inherit; }
.st-btn:hover { background: #E3C3AC; }
.st-qty { font-weight: bold; min-width: 44px; text-align: center; }
.go-cart { font-size: 14px; color: #96543A; }
#cart-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: #2b2723; color: #fff; padding: 11px 22px; border-radius: 24px; font-size: 15px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 120; }
#cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cart-line { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #D6D1CB; border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.cart-line img { width: 64px; height: 64px; object-fit: contain; border: 1px solid #ece7e0; border-radius: 8px; background: #fff; }
.cl-info { flex: 1 1 auto; min-width: 140px; }
.cl-name { font-size: 16px; }
.cl-price { color: #8a857e; font-size: 13.5px; }
.cl-sum { font-weight: bold; color: #96543A; font-size: 17px; min-width: 52px; text-align: right; }
.cl-remove { background: #fff; border: 1px solid #D6D1CB; color: #8a8178; font-size: 13.5px; cursor: pointer; padding: 6px 12px; border-radius: 8px; font-family: inherit; }
.cl-remove:hover { color: #96543A; border-color: #C98A5E; background: #F6E7DC; }
.cart-clear-row { text-align: right; margin: 2px 0 14px; }
.clear-cart-btn { background: #fff; border: 1px solid #D6D1CB; color: #8a8178; font-size: 14px; cursor: pointer; padding: 8px 16px; border-radius: 8px; font-family: inherit; }
.clear-cart-btn:hover { color: #96543A; border-color: #C98A5E; background: #F6E7DC; }
.cart-empty { text-align: center; color: #5d574f; padding: 26px 0; font-size: 17px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 19px; background: #fff; border: 1px solid #D6D1CB; border-radius: 12px; padding: 14px 18px; margin-top: 4px; }
.cart-total-row b { color: #96543A; font-size: 23px; }
.min-note { background: #F6E7DC; border: 1px solid #E3C3AC; color: #96543A; border-radius: 10px; padding: 12px 16px; margin-top: 14px; font-size: 15px; }
.min-progress { background: #fff; border: 1px solid #D6D1CB; border-radius: 12px; padding: 14px 18px; margin-top: 12px; }
.min-progress-text { font-size: 15.5px; color: #4a453f; margin-bottom: 9px; }
.min-progress-text b { color: #96543A; }
.min-progress-bar { height: 10px; background: #F6E7DC; border: 1px solid #E3C3AC; border-radius: 6px; overflow: hidden; }
.min-progress-fill { height: 100%; width: 0; background: #C98A5E; transition: width .3s ease; }
.min-progress.done .min-progress-fill { background: #B26A4C; }
.fld { display: block; margin-bottom: 14px; }
.fld span { display: block; font-size: 14.5px; color: #4a453f; margin-bottom: 5px; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 10px 12px; border: 1px solid #D6D1CB; border-radius: 8px; font-family: inherit; font-size: 15.5px; background: #fff; color: #2b2723; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid #C98A5E; border-color: #C98A5E; }
#checkout-btn { border: none; cursor: pointer; font-family: inherit; }
#checkout-btn.disabled, #checkout-btn:disabled { background: #cfc8c0; cursor: not-allowed; }
.msg { border-radius: 12px; padding: 20px 22px; margin-top: 22px; }
.msg.ok { background: #eef5e9; border: 1px solid #b9d2a8; }
.msg.err { background: #F6E7DC; border: 1px solid #E3C3AC; }
.msg h3 { margin-bottom: 8px; }
.msg .summary { width: 100%; margin-top: 12px; padding: 10px; border: 1px solid #D6D1CB; border-radius: 8px; font-family: inherit; font-size: 14px; }
@media (max-width: 640px) { .cart-line { flex-wrap: wrap; } .cl-sum { text-align: left; } }

/* Catalog categories dropdown: hover only (fine pointers); the
   «Каталог» link itself stays a plain link to catalog.html */
.navdrop { position: relative; display: inline-block; }
.navdrop .caret { font-size: 11px; color: #B26A4C; }
.navdrop-menu { display: none; position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #D6D1CB; border-radius: 10px; box-shadow: 0 10px 28px rgba(43,39,35,.14); padding: 8px 0; min-width: 252px; z-index: 60; text-align: left; }
.navdrop-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.navdrop-menu a { display: block; margin-left: 0; padding: 8px 18px; font-size: 15px; color: #4a453f; white-space: nowrap; }
.navdrop-menu a:hover { background: #F6E7DC; color: #96543A; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .navdrop:hover .navdrop-menu, .navdrop:focus-within .navdrop-menu { display: block; }
}
h2.section[id] { scroll-margin-top: 24px; }

/* Header cart link: icon + word + count badge (no sum in header) */
#cart-link { display: inline-flex; align-items: center; gap: 7px; }
.cart-ico-wrap { position: relative; display: inline-flex; }
.cart-ico { width: 21px; height: 21px; }
.cart-count { position: absolute; top: -7px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #B26A4C; color: #fff; font-size: 11px; font-weight: bold; line-height: 17px; text-align: center; }
.cart-count[hidden] { display: none; }

/* Quality principle block (index hero area) */
section.box.quality { background: linear-gradient(180deg, #F6E7DC 0%, #FBF1E8 100%); border-color: #E3C3AC; }
section.box.quality h2 { color: #96543A; }
.quality .lead { text-align: center; max-width: 680px; margin: 0 auto; }
.quality .strip { margin-top: 16px; }

/* Delivery calculator (how-to-order.html#calculator) */
#calculator { scroll-margin-top: 24px; }
.calc-grid { max-width: 560px; margin: 0 auto; text-align: left; }
.calc-grid .fld input[type="range"] { padding: 0; border: none; accent-color: #B26A4C; }
.calc-dims { display: flex; gap: 12px; }
.calc-dims .fld { flex: 1 1 0; }
.calc-out { margin-top: 18px; background: #F6E7DC; border: 1px solid #E3C3AC; border-radius: 10px; padding: 16px 18px; }
.calc-price { font-size: 30px; font-weight: bold; color: #96543A; }
.calc-price .calc-rub { font-size: 21px; color: #4a453f; font-weight: normal; }
.calc-line { color: #4a453f; font-size: 15px; margin-top: 6px; }
.calc-disc, .calc-hint { color: #7a746c; font-size: 14px; font-style: italic; margin-top: 8px; }
.calc-hint { margin-top: 0; }
@media (max-width: 640px) { .calc-dims { flex-wrap: wrap; } .calc-dims .fld { flex: 1 1 30%; } }

/* Site search bar (index + catalog) */
.searchbar { position: relative; display: flex; align-items: center; max-width: 560px; margin: 22px auto 0; background: #fff; border: 1px solid #D6D1CB; border-radius: 999px; padding: 0 8px 0 16px; }
.searchbar:focus-within { border-color: #C98A5E; box-shadow: 0 0 0 2px #F6E7DC; }
.searchbar .search-ico { display: inline-flex; flex: 0 0 auto; color: #B26A4C; }
.searchbar .search-ico svg, .searchbar .search-go svg { width: 20px; height: 20px; display: block; }
.searchbar input { flex: 1 1 auto; min-width: 0; border: none; background: transparent; font-family: inherit; font-size: 16px; color: #2b2723; height: 48px; padding: 0 8px; }
.searchbar input:focus { outline: none; }
.searchbar input::placeholder { color: #8a857e; }
.search-go { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; color: #B26A4C; cursor: pointer; }
.search-go:hover { background: #F6E7DC; }
.search-clear { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #E3C3AC; background: #F6E7DC; color: #96543A; font-size: 18px; line-height: 1; cursor: pointer; font-family: inherit; }
.search-clear:hover { background: #E3C3AC; }
.search-clear[hidden] { display: none; }
.search-count { text-align: center; color: #96543A; font-size: 15px; margin-top: 12px; }
.search-count[hidden] { display: none; }
.search-empty { text-align: center; color: #5d574f; background: #fff; border: 1px dashed #E3C3AC; border-radius: 12px; padding: 26px 20px; margin-top: 18px; font-size: 16.5px; }
.search-empty[hidden] { display: none; }
@media (max-width: 640px) { .searchbar { max-width: none; } }

/* Reviews (index) */
.reviews-empty { color: #7a746c; text-align: center; }
.review-card { background: #faf7f3; border: 1px solid #E9E2D9; border-radius: 10px; padding: 14px 16px; margin-top: 12px; text-align: left; }
.review-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.review-stars { color: #B26A4C; letter-spacing: 2px; }
.review-date { color: #8a857e; font-size: 13.5px; }
.review-text { margin-top: 6px; white-space: pre-wrap; }
.review-form { position: relative; max-width: 560px; margin: 22px auto 0; text-align: left; }
.review-form label { display: block; font-weight: bold; margin-bottom: 6px; font-size: 15px; }
.rf-row { margin-bottom: 14px; }
.review-form input[type="text"], .review-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #D6D1CB; border-radius: 8px; font-family: inherit; font-size: 16px; background: #fff; color: #2b2723; }
.review-form textarea { resize: vertical; }
.stars-input { display: flex; gap: 4px; }
.stars-input button { background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: #D6D1CB; padding: 2px; font-family: inherit; }
.stars-input button.on { color: #B26A4C; }
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; opacity: 0; }
.review-ok { color: #96543A; font-weight: bold; margin-top: 12px; }
.review-err { color: #a33; margin-top: 12px; }
