@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap");
/* ==========================================================================
 PreventShop — общая таблица стилей (все страницы сайта)
 Магазинные компоненты (карточки, товар, корзина, оформление) — в CSS модуля «Интернет-магазин».
 ========================================================================== */
:root {
 --ps-ink: #1e2a26;
 --ps-muted: #5f6b65;
 --ps-forest: #173a32;
 --ps-forest-deep: #102d27;
 --ps-forest-soft: #e9eee9;
 --ps-sage: #829287;
 --ps-gold: #b58b55;
 --ps-gold-deep: #8f6a3a;
 --ps-gold-soft: #f2ecdf;
 --ps-paper: #f7f5f0;
 --ps-card: #fffefa;
 --ps-line: #e6e2d9;
 --ps-danger: #a64c45;
 --ps-shadow: 0 18px 45px rgba(23, 42, 35, .08);
 --ps-shadow-sm: 0 6px 20px rgba(23, 42, 35, .06);
 --ps-radius: 18px;
 --ps-wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
 margin: 0;
 background: var(--ps-paper);
 color: var(--ps-ink);
 font-family: Inter, "Segoe UI", Arial, sans-serif;
 font-size: 16px;
 line-height: 1.6;
 -webkit-font-smoothing: antialiased;
 overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, input[type=button], input[type=submit], input[type=reset] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ps-gold); outline-offset: 2px; }
::selection { background: #d8c5a5; color: var(--ps-forest-deep); }
p { margin-block: 0 1em; }
hr { border: 0; border-top: 1px solid var(--ps-line); margin: 28px 0; }
h1, h2, h3, h4 { color: var(--ps-forest); line-height: 1.25; }

.container { width: min(var(--ps-wrap), calc(100% - 48px)); margin-inline: auto; }

/* ---------- Шапка ---------- */
.site-header {
 position: sticky; top: 0; z-index: 100;
 background: rgba(255, 254, 250, .96);
 border-bottom: 1px solid var(--ps-line);
 backdrop-filter: blur(12px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ps-forest); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--ps-forest); color: #f4ead8; font-size: 13px; letter-spacing: .08em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 6px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; color: #3f4d46; font-size: 14px; font-weight: 500; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { background: var(--ps-forest-soft); color: var(--ps-forest); }
.site-nav a.current-item { background: var(--ps-forest-soft); color: var(--ps-forest); font-weight: 650; }
.site-nav .cart-icon { border: 1px solid var(--ps-line); color: var(--ps-forest); font-weight: 650; }
.site-nav .cart-icon:hover { border-color: var(--ps-gold); background: var(--ps-gold-soft); }

/* ---------- Каркас страниц ---------- */
#casing > .wrapper {
 display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
 gap: 32px; align-items: start; width: min(var(--ps-wrap), calc(100% - 48px)); margin: 40px auto;
}
/* clearfix у uCoz добавляет ::before/::after, которые становились ячейками сетки и сдвигали контент вправо */
#casing > .wrapper::before, #casing > .wrapper::after { content: none; display: none; }
#casing > .wrapper > :not(#content):not(aside) { display: contents; }
#casing > .wrapper > #content { grid-column: 1; grid-row: 1; float: none !important; width: auto !important; max-width: none !important; min-width: 0; }
#casing > .wrapper > #content.wide-page { grid-column: 1 / -1; }
#casing > .wrapper > aside { grid-column: 2; grid-row: 1; float: none !important; width: auto !important; min-width: 0; max-width: 100%; margin: 0 !important; }
#casing > .wrapper > aside #sidebar { float: none !important; width: 100% !important; max-width: 100%; margin: 0 !important; }
/* на широких страницах блок «Информация для покупателей» идёт полосой под содержимым */
#casing > .wrapper:has(> #content.wide-page) > aside { grid-column: 1 / -1; grid-row: 2; }
#casing > .wrapper:has(> #content.wide-page) > aside .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#casing > .wrapper:has(> #content.wide-page) > aside .feature-card { padding-top: 0; border-top: 0; }
.module-site, .module-blog, .module-search, .module-shop { min-width: 0; }
.module-shop { width: min(var(--ps-wrap), 100%); margin-inline: auto; }
.module-shop h1, #content > h1, .module-site h1, .module-blog h1 {
 margin: 8px 0 24px; font-size: clamp(30px, 4vw, 44px); line-height: 1.16; letter-spacing: -.035em;
}
.breadcrumbs, .breadcrumbs-table { margin-bottom: 18px; color: var(--ps-muted); font-size: 13px; }
.breadcrumbs a { color: var(--ps-forest); }
.breadcrumbs a:hover { color: var(--ps-gold-deep); }

/* ---------- Кнопки ---------- */
.btn, .btn-outline {
 display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
 padding: 12px 24px; border: 1px solid transparent; border-radius: 999px;
 background: var(--ps-gold); color: #1f2924; font-weight: 650; letter-spacing: .01em;
 transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); background: #c39b65; color: #152b25; }
.btn-outline { margin-left: 8px; border-color: rgba(255,255,255,.45); background: transparent; color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* Общие кнопки и поля uCoz (нулевая специфичность — переопределяются любыми правилами ниже) */
:where(button:not(.image-thumb):not(.close-btn):not(.compare-remove), input[type=button], input[type=submit], input[type=reset]) {
 min-height: 44px; padding: 9px 20px; border: 1px solid var(--ps-forest); border-radius: 999px;
 background: var(--ps-forest); color: #fff; font-size: 14px; font-weight: 650;
 transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
:where(button:not(.image-thumb):not(.close-btn):not(.compare-remove), input[type=button], input[type=submit], input[type=reset]):hover {
 border-color: var(--ps-forest-deep); background: var(--ps-forest-deep); color: #fff;
}
:where(select, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], textarea) {
 max-width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #d9d4c8; border-radius: 12px;
 background: #fff; color: var(--ps-ink);
 transition: border-color .18s ease, box-shadow .18s ease;
}
:where(select, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], textarea):focus {
 border-color: var(--ps-gold); box-shadow: 0 0 0 3px rgba(181,139,85,.22); outline: 0;
}
input[type=checkbox], input[type=radio] { accent-color: var(--ps-forest); }

/* ---------- Главный блок и поиск ---------- */
.hero {
 position: relative; overflow: hidden; width: min(1440px, calc(100% - 32px)); margin: 22px auto 34px;
 border-radius: 26px; background: linear-gradient(115deg, #173a32 0%, #24483d 58%, #88714d 150%);
 color: #fff; box-shadow: var(--ps-shadow);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 420px; align-items: center; gap: 40px; padding: clamp(32px, 6vw, 72px); }
.hero-text { max-width: 620px; }
.hero-text h1 { margin: 0 0 20px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 5vw, 62px); font-weight: 400; line-height: 1.06; letter-spacing: -.03em; }
.hero-text p { max-width: 530px; margin: 0 0 28px; color: rgba(255,255,255,.82); font-size: 17px; }
.hero-image { align-self: stretch; display: grid; place-items: center; min-height: 240px; }
.hero-image img { width: min(100%, 470px); max-height: 360px; object-fit: contain; filter: drop-shadow(0 24px 36px rgba(0,0,0,.2)); }
.shop-search { width: min(760px, calc(100% - 48px)); margin: 0 auto 34px; }
.shop-search form { display: flex; gap: 10px; padding: 7px; border: 1px solid var(--ps-line); border-radius: 999px; background: var(--ps-card); box-shadow: var(--ps-shadow-sm); }
.shop-search .queryField { flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; padding: 10px 16px; background: transparent; }
.shop-search .queryField:focus { box-shadow: none; }
.shop-search button { min-height: 44px; padding: 0 24px; }

/* ---------- Боковые блоки ---------- */
.sidebox, .features {
 margin-bottom: 18px; padding: 22px; border: 1px solid var(--ps-line);
 border-radius: var(--ps-radius); background: var(--ps-card);
}
.sidebox a { color: var(--ps-forest); }
.sidebox a:hover { color: var(--ps-gold-deep); }
.section-title { margin-top: 0; font-size: 20px; }
.features-grid { display: grid; gap: 18px; }
.feature-card { padding-top: 15px; border-top: 1px solid var(--ps-line); }
.feature-card:first-child { padding-top: 0; border-top: 0; }
.feature-card h3 { margin: 0 0 5px; font-size: 15px; }
.feature-card p { margin: 0 0 6px; color: var(--ps-muted); font-size: 14px; }
.feature-card a { color: var(--ps-forest); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Постраничная навигация ---------- */
.shop-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 32px 0; }
.shop-pagination a, .shop-pagination span, .shop-pagination b, .pgSwch, .pgSwchA {
 display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center;
 padding: 6px 12px; border: 1px solid var(--ps-line); border-radius: 10px; background: var(--ps-card); color: var(--ps-forest);
 transition: border-color .18s ease, background .18s ease;
}
.shop-pagination a:hover, .pgSwch:hover { border-color: var(--ps-gold); background: var(--ps-gold-soft); }
.shop-pagination b, .pgSwchA { border-color: var(--ps-forest); background: var(--ps-forest); color: #fff; }

/* ---------- Подвал ---------- */
.site-footer { clear: both; margin-top: 72px; padding: 52px 0 20px; background: var(--ps-forest-deep); color: rgba(255,255,255,.78); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer .logo { margin-bottom: 14px; color: #fff; }
.site-footer .logo-mark { border: 1px solid rgba(255,255,255,.28); background: transparent; color: #e0c28e; }
.footer-col h4 { margin: 0 0 15px; color: #e0c28e; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col p { max-width: 340px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: rgba(255,255,255,.82); transition: color .18s ease; }
.footer-col a:hover { color: #e0c28e; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.66); font-size: 13px; text-align: center; }
.site-powered-by { width: min(var(--ps-wrap), calc(100% - 48px)); margin: 12px auto; color: var(--ps-muted); font-size: 12px; text-align: center; }

/* ---------- Модальное окно входа и формы ---------- */
#loginModal, .modal { position: fixed; z-index: 1000; inset: 0; align-items: center; justify-content: center; background: rgba(16,45,39,.58); }
.modal-content { position: relative; width: min(450px, calc(100% - 32px)); padding: 34px; border-radius: 20px; background: var(--ps-card); box-shadow: var(--ps-shadow); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.modal-links { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ps-line); text-align: center; }
.close-btn { position: absolute; top: 8px; right: 16px; border: 0; background: transparent; color: var(--ps-muted); font-size: 28px; }
.register-btn { min-height: 48px; width: 100%; }

/* ---------- Профиль ---------- */
.ps-user-profile-page { width: min(900px, 100%); margin: 30px auto; }
.ps-profile-back { display: inline-flex; align-items: center; margin: 0 0 18px; color: var(--ps-forest); font-weight: 600; }
.ps-profile-back:hover { color: var(--ps-gold-deep); }
.ps-profile-card { display: flex; align-items: center; gap: 24px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--ps-line); border-radius: 22px; background: var(--ps-card); box-shadow: var(--ps-shadow); }
.ps-profile-avatar { display: grid; width: 112px; height: 112px; flex: 0 0 112px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--ps-forest-soft); color: var(--ps-forest); font-family: Georgia, "Times New Roman", serif; font-size: 30px; }
.ps-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ps-profile-main { min-width: 0; }
.ps-profile-eyebrow { color: var(--ps-muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ps-profile-main h1 { margin: 5px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 40px); font-weight: 400; line-height: 1.15; overflow-wrap: anywhere; }
.ps-profile-full-name { margin: 0; color: var(--ps-muted); }
.ps-profile-group { display: inline-block; margin: 12px 0 0; padding: 5px 11px; border-radius: 999px; background: var(--ps-forest-soft); color: var(--ps-forest); font-size: 13px; }
.ps-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ps-profile-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid var(--ps-forest); border-radius: 999px; background: var(--ps-forest); color: #fff; font-size: 14px; font-weight: 600; transition: background .18s ease; }
.ps-profile-button:hover { background: var(--ps-forest-deep); color: #fff; }
.ps-profile-button-light { background: transparent; color: var(--ps-forest); }
.ps-profile-button-light:hover { background: var(--ps-forest-soft); color: var(--ps-forest); }
.ps-profile-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.ps-profile-detail { display: grid; gap: 5px; padding: 16px 18px; border: 1px solid var(--ps-line); border-radius: 14px; background: var(--ps-card); }
.ps-profile-detail span { color: var(--ps-muted); font-size: 12px; }
.ps-profile-detail strong { color: var(--ps-forest); font-weight: 600; overflow-wrap: anywhere; }
.ps-profile-detail a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Профиль пользователя (страница в модуле магазина) ---------- */
.profile-table { width: 100%; margin: 0 0 20px; border-collapse: separate; border: 1px solid var(--ps-line); border-radius: 20px; background: var(--ps-card); box-shadow: var(--ps-shadow-sm); }
.profile-table-col { padding: 22px 26px; }
.profile-avatar img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.profile-info a { color: var(--ps-forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.profile-info a:hover { color: var(--ps-gold-deep); }
.user-balance-table { width: 100%; margin: 0 0 18px; }
.user-balance-table .eTitle { color: var(--ps-forest); font-size: 28px; font-weight: 750; }
h3.postFirst { margin: 28px 0 10px; font-size: 20px; }
.forumDescr { color: var(--ps-muted); font-size: 14px; }

/* ---------- Поиск по сайту ---------- */
.search-form-wrapper { margin-bottom: 14px; }
.search-form-wrapper form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-form-wrapper input[type=text], .search-form-wrapper input[type=search] { flex: 1 1 260px; }
.search-results-info { margin: 8px 0 18px; color: var(--ps-muted); }
.eBlock { width: 100%; margin: 0 0 12px; border-collapse: separate; border: 1px solid var(--ps-line); border-radius: 16px; background: var(--ps-card); }
.eBlock + br { display: none; }
.eBlock td { padding: 16px 18px !important; }
.eTitle a { color: var(--ps-forest); font-size: 17px; font-weight: 650; }
.eTitle a:hover { color: var(--ps-gold-deep); }
.eMessage { color: var(--ps-ink); line-height: 1.6; }
.eDetails { margin-top: 8px; color: var(--ps-muted); font-size: 13px; }
.eBlock .gphoto { width: 84px; height: 84px; margin-right: 14px; padding: 4px; border-radius: 12px; background: #f3f0e8; object-fit: contain; }
.paging-wrapper-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 18px; }

/* ---------- Комментарии (отзывы) ---------- */
.uc-message, .cMessage { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--ps-line); border-radius: 14px; background: var(--ps-card); }
.uc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--ps-muted); font-size: 13px; }
.uc-avatar img { border-radius: 50%; }
.uc-content { line-height: 1.6; overflow-wrap: anywhere; }
.uc-profile-link, .uc-answer-link { color: var(--ps-forest); font-weight: 600; }
.uc-answer-link:hover { color: var(--ps-gold-deep); }
.uc-answer { margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--ps-gold-soft); }
.uComForm, .ucf-form, .uf-form { max-width: 100%; }
.uComForm textarea, .uComForm input[type=text], .uComForm input[type=email], .ucf-form textarea, .uf-txt-input { width: 100%; }
.uComForm textarea, .ucf-form textarea { min-height: 120px; }
.ucf-options { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0; color: var(--ps-muted); font-size: 14px; }
.commReg { color: var(--ps-muted); }
.commReg a { color: var(--ps-forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Появление (сдержанное) ---------- */
@keyframes ps-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero, .shop-search, .ps-profile-card, .ps-profile-details { animation: ps-rise .5s ease both; }

/* ---------- Адаптивность ---------- */
@media (max-width: 900px) {
 .header-inner { align-items: flex-start; flex-direction: column; gap: 6px; }
 .site-nav { justify-content: flex-start; }
 .hero-grid { min-height: 360px; gap: 20px; padding: 34px; }
 .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .footer-col:first-child { grid-column: 1 / -1; }
 #casing > .wrapper { grid-template-columns: minmax(0, 1fr); }
 #casing > .wrapper > #content, #casing > .wrapper > aside, #casing > .wrapper:has(> #content.wide-page) > aside { grid-column: 1; grid-row: auto; }
 #casing > .wrapper:has(> #content.wide-page) > aside .features-grid { grid-template-columns: 1fr; gap: 18px; }
 #casing > .wrapper:has(> #content.wide-page) > aside .feature-card { padding-top: 15px; border-top: 1px solid var(--ps-line); }
 #casing > .wrapper:has(> #content.wide-page) > aside .feature-card:first-child { padding-top: 0; border-top: 0; }
}
@media (max-width: 680px) {
 .container, #casing > .wrapper { width: calc(100% - 28px); }
 .header-inner { min-height: 0; padding-block: 10px; }
 .site-nav { width: 100%; margin-inline: -6px; gap: 2px 2px; }
 .site-nav a { padding: 8px 10px; font-size: 14px; }
 #casing > .wrapper { margin-block: 22px; }
 .hero { width: calc(100% - 20px); margin-top: 10px; border-radius: 20px; }
 .hero-grid { grid-template-columns: 1fr; gap: 12px; padding: 30px 22px; }
 .hero-text h1 { font-size: clamp(34px, 10vw, 46px); }
 .hero-text p { font-size: 15px; }
 .hero-image { min-height: 160px; }
 .hero-image img { max-height: 210px; }
 .btn, .btn-outline { min-height: 46px; padding: 10px 18px; }
 .btn-outline { margin: 8px 0 0; }
 .shop-search { width: calc(100% - 28px); margin-bottom: 26px; }
 .shop-search form { border-radius: 18px; }
 .shop-search button { padding-inline: 16px; }
 .footer-grid { grid-template-columns: 1fr; gap: 24px; }
 .footer-col:first-child { grid-column: auto; }
 .footer-bottom { margin-top: 26px; }
 .ps-user-profile-page { margin: 18px auto; }
 .ps-profile-card { align-items: flex-start; flex-direction: column; gap: 16px; padding: 22px; }
 .ps-profile-avatar { width: 84px; height: 84px; flex-basis: 84px; }
 .modal-content { padding: 26px 20px; }
}

/* ==========================================================================
 Премиум-слой (v2): шапка, промо, преимущества, уведомления, анимации
 ========================================================================== */
:root {
 --ps-gold-light: #e3c895;
 --ps-forest-2: #1f4a3f;
 --ps-serif: "Playfair Display", Georgia, "Times New Roman", serif;
 --ps-ease: cubic-bezier(.22, .61, .36, 1);
}
body { background: radial-gradient(1200px 500px at 85% -120px, rgba(227,200,149,.22), transparent 70%), var(--ps-paper); }
h1, h2 { font-family: var(--ps-serif); font-weight: 600; }

/* Шапка */
.site-header { background: rgba(251,249,243,.82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 rgba(20,53,45,.05); }
.header-inner { min-height: 74px; }
.logo { font-family: var(--ps-serif); font-size: 20px; font-weight: 600; letter-spacing: .01em; }
.logo-mark { background: linear-gradient(135deg, var(--ps-forest-2), var(--ps-forest-deep)); color: var(--ps-gold-light); font-family: Inter, sans-serif; box-shadow: 0 6px 14px rgba(14,40,34,.22); }
.site-nav a { position: relative; background: transparent; border-radius: 0; padding: 8px 10px; }
.site-nav a:not(.cart-icon)::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ps-gold), var(--ps-gold-light)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ps-ease); }
.site-nav a:not(.cart-icon):hover, .site-nav a:not(.cart-icon).current-item { background: transparent; color: var(--ps-forest); }
.site-nav a:not(.cart-icon):hover::after, .site-nav a:not(.cart-icon).current-item::after, .site-nav a:not(.cart-icon):focus-visible::after { transform: scaleX(1); }
.site-nav .cart-icon { display: inline-flex; align-items: center; gap: 9px; margin-left: 8px; padding: 9px 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--ps-forest-2), var(--ps-forest-deep)); color: #fff; box-shadow: 0 8px 18px rgba(14,40,34,.22); transition: transform .2s var(--ps-ease), box-shadow .2s ease; }
.site-nav .cart-icon:hover { transform: translateY(-1px); background: linear-gradient(135deg, #25564a, var(--ps-forest-deep)); box-shadow: 0 12px 22px rgba(14,40,34,.28); color: #fff; }
.cart-icon svg { width: 18px; height: 18px; flex: 0 0 18px; }
.cart-count { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--ps-gold-light); color: var(--ps-forest-deep); font-size: 12px; font-weight: 800; line-height: 1; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: ps-bump .55s var(--ps-ease); }

/* Кнопки */
.btn { background: linear-gradient(135deg, #d2ac72, var(--ps-gold) 55%, var(--ps-gold-deep)); color: #1b2723; box-shadow: 0 10px 22px rgba(141,104,54,.28); }
.btn:hover { background: linear-gradient(135deg, #dcb87f, #bf9560 55%, var(--ps-gold-deep)); box-shadow: 0 14px 26px rgba(141,104,54,.34); }
.btn-outline { box-shadow: none; }

/* Промо */
.hero { margin: 20px auto 0; border-radius: 30px; background:
 radial-gradient(600px 380px at 78% 40%, rgba(227,200,149,.22), transparent 70%),
 radial-gradient(500px 300px at 0% 100%, rgba(95,143,110,.35), transparent 70%),
 linear-gradient(120deg, var(--ps-forest-deep) 0%, var(--ps-forest) 55%, var(--ps-forest-2) 100%); box-shadow: 0 30px 60px rgba(14,40,34,.22); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-grid { position: relative; grid-template-columns: 1.02fr .98fr; min-height: 480px; padding: clamp(32px, 5vw, 68px) clamp(28px, 5.5vw, 76px); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px; border: 1px solid rgba(227,200,149,.4); border-radius: 999px; background: rgba(227,200,149,.1); color: var(--ps-gold-light); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ps-gold-light); box-shadow: 0 0 0 4px rgba(227,200,149,.2); }
.hero-text h1 { font-family: var(--ps-serif); font-size: clamp(36px, 4.8vw, 62px); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
.hero-text h1 em { color: var(--ps-gold-light); font-style: italic; }
.hero-text p { color: rgba(255,255,255,.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-outline { margin: 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.78); font-size: 14px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; background: rgba(227,200,149,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.9' fill='none' stroke='%23e3c895' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.hero-art { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 300px; }
.hero-art-svg { position: relative; z-index: 1; width: min(100%, 470px); height: auto; overflow: visible; filter: drop-shadow(0 26px 30px rgba(0,0,0,.25)); }
.hero-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 16px; background: rgba(255,255,255,.12); color: #fff; font-size: 13px; line-height: 1.3; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 30px rgba(0,0,0,.18); animation: ps-float 6s ease-in-out infinite; }
.hero-chip b { display: block; color: var(--ps-gold-light); font-size: 14px; }
.hero-chip-a { top: 8%; left: -2%; }
.hero-chip-b { bottom: 8%; right: -2%; animation-delay: -3s; }
.ps-float-a { animation: ps-float 7s ease-in-out infinite; }
.ps-float-b { animation: ps-float 8s ease-in-out -2s infinite; }
.ps-float-c { animation: ps-float 6.5s ease-in-out -4s infinite; }
.ps-sway-a, .ps-sway-b { transform-box: fill-box; transform-origin: 50% 100%; animation: ps-sway 5.5s ease-in-out infinite; }
.ps-sway-b { animation-delay: -2.5s; }
.ps-ring-slow { transform-box: fill-box; transform-origin: center; animation: ps-spin 60s linear infinite; }
.ps-twinkle { animation: ps-twinkle 3.6s ease-in-out infinite; }
.ps-t1 { animation-delay: -.8s; } .ps-t2 { animation-delay: -1.8s; } .ps-t3 { animation-delay: -2.6s; }

/* Преимущества */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: min(1240px, calc(100% - 48px)); margin: -34px auto 34px; position: relative; z-index: 4; border: 1px solid var(--ps-line); border-radius: 22px; background: var(--ps-card); box-shadow: 0 18px 40px rgba(20,53,45,.1); overflow: hidden; }
.benefit { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-left: 1px solid var(--ps-line); }
.benefit:first-child { border-left: 0; }
.benefit-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 14px; background: var(--ps-gold-soft); color: var(--ps-gold-deep); }
.benefit-icon svg { width: 24px; height: 24px; }
.benefit b { display: block; color: var(--ps-forest); font-size: 15px; line-height: 1.3; }
.benefit div > span { display: block; color: var(--ps-muted); font-size: 13px; line-height: 1.4; }

/* Заголовки разделов */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin: 44px 0 6px; }
.section-eyebrow { display: block; margin-bottom: 4px; color: var(--ps-gold-deep); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-head h2 { margin: 0; }
.section-link { padding-bottom: 4px; color: var(--ps-forest); font-size: 14px; font-weight: 650; background: linear-gradient(var(--ps-gold), var(--ps-gold)) left bottom / 100% 1px no-repeat; transition: background-size .3s var(--ps-ease), color .2s; }
.section-link:hover { color: var(--ps-gold-deep); background-size: 0 1px; background-position: right bottom; }
.shop-search { margin: 0 auto 8px; }
.shop-search form { transition: box-shadow .25s ease, border-color .25s ease; }
.shop-search form:focus-within { border-color: var(--ps-gold); box-shadow: 0 10px 30px rgba(141,104,54,.18); }

/* Подвал */
.site-footer { margin-top: 80px; background: radial-gradient(500px 260px at 100% 0%, rgba(227,200,149,.1), transparent 70%), linear-gradient(180deg, var(--ps-forest), var(--ps-forest-deep)); }
.footer-col h4 { font-family: Inter, sans-serif; }

/* Уведомления */
.ps-toasts { position: fixed; z-index: 2000; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100% - 32px)); pointer-events: none; }
.ps-toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--ps-line); border-left: 4px solid var(--ps-ok, #3f7a5c); border-radius: 16px; background: rgba(255,253,249,.97); color: var(--ps-ink); box-shadow: 0 20px 44px rgba(14,40,34,.22); font-size: 14px; line-height: 1.45; pointer-events: auto; animation: ps-toast-in .4s var(--ps-ease) both; }
.ps-toast.is-error { border-left-color: var(--ps-danger); }
.ps-toast.is-out { animation: ps-toast-out .3s ease both; }
.ps-toast-ico { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #e4f1ea; color: #3f7a5c; font-weight: 800; }
.is-error .ps-toast-ico { background: #f8e6e3; color: var(--ps-danger); }
.ps-toast b { display: block; color: var(--ps-forest); }
.ps-toast a { color: var(--ps-forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ps-toast-x { margin-left: auto; min-height: 28px; padding: 0 6px; border: 0; background: transparent; color: var(--ps-muted); font-size: 20px; line-height: 1; }
.ps-toast-x:hover { background: transparent; color: var(--ps-forest); }
@keyframes ps-toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ps-toast-out { to { opacity: 0; transform: translateY(8px); } }

/* Появление при прокрутке (включается скриптом, без скрипта всё видно) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ps-ease), transform .7s var(--ps-ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.hero-text > * { animation: ps-rise .7s var(--ps-ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; } .hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; } .hero-text > :nth-child(5) { animation-delay: .32s; }

@keyframes ps-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ps-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes ps-spin { to { transform: rotate(360deg); } }
@keyframes ps-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes ps-bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }

@media (max-width: 1000px) {
 .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -24px; }
 .benefit:nth-child(3) { border-left: 0; }
 .benefit:nth-child(n+3) { border-top: 1px solid var(--ps-line); }
}
@media (max-width: 900px) {
 .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
 .hero-art { min-height: 260px; max-width: 420px; width: 100%; margin: 0 auto; }
 .hero-chip-a { left: 0; } .hero-chip-b { right: 0; }
 .site-nav .cart-icon { margin-left: 0; }
}
@media (max-width: 680px) {
 .hero { margin-top: 10px; border-radius: 22px; }
 .hero-grid { padding: 28px 20px 24px; gap: 8px; }
 .hero-actions .btn, .hero-actions .btn-outline { flex: 1 1 100%; }
 .hero-chip { padding: 8px 12px; font-size: 12px; }
 .benefits { width: calc(100% - 28px); border-radius: 18px; }
 .benefit { gap: 10px; padding: 14px 12px; }
 .benefit-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
 .benefit-icon svg { width: 20px; height: 20px; }
 .benefit b { font-size: 13px; } .benefit div > span { font-size: 12px; }
 .ps-toasts { right: 16px; bottom: 16px; }
}
@media (max-width: 380px) {
 .benefits { grid-template-columns: minmax(0, 1fr); }
 .benefit { border-left: 0; } .benefit:nth-child(n+2) { border-top: 1px solid var(--ps-line); }
}
.btn-outline, .btn-outline:hover { border-color: rgba(255,255,255,.5); background: transparent; box-shadow: none; color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.hero-chip { background: rgba(14,40,34,.72); }
@media (max-width: 680px) { .hero-chip-b { bottom: -6px; right: 0; } .hero-chip-a { top: 0; } }
/* Иконки преимуществ: тёмные плитки с золотым значком */
.benefit-icon { background: linear-gradient(135deg, var(--ps-forest-2), var(--ps-forest-deep)); color: var(--ps-gold-light); box-shadow: 0 8px 16px rgba(14,40,34,.22); transition: transform .3s var(--ps-ease); }
.benefit-icon svg { width: 24px; height: 24px; }
.benefit:hover .benefit-icon { transform: translateY(-2px) rotate(-5deg); }

@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
 .js-reveal .reveal { opacity: 1; transform: none; }
}

/* Карточки товаров на главной и в каталоге */
.module-shop .goods-list,
#content .goods-list {
 display: grid !important;
 grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
 align-items: stretch !important;
 gap: 22px;
}
.module-shop .goods-list :not(.product-card):not(.product-card *):has(.product-card),
#content .goods-list :not(.product-card):not(.product-card *):has(.product-card) {
 display: contents !important;
}
.module-shop .goods-list .product-card,
#content .goods-list .product-card {
 display: flex !important;
 flex-direction: column;
 align-self: stretch;
 min-width: 0;
 height: 100%;
 background: transparent !important;
 border: 1px solid rgba(23, 58, 50, .11) !important;
 box-shadow: none !important;
}
.module-shop .goods-list .product-card:hover,
#content .goods-list .product-card:hover {
 border-color: rgba(23, 58, 50, .19) !important;
 box-shadow: 0 8px 22px rgba(23, 58, 50, .06) !important;
}
.module-shop .goods-list .product-img-link,
#content .goods-list .product-img-link {
 background: var(--ps-paper, #f7f5f0) !important;
 isolation: isolate;
}
.module-shop .goods-list .product-img,
#content .goods-list .product-img {
 background: transparent !important;
 mix-blend-mode: multiply !important;
}
.module-shop .goods-list .product-info,
#content .goods-list .product-info {
 display: flex !important;
 flex: 1 1 auto;
 flex-direction: column;
 min-height: 0;
}
.module-shop .goods-list .product-title,
#content .goods-list .product-title {
 min-height: 5.6em;
 -webkit-line-clamp: 4;
}
.module-shop .goods-list .product-actions,
#content .goods-list .product-actions {
 margin-top: auto !important;
}
@media (max-width: 1100px) {
 .module-shop .goods-list,
 #content .goods-list {
 grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
 gap: 18px;
 }
}
@media (max-width: 760px) {
 .module-shop .goods-list,
 #content .goods-list {
 grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
 gap: 12px;
 }
}
@media (max-width: 380px) {
 .module-shop .goods-list,
 #content .goods-list {
 grid-template-columns: minmax(0, 1fr) !important;
 }
}

/* Корзина и оформление заказа: отделяем таблицу и варианты оплаты/доставки */
#cont-shop-checkout {
 padding: clamp(18px, 3vw, 34px);
 border: 1px solid rgba(23, 58, 50, .10);
 border-radius: 22px;
 background: #fffefa;
 box-shadow: 0 12px 32px rgba(23, 42, 35, .05);
}
#cont-shop-checkout > h2,
#cont-shop-checkout h2.checkout-step {
 margin: 30px 0 14px;
 padding-bottom: 10px;
 border-bottom: 1px solid #e6e2d9;
 color: #173a32;
}
#cont-shop-checkout #order-table {
 width: 100%;
 margin: 10px 0 16px;
 border: 1px solid #e6e2d9;
 border-collapse: separate !important;
 border-spacing: 0;
 border-radius: 14px;
 background: #fffefa;
 overflow: hidden;
}
#cont-shop-checkout #order-table th {
 padding: 12px 10px;
 border-bottom: 1px solid #e6e2d9;
 background: #f1eee7;
 color: #5f6b65;
 font-size: 13px;
 font-weight: 650;
 text-align: left;
}
#cont-shop-checkout #order-table td {
 padding: 13px 10px;
 border-bottom: 1px solid #eeeae2;
 background: transparent;
 vertical-align: middle;
}
#cont-shop-checkout #order-table tr:last-child td {
 border-bottom: 0;
}
#cont-shop-checkout #order-table img {
 width: 56px;
 height: 56px;
 padding: 4px;
 border: 1px solid #eeeae2;
 border-radius: 10px;
 background: #f7f5f0;
 object-fit: contain;
}
#cont-shop-checkout #order-table input[type=text],
#cont-shop-checkout #order-table input[type=number] {
 width: 72px;
 min-height: 42px;
 padding: 8px 10px;
 border: 1px solid #d9d4c8;
 border-radius: 10px;
 background: #fff;
}
#cont-shop-checkout .methods-list {
 width: 100%;
 border-collapse: separate;
 border-spacing: 0 9px;
}
#cont-shop-checkout .methods-list tr {
 background: #fffefa;
}
#cont-shop-checkout .methods-list td {
 padding: 13px 15px;
 border-top: 1px solid #e6e2d9;
 border-bottom: 1px solid #e6e2d9;
 background: #fffefa;
 line-height: 1.5;
}
#cont-shop-checkout .methods-list td:first-child {
 border-left: 1px solid #e6e2d9;
 border-radius: 12px 0 0 12px;
}
#cont-shop-checkout .methods-list td:last-child {
 border-right: 1px solid #e6e2d9;
 border-radius: 0 12px 12px 0;
}
#cont-shop-checkout .methods-list label:has(input[type=radio]),
#cont-shop-checkout label:has(input[type=radio]) {
 display: flex;
 align-items: flex-start;
 gap: 9px;
 line-height: 1.5;
}
#cont-shop-checkout input[type=radio] {
 flex: 0 0 auto;
 margin-top: 3px;
}
#cont-shop-checkout #total-sum {
 margin-top: 18px;
 border-radius: 14px;
 background: #f1eee7;
 color: #173a32;
}
@media (max-width: 720px) {
 #cont-shop-checkout {
 padding: 16px 12px;
 border-radius: 18px;
 }
 #cont-shop-checkout #order-table {
 border: 0;
 border-radius: 0;
 background: transparent;
 }
 #cont-shop-checkout .methods-list td {
 padding: 11px 12px;
 }
}

/* ФИНАЛЬНЫЙ ВИЗУАЛЬНЫЙ СЛОЙ: карточки и разделы каталога */
.module-shop .product-section {
 box-sizing: border-box;
 width: 100%;
 margin: 26px 0 30px;
 padding: 22px 22px 24px;
 border: 1px solid rgba(23, 58, 50, .08);
 border-radius: 24px;
 background: #f3f1e9;
 box-shadow: 0 8px 24px rgba(23, 58, 50, .035);
}
.module-shop .product-section-popular { background: #f3f1e9; }
.module-shop .product-section-bestsellers { background: #edf2ee; }
.module-shop .product-section-new { background: #f4efe6; }
.module-shop .product-section .section-head {
 align-items: flex-end;
 margin: 0 0 18px !important;
 padding: 0 2px 14px;
 border-bottom: 1px solid rgba(23, 58, 50, .10);
}
.module-shop .product-section .section-eyebrow {
 width: fit-content;
 margin: 0 0 7px;
 padding: 5px 9px;
 border: 1px solid rgba(169, 123, 63, .15);
 border-radius: 999px;
 background: rgba(227, 200, 149, .16);
 letter-spacing: .13em;
}
.module-shop .product-section .section-head h2 { font-size: clamp(23px, 2vw, 29px); }
.module-shop .product-section .goods-list {
 margin: 0 !important;
 gap: 16px !important;
}
.module-shop .product-section .goods-list .product-card {
 box-sizing: border-box;
 min-width: 0;
 padding: 10px !important;
 overflow: hidden;
 border: 1px solid rgba(23, 58, 50, .105) !important;
 border-radius: 19px !important;
 background: rgba(255, 254, 250, .58) !important;
 box-shadow: 0 3px 12px rgba(23, 58, 50, .035) !important;
 transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.module-shop .product-section .goods-list .product-card:hover {
 transform: translateY(-3px);
 border-color: rgba(23, 58, 50, .18) !important;
 background: rgba(255, 254, 250, .86) !important;
 box-shadow: 0 10px 24px rgba(23, 58, 50, .075) !important;
}
.module-shop .product-section .goods-list .product-img-link {
 display: block;
 width: 100%;
 margin: 0 !important;
 overflow: hidden;
 border-radius: 13px;
 background: transparent !important;
 aspect-ratio: 1 / 1;
}
.module-shop .product-section .goods-list .product-img {
 display: block;
 width: 100%;
 height: 100%;
 padding: 9px;
 object-fit: contain;
 background: transparent !important;
 mix-blend-mode: multiply !important;
}
.module-shop .product-section .goods-list .product-info {
 display: flex;
 flex: 1 1 auto;
 min-height: 0;
 flex-direction: column;
 gap: 7px;
 padding: 13px 3px 3px !important;
}
.module-shop .product-section .goods-list .product-title {
 min-height: 5.6em;
 -webkit-line-clamp: 4;
 line-height: 1.4;
}
.module-shop .product-section .goods-list .product-actions { margin-top: auto !important; }
@media (max-width: 760px) {
 .module-shop .product-section { margin: 20px 0 24px; padding: 15px 13px 16px; border-radius: 19px; }
 .module-shop .product-section .goods-list { gap: 11px !important; }
 .module-shop .product-section .goods-list .product-card { padding: 7px !important; border-radius: 15px !important; }
 .module-shop .product-section .goods-list .product-img-link { border-radius: 10px; }
 .module-shop .product-section .goods-list .product-img { padding: 5px; }
 .module-shop .product-section .goods-list .product-info { gap: 5px; padding: 10px 2px 2px !important; }
 .module-shop .product-section .goods-list .product-title { min-height: 5.6em; font-size: 13px; }
}
/* СТРАНИЦА ТОВАРА: раскладка и оформление */
.product-page-wrapper {
 box-sizing: border-box;
 width: min(1180px, calc(100% - 48px));
 margin: 32px auto;
 padding: clamp(20px, 3vw, 42px);
 border: 1px solid rgba(23, 58, 50, .10);
 border-radius: 26px;
 background: rgba(255, 254, 250, .78);
 box-shadow: 0 14px 38px rgba(23, 58, 50, .06);
}
.product-page-wrapper .breadcrumbs {
 margin: 0 0 22px;
 color: #748078;
 font-size: 13px;
 line-height: 1.5;
 overflow-wrap: anywhere;
}
.product-page-wrapper .breadcrumbs a { color: #355c50; text-decoration: none; }
.product-page-wrapper .breadcrumbs a:hover { color: #a97b3f; }
.product-page-wrapper .product-heading { margin: 0 0 24px; }
.product-page-wrapper .product-heading h1 {
 margin: 0;
 color: #173a32;
 font-family: Georgia, "Times New Roman", serif;
 font-size: clamp(27px, 3.2vw, 42px);
 font-weight: 600;
 line-height: 1.16;
 letter-spacing: -.02em;
 overflow-wrap: anywhere;
}
.product-page-wrapper .product-details {
 display: grid !important;
 grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr) !important;
 align-items: start;
 gap: clamp(24px, 4vw, 54px);
}
.product-page-wrapper .product-gallery { min-width: 0; }
.product-page-wrapper .product-gallery #ipreview {
 display: block;
 box-sizing: border-box;
 width: 100%;
 height: clamp(340px, 42vw, 520px);
 padding: 24px;
 border: 1px solid rgba(23, 58, 50, .07);
 border-radius: 20px;
 background: #f3f0e8;
 object-fit: contain;
 mix-blend-mode: multiply;
}
.product-page-wrapper .image-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.product-page-wrapper .image-thumb {
 box-sizing: border-box;
 width: 72px;
 height: 72px;
 padding: 5px;
 border: 1px solid rgba(23, 58, 50, .12);
 border-radius: 12px;
 background: #fffefa;
 cursor: pointer;
}
.product-page-wrapper .image-thumb:hover { border-color: #c5a66d; }
.product-page-wrapper .image-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-page-wrapper .product-info {
 display: block;
 min-width: 0;
 padding: 0;
 color: #273631;
}
.product-page-wrapper .product-price {
 margin: 0 0 20px;
 color: #173a32;
 font-family: Georgia, "Times New Roman", serif;
 font-size: clamp(30px, 3vw, 40px);
 font-weight: 600;
 line-height: 1.15;
}
.product-page-wrapper .product-price s { margin-right: 8px; color: #8b9089; font: 500 20px Inter, Arial, sans-serif; }
.product-page-wrapper .product-options {
 display: grid;
 gap: 0;
 margin: 0 0 18px;
 padding: 0;
 list-style: none;
 color: #56635c;
}
.product-page-wrapper .product-options li {
 padding: 11px 0;
 border-bottom: 1px solid rgba(23, 58, 50, .09);
 line-height: 1.45;
}
.product-page-wrapper .product-options strong { color: #173a32; }
.product-page-wrapper .product-variations {
 margin: 0 0 16px;
 padding: 14px 16px;
 border: 1px solid rgba(23, 58, 50, .10);
 border-radius: 14px;
 background: #fffefa;
}
.product-page-wrapper .product-variations select { width: 100%; }
.product-page-wrapper .product-actions { margin: 20px 0 0; }
.product-page-wrapper .product-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.product-page-wrapper .product-buy form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.product-page-wrapper .product-buy input[type="text"],
.product-page-wrapper .product-buy input[type="number"] { box-sizing: border-box; width: 82px; min-height: 48px; }
.product-page-wrapper .product-buy button,
.product-page-wrapper .product-buy input[type="submit"],
.product-page-wrapper .product-buy input[type="button"] { min-height: 48px; padding-inline: 24px; }
.product-page-wrapper .product-assurance {
 display: grid;
 gap: 10px;
 margin: 22px 0 0;
 padding: 17px 19px;
 border: 1px solid rgba(169, 123, 63, .12);
 border-radius: 16px;
 background: #f5f0e5;
 color: #5d523f;
 font-size: 14px;
 line-height: 1.5;
 list-style: none;
}
.product-page-wrapper .product-assurance li { display: flex; align-items: flex-start; gap: 9px; }
.product-page-wrapper .product-assurance li::before {
 content: "✓";
 display: inline-flex;
 flex: 0 0 19px;
 width: 19px;
 height: 19px;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
 background: #d6bf8e;
 color: #fff;
 font-size: 12px;
 font-weight: 700;
}
.product-page-wrapper .shop-tabs {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 margin: 34px 0 18px;
 padding: 0 0 12px;
 border-bottom: 1px solid rgba(23, 58, 50, .12);
 list-style: none;
}
.product-page-wrapper .shop-tabs a {
 display: block;
 padding: 9px 15px;
 border-radius: 999px;
 color: #53645c;
 text-decoration: none;
}
.product-page-wrapper .shop-tabs .postRest1 a,
.product-page-wrapper .shop-tabs a:hover { background: #e8eee8; color: #173a32; }
.product-page-wrapper .shop-info { color: #35423c; line-height: 1.75; overflow-wrap: anywhere; }
.product-page-wrapper .shop-info img,
.product-page-wrapper .shop-info video,
.product-page-wrapper .shop-info iframe { max-width: 100%; }
.product-page-wrapper .shop-itempage-author { margin-top: 24px; color: #7a827c; font-size: 13px; }
.product-page-wrapper #recommended_products_title,
.product-page-wrapper .shop-itempage-viewed-title { margin: 30px 0 12px; color: #173a32; font-size: 21px; font-weight: 650; }
@media (max-width: 860px) {
 .product-page-wrapper .product-details { grid-template-columns: minmax(0, 1fr) !important; }
 .product-page-wrapper .product-gallery #ipreview { height: min(78vw, 480px); }
}
@media (max-width: 600px) {
 .product-page-wrapper { width: calc(100% - 24px); margin: 14px auto; padding: 17px 13px; border-radius: 19px; }
 .product-page-wrapper .breadcrumbs { margin-bottom: 15px; font-size: 12px; }
 .product-page-wrapper .product-heading { margin-bottom: 18px; }
 .product-page-wrapper .product-gallery #ipreview { height: 82vw; padding: 14px; border-radius: 15px; }
 .product-page-wrapper .product-price { font-size: 30px; }
 .product-page-wrapper .product-buy form { width: 100%; }
 .product-page-wrapper .product-assurance { padding: 14px; font-size: 13px; }
 .product-page-wrapper .shop-tabs { gap: 5px; }
 .product-page-wrapper .shop-tabs a { padding: 8px 11px; font-size: 13px; }
}
/* Карточки каталога — оформление как на главной */
#content .goods-list .product-card {
 box-sizing: border-box;
 display: flex !important;
 min-width: 0;
 height: 100%;
 flex-direction: column;
 padding: 10px !important;
 overflow: hidden;
 border: 1px solid rgba(23, 58, 50, .105) !important;
 border-radius: 19px !important;
 background: rgba(255, 254, 250, .58) !important;
 box-shadow: 0 3px 12px rgba(23, 58, 50, .035) !important;
 transition: border-color .22s ease, background-color .22s ease,
 box-shadow .22s ease, transform .22s ease;
}

#content .goods-list .product-card:hover {
 transform: translateY(-3px);
 border-color: rgba(23, 58, 50, .18) !important;
 background: rgba(255, 254, 250, .86) !important;
 box-shadow: 0 10px 24px rgba(23, 58, 50, .075) !important;
}

#content .goods-list .product-img-link {
 display: block;
 width: 100%;
 margin: 0 !important;
 overflow: hidden;
 border-radius: 13px;
 background: transparent !important;
 aspect-ratio: 1 / 1;
}

#content .goods-list .product-img {
 display: block;
 width: 100%;
 height: 100%;
 padding: 9px;
 object-fit: contain;
 background: transparent !important;
 mix-blend-mode: multiply !important;
}

#content .goods-list .product-info {
 display: flex !important;
 flex: 1 1 auto;
 min-height: 0;
 flex-direction: column;
 gap: 7px;
 padding: 13px 3px 3px !important;
}

#content .goods-list .product-title {
 min-height: 5.6em;
 -webkit-line-clamp: 4;
 line-height: 1.4;
}

#content .goods-list .product-actions {
 margin-top: auto !important;
}

@media (max-width: 760px) {
 #content .goods-list .product-card {
 padding: 7px !important;
 border-radius: 15px !important;
 }

 #content .goods-list .product-img-link {
 border-radius: 10px;
 }

 #content .goods-list .product-img {
 padding: 5px;
 }

 #content .goods-list .product-info {
 gap: 5px;
 padding: 10px 2px 2px !important;
 }

 #content .goods-list .product-title {
 min-height: 5.6em;
 font-size: 13px;
 }
}
/* Убираем маркеры списков в оформлении заказа и скрываем пустые строки */
#cont-shop-checkout ul,
#cont-shop-checkout ol {
 margin: 0 !important;
 padding: 0 !important;
 list-style: none !important;
}

#cont-shop-checkout li:empty,
#cont-shop-checkout > :empty {
 display: none !important;
}

/* Делаем итоговую сумму заметнее */
#cont-shop-checkout #total-sum {
 width: 100%;
 margin-top: 22px !important;
 border-radius: 16px;
 background: #f1eee7;
 color: #173a32;
}

#cont-shop-checkout #total-sum td {
 padding: 16px 20px !important;
 color: #173a32 !important;
 font-size: 23px !important;
 font-weight: 700 !important;
 line-height: 1.4;
}

#cont-shop-checkout #total-sum h4 {
 margin: 0 0 8px;
 color: #53635b !important;
 font-family: Inter, Arial, sans-serif;
 font-size: 16px !important;
 font-weight: 700;
 letter-spacing: 0;
 line-height: 1.4;
 text-transform: none;
}

#cont-shop-checkout #order-submit {
 margin-top: 14px;
}

@media (max-width: 720px) {
 #cont-shop-checkout #total-sum td {
 padding: 14px 16px !important;
 font-size: 21px !important;
 }

 #cont-shop-checkout #total-sum h4 {
 font-size: 15px !important;
 }
}
.module-shop .goods-list .product-img-link,
#content .goods-list .product-img-link {
 isolation: auto !important;
 background: transparent !important;
}

.module-shop .goods-list .product-img,
#content .goods-list .product-img {
 background: transparent !important;
 mix-blend-mode: multiply !important;
}
/* Поиск и категории над товарами в каталоге */
.catalog-tools {
 display: grid;
 grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr);
 gap: 18px;
 align-items: start;
 margin: 20px 0;
 padding: 20px;
 border: 1px solid var(--ps-line, #e5dfd3);
 border-radius: 18px;
 background: var(--ps-card, #fbf9f4);
}

.catalog-tools__label {
 margin-bottom: 10px;
 color: var(--ps-forest, #183c34);
 font-weight: 600;
}

.catalog-tools__search form {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
}

.catalog-tools__search input[type="text"],
.catalog-tools__search input[type="search"],
.catalog-tools__search select {
 box-sizing: border-box;
 min-width: 0;
 min-height: 44px;
 padding: 10px 13px;
 border: 1px solid var(--ps-line, #ded8cd);
 border-radius: 11px;
 background: #fff;
 color: #26332f;
}

.catalog-tools__search input[type="text"],
.catalog-tools__search input[type="search"] {
 flex: 1 1 180px;
}

.catalog-tools__search input[type="submit"],
.catalog-tools__search button {
 min-height: 44px;
 padding: 10px 18px;
 border: 0;
 border-radius: 11px;
 background: var(--ps-forest, #183c34);
 color: #fff;
 font-weight: 600;
 cursor: pointer;
}

.catalog-tools__categories ul {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 margin: 0;
 padding: 0;
 list-style: none;
}

.catalog-tools__categories li {
 list-style: none;
}

.catalog-tools__categories a {
 display: inline-flex;
 padding: 8px 12px;
 border: 1px solid var(--ps-line, #e5dfd3);
 border-radius: 999px;
 background: #fff;
 color: var(--ps-forest, #183c34);
 text-decoration: none;
}

.catalog-tools__categories a:hover {
 border-color: #c5a66f;
 background: #f4edde;
}

.catalog-tools__categories table {
 width: 100%;
}

@media (max-width: 700px) {
 .catalog-tools {
 grid-template-columns: 1fr;
 padding: 15px;
 }
}
.catalog-search-panel {
 margin: 20px 0;
 padding: 16px 18px;
 border: 1px solid var(--ps-line, #e5dfd3);
 border-radius: 18px;
 background: var(--ps-card, #fbf9f4);
}

.catalog-search-panel form {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 10px;
}

.catalog-search-panel select,
.catalog-search-panel input[type="text"],
.catalog-search-panel input[type="search"] {
 min-height: 46px;
 padding: 10px 14px;
 border: 1px solid var(--ps-line, #ded8cd);
 border-radius: 12px;
 background: #fff;
 color: #26332f;
}

.catalog-search-panel input[type="submit"],
.catalog-search-panel button {
 min-height: 46px;
 padding: 10px 18px;
 border: 0;
 border-radius: 12px;
 background: var(--ps-forest, #183c34);
 color: #fff;
 font-weight: 600;
 cursor: pointer;
}
.catalog-tools {
 display: grid !important;
 grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
 gap: 18px;
 align-items: end;
 margin: 20px 0;
 padding: 18px;
 border: 1px solid var(--ps-line, #e5dfd3);
 border-radius: 18px;
 background: var(--ps-card, #fbf9f4);
}

.catalog-tools__label {
 display: block;
 margin-bottom: 9px;
 color: var(--ps-forest, #183c34);
 font-weight: 600;
}

.catalog-tools__search form {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 9px;
}

.catalog-tools__search input[type="text"],
.catalog-tools__search input[type="search"],
.catalog-tools__category select {
 box-sizing: border-box;
 min-height: 46px;
 padding: 10px 14px;
 border: 1px solid var(--ps-line, #ded8cd);
 border-radius: 12px;
 background: #fff;
 color: #26332f;
}

.catalog-tools__search input[type="text"],
.catalog-tools__search input[type="search"] {
 flex: 1 1 200px;
}

.catalog-tools__category select {
 width: 100%;
}

.catalog-tools__source {
 display: none !important;
}

@media (max-width: 700px) {
 .catalog-tools {
 grid-template-columns: 1fr;
 }
}
.catalog-tools {
 display: flex !important;
 width: min(100%, 850px);
 box-sizing: border-box;
 margin: 20px auto !important;
 justify-content: center !important;
 align-items: end !important;
 gap: 14px 24px !important;
 padding: 18px 22px;
}

.catalog-tools__search {
 flex: 1 1 360px;
 max-width: 460px;
}

.catalog-tools__category {
 flex: 0 1 280px;
 min-width: 240px;
}

.catalog-tools__search form {
 display: flex;
 align-items: center;
 justify-content: flex-start;
 gap: 8px;
}

.catalog-tools__search .schQuery {
 flex: 1 1 auto;
}

.catalog-tools__search .schBtn {
 flex: 0 0 auto;
}

@media (max-width: 650px) {
 .catalog-tools {
 width: 100%;
 flex-direction: column;
 align-items: stretch !important;
 gap: 14px !important;
 padding: 16px;
 }

 .catalog-tools__search,
 .catalog-tools__category {
 width: 100%;
 max-width: none;
 min-width: 0;
 }
}
.logo {
 gap: 11px;
}

.logo-image {
 display: block;
 width: 46px;
 height: 46px;
 flex: 0 0 46px;
 object-fit: cover;
 object-position: center;
 border-radius: 12px;
 mix-blend-mode: multiply;
}