/*
Theme Name: Тровант
Theme URI: https://trovant.ru/
Author: Издательство «Тровант»
Description: Классическая тема магазина trovant.ru (WordPress + WooCommerce) по макету «Письма из Вселенной». Без блочного редактора, Bootstrap и внешних шрифтов.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: trovant
*/

@font-face{font-family:'Lora';font-style:italic;font-weight:400 600;font-display:swap;src:url(assets/fonts/lora-italic-400-600-cyr.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Lora';font-style:italic;font-weight:400 600;font-display:swap;src:url(assets/fonts/lora-italic-400-600-lat.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Lora';font-style:normal;font-weight:400 600;font-display:swap;src:url(assets/fonts/lora-normal-400-600-cyr.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Lora';font-style:normal;font-weight:400 600;font-display:swap;src:url(assets/fonts/lora-normal-400-600-lat.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Ubuntu';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/ubuntu-normal-400-cyr.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Ubuntu';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/ubuntu-normal-400-lat.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Ubuntu';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/ubuntu-normal-500-cyr.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Ubuntu';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/ubuntu-normal-500-lat.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
:root { --paper: #F6EFE3; --panel: #EFE5D3; --sheet: #FCF8F0; --ink: #2B2420; --muted: #665C50; --green: #5E8C4A; --green-ink: #456A36; --indigo: #2F3A66; --orange: #D9822B; --price: #984B16; --line: #CFC2AD; --serif: "Lora", Georgia, "Times New Roman", serif; --sans: "Ubuntu", "Segoe UI", Roboto, Arial, sans-serif; --shadow: 0 8px 20px rgb(57 39 19 / 10%), 0 2px 4px rgb(57 39 19 / 8%); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; padding-top: 68px; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: var(--indigo); text-underline-offset: 4px; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 5px; }
button:disabled { cursor: default; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { text-wrap: balance; }
p + p { margin-top: 1em; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow { font: 12px/1.5 var(--sans); font-variant-caps: small-caps; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }
.section-title { font-size: clamp(38px, 4.5vw, 57px); font-style: italic; line-height: 1.12; letter-spacing: -.035em; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-top .eyebrow { margin-bottom: 10px; }
.section-note { max-width: 330px; color: var(--muted); font-size: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 21px; border: 1px solid var(--indigo); border-radius: 14px; color: var(--sheet); background: var(--indigo); font: 14px/1.4 var(--sans); text-align: center; text-decoration: none; transition: background .18s, box-shadow .18s; }
.button:hover { background: #243052; box-shadow: 0 3px 9px rgb(47 58 102 / 15%); }
.button.secondary { background: transparent; color: var(--indigo); }
.button.secondary:hover { background: #E7E2DC; }
.price { color: var(--price); font: 22px/1.4 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.amount { white-space: nowrap; }
.ornament { display: flex; align-items: center; gap: 22px; margin-block: 64px; color: var(--green); }
.ornament::before, .ornament::after { content: ""; flex: 1; border-top: 1px dotted #A9A08D; }
.ornament svg { width: 74px; height: 21px; flex: 0 0 74px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 10px 18px; background: var(--sheet); }
.skip-link:focus { top: 72px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-main { display: flex; align-items: center; gap: 35px; padding-block: 19px 21px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; text-decoration: none; color: var(--ink); }
.brand img { width: 62px; height: 76px; object-fit: contain; }
.brand-name { display: block; font-size: 35px; line-height: 1.05; letter-spacing: -.035em; }
.brand-note { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.main-navigation { display: flex; gap: 25px; margin-left: auto; }
.main-navigation a, .account-link, .cart-link { display: inline-flex; align-items: center; min-height: 44px; font: 14px/1.4 var(--sans); text-decoration: none; }
.main-navigation a { color: var(--ink); }
.main-navigation a:hover, .account-link:hover, .cart-link:hover { text-decoration: underline; }
.header-utility { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 15px; }
.header-caption { font-style: italic; color: var(--muted); font-size: 16px; }
.product-search { display: flex; align-items: center; gap: 12px; }
.product-search label { font: 13px var(--sans); }
.search-field { min-width: 0; width: 225px; height: 44px; padding: 8px 12px; border: 1px solid #A99D89; border-radius: 10px; background: var(--sheet); color: var(--ink); font: 15px var(--sans); }
.search-submit { min-height: 44px; padding: 8px 15px; border: 1px solid #A99D89; border-radius: 10px; background: transparent; color: var(--indigo); font: 13px var(--sans); }
.cart-link { gap: 8px; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-block: 62px 35px; }
.hero .eyebrow { color: var(--green-ink); margin-bottom: 24px; }
.hero h1 { max-width: 680px; font-size: clamp(47px, 5.9vw, 76px); font-style: italic; line-height: 1.08; letter-spacing: -.045em; }
.hero-copy { max-width: 465px; margin-top: 25px; color: var(--muted); font-size: 20px; }
.letter-notes { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; margin-top: 20px; }
.gift-note { position: relative; padding: 25px 29px; border: 1px solid #D6C9B2; border-radius: 16px; background: var(--panel); }
.gift-note::after { content: ""; position: absolute; top: 18px; right: 21px; width: 19px; height: 24px; border-top: 1px solid var(--orange); border-right: 1px solid var(--orange); }
.gift-note .eyebrow { color: var(--green-ink); margin-bottom: 9px; }
.gift-note p { padding-right: 8px; font-size: 19px; font-style: italic; line-height: 1.5; }
#catalog { scroll-margin-top: 80px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; padding-block: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 13px/1.5 var(--sans); }
.woocommerce-result-count { color: var(--muted); }
.woocommerce-ordering select { max-width: 100%; min-height: 44px; padding: 9px 35px 9px 13px; border: 1px solid #A99D89; border-radius: 10px; background: var(--sheet); color: var(--ink); font: 13px var(--sans); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; list-style: none; padding: 0; margin: 0; }
.product-card { display: flex; flex-direction: column; min-width: 0; padding: 25px 23px 23px; border: 1px solid #DFD3BF; border-radius: 17px; background: rgb(252 248 240 / 64%); }
.product-visual { display: flex; align-items: center; justify-content: center; min-width: 0; height: 310px; margin-bottom: 25px; }
.product-type { margin-bottom: 8px; font: 11px/1.5 var(--sans); letter-spacing: .07em; color: var(--muted); }
.woocommerce-loop-product__title { font-size: 29px; font-style: italic; line-height: 1.14; letter-spacing: -.02em; overflow-wrap: break-word; }
.woocommerce-loop-product__title a { color: var(--ink); text-decoration: none; }
.woocommerce-loop-product__title a:hover { color: var(--indigo); text-decoration: underline; }
.product-author { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.card-purchase { display: grid; gap: 15px; margin-top: auto; padding-top: 24px; }
.card-purchase .button { width: 100%; }
.tee-image { width: 100%; max-width: 275px; max-height: 295px; object-fit: contain; border-radius: 13px; }
.woocommerce-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 38px; font: 14px var(--sans); }
.woocommerce-pagination a, .woocommerce-pagination .current { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.woocommerce-pagination .current { color: var(--sheet); border-color: var(--indigo); background: var(--indigo); }
.page-note { margin-left: 8px; color: var(--muted); font-size: 12px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px 4px; list-style: none; cursor: pointer; font-size: 25px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green-ink); font-size: 28px; flex: 0 0 24px; text-align: center; }
details[open] summary::after { content: "−"; }
.accordion-content { max-width: 820px; padding: 0 4px 27px; color: var(--muted); font-size: 18px; }
.woocommerce-breadcrumb { margin-block: 32px 36px; color: var(--muted); font: 12px/1.8 var(--sans); overflow-wrap: anywhere; }
.woocommerce-breadcrumb a { display: inline-block; padding-block: 9px; }
.single-product-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 68px; align-items: start; }
.woocommerce-product-gallery { min-width: 0; padding-top: 15px; }
.main-cover { width: min(350px, 88%); margin: 0 auto; --tilt: -1.2deg; }
.gallery-caption { margin-top: 23px; color: var(--muted); font-size: 15px; font-style: italic; text-align: center; }
.spread-panorama { margin-top: 31px; padding: 10px; border: 1px solid #DFD3BF; border-radius: 17px; background: var(--sheet); box-shadow: 0 5px 12px rgb(57 39 19 / 7%); }
.spread-panorama img { width: 100%; border-radius: 10px; }
.spread-panorama figcaption { padding: 8px 7px 0; color: var(--muted); font-size: 13px; font-style: italic; }
.summary-content .eyebrow { color: var(--green-ink); margin-bottom: 15px; }
.product_title { font-size: clamp(43px, 4.7vw, 65px); font-style: italic; letter-spacing: -.04em; line-height: 1.07; }
.single-author { margin-top: 17px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.summary-content > .price { margin-top: 24px; font-size: 28px; }
.colophon { margin-top: 24px; padding-block: 19px; border-block: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.7; }
.margin-note { position: relative; margin-top: 25px; padding: 1px 10px 1px 20px; border-left: 2px solid var(--green); color: #4E593F; font-size: 19px; font-style: italic; line-height: 1.45; }
.variations_form { margin-top: 27px; }
.variation-label { display: block; margin-bottom: 9px; font: 13px var(--sans); }
.variation-row { display: flex; align-items: center; gap: 18px; }
.variation-row select { width: min(310px, 100%); min-width: 0; min-height: 48px; padding: 11px 35px 11px 12px; border: 1px solid #A99D89; border-radius: 11px; background: var(--sheet); color: var(--ink); font: 15px var(--sans); }
.reset_variations { display: inline-flex; align-items: center; min-height: 44px; font: 13px var(--sans); }
.purchase-row { display: flex; align-items: end; gap: 15px; margin-top: 20px; }
.quantity label { display: block; margin-bottom: 8px; font: 12px var(--sans); color: var(--muted); }
.quantity input { width: 78px; min-height: 49px; padding: 10px; border: 1px solid #A99D89; border-radius: 12px; background: var(--sheet); color: var(--ink); font: 16px var(--sans); }
.purchase-row .button { flex: 1; min-height: 49px; }
.product_meta { display: grid; gap: 8px; margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font: 12px/1.8 var(--sans); overflow-wrap: anywhere; }
.meta-label { color: var(--ink); }
.woocommerce-tabs { margin-top: 66px; }
.wc-tabs { display: flex; gap: 8px; margin: 0; padding: 0 16px; border-bottom: 1px solid var(--line); }
.wc-tabs button { position: relative; min-height: 51px; min-width: 134px; margin-bottom: -1px; padding: 12px 23px; border: 1px solid var(--line); border-radius: 13px 13px 0 0; background: var(--panel); color: var(--muted); font: 17px var(--serif); }
.wc-tabs button[aria-selected="true"] { border-bottom-color: var(--sheet); background: var(--sheet); color: var(--indigo); }
.tab-panel { padding: 40px; background: var(--sheet); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 17px 17px; }
.reading-column { max-width: 800px; margin-inline: auto; }
.reading-column h2 { margin-bottom: 21px; font-size: 32px; font-style: italic; line-height: 1.2; }
.drop-cap { font-size: 23px; line-height: 1.72; }
.drop-cap::first-letter { float: left; margin: .08em .12em 0 0; color: var(--green-ink); font-size: 3.7em; line-height: .8; }
.authors-heading { margin-top: 42px; padding-top: 28px; border-top: 1px dotted var(--line); }
.authors-list { display: grid; grid-template-columns: 1fr 1fr; gap: 29px; margin-top: 26px; }
.author-note { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 14px; }
.monogram { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #A9B49A; border-radius: 50%; color: var(--green-ink); font-size: 19px; font-style: italic; }
.author-note h3 { margin: 1px 0 6px; font-size: 22px; font-style: italic; line-height: 1.2; }
.author-note p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.shop_attributes { width: 100%; border-collapse: collapse; font-size: 17px; }
.shop_attributes caption { padding-bottom: 20px; font-size: 30px; font-style: italic; text-align: left; }
.shop_attributes th, .shop_attributes td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.shop_attributes th { width: 35%; font-weight: 400; color: var(--muted); }
.recommendations { margin-top: 56px; }
.recommendations .section-title { font-size: 39px; }
.related { margin-bottom: 75px; }
.site-footer { padding-block: 43px 24px; background: var(--panel); border-top: 1px solid #DCCDB5; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 55px; }
.footer-brand .brand img { width: 58px; height: 71px; }
.footer-brand .brand-name { font-size: 30px; }
.footer-brand p { max-width: 250px; margin-top: 15px; font-size: 18px; font-style: italic; color: var(--muted); }
.footer-heading { margin-bottom: 14px; font: 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
address { font-style: normal; font-size: 16px; line-height: 1.65; }
.contact-links { display: flex; flex-direction: column; align-items: start; margin-top: 10px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; font: 14px var(--sans); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 0 20px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; font: 13px/1.5 var(--sans); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .wide { grid-column: 1 / -1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #D3C5AD; color: var(--muted); font: 11px/1.6 var(--sans); }
@media (max-width: 1050px) {
  .header-main { flex-wrap: wrap; gap: 12px 25px; }
  .main-navigation { gap: 20px; }
  .account-link { margin-left: auto; }
  .header-caption { display: none; }
  .hero { gap: 22px; }
  .product-card { padding-inline: 18px; }
  .product-visual { height: 280px; }
  .woocommerce-loop-product__title { font-size: 26px; }
  .single-product-layout { gap: 38px; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr 1fr; padding-top: 42px; }
  .hero h1 { font-size: 49px; }
  .hero-copy { font-size: 18px; }
  .letter-notes { grid-template-columns: 1fr; gap: 15px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .product-visual { height: 290px; }
  .section-top { align-items: start; }
  .section-note { max-width: 240px; }
  .single-product-layout { grid-template-columns: .8fr 1fr; gap: 27px; }
  .product_title { font-size: 42px; }
  .main-cover { width: 94%; }
  .summary-content > .price { font-size: 24px; }
  .variation-row { flex-wrap: wrap; gap: 0 12px; }
  .variation-row select { width: 100%; }
  .tab-panel { padding: 30px 24px; }
  .authors-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; display: flex; gap: 32px; align-items: center; }
  .footer-brand p { margin-top: 0; }
}
@media (max-width: 600px) {
  body { padding-top: 88px; font-size: 18px; }
  .container { width: calc(100% - 32px); }
  .header-main { gap: 10px 14px; padding-block: 12px 7px; }
  .brand { gap: 10px; }
  .brand img { width: 47px; height: 59px; }
  .brand-name { font-size: 29px; }
  .brand-note { font-size: 10px; margin-top: 5px; }
  .account-link { max-width: 105px; font-size: 11px; }
  .main-navigation { order: 3; margin-left: 0; width: 100%; justify-content: space-between; gap: 15px; }
  .main-navigation a { font-size: 13px; }
  .header-utility { flex-wrap: wrap; gap: 3px 15px; padding-bottom: 10px; }
  .product-search { width: 100%; gap: 8px; }
  .search-field { width: auto; flex: 1; }
  .product-search label { font-size: 12px; }
  .search-submit { padding-inline: 12px; }
  .cart-link { margin-left: auto; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 29px; padding-block: 32px 20px; }
  .hero .eyebrow { margin-bottom: 17px; font-size: 10px; }
  .hero h1 { max-width: 420px; font-size: clamp(46px, 11vw, 62px); }
  .hero-copy { max-width: 420px; margin-top: 19px; font-size: 18px; }
  .letter-notes { margin-top: 12px; }
  .gift-note { padding: 22px; }
  .gift-note p { font-size: 18px; }
  .ornament { margin-block: 42px; }
  .section-top { flex-direction: column; gap: 12px; margin-bottom: 23px; }
  .section-note { max-width: 100%; font-size: 16px; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .woocommerce-ordering select { width: 100%; }
  .products { grid-template-columns: 1fr; gap: 22px; }
  .product-card { padding: 25px 23px 23px; }
  .product-visual { height: 292px; margin-bottom: 21px; }
  .woocommerce-loop-product__title { font-size: 29px; }
  .price { font-size: 22px; }
  .card-purchase { padding-top: 20px; }
  summary { font-size: 22px; min-height: 77px; }
  .accordion-content { font-size: 17px; }
  .woocommerce-breadcrumb { margin-block: 21px 22px; font-size: 11px; }
  .single-product-layout { grid-template-columns: 1fr; gap: 32px; }
  .woocommerce-product-gallery { max-width: 410px; width: 100%; margin: auto; padding-top: 10px; }
  .main-cover { width: 78%; }
  .spread-panorama { margin-top: 23px; }
  .product_title { font-size: 49px; }
  .summary-content > .price { font-size: 27px; }
  .single-author { font-size: 17px; }
  .variation-row { flex-wrap: nowrap; gap: 15px; }
  .variation-row select { flex: 1; }
  .reset_variations { flex-shrink: 0; }
  .woocommerce-tabs { margin-top: 40px; }
  .wc-tabs { padding-inline: 5px; gap: 6px; }
  .wc-tabs button { min-width: 120px; padding-inline: 20px; }
  .tab-panel { padding: 27px 19px; }
  .drop-cap { font-size: 21px; }
  .author-note { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .monogram { width: 42px; height: 42px; font-size: 17px; }
  .author-note h3 { font-size: 21px; }
  .shop_attributes { font-size: 15px; }
  .shop_attributes th, .shop_attributes td { padding-inline: 5px; }
  .recommendations .section-title { font-size: 34px; }
  .related { margin-bottom: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; display: block; }
  .footer-brand p { margin-top: 12px; max-width: 290px; }
  .footer-links { gap: 0 25px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.req-table { width:100%;border-collapse:collapse;font-size:.92em;margin:.4em 0 .2em }
.req-table th, .req-table td { text-align:left;vertical-align:top;padding:7px 10px 7px 0;border-bottom:1px solid color-mix(in srgb,currentColor 16%,transparent);font-weight:400 }
.req-table th { width:36%;opacity:.72 }
.notice-red { color:#c2412d }
.category-strip a { text-decoration:none;color:inherit }
.category-strip { display:flex;flex-wrap:wrap;gap:12px;margin:0 0 34px }
.category-strip a { display:flex;align-items:baseline;gap:10px;padding:11px 20px;border:1px solid var(--line);border-radius:999px;background:#ffffff59;font-family:var(--serif);font-size:18px;transition:background .2s,transform .2s }
.category-strip a:hover { background:#ffffffb3;transform:translateY(-1px) }
.category-strip .cs-count { font-size:12px;color:var(--muted);font-style:italic }
.shop-layout { display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:44px;align-items:start }
.shop-layout>* { min-width:0 }
.side-info { position:sticky;top:20px;margin-top:64px;padding:24px 24px 20px;border:1px dashed var(--line);border-radius:20px;background:#ffffff59;box-shadow:0 10px 26px #4a371b14 }
.side-info .eyebrow { margin:0 }
.side-info h2 { font-family:var(--serif);font-style:italic;font-weight:400;font-size:24px;line-height:1.15;margin:20px 0 14px }
.event-next { display:grid;grid-template-columns:68px 1fr;gap:14px;padding-bottom:20px;border-bottom:1px dotted var(--line) }
.event-next time { display:flex;flex-direction:column;align-items:center;justify-content:center;width:62px;height:62px;border:2px solid var(--indigo);border-radius:50%;color:var(--indigo);transform:rotate(-6deg);margin-top:4px }
.event-next time b { font-family:var(--serif);font-size:26px;line-height:.95 }
.event-next time span { font-size:9px;letter-spacing:.1em;text-transform:uppercase }
.event-next h3 { font-family:var(--serif);font-style:italic;font-weight:400;font-size:20px;line-height:1.25;margin:0 0 8px }
.event-next p { margin:0 0 6px;font-size:14px;color:var(--muted) }
.event-list { list-style:none;margin:0;padding:0 }
.event-list li { padding:12px 0;border-bottom:1px dotted var(--line);font-size:14px;line-height:1.45;color:var(--muted) }
.event-list .event-when { display:block;font-style:italic;color:var(--ink);font-family:var(--serif);font-size:16px;margin-bottom:2px }
.event-list a { color:var(--indigo);text-underline-offset:3px }
.side-note { font-size:12px;margin:14px 0 0 }
@media (max-width:980px) {
  .shop-layout { grid-template-columns:1fr;gap:12px }
  .side-info { position:static;margin-top:26px }
}
.event-soon { margin:0;padding-bottom:20px;border-bottom:1px dotted var(--line);font-family:var(--serif);font-style:italic;font-size:20px;line-height:1.3;color:var(--indigo) }
.main-navigation a[aria-current="page"] { box-shadow:inset 0 -2px var(--indigo);color:var(--indigo) }
.page { padding:26px 0 80px }
.page-hero { padding:34px 0 38px;margin-bottom:40px;border-bottom:1px dotted var(--line);max-width:900px }
.page-hero .eyebrow { margin:0 }
.page-hero h1 { font-family:var(--serif);font-style:italic;font-weight:400;font-size:clamp(42px,6vw,82px);line-height:1.02;margin:12px 0 20px }
.page-lead { font-size:clamp(18px,1.6vw,22px);line-height:1.6;color:var(--muted);max-width:760px;margin:0;font-family:var(--serif) }
.small-lead { margin-bottom:24px }
.page-section { margin-top:64px }
.page-h2 { font-family:var(--serif);font-style:italic;font-weight:400;font-size:clamp(28px,3.2vw,42px);line-height:1.12;margin:0 0 26px }
.small { font-size:14px;color:var(--muted) }
.contact-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px }
.info-card { padding:24px 22px 22px;border:1px dashed var(--line);border-radius:20px;background:#ffffff59;box-shadow:0 10px 26px #4a371b14 }
.info-card h2 { font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:400;color:var(--indigo);margin:0 0 14px }
.info-card .big { font-family:var(--serif);font-style:italic;font-size:clamp(20px,1.9vw,25px);line-height:1.2;margin:0 0 10px;overflow-wrap:anywhere }
.info-card address { font-style:normal;font-family:var(--serif);font-size:20px;line-height:1.35;margin:0 0 10px }
.info-card p.small { margin:0 }
.info-card a, .person a, .how-list a, .cta a, .page-note a { color:var(--indigo);text-underline-offset:3px }
.people { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px }
.person { padding:26px 24px;border:1px dashed var(--line);border-radius:20px;background:#ffffff40 }
.person .mono { display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--indigo);color:#f6efe3;font-family:var(--serif);font-size:20px;margin-bottom:16px }
.person h3 { font-family:var(--serif);font-style:italic;font-weight:400;font-size:24px;line-height:1.2;margin:0 0 8px }
.person p { margin:0 0 8px;color:var(--muted);line-height:1.55 }
.how-list { list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 46px;counter-reset:how }
.how-list li { counter-increment:how;position:relative;padding:20px 0 20px 54px;border-top:1px dotted var(--line) }
.how-list li::before { content:counter(how);position:absolute;left:0;top:14px;font-family:var(--serif);font-style:italic;font-size:34px;line-height:1;color:#984B16 }
.how-list h3 { font-family:var(--serif);font-style:italic;font-weight:400;font-size:22px;margin:0 0 8px }
.how-list p { margin:0;color:var(--muted);line-height:1.6 }
.page .req-table { max-width:860px;font-size:15px }
.page .req-table th { width:34% }
.facts { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px }
.facts div { padding:26px 24px;border:1px dashed var(--line);border-radius:20px;background:#ffffff59;display:flex;flex-direction:column;gap:8px;text-align:center;align-items:center }
.facts b { font-family:var(--serif);font-style:italic;font-weight:400;font-size:clamp(46px,5vw,68px);line-height:1;color:#984B16 }
.facts span { font-size:14px;color:var(--muted);max-width:240px;line-height:1.4 }
.about-books { list-style:none;margin:0;padding:10px 0 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px }
.about-books a { display:block;text-decoration:none;color:inherit }
.about-books h3 { font-family:var(--serif);font-style:italic;font-weight:400;font-size:19px;line-height:1.2;margin:0 0 4px }
.about-books p { margin:0;font-size:13px;color:var(--muted) }
.page-note { margin:26px 0 0;max-width:820px;color:var(--muted);line-height:1.65 }
.binding { list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px }
.binding li { padding:24px 22px;border:1px dashed var(--line);border-radius:20px;background:#ffffff59 }
.binding h3 { font-family:var(--serif);font-style:italic;font-weight:400;font-size:24px;margin:0 0 8px;color:var(--indigo) }
.binding p { margin:0;color:var(--muted);line-height:1.5 }
.cta { padding:30px 28px;border:1px dashed var(--line);border-radius:22px;background:#efe5d3 }
.cta p { font-size:19px;line-height:1.55;margin:0 0 10px }
@media (max-width:1100px) {
  .about-books { grid-template-columns:repeat(3,minmax(0,1fr)) }
}
@media (max-width:980px) {
  .contact-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .people { grid-template-columns:1fr }
  .binding { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .how-list { grid-template-columns:1fr }
}
@media (max-width:640px) {
  .contact-grid, .facts, .binding { grid-template-columns:1fr }
  .about-books { grid-template-columns:repeat(2,minmax(0,1fr));gap:18px }
  .page { padding-bottom:50px }
  .page-section { margin-top:48px }
}
/* ===== v2 (04.11): правки по итогам разбора ===== */
h1, h2, h3, .brand-name, .section-title { font-family: var(--serif); }
.header-row { display: flex; align-items: center; gap: 22px; padding-block: 10px; }
.header-row .brand img { width: 40px; height: 48px; }
.header-row .brand-name { font-size: 28px; }
.header-row .product-search { flex: 1 1 250px; max-width: 340px; gap: 8px; }
.header-row .search-field { width: 100%; height: 40px; }
.header-row .search-submit { min-height: 40px; }
.header-row .main-navigation { margin-left: auto; gap: 20px; }
.header-row .cart-link, .header-row .account-link { white-space: nowrap; }
.main-navigation a[aria-current="page"] { box-shadow: inset 0 -2px var(--indigo); color: var(--indigo); }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.shop-main { min-width: 0; }
.shop-layout > .side-info { margin-top: 26px; }
.hero { grid-template-columns: 1.05fr .95fr; gap: 24px; padding-block: 26px 4px; }
.hero h1 { font-size: clamp(34px, 4.1vw, 52px); line-height: 1.1; letter-spacing: -.03em; }
.hero .eyebrow { margin-bottom: 14px; }
.hero-copy { margin-top: 14px; font-size: 17px; line-height: 1.6; }
.hero-books { display: flex; justify-content: center; align-items: flex-end; margin: 0; }
.hero-books img { width: 31%; height: auto; margin-inline: -2%; filter: drop-shadow(0 10px 10px rgb(57 39 19 / 30%)); }
.hero-books img:nth-child(2) { width: 36%; position: relative; z-index: 2; transform: translateY(-6px); }
.letter-notes { grid-template-columns: 1fr; margin-top: 16px; }
.book3d { display: flex; justify-content: center; }
.book3d img { filter: drop-shadow(0 8px 8px rgb(57 39 19 / 28%)); transition: transform .25s; }
.product-visual .book3d { height: 100%; }
.product-visual .book3d img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.book3d:hover img { transform: translateY(-4px); }
.book3d.main-cover { width: min(380px, 92%); margin: 0 auto; }
.book3d.main-cover img { width: 100%; height: auto; }
.about-books .book3d { margin-bottom: 12px; }
.shop-main .woocommerce-loop-product__title { font-size: 24px; line-height: 1.2; }
.shop-main .card-purchase .price { font-size: 18px; }
.category-strip { flex-wrap: nowrap; gap: 8px; margin: 0 0 12px; }
.category-strip a { padding: 5px 12px; gap: 6px; font: 14px/1.3 var(--sans); white-space: nowrap; }
.category-strip .cs-count { font: 12px var(--sans); font-style: normal; }
.ornament { margin-block: 22px; }
#catalog .section-top .eyebrow, #catalog .section-note { display: none; }
#catalog .section-top { margin-bottom: 4px; }
#catalog .section-title { font-size: 30px; line-height: 1.2; letter-spacing: -.02em; }
#catalog .catalog-toolbar { margin: 0; padding-block: 8px; }
.site-footer { padding-block: 20px 12px; }
.footer-brand .brand img { width: 40px; height: 48px; }
.footer-brand .brand-name { font-size: 24px; }
.footer-brand p { max-width: none; margin-top: 8px; font: 13px/1.5 var(--sans); font-style: normal; }
.footer-heading { margin-bottom: 6px; }
address { font: 14px/1.5 var(--sans); }
.contact-links { margin-top: 4px; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
.contact-links a { min-height: 30px; }
.footer-links a { min-height: 30px; }
.footer-info { margin-top: 10px; }
@media (min-width: 981px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
}
@media (max-width: 640px) {
  .category-strip { flex-wrap: wrap; }
}
.colophon-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 18px; border-block: 1px solid var(--line); }
.colophon-wrap .colophon { margin: 0; padding-block: 12px; border: 0; }
.colophon-wrap .cdek-stamp { position: static; width: 92px; right: auto; bottom: auto; }
.summary-content .margin-note { margin-top: 18px; }
.reading-column { font-size: 14.5px; }
.reading-column h2 { font-size: 27px; }
.drop-cap { font-size: 19.5px; }
.author-note h3 { font-size: 19px; }
.author-note p { font-size: 13px; }
.summary-content > .price { white-space: nowrap; font-size: 25px; }
@media (max-width: 1200px) {
  .colophon-wrap .cdek-stamp { width: 76px; }
}
@media (max-width: 640px) {
  .drop-cap { font-size: 18px; }
  .colophon-wrap .cdek-stamp { width: 78px; }
  .summary-content .margin-note { margin-top: 16px; }
}
.hero-books img { width: 36%; margin-inline: -3%; }
.hero-books img:nth-child(2) { width: 42%; }
.about-books .book3d img { width: 100%; }
.tee-image { background: #fff; }
.colophon-wrap { position: relative; }
.cdek-stamp { position: absolute; right: 0; bottom: -78px; width: 128px; color: var(--green-ink); font-family: var(--sans); transform: rotate(-9deg); opacity: .92; mix-blend-mode: multiply; pointer-events: none; }
.margin-note { margin-top: 88px; }
.footer-info { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--line); }
.footer-info details { border-bottom: 1px solid var(--line); }
.footer-info summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font: 14px var(--sans); }
.footer-info .accordion-content { padding: 4px 0 18px; font: 14px/1.6 var(--sans); }
.cookie { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: 360px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--sheet); box-shadow: var(--shadow); font: 13px/1.4 var(--sans); }
.cookie button { min-height: 36px; padding: 6px 14px; border: 1px solid var(--indigo); border-radius: 10px; background: var(--indigo); color: var(--sheet); font: 13px var(--sans); }
@media (max-width: 980px) {
  .shop-layout { grid-template-columns: 1fr; gap: 12px; }
  .header-row { flex-wrap: wrap; gap: 4px 14px; }
  .header-row .brand { order: 1; }
  .header-row .cart-link { order: 2; margin-left: auto; }
  .header-row .account-link { order: 3; }
  .header-row .main-navigation { order: 4; width: 100%; margin: 0; gap: 20px; }
  .header-row .product-search { order: 5; flex: 1 1 100%; max-width: none; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { padding-top: 0; font-size: 16px; }
  .eyebrow { font-size: 13px; }
  .hero { padding-top: 14px; }
  .hero h1 { font-size: 34px; }
  .hero-books { max-width: 330px; margin-inline: auto; }
  .product-type { font-size: 13px; }
  .product-author { font-size: 15px; }
  .woocommerce-loop-product__title { font-size: 26px; }
  .footer-links a, .contact-links a { font-size: 14px; }
  .cdek-stamp { width: 104px; right: -4px; bottom: -64px; }
  .header-row { gap: 2px 12px; padding-block: 6px; }
  .header-row .main-navigation { order: 4; width: auto; flex: 0 1 auto; gap: 14px; }
  .header-row .account-link { order: 5; margin-left: auto; font-size: 13px; }
  .header-row .product-search { order: 6; }
  .margin-note { margin-top: 70px; }
  .cookie { left: 8px; right: 8px; max-width: none; }
}
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.footer-links .wide { grid-column: auto; }
.footer-links a { min-height: 30px; }
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 36px; align-items: start; }
.sm-group h2 { margin: 0 0 10px; font: 18px/1.3 var(--serif); font-style: italic; }
.sm-group h2 a { color: var(--ink); text-decoration: none; }
.sm-group h2 a:hover { text-decoration: underline; }
.sm-count { margin-left: 6px; font: 12px var(--sans); font-style: normal; color: var(--muted); }
.sm-group ul { margin: 0; padding: 0; list-style: none; border-top: 1px dotted var(--line); }
.sm-group li { padding: 7px 0; border-bottom: 1px dotted var(--line); font: 14.5px/1.4 var(--sans); }
.sm-group a { color: var(--indigo); text-underline-offset: 3px; }
.legal { max-width: 820px; font: 14.5px/1.65 var(--sans); }
.legal h2 { margin: 34px 0 10px; font: 22px/1.25 var(--serif); font-style: italic; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin: 0 0 6px; }
.legal strong { font-weight: 500; }
.page-hero { padding: 20px 0 18px; margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 42px); margin: 8px 0 10px; }
.page-lead { font-size: 17px; }
.page-section { margin-top: 40px; }
.page-section.cta { margin-top: 28px; padding: 10px 16px; border-radius: 12px; }
.cta .page-h2 { margin: 0 0 3px; font: 500 14px/1.4 var(--sans); font-style: normal; letter-spacing: .01em; }
.cta p { margin: 0; font-size: 14px; line-height: 1.5; }
/* ===== единая шкала размеров по всему сайту (04.11) =====
   текст 15, мелкий 13, метки 11.5; заголовок страницы 32, раздела 22–24, карточки 18; плашки меньше на 25% */
body { font-size: 15px; line-height: 1.55; }
.brand-name, .header-row .brand-name { font-size: 24px; }
.section-title, #catalog .section-title, .recommendations .section-title { font-size: 24px; line-height: 1.2; }
.section-note { font-size: 14px; }
.hero h1 { font-size: clamp(28px, 3.2vw, 38px); }
.hero-copy { margin-top: 10px; font-size: 15px; }
.gift-note { padding: 14px 20px; }
.gift-note p { font-size: 15px; line-height: 1.5; }
.woocommerce-loop-product__title, .shop-main .woocommerce-loop-product__title { font-size: 19px; line-height: 1.2; }
.product-author { margin-top: 6px; font-size: 13px; }
.product-type { font-size: 11.5px; }
.price { font-size: 18px; }
.shop-main .card-purchase .price { font-size: 16px; }
.product-card { padding: 19px 17px 17px; }
.product-visual { height: 250px; margin-bottom: 16px; }
.card-purchase { gap: 10px; padding-top: 14px; }
.button { min-height: 42px; padding: 9px 16px; font-size: 13.5px; }
.product_title { font-size: clamp(26px, 2.8vw, 34px); }
.single-author { margin-top: 10px; font-size: 14px; }
.summary-content > .price { margin-top: 14px; font-size: 21px; }
.colophon { font-size: 13px; line-height: 1.6; }
.margin-note { font-size: 14px; }
.tab-panel { padding: 26px 28px; }
.reading-column { font-size: 15px; }
.reading-column h2 { margin-bottom: 12px; font-size: 22px; }
.drop-cap { font-size: 15px; line-height: 1.65; }
.author-note h3 { font-size: 16px; }
.author-note p { font-size: 13px; line-height: 1.55; }
.shop_attributes { font-size: 14px; }
.shop_attributes caption { padding-bottom: 12px; font-size: 20px; }
.accordion-content { font-size: 14px; }
.side-info { padding: 16px 18px 14px; }
.side-info h2 { margin: 14px 0 10px; font-size: 18px; }
.event-soon { padding-bottom: 12px; font-size: 15px; }
.event-list li { padding: 9px 0; font-size: 13px; }
.event-list .event-when { font-size: 14px; }
.category-strip a { padding: 4px 10px; font-size: 13px; }
.page-hero h1 { font-size: clamp(26px, 3vw, 32px); }
.page-lead { font-size: 15px; }
.page-h2 { margin-bottom: 14px; font-size: 21px; }
.page-section { margin-top: 30px; }
.contact-grid { gap: 14px; }
.info-card { padding: 16px 16px 14px; border-radius: 15px; }
.info-card h2 { margin-bottom: 10px; font-size: 10.5px; }
.info-card .big { margin-bottom: 6px; font-size: 17px; }
.info-card address { margin-bottom: 6px; font-size: 14px; line-height: 1.45; }
.small, .info-card p.small { font-size: 12.5px; }
.person { padding: 18px; border-radius: 15px; }
.person .mono { width: 44px; height: 44px; margin-bottom: 10px; font-size: 16px; }
.person h3 { font-size: 18px; }
.person p { font-size: 14px; }
.how-list li { padding: 14px 0 14px 40px; }
.how-list li::before { top: 10px; font-size: 26px; }
.how-list h3 { margin-bottom: 5px; font-size: 17px; }
.how-list p { font-size: 14px; }
.facts div { padding: 18px 16px; border-radius: 15px; gap: 4px; }
.facts b { font-size: clamp(32px, 3.4vw, 42px); }
.facts span { font-size: 13px; }
.about-books h3 { font-size: 15px; }
.about-books p { font-size: 12px; }
.binding li { padding: 16px; border-radius: 15px; }
.binding h3 { margin-bottom: 5px; font-size: 18px; }
.binding p { font-size: 14px; }
.page-note { font-size: 14px; }
.sm-group h2 { font-size: 16px; }
.sm-group li { font-size: 13.5px; }
.legal { font-size: 14px; }
.legal h2 { font-size: 18px; }
.people, .binding, .contact-grid { align-items: start; }
@media (max-width: 640px) {
  .brand-note, .eyebrow, .product-type, .info-card h2, .event-list .event-when, .cs-count, .sm-count, .meta-label { font-size: 12px; }
  .small, .info-card p.small { font-size: 13px; }
  .category-strip a { min-height: 36px; align-items: center; padding: 6px 12px; }
  .sm-group li { padding: 0; }
  .sm-group li a { display: block; padding: 8px 0; }
  .info-card a, .person a, .event-list a { display: inline-block; padding: 6px 0; }
  .footer-links a, .contact-links a { min-height: 38px; }
  .woocommerce-loop-product__title a { display: block; padding: 3px 0; }
  .woocommerce-product-gallery { display: contents; }
  .woocommerce-product-gallery > figure:first-child { order: 1; }
  .summary-content { order: 2; }
  .spread-panorama { order: 3; }
  .book3d.main-cover { width: 56%; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { padding: 12px 10px; }
  .product-visual { height: 170px; margin-bottom: 10px; }
  .tee-image { max-height: 160px; }
  .woocommerce-loop-product__title, .shop-main .woocommerce-loop-product__title { font-size: 16px; }
  .product-author { font-size: 12.5px; }
  .shop-main .card-purchase .price, .card-purchase .price { font-size: 14px; white-space: normal; }
  .card-purchase .button { min-height: 40px; padding: 8px 6px; font-size: 12.5px; }
}
@media (max-width: 1200px) {
  .category-strip { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  body { font-size: 15px; padding-top: 0; }
  .hero h1 { font-size: 28px; }
  .woocommerce-loop-product__title { font-size: 20px; }
  .product_title { font-size: 28px; }
}

/* ===== Рабочая версия темы: отличия от файла макета ===== */
body { padding-top: 0; }
.skip-link:focus { top: 12px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.screen-reader-text:focus { position: static; width: auto; height: auto; margin: 0; clip: auto; clip-path: none; }
/* меню WordPress — список внутри nav; промежутки берутся у nav */
.main-navigation ul { display: flex; flex-wrap: wrap; gap: inherit; margin: 0; padding: 0; list-style: none; }
.main-navigation li { margin: 0; }
ul.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.brand-logo { object-fit: contain; }
.header-row .brand .brand-logo { width: 40px; height: 48px; }
.footer-brand .brand .brand-logo { width: 40px; height: 48px; }
.book3d img { max-width: 100%; }
.product-visual { text-decoration: none; }
.product-visual > .book3d { display: flex; justify-content: center; height: 100%; }
.product-visual > .book3d img { width: auto; height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgb(57 39 19 / 28%)); transition: transform .25s; }
.product-visual:hover > .book3d img { transform: translateY(-4px); }
.product-visual > img.tee-image { width: 100%; max-width: 275px; height: auto; max-height: 295px; }
.product-visual > img { max-width: 100%; max-height: 100%; object-fit: contain; }
.merch-photo.main-cover { width: min(380px, 92%); margin: 0 auto; }
.merch-photo img { width: 100%; height: auto; border-radius: 13px; background: #fff; }
/* дополнительные состояния WordPress/WooCommerce */
.term-description { margin: 4px 0 8px; color: var(--muted); font-size: 14px; max-width: 760px; }
.footer-extra { margin-top: 12px; }
.footer-extra .widget { font-size: 14px; }
.header-row .search-field { min-height: 40px; }
.req-table th, .req-table td { overflow-wrap: anywhere; }
.req-table th { opacity: 1; color: var(--muted); } /* прозрачность 72% давала контраст ~3:1 на фоне подвала */
.product_title, .single-author, .woocommerce-loop-product__title, .product-author { overflow-wrap: anywhere; }
h1, h2, h3, .section-title, .page-hero h1 { overflow-wrap: anywhere; } /* длинный поисковый запрос в заголовке не распирает страницу */
button.button, input.button { margin: 0; }
.hero-books { padding-inline: 3%; } /* запас под отрицательные поля наклонённых обложек */
@media (max-width: 640px) { .colophon-wrap .cdek-stamp { margin-right: 6px; } /* печать повёрнута на 9°, её рамка иначе выходит за блок */ .merch-photo.main-cover { width: 62%; } .woocommerce-loop-product__title a { padding: 6px 0; } }
@media (max-width: 350px) {
  /* самые узкие телефоны (320–350 px): шапка в две строки вместо трёх */
  .header-row .main-navigation { gap: 14px; }
  .header-row .main-navigation a { font-size: 13px; }
  .header-row .account-link .acct-extra { display: none; }
  .product-search label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 640px) {
  .header-row .account-link { max-width: none; } /* иначе «Вход / Регистрация» вылезает за поле страницы */
  /* реквизиты: подпись над значением, чтобы длинные номера счетов не распирали страницу */
  .req-table, .req-table tbody, .req-table tr, .req-table th, .req-table td { display: block; width: auto; }
  .page .req-table th, .req-table th { width: auto; padding: 8px 0 0; border: 0; }
  .req-table td { padding: 0 0 8px; }
}
