/* ==========================================================================
   CHEZ MOI — светлая галерейная тема: воздух, тонкие линии, картины крупно.
   Шрифты: Cormorant Garamond (название, заголовки), Manrope (текст). Лицензия SIL OFL 1.1.
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-cyrillic-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-cyrillic-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }

:root {
    --bg: #ffffff;
    --bg-soft: #f7f6f3;
    --bg-wall: #f3f1ed;
    --text: #2c2a27;
    --text-soft: #4f4b46;
    --muted: #7b756e;
    --line: #e8e5e0;
    --line-strong: #d3cec6;
    --accent: #a8764a;
    --accent-hover: #8c5f37;
    --accent-soft: #f5ede4;
    --ok: #4f6b55;
    --ok-soft: #e7efe8;
    --error: #a83a32;
    --error-soft: #fbeceb;

    --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(56px, 8vw, 104px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
    margin: 0;
    font-variant-numeric: lining-nums;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: .005em;
    margin: 0 0 .5em;
    color: var(--text);
    text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 300; }
h3 { font-size: 1.45rem; font-weight: 500; }
.h-small { font-size: 1.6rem; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
small, .small { font-size: .875rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--text); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { top: 12px; }
.icon { flex: none; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--bg-soft); color: var(--muted); font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-note { margin: 0; letter-spacing: .04em; }
.topbar-search { display: flex; align-items: center; border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar-search:focus-within { border-color: var(--line-strong); }
.topbar-search input {
    width: 150px; border: 0; background: transparent; font: inherit; color: var(--text);
    padding: 4px 6px; outline: none; transition: width .3s var(--ease);
}
.topbar-search input:focus { width: 220px; }
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search button { border: 0; background: none; color: var(--muted); padding: 4px; cursor: pointer; }
.topbar-search button:hover { color: var(--text); }

/* ---------- Шапка: название из трёх строк ---------- */
.site-header { background: var(--bg); }
.header-main {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
    padding-top: clamp(20px, 3vw, 30px); padding-bottom: clamp(16px, 2.4vw, 22px);
}
.header-left { display: flex; align-items: center; }
.header-social { display: flex; gap: 14px; align-items: center; }
.header-social a, .tool-link { color: var(--text-soft); text-decoration: none; display: inline-flex; position: relative; }
.header-social a:hover, .tool-link:hover { color: var(--accent); }
.footnote-mark { position: absolute; right: -6px; top: -4px; font-size: 10px; color: var(--muted); }
.header-tools { display: flex; gap: 18px; align-items: center; justify-content: flex-end; }
.tool-link { background: none; border: 0; padding: 2px; cursor: pointer; font: inherit; }
.tool-count {
    position: absolute; top: -6px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 600;
}
.nav-toggle { display: none; }

.brand { display: grid; justify-items: center; text-align: center; color: var(--text); text-decoration: none; line-height: 1.2; }
.brand:hover { color: var(--text); }
.brand-line { font-size: 12.5px; font-weight: 300; letter-spacing: .3em; color: var(--text-soft); margin-right: -.3em; }
.brand-name {
    font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3rem);
    letter-spacing: .06em; line-height: 1.05; margin: 6px 0 7px; margin-right: -.06em;
}

.site-nav > .container > ul {
    list-style: none; margin: 0 auto; padding: 15px 0 17px; max-width: 1040px;
    display: flex; justify-content: center; flex-wrap: wrap; gap: 6px clamp(22px, 5vw, 72px);
    border-top: 1px solid var(--line);
}
.site-nav a { color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 400; letter-spacing: .02em; padding: 4px 0; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }

@media (max-width: 820px) {
    .topbar-note { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .header-main { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; padding-top: 16px; padding-bottom: 14px; }
    .header-social { display: none; }
    .nav-toggle { display: inline-flex; }
    .brand-line { font-size: 9.5px; letter-spacing: .18em; margin-right: -.18em; }
    .brand-name { font-size: 1.8rem; margin: 3px 0 4px; }
    .header-tools { gap: 12px; }
    .site-nav { display: none; border-top: 1px solid var(--line); }
    .site-nav.is-open { display: block; }
    .site-nav > .container > ul { flex-direction: column; align-items: center; gap: 2px; border-top: 0; padding: 10px 0 18px; }
    .site-nav a { display: block; padding: 9px 0; font-size: 15px; }
}

/* ---------- Кнопки и ссылки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 30px; border: 1px solid var(--text); background: transparent; color: var(--text);
    font: 500 12.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--text); color: #fff; }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line-strong); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--text); }
.link-more:hover { color: var(--accent); }
.link-more .icon { transition: transform .25s var(--ease); }
.link-more:hover .icon { transform: translateX(4px); }
.more-row { margin: 40px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.more-row-center { justify-content: center; }

/* ---------- Сообщения ---------- */
.flash { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line-strong); background: var(--bg-soft); font-size: 14.5px; }
.flash-ok { border-color: #c9d8cb; background: var(--ok-soft); color: var(--ok); }
.flash-error { border-color: #ecc5c1; background: var(--error-soft); color: var(--error); }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: clamp(380px, 64vh, 640px); display: grid; align-items: center; overflow: hidden; background: var(--bg-wall); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; text-align: center; padding-block: 64px; }
.kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 18px; }
.hero-title { max-width: 16em; margin: 0 auto 32px; font-size: clamp(2.4rem, 5vw, 4rem); }

/* ---------- Секции ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(24px, 4vw, 48px) var(--section); }
.section-soft { background: var(--bg-soft); }
.section-line { padding-top: 0; }
.section-line > .container { border-top: 1px solid var(--line); padding-top: var(--section); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 680px; }
.section-head-center { text-align: center; margin-inline: auto; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .3em; }
.section-lead { color: var(--muted); margin: 0; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(12px, 2vw, 24px); }
.page-head h1 { margin-bottom: .25em; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* ---------- Работы и колонка новинок ---------- */
.works-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.new-column { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 40px); position: sticky; top: 24px; }
.column-title { font-size: 1.9rem; margin-bottom: 18px; }
.new-list { list-style: none; margin: 0 0 22px; padding: 0; }
.new-list li + li { border-top: 1px solid var(--line); }
.new-item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 14px 0; text-decoration: none; color: var(--text); }
.new-item:hover .new-title { color: var(--accent); }
.new-thumb { width: 72px; height: 72px; background: var(--bg-wall); display: grid; place-items: center; overflow: hidden; }
.new-thumb img { width: 100%; height: 100%; object-fit: cover; }
.new-text { display: grid; gap: 1px; line-height: 1.35; }
.new-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; transition: color .2s; }
.new-meta { font-size: 12.5px; color: var(--muted); }
.new-price { font-size: 13.5px; }

@media (max-width: 980px) {
    .works-layout { grid-template-columns: minmax(0, 1fr); }
    .new-column { order: -1; position: static; border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
    .new-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 6px; }
    .new-list li + li { border-top: 0; }
}

.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 44px 32px; }
.art-card { position: relative; }
.art-card-link { display: grid; gap: 14px; color: var(--text); text-decoration: none; }
.art-card-image {
    position: relative; aspect-ratio: 1 / 1; background: var(--bg-wall);
    display: grid; place-items: center; overflow: hidden;
}
.art-card-image img {
    max-width: 76%; max-height: 76%; width: auto; height: auto;
    box-shadow: 0 1px 2px rgba(40, 30, 20, .12), 0 12px 24px -10px rgba(40, 30, 20, .35);
    transition: transform .5s var(--ease);
}
.art-card-link:hover .art-card-image img { transform: scale(1.03); }
.art-badge {
    position: absolute; left: 12px; top: 12px; background: #fff; color: var(--text);
    font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 9px;
}
.art-card-body { display: grid; gap: 2px; line-height: 1.4; }
.art-card-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; transition: color .2s; }
.art-card-link:hover .art-card-title { color: var(--accent); }
.art-card-meta { font-size: 13px; color: var(--muted); }
.art-card-price { font-size: 14.5px; margin-top: 4px; }
.fav-toggle {
    position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .92); color: var(--text-soft); cursor: pointer;
    display: grid; place-items: center; transition: color .2s, transform .2s;
}
.fav-toggle:hover { color: var(--accent); transform: scale(1.06); }
.fav-toggle[aria-pressed="true"] { color: var(--accent); }
.fav-toggle[aria-pressed="true"] .icon path { fill: currentColor; }

/* ---------- Серии ---------- */
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.series-card { display: grid; gap: 6px; text-decoration: none; color: var(--text); text-align: center; }
.series-covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.series-covers img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: opacity .3s; }
.series-card:hover .series-covers img { opacity: .88; }
.series-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.series-card:hover .series-title { color: var(--accent); }
.series-meta { font-size: 13.5px; color: var(--muted); }

/* ---------- Способы получить работу ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); }
.way { padding: 8px clamp(18px, 3vw, 40px); text-align: center; }
.way + .way { border-left: 1px solid var(--line); }
.way-icon { display: inline-flex; color: var(--accent); margin-bottom: 14px; }
.way-body { color: var(--text-soft); font-size: 15px; }
.way-body p:last-child { margin: 0; }
@media (max-width: 760px) {
    .ways { grid-template-columns: 1fr; }
    .way + .way { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 20px; }
}

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.step { text-align: center; }
.step-num { display: block; font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 3rem; font-weight: 300; line-height: 1; color: var(--accent); margin-bottom: 12px; }
.step-body { color: var(--text-soft); font-size: 15px; }
.step-body p:last-child { margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Упаковка ---------- */
.packaging { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; max-width: 900px; }
.packaging-icon { color: var(--accent); padding-top: 8px; }
.packaging h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.packaging .link-more { margin-top: 18px; }
.packaging-inline { margin: 40px 0; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .packaging { grid-template-columns: 1fr; } }

/* ---------- Отзывы ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.review { margin: 0; }
.stars { margin: 0 0 10px; color: var(--line-strong); letter-spacing: 3px; }
.star.is-on { color: var(--accent); }
.review blockquote { margin: 0 0 12px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; font-style: italic; }
.review figcaption { font-size: 13.5px; color: var(--muted); }
.review-name { color: var(--text); }
.review-reply { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--line); font-size: 14.5px; color: var(--text-soft); }
.review-reply-label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Мастерская ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 32px; }
.post-card { display: grid; gap: 8px; text-decoration: none; color: var(--text); }
.post-cover { aspect-ratio: 3 / 2; background: var(--bg-wall); overflow: hidden; margin-bottom: 8px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.03); }
.post-date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.25; }
.post-card:hover .post-title { color: var(--accent); }
.post-excerpt { color: var(--text-soft); font-size: 15px; }

/* ---------- Об авторе ---------- */
.about-teaser, .about-page { display: grid; gap: clamp(20px, 4vw, 48px); align-items: start; }
.about-teaser { max-width: 900px; }
.about-teaser.has-photo, .about-page.has-photo { grid-template-columns: auto 1fr; }
.author-photo { object-fit: cover; aspect-ratio: 4 / 5; width: 120px; height: auto; filter: saturate(.92); }
.author-photo-m { width: 170px; }
.author-photo-l { width: 230px; }
@media (max-width: 600px) {
    .about-teaser.has-photo, .about-page.has-photo { grid-template-columns: 1fr; }
    .author-photo { width: 110px; }
    .author-photo-m { width: 140px; }
    .author-photo-l { width: 180px; }
}

/* ---------- Связаться ---------- */
.contact-strip { display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; align-items: center; }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-links a, .contact-list a, .footer-contacts a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.contact-links a:hover, .contact-list a:hover, .footer-contacts a:hover { color: var(--accent); }
@media (max-width: 760px) { .contact-strip { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.contact-label { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 520px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Оплата и доставка ---------- */
.terms-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-bottom: 40px; }
.term { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); }
.term:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.term h3 { font-size: 1.3rem; margin-bottom: .2em; }
.term p { margin: 0; color: var(--text-soft); font-size: 15px; }
@media (max-width: 600px) {
    .terms-grid { grid-template-columns: 1fr; }
    .term:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Текст ---------- */
.prose { color: var(--text-soft); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.9rem; margin: 1.4em 0 .4em; color: var(--text); }
.prose h3 { margin: 1.2em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--text); }
.prose img { margin: 1.6em 0; }
.legal h2 { font-size: 1.5rem; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span, .field > legend { font-size: 13px; color: var(--text-soft); letter-spacing: .02em; }
.optional { font-style: normal; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 15.5px; color: var(--text); background: #fff;
    border: 1px solid var(--line-strong); border-radius: 0; padding: 11px 13px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--text); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 0; font-size: 13px; color: var(--error); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

.error-page { padding-bottom: var(--section); }
.debug { white-space: pre-wrap; font-size: 12px; background: var(--bg-soft); padding: 16px; overflow: auto; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; padding-top: clamp(40px, 6vw, 64px); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.brand-small { justify-items: start; text-align: left; margin-bottom: 14px; }
.brand-small .brand-line { font-size: 10.5px; letter-spacing: .26em; }
.brand-small .brand-name { font-size: 2rem; margin: 3px 0 4px; }
.footer-brand p { max-width: 340px; font-size: 14px; }
.footer-title { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-nav ul, .footer-contacts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 28px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.footer-note { flex-basis: 100%; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Каталог ---------- */
.filters { display: grid; gap: 10px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-row-end { justify-content: space-between; margin-top: 6px; }
.filter-label { width: 90px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chip {
    display: inline-block; padding: 6px 14px; border: 1px solid var(--line); color: var(--text-soft);
    font-size: 13.5px; text-decoration: none; transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-current="true"] { border-color: var(--text); background: var(--text); color: #fff; }
.chip-new[aria-current="true"] { background: var(--accent); border-color: var(--accent); }
.sort-form select { font: inherit; font-size: 13.5px; border: 1px solid var(--line); padding: 6px 10px; background: #fff; color: var(--text); }
.found { font-size: 13.5px; margin-bottom: 20px; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.empty .link-more { margin-top: 8px; }
@media (max-width: 600px) { .filter-label { width: 100%; } }

.search-form { display: flex; gap: 10px; max-width: 560px; margin-top: 18px; }
.search-form input { flex: 1; font: inherit; font-size: 16px; border: 1px solid var(--line-strong); padding: 11px 13px; min-width: 0; }
.search-form input:focus { outline: none; border-color: var(--text); }

/* ---------- Страница картины ---------- */
.artwork { padding: clamp(24px, 4vw, 48px) 0 var(--section); }
.artwork-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.artwork-media { position: sticky; top: 20px; }
.artwork-stage {
    background: var(--bg-wall); min-height: clamp(320px, 52vw, 680px);
    display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); overflow: hidden;
}
.frame-preview { max-width: 100%; border: 0 solid transparent; box-shadow: 0 2px 4px rgba(40, 30, 20, .12), 0 22px 40px -18px rgba(40, 30, 20, .45); transition: border-width .3s var(--ease); }
.frame-preview.has-frame { box-shadow: 0 3px 6px rgba(40, 30, 20, .2), 0 26px 44px -18px rgba(40, 30, 20, .5); }
.frame-mat { display: grid; place-items: center; max-width: 100%; overflow: hidden; background: #fff; }
.frame-mat img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artwork:not(.is-interactive) .frame-mat img { width: auto; height: auto; max-width: 100%; max-height: 640px; object-fit: contain; }
.frame-mat.has-margins img { box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
.stage-caption { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.thumbs { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.thumb { padding: 0; border: 1px solid var(--line); background: var(--bg-wall); width: 72px; height: 72px; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--text); }

.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.artwork-title { font-size: clamp(2.3rem, 4vw, 3.2rem); margin-bottom: .15em; }
.artwork-meta { color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.art-badge-inline { position: static; border: 1px solid var(--line-strong); }
.fav-inline { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--text-soft); font: inherit; font-size: 13.5px; cursor: pointer; margin-bottom: 8px; }
.fav-inline:hover, .fav-inline[aria-pressed="true"] { color: var(--accent); }
.fav-inline[aria-pressed="true"] .icon path { fill: currentColor; }
.artwork-description { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }

.buy-form { display: grid; gap: 22px; margin-top: 24px; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.choice-hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.variant-list { display: grid; gap: 8px; }
.variant { position: relative; display: block; cursor: pointer; }
.variant input, .size-option input, .frame-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.variant-body { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.variant:hover .variant-body { border-color: var(--line-strong); }
.variant input:checked + .variant-body { border-color: var(--text); background: var(--bg-soft); }
.variant input:focus-visible + .variant-body, .size-option input:focus-visible + span, .frame-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.variant.is-disabled { cursor: not-allowed; opacity: .6; }
.variant-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.variant-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.variant-price { font-size: 15px; white-space: nowrap; }
.variant-note { font-size: 13.5px; color: var(--text-soft); }
.variant-lead { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }

.size-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.size-option { position: relative; cursor: pointer; }
.size-option > span { display: grid; gap: 1px; padding: 9px 11px; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.35; transition: border-color .2s; }
.size-option:hover > span { border-color: var(--line-strong); }
.size-option input:checked + span { border-color: var(--text); background: var(--bg-soft); }
.size-dim { color: var(--text); }
.size-price { color: var(--text-soft); }
.size-flag { font-size: 11px; color: var(--accent); }

.frame-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.frame-option { position: relative; cursor: pointer; }
.frame-option > span { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); font-size: 13px; line-height: 1.3; }
.frame-option input:checked + span { border-color: var(--text); background: var(--bg-soft); }
.frame-swatch { grid-row: span 2; width: 30px; height: 30px; border: 1px solid rgba(0, 0, 0, .08); background: var(--line); }
.frame-swatch-none { background: linear-gradient(135deg, transparent 46%, var(--line-strong) 48%, var(--line-strong) 52%, transparent 54%), #fff; }
.frame-price { color: var(--muted); font-size: 12px; }

.buy-summary { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.buy-total span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.buy-total output { font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.buy-lead { margin: 0; font-size: 13.5px; color: var(--text-soft); }
.buy-lead:empty { display: none; }
.buy-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.sold-note { margin-top: 24px; padding: 18px 20px; background: var(--bg-soft); }

@media (max-width: 900px) {
    .artwork-layout { grid-template-columns: minmax(0, 1fr); }
    .artwork-media { position: static; }
    .artwork-stage { min-height: 0; padding: 28px 16px; }
}

/* ---------- Корзина и заказ ---------- */
.lines { border-top: 1px solid var(--line); margin-bottom: 24px; }
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-thumb { width: 88px; height: 88px; background: var(--bg-wall); display: grid; place-items: center; overflow: hidden; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-body p { margin: 0; }
.line-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.25; }
.line-title a { color: var(--text); text-decoration: none; }
.line-title a:hover { color: var(--accent); }
.line-meta { font-size: 13.5px; color: var(--muted); }
.line-price { margin: 0; white-space: nowrap; font-size: 15px; }
.line-error { color: var(--error); font-size: 13.5px; margin: 6px 0 0; }
.line-reserve, .line-lead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--accent-hover); margin-top: 6px !important; }
.line-lead { color: var(--muted); }
.countdown { font-variant-numeric: tabular-nums; }
.countdown.is-expired { color: var(--error); }
.line-remove { margin-top: 6px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-button:hover { color: var(--error); }
.lines-compact .line { grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px 0; }
.lines-compact .line-thumb { width: 56px; height: 56px; }
.lines-compact .line-title { font-size: 1.1rem; }
@media (max-width: 520px) {
    .line { grid-template-columns: 64px 1fr; }
    .line-thumb { width: 64px; height: 64px; }
    .line-price { grid-column: 2; }
}

.cart-summary { display: grid; gap: 14px; max-width: 460px; margin-left: auto; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-soft); background: var(--bg-soft); padding: 12px 14px; margin: 0; }
.note .icon { margin-top: 3px; color: var(--accent); }
.note-box { background: var(--bg-soft); padding: 16px 20px; margin: 0 0 28px; }
.note-box p { margin: 0 0 6px; }
.note-box p:last-child { margin: 0; }
.note-box .icon { display: inline; vertical-align: -3px; color: var(--accent); }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.checkout-summary { position: sticky; top: 20px; background: var(--bg-soft); padding: 24px; }
@media (max-width: 900px) {
    .checkout-layout { grid-template-columns: minmax(0, 1fr); }
    .checkout-summary { position: static; order: -1; }
}
.form-block { border: 0; margin: 0; padding: 0 0 6px; display: grid; gap: 14px; min-width: 0; }
.form-block legend { font-family: var(--serif); font-size: 1.5rem; padding: 0; margin-bottom: 12px; }
.city-field { position: relative; }
.suggest { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; list-style: none; margin: 2px 0 0; padding: 4px 0; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .25); max-height: 280px; overflow: auto; }
.suggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 13px; font: inherit; font-size: 14px; cursor: pointer; color: var(--text); }
.suggest button:hover, .suggest button:focus { background: var(--bg-soft); outline: none; }
.delivery-quote { margin: 0; font-size: 14px; color: var(--text-soft); }
.delivery-quote:empty { display: none; }
.rules { background: var(--bg-soft); padding: 14px 18px; font-size: 13.5px; color: var(--text-soft); }
.rules-title { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rules ul { margin: 0; padding-left: 1.1em; }
.check-line { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--text); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 18px 0 10px; }
.totals dt { color: var(--text-soft); }
.totals dd { margin: 0; text-align: right; white-space: nowrap; }
.totals .totals-grand { font-family: var(--serif); font-size: 1.6rem; color: var(--text); padding-top: 10px; border-top: 1px solid var(--line-strong); }
.totals-wide { max-width: 460px; margin-left: auto; }

.order-status { display: inline-block; margin: 6px 0 0; padding: 4px 12px; font-size: 13px; letter-spacing: .06em; border: 1px solid var(--line-strong); }
.order-status-paid, .order-status-delivered { border-color: #bcd1c0; color: var(--ok); background: var(--ok-soft); }
.order-status-cancelled { color: var(--muted); }
.timeline { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 0; }
.timeline-step { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; }
.timeline-step::before { content: ""; position: absolute; left: 13px; top: -10px; height: 20px; width: 1px; background: var(--line-strong); }
.timeline-step:first-child::before { display: none; }
.timeline-dot { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; background: #fff; color: #fff; }
.timeline-step.is-done .timeline-dot { background: var(--ok); border-color: var(--ok); }
.timeline-step.is-current .timeline-dot { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-step.is-todo .timeline-text { color: var(--muted); }
.timeline-step.is-current .timeline-text { font-weight: 600; }
.timeline-at { font-size: 12.5px; color: var(--muted); }
.pay-box { padding: 20px 24px; border: 1px solid var(--accent); margin: 0 0 32px; }
.pay-box h2 { margin-bottom: .3em; }
.details { white-space: pre-wrap; font: inherit; font-size: 14.5px; background: var(--bg-soft); padding: 14px 16px; margin: 12px 0 0; }
.order-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); margin-bottom: 24px; }
.order-info h3 { font-size: 1.15rem; margin-bottom: .3em; }
.order-info p { margin: 0; font-size: 14.5px; color: var(--text-soft); }
@media (max-width: 600px) { .order-info { grid-template-columns: 1fr; } }

.review-form { border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 28px; }
.rating { border: 0; padding: 0; margin: 0; }
.rating legend { font-size: 13px; color: var(--text-soft); margin-bottom: 6px; padding: 0; }
.rating-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-stars label { font-size: 30px; line-height: 1; color: var(--line-strong); cursor: pointer; transition: color .15s; }
.rating-stars input:checked ~ label, .rating-stars label:hover, .rating-stars label:hover ~ label { color: var(--accent); }
.rating-stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Подсветка телефона при вводе */
input.is-valid { border-color: #8aa98d; }
input.is-invalid { border-color: var(--error); }
.field-check { margin: 0; font-size: 12.5px; }
.field-check:empty { display: none; }
.field-check[data-state="valid"] { color: var(--ok); }
.field-check[data-state="invalid"] { color: var(--error); }

/* ---------- Запись мастерской ---------- */
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--accent); }
.post-hero { margin: 8px 0 0; }
.post-hero img { width: 100%; max-height: 560px; object-fit: cover; }
.post-body { font-size: 17px; }
.post-body p { margin-bottom: 1.1em; }
.post-footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-footer p { margin: 0; flex: 1; }
.post-footer .author-photo { width: 64px; }
