:root {
    --paper: #fbfaf8;
    --paper-2: #f4f0eb;
    --surface: #fff;
    --ink: #1f1d1b;
    --muted: #776f69;
    --rose: #c98d8d;
    --rose-soft: #ead0cd;
    --gold: #b98a43;
    --gold-soft: #dfc491;
    --radius: 24px;
    --shadow-strength: 14%;
    --line: color-mix(in srgb, var(--ink) 12%, transparent);
    --card: color-mix(in srgb, var(--surface) 76%, transparent);
    --shadow: 0 24px 70px color-mix(in srgb, rgb(66 51 38) var(--shadow-strength), transparent);
    --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
    --sans: "Inter", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 2%, rgba(201,141,141,.16), transparent 30%),
        radial-gradient(circle at 82% 10%, rgba(185,138,67,.14), transparent 28%),
        linear-gradient(180deg, var(--surface), var(--paper));
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 86px;
    padding: 14px clamp(18px, 4vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.brand-monogram { position: relative; width: 54px; height: 54px; display: grid; place-items: center; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--ink); }
.brand-monogram::before { content: ""; position: absolute; width: 58px; height: 24px; border-bottom: 2px solid var(--gold); border-radius: 50%; transform: rotate(-24deg); opacity: .75; }
.brand-monogram::after { content: ""; position: absolute; right: 4px; bottom: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.brand-copy strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: .08em; text-transform: uppercase; }
.brand-copy small { display: block; margin-top: -2px; color: var(--muted); letter-spacing: .32em; text-transform: uppercase; font-size: 10px; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2.2vw, 34px); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #55504b; }
.main-nav a { position: relative; padding: 10px 0; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .2s ease; transform-origin: center; }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-cta { min-width: 142px; padding: 13px 22px !important; border: 1px solid var(--rose); text-align: center; color: #1f1d1b; }
.nav-cta:hover { background: var(--rose); color: #fff; }
.mobile-menu-button { display: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; font-size: 20px; }

.eyebrow { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .28em; font-size: 11px; font-weight: 700; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(46px, 7vw, 92px); line-height: .94; letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.025em; margin: 0; }
h3 { font-size: 28px; line-height: 1.05; margin: 0; }
p { line-height: 1.72; }
.ornament { display: inline-flex; align-items: center; gap: 12px; min-width: 160px; height: 20px; }
.ornament::before, .ornament::after { content: ""; display: block; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament::before { transform: translateY(-2px); }

.hero { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 128px) clamp(18px, 6vw, 96px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 56px; align-items: center; min-height: 690px; }
.studio-hero::after { content: ""; position: absolute; width: 700px; height: 240px; right: -160px; top: 170px; border: 2px solid rgba(201,141,141,.52); border-color: transparent transparent rgba(201,141,141,.55) rgba(201,141,141,.5); border-radius: 50%; transform: rotate(-10deg); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { margin: 0 0 26px; }
.hero h1::first-line { color: var(--rose); }
.hero-lead, .hero p { max-width: 560px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 24px; border: 1px solid var(--line); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(66, 51, 38, .16); }
.button.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.ghost { background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--ink); border-color: var(--rose); }
.button.ghost.light { background: transparent; }
.hero-showcase { position: relative; z-index: 2; min-height: 470px; }
.hero-frame { position: absolute; border: 10px solid #fff; box-shadow: var(--shadow); background: #fff; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame-main { right: 0; top: 10px; width: min(600px, 84%); height: 360px; }
.hero-frame-small { left: 0; bottom: 10px; width: 290px; height: 330px; }

.section { padding: clamp(58px, 7vw, 104px) clamp(18px, 6vw, 96px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head.centered { display: grid; place-items: center; text-align: center; gap: 8px; justify-content: center; }
.compact-head { margin-bottom: 28px; }
.section-head a, .small-link { color: var(--rose); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.section-action { display: flex; justify-content: center; margin-top: 34px; }
.featured-section { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 55%, transparent), color-mix(in srgb, var(--paper-2) 55%, transparent)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.category-grid, .art-grid, .material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.art-grid-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.art-card, .category-card, .post-card, .contact-card, .form-card { background: var(--card); border: 1px solid rgba(31,29,27,.10); box-shadow: 0 16px 48px rgba(66,51,38,.08); overflow: hidden; }
.art-card { transition: transform .2s ease, box-shadow .2s ease; }
.art-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.art-card img { height: 340px; width: 100%; object-fit: cover; background: var(--paper-2); }
.art-card-body { padding: 18px 18px 22px; }
.art-card-body p { margin: 0 0 8px; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.art-card-body h3 { font-size: 28px; }
.art-card-body span { display: block; margin: 10px 0 14px; color: var(--muted); font-size: 14px; }
.category-strip { padding: clamp(48px, 6vw, 88px) clamp(18px, 6vw, 96px); background: var(--surface); border-bottom: 1px solid var(--line); }
.category-grid.refined { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.category-card.refined { position: relative; min-height: 300px; background: var(--surface); display: flex; flex-direction: column; }
.category-card.refined img { height: 180px; width: 100%; object-fit: cover; filter: saturate(.88); }
.category-card.refined div { padding: 18px; }
.category-card.refined h3 { font-size: 22px; }
.category-card.refined p { color: var(--muted); font-size: 14px; margin-bottom: 0; }

.about-preview { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 72px); align-items: center; background: var(--surface); }
.about-photo-stack { position: relative; min-height: 520px; }
.about-photo-stack .photo-main { position: absolute; left: 0; top: 0; width: 70%; height: 520px; object-fit: cover; box-shadow: var(--shadow); }
.about-photo-stack .photo-overlap { position: absolute; right: 0; bottom: 18px; width: 48%; height: 260px; object-fit: cover; border: 8px solid #fff; box-shadow: var(--shadow); }
.about-preview-text { max-width: 690px; }
.about-preview-text p { color: var(--muted); }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.news-projects { background: linear-gradient(180deg, var(--paper), var(--surface)); }
.column-title { margin: 0 0 18px; color: var(--rose); }
.post-list { display: grid; gap: 18px; }
.post-card { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 18px; padding: 12px; background: var(--surface); }
.post-card img { width: 150px; height: 150px; object-fit: cover; }
.post-card span { display: block; margin-bottom: 8px; color: var(--gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { font-size: 26px; margin-bottom: 8px; }
.post-card p, .category-card p, .art-card p { color: var(--muted); }
.order-cta { margin: 0 clamp(18px, 6vw, 96px) clamp(56px, 7vw, 96px); padding: clamp(36px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.order-cta h2 { margin-bottom: 12px; }
.order-cta p { color: var(--muted); margin-bottom: 0; }

.page-hero { position: relative; overflow: hidden; padding: clamp(62px, 8vw, 112px) clamp(18px, 6vw, 96px); background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--paper-2) 86%, transparent)); border-bottom: 1px solid var(--line); }
.page-hero.compact { padding-top: 74px; padding-bottom: 74px; }
.page-hero h1 { max-width: 980px; margin: 0 0 18px; }
.page-hero p { max-width: 820px; color: var(--muted); font-size: 18px; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: 40px; width: 480px; height: 180px; border-bottom: 1.5px solid rgba(201,141,141,.55); border-radius: 50%; transform: rotate(-16deg); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.filters a { padding: 11px 18px; border: 1px solid var(--line); color: var(--muted); background: var(--card); }
.filters a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.detail-layout { padding: clamp(48px,7vw,96px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .8fr); gap: clamp(34px, 5vw, 64px); align-items: start; }
.detail-image { background: var(--surface); border: 1px solid var(--line); padding: 14px; box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 14px; }
.detail-image-main { flex: 1 1 320px; min-width: 0; }
.js-gallery-main { cursor: zoom-in; display: block; width: 100%; transition: opacity .28s ease; }
.js-gallery-main.is-fading { opacity: 0; }

.detail-thumbs { flex: 0 0 92px; order: -1; display: flex; flex-direction: column; gap: 10px; max-height: 620px; overflow-y: auto; }
.detail-thumb {
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--paper);
    cursor: pointer;
    opacity: .6;
    transition: opacity .18s ease, border-color .18s ease;
}
.detail-thumb:hover { opacity: .9; }
.detail-thumb.active { opacity: 1; border-color: var(--rose); }
@media (max-width: 900px) {
    .detail-image { flex-direction: column; }
    .detail-thumbs { flex-direction: row; flex: 0 0 auto; order: 1; flex-wrap: wrap; max-height: none; width: 100%; }
    .detail-thumb { width: 72px; height: 72px; }
}

.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(10, 9, 8, .92); }
.lightbox.is-open { display: flex; }
.lightbox-image { max-width: min(1100px, 92vw); max-height: 86vh; object-fit: contain; box-shadow: 0 30px 90px rgba(0, 0, 0, .5); transition: opacity .28s ease; }
.lightbox-image.is-fading { opacity: 0; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .24); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .78); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
body.lightbox-locked { overflow: hidden; }
@media (max-width: 640px) {
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 19px; }
    .lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 19px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
.detail-image-main img { width: 100%; min-height: 560px; max-height: 760px; object-fit: contain; background: var(--paper); }
.detail-info { position: sticky; top: 112px; }
.detail-info h1, .article-page h1 { font-size: clamp(40px, 5vw, 70px); line-height: 1; margin: 0 0 20px; }
.detail-info p, .article-content, .content-page p { color: var(--muted); }
dl { display: grid; grid-template-columns: 120px 1fr; gap: 12px 18px; margin: 28px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
dt { color: var(--gold); font-weight: 700; } dd { margin: 0; color: var(--muted); }

.biography-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: center; }
.biography-hero img { width: 100%; height: 460px; object-fit: cover; box-shadow: var(--shadow); border: 10px solid #fff; }
.bio-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; background: var(--surface); }
.bio-quote p { font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); line-height: 1.12; margin: 18px 0 0; color: #2a2724; }
.bio-facts { display: grid; gap: 16px; }
.bio-facts div { padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.bio-facts strong { display: block; font-family: var(--serif); font-size: 46px; color: var(--rose); line-height: 1; }
.bio-facts span { color: var(--muted); }
.bio-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: clamp(34px, 6vw, 70px); align-items: center; }
.bio-story.reverse { grid-template-columns: minmax(320px, .85fr) minmax(0, 1fr); background: var(--surface); }
.bio-text p { color: var(--muted); }
.bio-image-panel img { width: 100%; max-height: 620px; object-fit: cover; border: 10px solid #fff; box-shadow: var(--shadow); }
.bio-image-panel.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bio-image-panel.collage img { height: 330px; }
.bio-style-section { background: linear-gradient(180deg, var(--paper), var(--surface)); }
.bio-style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bio-style-grid article { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 48px rgba(66,51,38,.08); }
.bio-style-grid img { width: 100%; height: 320px; object-fit: cover; }
.bio-style-grid h3, .bio-style-grid p { padding: 0 22px; }
.bio-style-grid h3 { margin-top: 22px; }
.bio-style-grid p { color: var(--muted); margin-bottom: 24px; }
.bio-award { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, .75fr); gap: 44px; align-items: center; background: var(--surface); }
.bio-award p { color: var(--muted); }
.bio-award img { width: 100%; max-height: 540px; object-fit: cover; box-shadow: var(--shadow); border: 10px solid #fff; }

.content-page { padding: clamp(48px,7vw,96px); display: grid; grid-template-columns: 330px 1fr; gap: 42px; }
.content-page img { border: 10px solid #fff; box-shadow: var(--shadow); background: #fff; }
.article-page { max-width: 1020px; margin: 0 auto; padding: clamp(48px,7vw,96px) 18px; }
.article-page > img { width: 100%; max-height: 580px; object-fit: cover; border: 10px solid #fff; box-shadow: var(--shadow); background: #fff; }
.lead { font-size: 22px; color: var(--rose); line-height: 1.55; }
.contact-grid { padding: clamp(48px,7vw,96px); display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.contact-card { padding: 28px; background: var(--surface); }
.contact-card span { color: var(--gold); display: block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.order-layout { padding: clamp(48px,7vw,96px); display: grid; grid-template-columns: minmax(320px, 500px) 1fr; gap: 34px; align-items: start; }
.sale-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.form-card { padding: 28px; display: grid; gap: 13px; background: var(--surface); }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 14px 15px; font: inherit; }
input:focus, textarea:focus, select:focus { outline: 1px solid var(--rose); border-color: var(--rose); }
label { color: #4c4640; font-weight: 600; }
span.field-validation-error, .field-validation-error, .validation-summary { color: #b44040; font-size: 13px; }
.alert { padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--line); }
.alert.success { background: rgba(169, 226, 184, .22); }

.site-footer { padding: 42px clamp(18px, 6vw, 96px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 34px; align-items: center; color: var(--muted); background: var(--surface); }
.footer-mini-brand { min-width: 0; }
.footer-brand p { max-width: 360px; margin-bottom: 0; }
.footer-grid { display: grid; gap: 10px 28px; grid-template-columns: repeat(2, auto); color: #4d4742; }
.footer-contact { text-align: right; }
.footer-contact p { margin: 5px 0; }

@media (max-width: 1100px) {
    .site-header { align-items: flex-start; }
    .mobile-menu-button { display: block; }
    .main-nav { display: none; position: absolute; left: 18px; right: 18px; top: 78px; padding: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
    body.menu-open .main-nav { display: flex; }
    .nav-cta { min-width: auto; }
    .hero, .about-preview, .bio-intro, .bio-story, .bio-story.reverse, .bio-award, .detail-layout, .order-layout, .biography-hero, .site-footer { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .hero-showcase { min-height: 520px; }
    .category-grid.refined { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid, .art-grid, .material-grid, .bio-style-grid, .contact-grid, .sale-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-info { position: static; }
    .footer-contact { text-align: left; }
}
@media (max-width: 720px) {
    .brand { min-width: 0; }
    .brand-copy strong { font-size: 18px; }
    .hero-frame-main, .hero-frame-small { position: relative; width: 100%; height: 300px; inset: auto; margin-bottom: 18px; }
    .hero-showcase { min-height: auto; }
    .category-grid.refined, .category-grid, .art-grid, .material-grid, .bio-style-grid, .contact-grid, .sale-list, .two-columns, .cards-columns { grid-template-columns: 1fr; }
    .section-head { display: block; }
    .post-card { grid-template-columns: 1fr; }
    .post-card img { width: 100%; height: 220px; }
    .about-photo-stack { min-height: auto; display: grid; gap: 18px; }
    .about-photo-stack .photo-main, .about-photo-stack .photo-overlap { position: static; width: 100%; height: auto; }
    .bio-image-panel.collage { grid-template-columns: 1fr; }
    .order-cta { display: block; }
    .order-cta .button { margin-top: 20px; }
    dl { grid-template-columns: 1fr; }
}

.art-caption { margin:6px 0 10px; color:var(--rose); font-family:var(--serif); font-size:20px; line-height:1.2; }
.detail-caption { margin:14px 0 0; padding:14px 18px; background:var(--surface); border-top:1px solid var(--line); color:var(--rose); font-family:var(--serif); font-size:24px; line-height:1.3; }
.gallery-categories { margin-bottom:52px; }
.gallery-art-head { margin-top:20px; }
.bio-admin-text { background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.bio-admin-text p:last-child { max-width:980px; color:var(--muted); font-size:18px; }

/* Release fix: меню страниц в нужном порядке, но компактное — как в предыдущих версиях. */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 2.8vw, 42px);
    min-height: 82px;
    padding: 12px clamp(18px, 4vw, 72px);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.header-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    border-bottom: 0;
    flex: 0 0 auto;
}
.word-style-nav {
    width: auto;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 1.15vw, 22px);
    border: 0;
    font-family: var(--sans);
    font-size: clamp(10px, .8vw, 12px);
    font-weight: 600;
    letter-spacing: .075em;
    text-transform: uppercase;
    color: #55504b;
}
.word-style-nav a,
.word-style-nav .nav-cta {
    min-height: 0;
    min-width: 0;
    padding: 9px 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 0;
    background: transparent;
    color: #55504b;
    line-height: 1.28;
    white-space: normal;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.word-style-nav a:first-child { border-left: 0; }
.word-style-nav a::after,
.word-style-nav a:not(.nav-cta)::after {
    content: "";
    display: block !important;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .2s ease;
    transform-origin: center;
}
.word-style-nav a:hover::after { transform: scaleX(1); }
.word-style-nav a:hover,
.word-style-nav .nav-cta:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: none;
}
.word-style-nav .nav-cta {
    padding: 10px 16px !important;
    border: 1px solid var(--rose);
    color: var(--ink);
    letter-spacing: .08em;
}
.word-style-nav .nav-cta::after { display: none !important; }
.word-style-nav .nav-cta:hover {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}
/* Длинный последний пункт остаётся последним по порядку, но занимает меньше места. */
.word-style-nav a:last-child {
    max-width: 188px;
    font-size: clamp(10px, .75vw, 11px);
    letter-spacing: .055em;
}
.filters a[href="/gallery"] { cursor: pointer; }

@media (max-width: 1180px) {
    .site-header { align-items: flex-start; }
    .mobile-menu-button { display: block; }
    .main-nav.word-style-nav {
        display: none;
        position: absolute;
        left: 18px;
        right: 18px;
        top: 78px;
        width: auto;
        padding: 8px 0;
        background: var(--surface);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        font-size: 13px;
        z-index: 50;
    }
    body.menu-open .main-nav.word-style-nav { display: flex; }
    .word-style-nav a,
    .word-style-nav .nav-cta,
    .word-style-nav a:last-child {
        max-width: none;
        min-height: 44px;
        border: 0;
        border-bottom: 1px solid var(--line);
        justify-content: flex-start;
        text-align: left;
        padding: 12px 18px !important;
        font-size: 13px;
        letter-spacing: .06em;
    }
    .word-style-nav a:last-child { border-bottom: 0; }
    .word-style-nav .nav-cta {
        border-bottom: 1px solid var(--line);
        color: #55504b;
    }
    .word-style-nav a::after { display: none !important; }
}



/* --- Visual refinement: luxury brand header with uploaded logo --- */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
body{
    background:
        radial-gradient(circle at 6% 0%, color-mix(in srgb, var(--rose) 10%, transparent), transparent 28%),
        radial-gradient(circle at 94% 10%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 26%),
        linear-gradient(180deg, var(--surface), var(--paper-2) 70%, var(--surface));
}
.refined-header{
    position:sticky;
    top:0;
    z-index:40;
    min-height:90px;
    padding:14px clamp(18px,4vw,72px);
    background:color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom:1px solid rgba(31,29,27,.08);
    box-shadow:0 10px 30px rgba(65,53,41,.05);
}
.refined-brand-row{gap:18px;}
.logo-brand{display:flex;align-items:center;min-width:0;}
.brand-logo-image{
    display:block;
    width:min(440px, 34vw);
    min-width:260px;
    height:auto;
    filter:drop-shadow(0 1px 0 rgba(255,255,255,.7));
}
.refined-nav{
    gap:clamp(10px, 1vw, 18px);
    font-size:11px;
    letter-spacing:.10em;
    color:#5d5751;
}
.refined-nav a,
.refined-nav .nav-cta{
    padding:10px 2px !important;
    line-height:1.22;
}
.refined-nav a:last-child{
    max-width:210px;
    font-size:10.5px;
}
.refined-nav .nav-cta{
    padding:12px 18px !important;
    border-radius:999px;
    border:1px solid rgba(185,138,67,.5);
    background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 95%, transparent), color-mix(in srgb, var(--paper-2) 95%, transparent));
    color:#322c27;
    box-shadow:0 8px 24px rgba(185,138,67,.12);
}
.refined-nav .nav-cta:hover{
    background:linear-gradient(180deg, rgba(201,141,141,.95), rgba(185,138,67,.95));
    color:#fff;
    border-color:transparent;
}
.hero{
    padding-top:clamp(78px,9vw,132px);
}
.hero h1{max-width:700px;}
.hero-actions .button{border-radius:999px;}
.hero-frame{border-radius:26px;overflow:hidden;}
.category-card,.art-card,.post-card,.contact-card,.form-card{border-radius:var(--radius);}
.category-card img,.art-card img,.post-card img{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius);}
.section-head h2, .content-page h1, .article-page h1, .detail-info h1{letter-spacing:-.02em;}
.refined-footer{
    grid-template-columns:1.15fr auto .9fr;
    gap:28px;
    padding-top:34px;
    padding-bottom:34px;
}
.refined-footer-brand p{max-width:420px;}
.footer-logo-brand{display:inline-flex;align-items:center;min-width:0;}
.footer-logo-image{display:block;width:min(320px, 100%);height:auto;}
.footer-grid a{position:relative;padding-bottom:2px;}
.footer-grid a::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .2s ease;}
.footer-grid a:hover::after{transform:scaleX(1);}
@media (max-width: 1180px){
  .brand-logo-image{width:min(360px, 60vw);min-width:220px;}
  .refined-header{min-height:82px;}
  .main-nav.word-style-nav.refined-nav{top:76px;}
}
@media (max-width: 720px){
  .brand-logo-image{width:min(280px, 68vw);min-width:0;}
  .refined-header{padding:12px 16px;}
  .refined-footer{grid-template-columns:1fr;}
  .footer-logo-image{width:min(260px, 100%);}
}


/* --- Typography-based premium wordmark --- */
.wordmark-brand,
.footer-wordmark-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.wordmark-monogram {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -.04em;
    color: #211e1b;
    line-height: 1;
}
.wordmark-monogram::before {
    content: "";
    position: absolute;
    left: -4px;
    right: -6px;
    bottom: 7px;
    height: 18px;
    border-bottom: 2px solid rgba(185,138,67,.82);
    border-radius: 50%;
    transform: rotate(-11deg);
}
.wordmark-monogram::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(180deg, #d9b26a, #b98a43);
    box-shadow: 0 2px 5px rgba(185,138,67,.28);
}
.wordmark-copy {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.wordmark-copy strong {
    display: block;
    font-family: var(--serif);
    font-size: clamp(26px, 2.2vw, 34px);
    font-weight: 500;
    letter-spacing: .08em;
    line-height: .95;
    text-transform: uppercase;
    color: #2b2724;
    white-space: nowrap;
}
.wordmark-copy small {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: #8d857f;
    white-space: nowrap;
}
.wordmark-copy small::before,
.wordmark-copy small::after {
    content: "";
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185,138,67,.75));
}
.wordmark-copy small::after {
    background: linear-gradient(90deg, rgba(185,138,67,.75), transparent);
}
.refined-header {
    min-height: 94px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.refined-brand-row {
    align-items: center;
}
.refined-nav {
    gap: clamp(10px, .95vw, 18px);
    font-size: 11px;
}
.refined-nav a:last-child {
    max-width: 220px;
}
.nav-cta {
    font-family: var(--sans);
    font-weight: 600;
}
.refined-footer-brand .wordmark-copy strong {
    font-size: clamp(23px, 1.7vw, 28px);
}
.refined-footer-brand .wordmark-copy small {
    font-size: 10px;
}
.footer-wordmark-brand .wordmark-monogram {
    width: 52px;
    height: 52px;
    font-size: 34px;
}
@media (max-width: 1180px) {
    .wordmark-copy strong {
        font-size: clamp(22px, 4vw, 28px);
    }
    .wordmark-copy small {
        font-size: 10px;
        letter-spacing: .30em;
        gap: 8px;
    }
    .wordmark-copy small::before,
    .wordmark-copy small::after {
        width: 24px;
    }
}
@media (max-width: 720px) {
    .wordmark-monogram {
        width: 48px;
        height: 48px;
        font-size: 30px;
    }
    .wordmark-copy strong {
        font-size: 18px;
        letter-spacing: .06em;
    }
    .wordmark-copy small {
        font-size: 9px;
        letter-spacing: .22em;
    }
    .wordmark-copy small::before,
    .wordmark-copy small::after {
        display: none;
    }
}


/* --- Refined overlapping EZ monogram --- */
.wordmark-brand,
.footer-wordmark-brand { gap: 16px; }
.wordmark-monogram {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 78px;
    height: 64px;
    overflow: visible;
}
.wordmark-monogram .letter {
    position: absolute;
    font-family: var(--serif);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -.06em;
    text-transform: uppercase;
    user-select: none;
}
.wordmark-monogram .letter-e {
    left: 0;
    top: 2px;
    font-size: 53px;
    color: #1f1d1b;
}
.wordmark-monogram .letter-z {
    right: 2px;
    top: -2px;
    font-size: 56px;
    color: #c79a53;
    transform: scaleX(.96);
}
.wordmark-monogram::before {
    content: "";
    position: absolute;
    left: -8px;
    right: -10px;
    bottom: 6px;
    height: 22px;
    border-bottom: 2px solid rgba(201,141,141,.95);
    border-radius: 50%;
    transform: rotate(-10deg);
}
.wordmark-monogram::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(180deg,#ddbb79,#b98a43);
    box-shadow: 0 3px 8px rgba(185,138,67,.28);
}
.wordmark-copy strong {
    font-size: clamp(25px, 2.15vw, 34px);
    font-weight: 500;
    letter-spacing: .085em;
}
.wordmark-copy small {
    margin-top: 3px;
}
.footer-wordmark-brand .wordmark-monogram {
    width: 66px;
    height: 54px;
}
.footer-wordmark-brand .wordmark-monogram .letter-e {
    font-size: 45px;
}
.footer-wordmark-brand .wordmark-monogram .letter-z {
    font-size: 47px;
}
.footer-wordmark-brand .wordmark-monogram::before {
    bottom: 5px;
    height: 18px;
}
.footer-wordmark-brand .wordmark-monogram::after {
    width: 9px;
    height: 9px;
    right: 10px;
}
@media (max-width: 720px) {
    .wordmark-brand, .footer-wordmark-brand { gap: 12px; }
    .wordmark-monogram {
        width: 60px;
        height: 48px;
    }
    .wordmark-monogram .letter-e { font-size: 40px; }
    .wordmark-monogram .letter-z { font-size: 42px; }
    .wordmark-monogram::before {
        left: -6px;
        right: -8px;
        bottom: 5px;
        height: 16px;
    }
    .wordmark-monogram::after {
        width: 8px;
        height: 8px;
        right: 8px;
    }
}


/* --- Exact uploaded logo styling --- */
.exact-logo-brand { display:inline-flex; align-items:center; min-width:0; }
.exact-logo-image {
    display:block;
    width:min(590px, 44vw);
    min-width:300px;
    height:auto;
}
.refined-header {
    min-height:96px;
    padding-top:10px;
    padding-bottom:10px;
}
.refined-brand-row {
    gap:16px;
    min-width:0;
}
.refined-nav {
    gap:clamp(10px, .95vw, 18px);
    font-size:11px;
    flex:1 1 auto;
}
.refined-nav a:last-child { max-width:220px; }
.footer-exact-logo { margin-bottom:8px; }
.footer-logo-image-exact {
    width:min(430px, 100%);
    min-width:0;
}
@media (max-width: 1180px) {
    .exact-logo-image {
        width:min(460px, 58vw);
        min-width:220px;
    }
}
@media (max-width: 720px) {
    .exact-logo-image {
        width:min(300px, 72vw);
        min-width:0;
    }
    .footer-logo-image-exact {
        width:min(280px, 100%);
    }
}


/* --- Final logo sizing fix: previous compact size, new elegant style --- */
.exact-logo-image {
    width: min(350px, 28vw);
    min-width: 220px;
    height: auto;
}
.refined-header {
    min-height: 80px;
    padding-top: 9px;
    padding-bottom: 9px;
}
.refined-brand-row {
    gap: 14px;
}
.refined-nav {
    gap: clamp(10px, .9vw, 18px);
    font-size: 11px;
}
.refined-nav .nav-cta {
    padding: 10px 16px !important;
}
.footer-logo-image-exact {
    width: min(260px, 100%);
}
@media (max-width: 1180px) {
    .exact-logo-image {
        width: min(290px, 52vw);
        min-width: 190px;
    }
    .refined-header { min-height: 74px; }
}
@media (max-width: 720px) {
    .exact-logo-image {
        width: min(220px, 66vw);
        min-width: 0;
    }
    .footer-logo-image-exact { width: min(200px, 100%); }
}

/* --- Корзина --- */
button.button,
button.small-link {
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
button.small-link:disabled {
    opacity: .6;
    cursor: default;
}
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--rose);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}
.nav-cta:hover .cart-badge {
    background: #fff;
    color: var(--rose);
}
.cart-panel h2 { font-size: 26px; margin-bottom: 18px; }
.cart-lines { display: grid; gap: 18px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; padding-bottom: 0; }
.cart-line img { width: 84px; height: 84px; object-fit: cover; background: var(--paper-2); }
.cart-line-body strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 400; margin-bottom: 4px; }
.cart-line-price { display: block; color: var(--gold); font-size: 13px; margin-bottom: 8px; }
.cart-line-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart-line-controls label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cart-line-controls input[type="number"] { width: 56px; padding: 4px 6px; border: 1px solid var(--line); background: var(--surface); }

/* --- Галерея работ учеников --- */
.js-student-photo { cursor: zoom-in; }
