:root {
    --bg: #ffffff;
    --bg-soft: #f5efe9;
    --ink: var(--dark-a);
    --ink-soft: #7d7269;
    --primary: #a97264;
    --primary-dark: #8a574a;
    --primary-soft: #f2e2dc;
    --accent: #bd8472;
    --accent-dark: #8f5d4f;
    --accent-soft: #f6e9e3;
    --line: #e7ded4;
    --white: #ffffff;
    /* светлые градиенты секций */
    --grad-a: var(--grad-a);
    --grad-b: var(--grad-b);
    /* тёмные градиенты секций */
    --dark-a: var(--dark-a);
    --dark-b: var(--dark-b);
    --dark-c: var(--dark-c);
    /* текст на тёмном фоне */
    --on-dark: var(--on-dark);
    /* тёплые серые (таупы) */
    --taupe-1: var(--taupe-1);
    --taupe-2: var(--taupe-2);
    --taupe-3: var(--taupe-3);
    --taupe-4: var(--taupe-4);
    --taupe-5: var(--taupe-5);
    /* оверлей (rgba r,g,b) */
    --overlay-rgb: 43, 38, 34;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 1px 2px rgba(61, 56, 52, .05), 0 8px 24px rgba(61, 56, 52, .07);
    --shadow-lg: 0 4px 8px rgba(61, 56, 52, .07), 0 20px 48px rgba(61, 56, 52, .14);
    --container: 1200px;
    --font: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all .18s ease;
    text-align: center;
    line-height: 1.2;
}
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary-dark); color: var(--white); }
.btn--primary:hover { background: var(--primary); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: var(--white); color: var(--primary-dark); }
.btn--light:hover { transform: translateY(-1px); }

/* ===== Topbar ===== */
.topbar { background: var(--ink); color: var(--taupe-1); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar__info { display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__sep { opacity: .4; }
.topbar__social { display: flex; align-items: center; gap: 16px; }
.topbar__social a { color: var(--taupe-1); font-weight: 500; }
.topbar__social a:hover { color: var(--accent); }
.topbar__email { white-space: nowrap; }

/* ===== Header ===== */
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); }
.brand__logo { width: auto; height: 60px; object-fit: contain; }
.brand__name {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 18px;
    border-left: 2px solid var(--accent);
    font-family: var(--font);
}
.brand__name b {
    display: block;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ink);
    text-transform: uppercase;
}

.header__cta { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header__phone { color: var(--ink); font-weight: 700; font-size: 16px; white-space: nowrap; }
.header__phone:hover { color: var(--primary); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== Main navigation (below header) ===== */
.mainnav { position: sticky; top: 0; z-index: 49; background: var(--ink); box-shadow: var(--shadow); }
.mainnav__inner { display: flex; align-items: center; gap: 2px; overflow-x: auto; }
.mainnav a {
    color: var(--taupe-5);
    font-size: 14.5px;
    font-weight: 500;
    padding: 13px 16px;
    white-space: nowrap;
    transition: all .15s;
    border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: var(--white); }
.mainnav a.is-active { color: var(--white); border-bottom-color: var(--accent); background: rgba(255,255,255,.06); }

/* ===== Hero ===== */
.hero { background: linear-gradient(180deg, var(--grad-a) 0%, var(--grad-b) 100%); padding-top: 48px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.3fr .95fr; gap: 48px; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary-dark); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero__title { font-family: var(--font); font-size: clamp(30px, 4.4vw, 46px); margin: 20px 0 16px; }
.hero__title .accent { color: var(--primary); }
.hero__subtitle { color: var(--ink-soft); font-size: 17px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero__chips { list-style: none; display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; padding: 0; }
.hero__chips li {
    font-size: 13px; color: var(--ink-soft); background: var(--white);
    border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.hero__chips b { color: var(--ink); }

.hero__visual { position: relative; }
.hero__stamp {
    position: absolute; top: 18px; left: 8px;
    background: var(--accent); color: var(--ink);
    border-radius: 12px; padding: 10px 16px; box-shadow: var(--shadow);
}
.hero__stamp b { display: block; font-size: 22px; line-height: 1.1; }
.hero__stamp span { font-size: 12px; font-weight: 600; }

.hero-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
}
.hero-form h3 { font-size: 19px; margin-bottom: 8px; }
.hero-form__sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.hero-form .lead-form input[type="text"], .hero-form .lead-form input[type="tel"] { width: 100%; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; padding-bottom: 40px; }
.stat {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px;
}
.stat b { display: block; font-size: 26px; color: var(--primary); }
.stat span { color: var(--ink-soft); font-size: 13.5px; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section--accent { background: linear-gradient(135deg, var(--dark-a) 0%, var(--dark-b) 60%, var(--dark-c) 100%); color: var(--white); }
.section--cta { background: var(--ink); color: var(--white); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; }
.kicker.light { color: var(--on-dark); }
.section__title { margin-bottom: 36px; font-family: var(--font); }
.section__title.light { color: var(--white); }
.section__more { margin-top: 28px; text-align: center; }
.section__more a { font-weight: 600; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Section head ===== */
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head .section__title { margin-bottom: 14px; }
.section__lead { color: var(--ink-soft); font-size: 16.5px; }

/* ===== Posts grid (blog) ===== */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
    position: relative;
    display: flex; flex-direction: column; gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--ink);
    overflow: hidden;
    transition: all .22s ease;
}
.post-card::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity .22s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card:hover::before { opacity: 1; }
.post-card__thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    margin: -12px -12px 4px;
    aspect-ratio: 1.618;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 999px;
    padding: 5px 12px;
}
.post-card__title { font-size: 19px; line-height: 1.3; }
.post-card__text { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.post-card__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 14px; border-top: 1px solid var(--line);
    margin-top: 4px;
}
.post-card__read {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 14px; color: var(--ink-soft);
    transition: color .18s ease;
}
.post-card:hover .post-card__read { color: var(--primary); }
.post-card__read svg { transition: transform .18s ease; }
.post-card:hover .post-card__read svg { transform: translateX(3px); }
.post-card__meta { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }

/* ===== Reviews ===== */
.review { display: flex; flex-direction: column; gap: 14px; }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__ava {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.review__head b { display: block; font-size: 15px; }
.review__head small { color: var(--ink-soft); font-size: 12.5px; }
.review__stars { margin-left: auto; color: var(--accent); font-size: 14px; }
.review p { color: var(--ink-soft); font-size: 14.5px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
    background: var(--bg-soft); border-radius: var(--radius);
    padding: 24px;
}
.step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-dark); color: var(--white);
    font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 14px; }

/* ===== CTA ===== */
.cta-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta__info p { color: rgba(255, 255, 255, .85); margin-bottom: 20px; }
.cta__phone { display: inline-block; font-size: 24px; font-weight: 800; color: var(--white); }
.cta__phone:hover { color: var(--on-dark); }
.cta__form {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 30px; box-shadow: var(--shadow-lg);
}
.cta__form h3 { color: var(--ink); margin-bottom: 18px; }

/* ===== Forms ===== */
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; }
.lead-form label > span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.lead-form input[type="text"], .lead-form input[type="tel"] {
    border: 1px solid var(--line); border-radius: 10px;
    padding: 13px 14px; font-size: 15px; font-family: var(--font);
    transition: border-color .15s;
}
.lead-form input:focus { outline: none; border-color: var(--primary); }
.lead-form .check { flex-direction: row; align-items: flex-start; gap: 10px; }
.lead-form .check input { margin-top: 3px; }
.lead-form .check span { font-size: 12.5px; color: var(--ink-soft); }
.form__msg { font-size: 14px; font-weight: 600; min-height: 20px; }
.form__msg.is-error { color: #dc2626; }
.form__msg.is-success { color: #16a34a; }

/* ===== Modals ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(var(--overlay-rgb), .5); }
.modal__panel {
    position: relative; background: var(--white); border-radius: var(--radius-lg);
    max-width: 460px; width: 100%; padding: 32px; box-shadow: var(--shadow-lg);
    max-height: 90vh; overflow-y: auto;
}
.modal__panel--wide { max-width: 640px; }
.modal__close { position: absolute; top: 14px; right: 18px; font-size: 26px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink-soft); }
.modal__panel h3 { margin: 6px 0 10px; }
.modal__sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.modal__text { color: var(--ink-soft); font-size: 14.5px; }
.modal__text p { margin-bottom: 12px; }

/* ===== Выбранная картина в модалке ===== */
.buy-info {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
}
.buy-info img { width: 56px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.buy-info div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.buy-info b { font-size: 15px; line-height: 1.3; }
.buy-info span { font-size: 14px; font-weight: 700; color: var(--primary-dark); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--taupe-2); margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 56px 20px 40px; }
.footer__brand b { display: block; color: var(--white); font-size: 18px; margin-bottom: 10px; }
.footer__brand p { font-size: 14px; max-width: 320px; }
.footer__rating { margin-top: 14px; }
.footer__rating a { color: var(--on-dark); }
.footer__col h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer__col a { display: block; color: var(--taupe-2); font-size: 14px; margin-bottom: 8px; }
.footer__col a:hover { color: var(--white); }
.footer__addr, .footer__hours { font-size: 14px; margin: 6px 0; }
.footer__social { display: flex; gap: 12px; margin-top: 10px; }
.footer__social a { font-weight: 600; }
.footer__bottom { padding: 22px 20px 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: var(--taupe-4); }
.footer__disclaimer { margin-top: 8px; }

/* ===== Page hero (inner pages) ===== */
.page-hero { background: linear-gradient(180deg, var(--grad-a) 0%, var(--grad-b) 100%); padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--font); font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 10px; }
.page-hero p { color: var(--ink-soft); font-size: 16px; max-width: 720px; }
.breadcrumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--primary); }

/* ===== Blog ===== */
.blog-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.blog-filters a {
    padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    background: var(--bg-soft); color: var(--ink-soft); border: 1px solid var(--line);
}
.blog-filters a:hover, .blog-filters a.is-active { background: var(--primary-dark); color: var(--white); border-color: var(--primary-dark); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination__item {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 14.5px; font-weight: 600;
    color: var(--ink);
    background: var(--white);
    transition: all .15s ease;
}
.pagination__item:hover { border-color: var(--primary); color: var(--primary); }
.pagination__item.is-active { background: var(--primary-dark); color: var(--white); border-color: var(--primary-dark); }
.pagination__item.is-disabled { opacity: .45; pointer-events: none; }

.post-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.post-meta { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 20px; }
.post-meta b { color: var(--ink); }

/* ===== About section (home / about) ===== */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-photo { position: relative; }
.about-photo img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-photo__name {
    position: absolute; left: 16px; right: 16px; bottom: 16px;
    background: linear-gradient(180deg, transparent, rgba(var(--overlay-rgb), .88));
    color: var(--white);
    border-radius: 12px;
    padding: 22px 18px 14px;
}
.about-photo__name b { display: block; font-size: 17px; }
.about-photo__name span { font-size: 13px; opacity: .92; }
.about-text h2 { font-family: var(--font); font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 16px; }
.about-text__lead { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 18px; }
.about-text__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; padding: 0; }
.about-text__list li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink); }
.about-text__list li::before {
    content: '✓';
    position: absolute; left: 0; top: 0;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent-dark);
    border-radius: 50%; font-size: 12px; font-weight: 700;
}

/* ===== SEO text block ===== */
.seo-text {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.7;
}
.seo-text h2 { font-size: 22px; margin-bottom: 16px; color: var(--ink); font-family: var(--font); }
.seo-text h3 { font-size: 17px; margin: 24px 0 10px; color: var(--ink); font-family: var(--font); }
.seo-text p { margin-bottom: 14px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .hero__form-col { max-width: 480px; margin: 0 auto; width: 100%; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-photo { max-width: 420px; margin: 0 auto; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .cta-wrap { grid-template-columns: 1fr; }
    .post-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .topbar__info span:nth-child(n+2) { display: none; }
    .topbar__social { gap: 12px; }
    .topbar__email { display: none; }
    .brand__logo { height: 44px; }
    .brand__name { padding-left: 12px; }
    .brand__name b { font-size: 12.5px; }
    .mainnav { position: static; }
    .mainnav__inner { display: none; flex-direction: column; align-items: stretch; padding: 8px 0; }
    .mainnav__inner.is-open { display: flex; }
    .mainnav a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .header__phone { font-size: 14px; }
    .burger { display: flex; }
    .posts-grid { grid-template-columns: 1fr; }
    .grid--2, .grid--3 { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
}

/* ===== Article page ===== */
.article-hero {
    background: linear-gradient(180deg, var(--grad-a) 0%, var(--grad-b) 100%);
    padding: 44px 0 40px;
    border-bottom: 1px solid var(--line);
}
.breadcrumbs__sep { margin: 0 8px; color: var(--line); }
.article-hero__title {
    font-family: var(--font);
    font-size: clamp(26px, 3.8vw, 42px);
    line-height: 1.22;
    max-width: 820px;
    margin-bottom: 16px;
}
.article-hero__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 500;
    color: var(--ink-soft);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 13px;
}
.meta-pill svg { color: var(--primary); }

.article-section .article-main { min-width: 0; }

/* ===== Table of contents ===== */
.toc {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 30px;
}
.toc__title {
    display: block;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}
.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc a {
    display: inline-flex; align-items: baseline; gap: 10px;
    font-size: 14.5px; line-height: 1.45; color: var(--ink);
    padding: 4px 0;
    transition: color .15s;
}
.toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 11.5px; font-weight: 700; color: var(--accent);
}
.toc a:hover { color: var(--primary); }

/* ===== Article cover ===== */
.article-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
}
.article-cover img { width: 100%; height: auto; display: block; object-fit: cover; }

/* ===== Article body ===== */
.article-body { font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.article-body h2 {
    font-size: 24px;
    color: var(--ink);
    margin: 38px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 96px;
}
.article-body h3 {
    font-size: 19px;
    color: var(--ink);
    margin: 28px 0 10px;
    scroll-margin-top: 96px;
}
.article-body h4 {
    font-size: 17px;
    color: var(--ink);
    margin: 24px 0 8px;
    scroll-margin-top: 96px;
}
.article-body p { margin-bottom: 16px; }
.article-body b, .article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--primary); border-bottom: 1px solid transparent; }
.article-body a:hover { border-bottom-color: var(--primary); }
.article-body ul, .article-body ol { padding-left: 1.5em; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; }
.article-body ul li::marker { color: var(--accent); }
.article-body ol li::marker { color: var(--primary); font-weight: 700; }
.article-body img { border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow); }
.article-body blockquote {
    margin: 22px 0;
    padding: 16px 22px;
    background: var(--primary-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--ink);
    font-style: italic;
}
.article-body blockquote p { margin-bottom: 0; }

/* ===== Картины в статье ===== */
.post-paintings { margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.post-paintings .section__head { margin-bottom: 20px; }
.post-paintings .painting-grid { grid-template-columns: repeat(3, 1fr); }

/* ===== Author card ===== */
.author-card {
    display: flex; gap: 22px; align-items: flex-start;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-top: 40px;
}
.author-card__ava {
    flex-shrink: 0;
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 22px; letter-spacing: .02em;
}
.author-card__label {
    display: block;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--accent-dark);
}
.author-card__name { display: block; font-size: 17px; color: var(--ink); margin: 4px 0 0; }
.author-card__role { display: block; font-size: 13.5px; color: var(--ink-soft); }
.author-card__text { font-size: 14.5px; color: var(--ink-soft); margin: 12px 0 16px; }

/* ===== Article nav ===== */
.article-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.article-nav a {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 14.5px; color: var(--ink);
    transition: color .15s;
}
.article-nav a:hover { color: var(--primary); }
.article-nav__next { margin-left: auto; text-align: right; max-width: 60%; }
.article-nav__next svg { margin-left: auto; flex-shrink: 0; }

/* ===== Sidebar cards ===== */
.side-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.side-card .btn--block { margin-top: 16px; }
.side-card__title { font-size: 16px; color: var(--ink); margin-bottom: 14px; }
.side-card__text { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }
.side-links { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.side-links a {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 9px 8px; border-radius: 8px;
    font-size: 14px; line-height: 1.45; color: var(--ink);
    transition: all .15s;
}
.side-links a:hover { background: var(--primary-soft); color: var(--primary); }
.side-links a span { min-width: 0; }
.side-links svg { flex-shrink: 0; margin-top: 4px; color: var(--accent); transition: transform .15s; }
.side-links a:hover svg { transform: translateX(3px); }
.side-contact { display: flex; flex-direction: column; gap: 12px; }
.side-contact__phone {
    font-size: 17px; font-weight: 700; color: var(--ink);
    white-space: nowrap;
}
.side-contact__phone:hover { color: var(--primary); }
.side-contact__row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.side-contact__row svg { flex-shrink: 0; margin-top: 3px; color: var(--primary); }

/* ===== Article CTA ===== */
.article-cta { margin-top: 0; }

@media (max-width: 1024px) {
    .article-nav__next { max-width: 55%; }
}

@media (max-width: 768px) {
    .author-card { flex-direction: column; align-items: center; text-align: center; }
    .author-card__body { text-align: center; }
    .article-nav { flex-direction: column; align-items: flex-start; }
    .article-nav__next { max-width: 100%; margin-left: 0; text-align: left; }
    .article-nav__next svg { margin-left: 0; }
}

/* ===== About page ===== */
.section--soft { background: var(--bg-soft); }

/* Тёмный блок статистики (крупные золотые цифры) */
.stats--dark {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 0;
    padding: 44px 16px;
    background: linear-gradient(150deg, var(--dark-a) 0%, var(--dark-b) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.stats--dark .stat {
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0;
    padding: 10px 28px;
    text-align: center;
}
.stats--dark .stat:first-child { border-left: 0; }
.stats--dark .stat b { color: var(--accent); font-size: 34px; line-height: 1.1; }
.stats--dark .stat span { color: var(--taupe-3); font-size: 13.5px; }

/* Принципы работы (карточки в стиле .svc) */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principle {
    position: relative;
    display: flex; flex-direction: column; gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    overflow: hidden;
    transition: all .22s ease;
}
.principle::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity .22s ease;
}
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.principle:hover::before { opacity: 1; }
.principle__icon {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    transition: all .22s ease;
}
.principle:hover .principle__icon { background: var(--primary); color: var(--white); }
.principle h3 { font-size: 16.5px; line-height: 1.3; }
.principle p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* Дополнительные абзацы в блоке руководителя */
.about-text__body { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }

/* SEO-текст в отдельной секции без верхнего отступа */
.about-seo { margin-top: 0; }

@media (max-width: 1024px) {
    .stats--dark { grid-template-columns: repeat(2, 1fr); padding: 28px 8px; }
    .stats--dark .stat:nth-child(odd) { border-left: 0; }
    .stats--dark .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
    .principles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .stats--dark { grid-template-columns: 1fr; }
    .stats--dark .stat { border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 18px 12px; }
    .stats--dark .stat:last-child { border-bottom: 0; }
    .principles { grid-template-columns: 1fr; }
}

/* ===== Шрифты ===== */
:root {
    --font: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
    --art-radius: 18px;
}
h1, h2, h3, h4,
.hero__title, .section__title, .page-hero h1, .article-hero__title,
.article-body h2, .article-body h3, .article-body h4,
.about-text h2, .seo-text h2, .seo-text h3,
.post-card__title, .work-head__title, .painting-detail__title {
    font-family: var(--font-heading);
    letter-spacing: .01em;
}

/* ===== Хедер (арт) ===== */
.header--art { position: relative; }
.header__inner--art { gap: 22px; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__mark {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff;
    border-radius: 12px;
    flex-shrink: 0;
}
.logo__text { font-weight: 800; font-size: 16px; line-height: 1.15; display: flex; flex-direction: column; }
.logo__text small { font-weight: 500; font-size: 11px; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }

.mainnav--art { position: sticky; top: 0; z-index: 49; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.05); border-top: 1px solid var(--line); }
.mainnav--art .mainnav__inner { display: flex; align-items: center; gap: 2px; padding-top: 6px; padding-bottom: 6px; }
.mainnav--art a { color: var(--ink-soft); font-size: 15px; font-weight: 500; padding: 10px 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.mainnav--art a:hover { color: var(--ink); background: transparent; }
.mainnav--art a.is-active { color: var(--ink); border-bottom-color: var(--accent); background: transparent; }

/* ===== Hero (арт) ===== */
.hero--art { padding-top: 56px; }
.hero--art .hero__title { font-size: clamp(32px, 4.4vw, 50px); }
.hero__visual { position: relative; }
.artframe {
    position: relative;
    max-width: 420px;
    margin-left: auto;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: transform .3s ease;
}
.artframe:hover { transform: rotate(0deg) scale(1.01); }
.artframe img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; }
.floatcard {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}
.floatcard--left { top: 26px; left: 0; transform: rotate(-4deg); }
.floatcard--right { bottom: 34px; right: -6px; transform: rotate(3deg); }

/* ===== Сетка картин ===== */
.painting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.painting-card {
    display: flex; flex-direction: column; gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--art-radius);
    overflow: hidden;
    color: var(--ink);
    transition: transform .22s ease, box-shadow .22s ease;
}
.painting-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.painting-card__media { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-soft); }
.painting-card__track { position: relative; display: block; width: 100%; height: 100%; }
.painting-card__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.02);
    transition: opacity .35s ease, transform .5s ease;
}
.painting-card__img.is-active { opacity: 1; transform: scale(1); }
.painting-card:hover .painting-card__img.is-active { transform: scale(1.05); }
.painting-card__badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(var(--overlay-rgb), .78);
    color: var(--white);
    font-size: 12px; font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    z-index: 3;
}
.painting-card__badge--sale { background: var(--primary); color: #fff; }
.painting-card__badge--sold { background: rgba(var(--overlay-rgb), .78); }
.painting-card__badge--reserved { background: #b45309; color: #fff; }
.painting-card__count {
    position: absolute; right: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    font-size: 12px; font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    z-index: 3;
}
.painting-card__body { display: flex; flex-direction: column; gap: 3px; padding: 6px 18px 18px; }
.painting-card__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.painting-card__tech { font-size: 13.5px; color: var(--ink-soft); }
.painting-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.painting-card__price { font-size: 15px; font-weight: 800; color: var(--primary-dark); }
.painting-card__buy {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff;
    font-size: 13.5px; font-weight: 700;
    padding: 8px 16px;
    border: 0; border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.painting-card__buy:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== Сетка работ ===== */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
    display: flex; flex-direction: column; gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--art-radius);
    overflow: hidden;
    color: var(--ink);
    transition: transform .22s ease, box-shadow .22s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.work-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--bg-soft); color: var(--ink-soft); font-size: 14px; }
.work-card__body { display: flex; flex-direction: column; gap: 3px; padding: 6px 18px 18px; }
.work-card__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.work-card__sub { font-size: 13.5px; color: var(--ink-soft); }
.work-card__foot { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.work-card__client, .work-card__count { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: var(--bg-soft); padding: 4px 10px; border-radius: 999px; }

/* ===== Площадки ===== */
.platforms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.platform-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--art-radius);
    padding: 26px 18px;
    color: var(--ink);
    transition: all .22s ease;
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.platform-card__icon {
    display: flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary-dark);
    transition: all .22s ease;
}
.platform-card:hover .platform-card__icon { background: var(--primary); color: var(--white); }
.platform-card__letter { font-family: var(--font-heading); font-size: 22px; font-weight: 800; }
.platform-card__name { font-size: 14.5px; font-weight: 700; }
.platform-card__label { font-size: 12.5px; color: var(--ink-soft); }

/* ===== Формы: select / textarea ===== */
.lead-form select, .lead-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 15px;
    font-family: var(--font-body);
    background: var(--white);
    color: var(--ink);
    transition: border-color .15s;
}
.lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--primary); }
.lead-form textarea { resize: vertical; line-height: 1.5; }

/* ===== Детальная страница картины ===== */
.painting-page { padding-top: 48px; }
.painting-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }

/* Слайдер галереи */
.painting-slider { width: 100%; }
.painting-slider__stage { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--art-radius); box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.painting-slider__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; cursor: zoom-in; }
.painting-slider__slide.is-active { opacity: 1; }
.painting-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: rgba(255,255,255,.9); color: var(--ink);
    font-size: 24px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0; transition: opacity .2s ease;
    z-index: 5;
}
.painting-slider__stage:hover .painting-slider__arrow { opacity: 1; }
.painting-slider__arrow--prev { left: 14px; }
.painting-slider__arrow--next { right: 14px; }
.painting-slider__arrow:hover { background: var(--primary); color: #fff; }
.painting-slider__counter {
    position: absolute; right: 14px; bottom: 14px;
    background: rgba(0,0,0,.55); color: #fff;
    font-size: 13px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
    z-index: 5;
}
.painting-slider__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.painting-slider__thumb {
    flex: 0 0 72px; width: 72px; height: 90px;
    padding: 0; border: 2px solid transparent; border-radius: 8px;
    overflow: hidden; cursor: pointer; background: none;
    transition: border-color .15s ease;
}
.painting-slider__thumb img { width: 100%; height: 100%; object-fit: cover; }
.painting-slider__thumb.is-active { border-color: var(--primary); }
.painting-slider__thumb:hover { border-color: var(--accent); }

.painting-detail__info { position: sticky; top: 24px; }
.painting-detail__title { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 16px; }
.painting-detail__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 20px; }
.painting-detail__facts div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.painting-detail__facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.painting-detail__facts dd { font-size: 15px; font-weight: 600; margin: 0; }
.painting-detail__desc { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; margin-bottom: 20px; }
.painting-detail__desc p { margin-bottom: 12px; }
.painting-detail__price { font-size: 26px; font-weight: 800; color: var(--primary-dark); margin-bottom: 18px; }
.painting-detail__pricenote { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 500; margin-top: 4px; }

/* ===== Детальная страница работы ===== */
.work-page { padding-top: 48px; }
.work-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; margin-bottom: 32px; }
.work-head__media img { width: 100%; border-radius: var(--art-radius); box-shadow: var(--shadow-lg); }
.work-head__title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.work-head__subtitle { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 14px; }
.work-head__facts { display: flex; gap: 10px; flex-wrap: wrap; }
.work-description { margin-top: 10px; }

/* ===== Прайс-блок (мастер-классы) ===== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-grid .price-card { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; margin-top: 0; padding: 28px 30px; }
.price-grid .price-card__value { font-size: 26px; }
.price-grid .price-card__note { color: var(--taupe-3); line-height: 1.6; margin: 0; }

/* ===== Карта-заглушка ===== */
.map-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
    background: var(--bg-soft);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 34px 20px;
    color: var(--ink-soft);
}
.map-placeholder svg { color: var(--primary); }
.map-placeholder p { font-weight: 600; color: var(--ink); margin: 0; }
.map-placeholder small { font-size: 13px; }

/* ===== Лайтбокс ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 300;
    display: none; align-items: center; justify-content: center;
    background: rgba(var(--overlay-rgb), .92);
    padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close {
    position: absolute; top: 14px; right: 22px;
    font-size: 34px; line-height: 1;
    color: var(--white);
    background: none; border: 0; cursor: pointer;
}
.lightbox__close:hover { color: var(--accent); }

/* ===== Адаптив (арт) ===== */
@media (max-width: 1024px) {
    .mainnav--art { position: static; border-top: 0; box-shadow: none; }
    .mainnav--art .mainnav__inner {
        display: none;
        flex-direction: column; align-items: stretch;
        background: var(--white);
        border-top: 1px solid var(--line);
        padding: 8px 20px 14px;
    }
    .mainnav--art .mainnav__inner.is-open { display: flex; }
    .mainnav--art a { border-bottom: 1px solid var(--line); padding: 12px 0; border-radius: 0; }
    .mainnav--art a.is-active { border-bottom: 1px solid var(--line); color: var(--primary); background: transparent; }
    .hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .hero__visual { max-width: 460px; margin: 0 auto; }
    .artframe { margin: 0 auto; }
    .painting-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
    .post-paintings .painting-grid { grid-template-columns: repeat(2, 1fr); }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    .price-grid { grid-template-columns: 1fr; }
    .painting-detail { grid-template-columns: 1fr; gap: 28px; }
    .painting-detail__info { position: static; }
    .work-head { grid-template-columns: 1fr; gap: 24px; }
    .header__cta { gap: 12px; }
    .header__cta .btn { padding: 11px 16px; font-size: 14px; }
}

@media (max-width: 768px) {
    .hero--art { padding-top: 40px; }
    .header--art .header__phone { display: none; }
    .floatcard--left { left: -2px; }
    .floatcard--right { right: -2px; }
    .painting-grid, .work-grid, .platforms-grid { grid-template-columns: 1fr; }
    .post-paintings .painting-grid { grid-template-columns: 1fr; }
    .painting-detail__facts { grid-template-columns: 1fr; }
    .logo__text { font-size: 15px; }
    .lightbox { padding: 16px; }
}

/* ============================================================
   ВЫСТАВКИ (Вероника Андреева)
   ============================================================ */

/* ===== Сетка выставок ===== */
.exhibition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.exhibition-card {
    display: flex; flex-direction: column; gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--art-radius);
    overflow: hidden;
    color: var(--ink);
    transition: transform .22s ease, box-shadow .22s ease;
}
.exhibition-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.exhibition-card__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.exhibition-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.exhibition-card:hover .exhibition-card__media img { transform: scale(1.05); }
.exhibition-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--bg-soft); color: var(--ink-soft); font-size: 14px; }
.exhibition-card__badge {
    position: absolute; top: 12px; left: 12px;
    font-size: 12px; font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--white);
    background: var(--primary);
    z-index: 3;
}
.exhibition-card__badge--upcoming { background: var(--primary); color: #fff; }
.exhibition-card__badge--current { background: #16a34a; color: #fff; }
.exhibition-card__badge--past { background: rgba(var(--overlay-rgb), .78); color: #fff; }
.exhibition-card__body { display: flex; flex-direction: column; gap: 3px; padding: 6px 18px 18px; }
.exhibition-card__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.exhibition-card__sub { font-size: 13.5px; color: var(--ink-soft); }
.exhibition-card__facts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.exhibition-card__fact { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.exhibition-card__fact svg { color: var(--primary); flex-shrink: 0; }
.exhibition-card__count {
    align-self: flex-start;
    margin-top: 8px;
    font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
    background: var(--bg-soft);
    padding: 4px 10px;
    border-radius: 999px;
}

/* ===== Детальная страница выставки ===== */
.exhibition-page { padding-top: 48px; }
.exhibition-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; margin-bottom: 32px; }
.exhibition-head__media img { width: 100%; border-radius: var(--art-radius); box-shadow: var(--shadow-lg); }
.exhibition-head__facts { display: flex; gap: 10px; flex-wrap: wrap; }
.exhibition-head__badge {
    background: var(--primary); border-color: transparent; color: #fff; font-weight: 700;
}
.exhibition-description { margin-top: 10px; }

/* ===== Галерея выставки ===== */
.exhibition-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.exhibition-gallery__item { margin: 0; border-radius: var(--art-radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 4/3; background: var(--bg-soft); }
.exhibition-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.exhibition-gallery__item:hover img { transform: scale(1.04); }

/* Отступ между секциями «Предстоящие» и «Архив» */
.section__head--offset { margin-top: 64px; }

/* CTA с кнопкой вместо формы */
.cta__form--btn { display: flex; align-items: center; justify-content: center; text-align: center; }

@media (max-width: 1024px) {
    .exhibition-grid { grid-template-columns: repeat(2, 1fr); }
    .exhibition-head { grid-template-columns: 1fr; gap: 24px; }
    .exhibition-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .exhibition-grid { grid-template-columns: 1fr; }
    .exhibition-gallery__grid { grid-template-columns: 1fr; }
}

/* ===== Страница «Обучение» ===== */
.price-grid .price-card__old {
    color: var(--taupe-3);
    font-size: 20px;
    font-weight: 600;
    text-decoration: line-through;
}
.price-grid .price-card__value { color: var(--white); font-size: 30px; }
.price-grid .price-card__note { color: var(--taupe-4); line-height: 1.6; margin: 0; }
.lessons-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }.lessons-why__item {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--art-radius);
    padding: 22px;
}
.lessons-why__item b { display: block; font-size: 16.5px; margin-bottom: 8px; }
.lessons-why__item p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }

.lessons-benefits { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 24px 0 12px; padding: 0; }
.lessons-benefits li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 15px; }
.lessons-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.lessons-pricenote { color: var(--ink-soft); font-size: 14px; margin-top: 8px; }

.lessons-result { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lessons-result__item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--art-radius); padding: 22px; }
.lessons-result__item b { display: block; color: var(--white); font-size: 16px; margin-bottom: 8px; }
.lessons-result__item p { color: var(--taupe-2); font-size: 14.5px; line-height: 1.6; margin: 0; }

.faq-list { max-width: 780px; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 0;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--primary); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 16px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }

@media (max-width: 1024px) {
    .lessons-why { grid-template-columns: 1fr; }
    .lessons-result { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .lessons-benefits { grid-template-columns: 1fr; }
    .lessons-result { grid-template-columns: 1fr; }
}
