@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap");

:root {
    color-scheme: light;
    --bg: #f7f8fc;
    --surface: #ffffff;
    --surface-soft: #f1f3f9;
    --text: #17191f;
    --muted: #656b78;
    --border: #e5e7ee;
    --border-strong: #d7dae4;
    --primary: #6157d9;
    --primary-dark: #5047c3;
    --primary-soft: #eeecff;
    --cyan: #0d9f96;
    --cyan-soft: #e7f8f6;
    --cream: #fff8df;
    --cream-border: #f0df9d;
    --radius: 18px;
    --container: 1220px;
    --shadow-hover: 0 12px 28px rgba(31, 35, 48, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: "Onest", system-ui, sans-serif; line-height: 1.55; }
h1, h2, h3 { font-family: "Onest", system-ui, sans-serif; font-weight: 700; letter-spacing: -.03em; }
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 38px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; font-weight: 700; line-height: 1; letter-spacing: -.025em; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, var(--primary), #7770e9 62%, #20b6ab); color: white; font-size: 17px; font-weight: 700; line-height: 1; }
.site-nav { min-width: 0; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-links { gap: 28px; }
.nav-links a, .site-footer nav a { color: #454a55; text-decoration: none; font-weight: 600; }
.nav-links a:hover, .site-footer nav a:hover { color: var(--primary); }
.nav-links a[aria-current="page"] { color: var(--primary); }
.header-user { display: inline-flex; align-items: center; gap: 7px; max-width: 160px; overflow: hidden; color: #454a55; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.header-user img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-actions form { margin: 0; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text); font-size: 20px; }

.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border: 1px solid transparent; border-radius: 11px; text-decoration: none; font-weight: 600; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .62; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--primary-dark); }
.button-quiet { border-color: var(--border-strong); background: var(--surface); color: #343842; }
.button-quiet:hover:not(:disabled) { border-color: #bfc3d0; background: #fafafe; }
.button-telegram { background: var(--primary); color: #fff; }
.button-telegram:hover { background: var(--primary-dark); }

.eyebrow { margin: 0; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.hero { border-bottom: 1px solid var(--border); background: var(--surface); }
.hero-inner { min-height: 360px; display: flex; align-items: center; padding-block: 44px; }
.hero-copy { max-width: 790px; }
.hero h1 { margin: 9px 0 15px; max-width: 760px; font-size: clamp(40px, 4.5vw, 54px); line-height: 1.08; letter-spacing: -.04em; }
.hero-copy > p:not(.eyebrow) { max-width: 630px; margin: 0; color: var(--muted); font-size: 17px; }
.hero-search, .catalog-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); background: var(--surface); }
.hero-search { width: min(100%, 670px); margin-top: 23px; padding: 5px 5px 5px 15px; border-radius: 13px; box-shadow: 0 6px 22px rgba(38, 42, 60, .05); }
.hero-search > span, .catalog-search > span { color: #8c919e; font-size: 24px; }
.hero-search input, .catalog-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }
.hero-search input { min-height: 40px; font-size: 15px; }
.hero-search button { min-height: 40px; padding-inline: 20px; border: 0; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.safety-note { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin-top: 28px; padding: 20px 22px; border: 1px solid var(--cream-border); border-radius: 16px; background: var(--cream); }
.safety-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #e3c968; border-radius: 12px; color: #8b6a00; font-weight: 700; }
.safety-note h2 { margin: 0 0 3px; font-size: 16px; }
.safety-note p { max-width: 980px; margin: 0; color: #665f47; font-size: 14px; }
.safety-note p + p { margin-top: 7px; }

.section { padding-block: 60px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; }
.section-heading > a { color: var(--primary); text-decoration: none; font-weight: 700; white-space: nowrap; }

.promo-section { padding-top: 32px; padding-bottom: 10px; }
.promo-banner { min-height: 154px; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 24px; padding: 22px; overflow: hidden; border: 1px solid #d9d7f3; border-radius: var(--radius); background: linear-gradient(105deg, #f4f2ff, #f8fcff); text-decoration: none; }
.promo-media { width: 110px; height: 110px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e1dff4; border-radius: 16px; background: #fff; color: var(--primary); font-size: 42px; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-label, .featured-label { display: inline-flex; padding: 4px 8px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.promo-copy h2 { margin: 6px 0 2px; font-size: 24px; }
.promo-copy p { margin: 0; color: var(--muted); }
.promo-action { padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--primary); font-weight: 700; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-card { min-width: 0; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .18s, box-shadow .18s, transform .18s; }
.catalog-card:hover { border-color: #d0cee9; box-shadow: 0 9px 22px rgba(31, 35, 48, .055); transform: translateY(-1px); }
.card-header { display: flex; align-items: center; gap: 13px; }
.avatar, .detail-avatar { flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); background: var(--surface-soft); }
.avatar { width: 58px; height: 58px; border-radius: 15px; text-decoration: none; font-size: 27px; }
.avatar img, .detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-identity { min-width: 0; }
.card-identity h3 { margin: 0 0 2px; display: flex; align-items: center; gap: 6px; overflow: hidden; font-size: 18px; line-height: 1.3; }
.card-identity h3 a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.verified-mark { flex: 0 0 auto; width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--cyan-soft); color: #087c76; font-size: 12px; font-weight: 700; }
.handle { margin: 0; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 7px; background: #fafbfe; color: #5d6370; font-size: 11px; font-weight: 600; text-decoration: none; }
.badge-type { border-color: #ddd9ff; background: var(--primary-soft); color: var(--primary-dark); }
.card-description { min-height: 66px; display: -webkit-box; margin: 14px 0; overflow: hidden; color: var(--muted); font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-stats { min-height: 37px; display: flex; flex-wrap: wrap; gap: 5px 13px; padding-top: 11px; border-top: 1px solid #eef0f5; color: #737986; font-size: 12px; }
.card-stats strong { color: #444955; }
.card-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.card-actions form, .detail-actions form { margin: 0; }
.card-actions form .button { width: 100%; }
.button-favorite { border-color: #d7d8e5; background: #fff; color: #4c5261; }
.button-favorite:hover { border-color: #aaa7e5; background: #f6f5ff; color: var(--primary); }
.button-favorite.is-active { border-color: #bcb7f4; background: var(--primary-soft); color: #49439f; }
.card-actions .button { min-height: 40px; padding-inline: 12px; font-size: 13px; }

.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.category-grid a { min-width: 0; min-height: 92px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color .18s, transform .18s; }
.category-grid a:hover { border-color: #cfcced; transform: translateY(-1px); }
.category-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); font-size: 19px; }
.category-grid strong, .category-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-grid strong { font-size: 14px; }
.category-grid small { color: var(--muted); font-size: 11px; }
.category-arrow { color: #9ba0aa; }

.featured-article { min-height: 330px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.featured-article-media { min-height: 330px; display: block; overflow: hidden; background: var(--surface-soft); }
.featured-article-media img { width: 100%; height: 100%; object-fit: cover; }
.article-cover-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, var(--primary-soft), #e4f7f5); color: var(--primary); font-size: 70px; font-weight: 700; line-height: 1; text-decoration: none; }
.featured-article-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 5vw, 54px); }
.featured-article-copy time, .article-card time, .article-dates { color: var(--muted); font-size: 13px; }
.featured-article-copy h2, .featured-article-copy h3 { margin: 9px 0 12px; font-size: clamp(25px, 3.1vw, 38px); line-height: 1.2; }
.featured-article-copy h2 a, .featured-article-copy h3 a { text-decoration: none; }
.featured-article-copy p { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.article-read-link { color: var(--primary); font-weight: 700; text-decoration: none; }

.submit-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px; border-radius: 20px; background: #eeeff9; }
.submit-cta h2 { max-width: 730px; margin: 6px 0 4px; font-size: clamp(22px, 3vw, 31px); line-height: 1.25; }
.submit-cta p:not(.eyebrow) { margin: 0; color: var(--muted); }

.catalog-hero, .editorial-hero { padding-block: 44px 30px; border-bottom: 1px solid var(--border); background: var(--surface); }
.catalog-hero h1, .editorial-hero h1 { margin: 7px 0 8px; font-size: clamp(33px, 4.5vw, 46px); line-height: 1.14; letter-spacing: -.035em; }
.catalog-hero .container > p:not(.eyebrow), .editorial-hero .container > p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); font-size: 16px; }
.catalog-search { width: min(100%, 720px); margin-top: 20px; padding: 5px 5px 5px 14px; border-radius: 12px; background: #fafbfe; }
.catalog-search input { min-height: 40px; }
.catalog-search > a { margin-right: 8px; color: var(--primary); font-size: 13px; font-weight: 600; }
.filter-panel { position: relative; z-index: 2; margin-top: 14px; padding-block: 14px; border: 0; border-bottom: 1px solid var(--border); background: transparent; }
.filter-row { display: grid; grid-template-columns: 88px 1fr; align-items: start; gap: 14px; }
.filter-row + .filter-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.filter-label { padding-top: 7px; color: #777d89; font-size: 13px; font-weight: 700; }
.filter-chips { min-width: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { min-height: 32px; display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255, 255, 255, .72); color: #555b67; text-decoration: none; font-size: 13px; font-weight: 500; cursor: pointer; }
.filter-chip:hover { border-color: #cac7ea; color: var(--primary); }
.filter-chip.is-active { border-color: #d8d4ff; background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.show-more-chips { background: var(--surface); color: var(--primary); }
.catalog-results-section { padding-block: 34px 70px; }
.results-toolbar { display: flex; justify-content: space-between; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.results-toolbar p { margin: 0; }
.results-toolbar strong { color: var(--text); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding-top: 36px; }
.page-numbers { display: flex; align-items: center; gap: 6px; }
.page-number, .page-arrow { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: #4b515d; text-decoration: none; font-size: 14px; font-weight: 700; }
.page-number.is-current { border-color: var(--primary); background: var(--primary); color: #fff; }
.page-arrow.is-disabled { color: #bdc0c8; background: #f1f2f6; }
.page-ellipsis { padding-inline: 4px; color: var(--muted); }
.empty-state { padding: 48px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--muted); text-align: center; }
.empty-state strong { color: var(--text); font-size: 18px; }
.empty-state p { margin-bottom: 0; }

.editorial-hero .container { max-width: var(--container); }
.featured-article-main { min-height: 400px; }
.featured-article-main .featured-article-media { min-height: 400px; }
.featured-label { margin-bottom: 10px; }
.articles-list-section { padding-top: 20px; }
.articles-list-section .section-heading { margin-bottom: 20px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .18s, box-shadow .18s, transform .18s; }
.article-card:hover { border-color: #d0cee9; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.article-cover-link { height: 205px; display: block; overflow: hidden; background: var(--surface-soft); }
.article-cover-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.article-card:hover .article-cover-link img { transform: scale(1.025); }
.article-cover-link.article-cover-placeholder { display: grid; font-size: 46px; }
.article-card-copy { padding: 20px; }
.article-card h3 { margin: 8px 0 9px; font-size: 20px; line-height: 1.3; }
.article-card h3 a { text-decoration: none; }
.article-card p { min-height: 48px; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.article-empty-state { max-width: 620px; margin-inline: auto; padding: 32px 24px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.article-empty-state > span { width: 40px; height: 40px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.article-empty-state h2 { margin: 0 0 6px; font-size: 22px; }
.article-empty-state p { margin: 0; color: var(--muted); }

.breadcrumbs { padding-top: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.breadcrumbs li:not(:last-child)::after { margin-left: 6px; content: "/"; color: #b6bac4; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.detail-shell, .article-shell { padding-bottom: 72px; }
.item-detail { margin-top: 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.item-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 30px; border-bottom: 1px solid var(--border); }
.detail-avatar { width: 112px; height: 112px; border-radius: 24px; font-size: 48px; }
.item-identity .card-badges { margin-top: 0; }
.item-hero h1 { margin: 9px 0 4px; font-size: clamp(29px, 4vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
.detail-actions { display: grid; gap: 8px; min-width: 190px; }
.detail-actions .button { width: 100%; }
.detail-cta { min-width: 190px; }
.item-detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 50px; padding: 34px 30px 40px; }
.prose { max-width: 780px; color: #353a45; font-size: 17px; line-height: 1.75; }
.prose h2 { margin: 1.6em 0 .55em; color: var(--text); font-size: 25px; line-height: 1.3; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .5em; color: var(--text); font-size: 20px; line-height: 1.35; }
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--primary); color: #555b67; font-size: 18px; }
.prose a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.7em auto; border-radius: 16px; }
.metrics-panel { align-self: start; padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: #fafbfe; }
.metrics-panel h2 { margin: 0 0 10px; font-size: 15px; }
.metrics-panel dl { margin: 0; }
.metrics-panel dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.metrics-panel dt { color: var(--muted); font-size: 13px; }
.metrics-panel dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-size: 13px; font-weight: 700; }
.reviews-section { margin-top: 28px; padding: 28px 30px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.reviews-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.reviews-heading .eyebrow { margin-bottom: 6px; }
.reviews-heading h2 { margin: 0; font-size: 25px; }
.reviews-count { color: var(--muted); font-size: .72em; font-weight: 600; }
.reviews-rating-summary { display: grid; justify-items: end; gap: 3px; color: var(--muted); font-size: 13px; text-align: right; }
.reviews-rating-summary strong { color: var(--text); font-size: 18px; }
.reviews-list { border-top: 1px solid var(--border); }
.review { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-avatar { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--primary-soft); font-size: 20px; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.review-meta strong { color: var(--text); }
.review-meta time { color: var(--muted); font-size: 13px; }
.review-stars { color: #b7791f; font-size: 14px; font-weight: 700; }
.review-content p { margin: 7px 0 0; color: #353a45; line-height: 1.55; }
.reviews-empty { margin: 0; padding: 20px 0; color: var(--muted); }
.reviews-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; color: var(--muted); font-size: 14px; }
.reviews-pagination a { color: var(--primary); font-weight: 700; text-decoration: none; }
.review-cta { margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--primary-soft); }
.review-cta p { margin: 0 0 10px; color: #414653; }
.review-cta p + p { margin-top: 14px; }
.review-cta .button { margin-top: 4px; }
.review-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.review-form { display: grid; gap: 16px; margin-top: 16px; }
.review-form fieldset { margin: 0; padding: 0; border: 0; }
.review-form legend { margin-bottom: 8px; color: #454b57; font-size: 14px; font-weight: 700; }
.rating-options { display: flex; gap: 7px; }
.rating-option { position: relative; display: grid; place-items: center; width: 38px; height: 38px; color: #b7791f; font-size: 30px; line-height: 1; cursor: pointer; }
.rating-option input { position: absolute; opacity: 0; }
.rating-option span { transition: transform .18s, color .18s; }
.rating-option:hover span, .rating-option:has(input:checked) span { color: #b7791f; transform: scale(1.12); }
.rating-option:has(input:checked) span { font-size: 0; }
.rating-option:has(input:checked) span::after { content: "★"; font-size: 30px; }
.review-form .button { justify-self: start; border: 0; }

.article-detail { max-width: 790px; margin: 42px auto 0; }
.article-detail h1 { margin: 8px 0 14px; font-size: clamp(34px, 5vw, 52px); line-height: 1.15; letter-spacing: -.04em; }
.article-dates { margin: 0; }
.article-lead { margin: 20px 0 0; color: #555b67; font-size: 20px; line-height: 1.55; }
.article-cover { width: 100%; margin: 30px 0; border-radius: 20px; }
.article-content { max-width: 760px; margin-inline: auto; }

.submission-page { padding-block: 58px 76px; background: linear-gradient(180deg, #f8f8fc, var(--background)); }
.submission-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1fr); align-items: start; gap: clamp(34px, 7vw, 88px); }
.submission-intro { padding-top: 30px; }
.submission-intro h1 { margin: 8px 0 14px; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; letter-spacing: -.04em; }
.submission-intro > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.submission-intro .submission-note { padding: 14px 16px; border: 1px solid var(--cream-border); border-radius: 12px; background: var(--cream); color: #665f47; font-size: 14px; }
.submission-card { padding: 30px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 35px rgba(40, 43, 64, .06); }
.submission-form { display: grid; gap: 18px; }
.form-field label { display: block; margin-bottom: 7px; color: #454b57; font-size: 14px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
.form-field input, .form-field select { min-height: 46px; }
.form-field textarea { resize: vertical; line-height: 1.5; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); outline: 3px solid var(--primary-soft); }
.field-errors ul, .form-errors ul { margin: 7px 0 0; padding: 0; list-style: none; color: #a02626; font-size: 13px; }
.form-errors { padding: 12px 14px; border: 1px solid #edcaca; border-radius: 10px; background: #fff4f4; }
.submission-button { width: 100%; min-height: 48px; border: 0; cursor: pointer; }
.form-privacy { margin: -5px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.submission-success { padding-block: 28px; text-align: center; }
.submission-success > span { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: #e4f6ee; color: #15764e; font-size: 26px; font-weight: 700; }
.submission-success h2 { margin: 0 0 8px; font-size: 28px; }
.submission-success p { margin: 0 auto 22px; max-width: 430px; color: var(--muted); line-height: 1.6; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-main { display: flex; justify-content: space-between; gap: 40px; padding-block: 30px 20px; }
.footer-about { max-width: 460px; }
.footer-about p { margin: 13px 0 0; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: start; gap: 24px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 13px; border-top: 1px solid var(--border); color: #8a8f99; font-size: 12px; }

@media (max-width: 1020px) {
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .item-hero { grid-template-columns: auto minmax(0, 1fr); }
    .detail-actions { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 820px) {
    .header-inner { min-height: 66px; }
    .nav-toggle { display: grid; place-items: center; }
    .site-nav { display: none; position: absolute; inset: 66px 20px auto; align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-hover); }
    .site-nav.is-open { display: flex; }
    .nav-links, .nav-actions { align-items: stretch; flex-direction: column; gap: 4px; }
    .nav-links a { padding: 9px 6px; }
    .nav-actions .button { width: 100%; }
    .hero-inner { min-height: 330px; }
    .hero h1 br { display: none; }
    .featured-article { grid-template-columns: 1fr; }
    .featured-article-media, .featured-article-main .featured-article-media { min-height: 270px; max-height: 380px; }
    .item-detail-body { grid-template-columns: 1fr; gap: 24px; }
    .metrics-panel { width: 100%; }
    .submission-layout { grid-template-columns: 1fr; gap: 24px; }
    .submission-intro { padding-top: 0; }
}

@media (min-width: 821px) and (max-width: 1100px) {
    .header-inner { gap: 18px; }
    .nav-links { gap: 16px; }
    .nav-actions { gap: 6px; }
    .nav-actions .button { padding-inline: 10px; font-size: 13px; }
}

@media (max-width: 620px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .hero-inner { min-height: auto; padding-block: 36px; }
    .hero h1 { font-size: clamp(32px, 9.5vw, 41px); }
    .hero-copy > p:not(.eyebrow) { font-size: 16px; }
    .hero-search { display: grid; grid-template-columns: auto minmax(0, 1fr); }
    .hero-search button { grid-column: 1 / -1; width: 100%; }
    .hero-actions .button { flex: 1 1 100%; }
    .safety-note { grid-template-columns: 1fr; }
    .section { padding-block: 44px; }
    .section-heading { align-items: start; flex-direction: column; gap: 9px; }
    .promo-banner { grid-template-columns: 64px 1fr; gap: 15px; padding: 16px; }
    .promo-media { width: 64px; height: 64px; border-radius: 12px; font-size: 28px; }
    .promo-copy h2 { font-size: 18px; }
    .promo-action { grid-column: 1 / -1; text-align: center; }
    .catalog-grid, .catalog-grid-home, .article-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid a { min-height: 112px; grid-template-columns: 1fr; align-content: start; gap: 8px; padding: 14px; }
    .category-arrow { display: none; }
    .card-actions { grid-template-columns: 1fr; }
    .catalog-hero, .editorial-hero { padding-block: 40px 28px; }
    .catalog-search { display: grid; grid-template-columns: auto minmax(0, 1fr); }
    .catalog-search .button { grid-column: 1 / -1; }
    .catalog-search > a { grid-column: 1 / -1; padding: 0 8px 6px; }
    .filter-panel { width: calc(100% - 28px); padding: 15px; }
    .filter-row { grid-template-columns: 1fr; gap: 8px; }
    .filter-label { padding-top: 0; }
    .filter-chips { flex-wrap: nowrap; margin-inline: -15px; padding-inline: 15px; overflow-x: auto; scrollbar-width: none; }
    .filter-chip { flex: 0 0 auto; }
    .category-chips { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
    .submit-cta { align-items: stretch; flex-direction: column; padding: 24px; }
    .item-hero { grid-template-columns: 1fr; padding: 22px; }
    .detail-avatar { width: 92px; height: 92px; border-radius: 20px; }
    .item-detail-body { padding: 26px 22px 30px; }
    .reviews-section { padding: 24px 22px; }
    .reviews-heading { align-items: start; flex-direction: column; }
    .reviews-rating-summary { justify-items: start; text-align: left; }
    .reviews-pagination { align-items: start; flex-direction: column; }
    .article-detail { margin-top: 30px; }
    .article-detail h1 { font-size: 34px; }
    .submission-page { padding-block: 38px 52px; }
    .submission-card { padding: 22px; }
    .footer-main, .footer-bottom { flex-direction: column; }
    .footer-main { gap: 24px; }
    .footer-bottom { gap: 6px; }
    .site-footer nav { flex-direction: column; gap: 12px; }
    .page-number { display: none; }
    .page-number.is-current { display: grid; }
    .page-ellipsis { display: none; }
}
