@font-face {
    font-family: "PT Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2");
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "PT Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/pt-sans-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "PT Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2");
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "PT Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/pt-sans-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #f3efe6;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --text: #1f1e1c;
    --muted: #635d52;
    --brand: #164936;
    --brand-soft: #e5f0ea;
    --accent: #b6742d;
    --line: #d9d1c2;
    --shadow: 0 14px 35px rgba(35, 27, 17, 0.08);
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 20px;
    --space-5: 24px;
    --space-6: 28px;
    --space-7: 36px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "PT Sans", "Segoe UI", sans-serif;
    font-size: clamp(16px, 1.05vw, 18px);
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(182, 116, 45, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(22, 73, 54, 0.1), transparent 28%),
        linear-gradient(180deg, #faf7f0 0%, #f0eadf 100%);
    color: var(--text);
}

a {
    color: var(--brand);
}

a:hover {
    color: #0f3024;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(182, 116, 45, 0.28);
    outline-offset: 2px;
}

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

main.container {
    padding-top: var(--space-2);
}

.breadcrumbs {
    margin-top: var(--space-2);
    margin-bottom: var(--space-1);
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--brand);
    text-decoration: none;
}

.breadcrumbs-separator {
    margin: 0 var(--space-1);
    color: #8f8778;
}

.site-header,
.site-footer {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 209, 194, 0.7);
    padding: var(--space-2) 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    border-bottom: none;
    margin-top: var(--space-7);
}

.site-header .container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-2) var(--space-4);
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--brand);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-1);
}

nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
    background: rgba(22, 73, 54, 0.08);
    color: var(--brand);
    transform: translateY(-1px);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
}

.header-email,
.header-phone,
.site-footer a {
    text-decoration: none;
}

.header-email,
.header-phone {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
    color: var(--brand);
    font-weight: 700;
    white-space: nowrap;
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.header-email:hover,
.header-phone:hover {
    border-color: rgba(22, 73, 54, 0.32);
    background: #fff;
    transform: translateY(-1px);
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    background: linear-gradient(180deg, #1b5b43 0%, #14442f 100%);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(20, 68, 47, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.button-link {
    font: inherit;
    cursor: pointer;
}

.button-link:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(20, 68, 47, 0.2);
}

.button-link.is-disabled {
    border-color: var(--line);
    background: linear-gradient(180deg, #ddd7cd 0%, #d1cabf 100%);
    color: #6a645a;
    cursor: not-allowed;
    box-shadow: none;
}

.cart-add-button {
    min-width: 136px;
}

.cart-add-button.is-added {
    border-color: #1d7b56;
    background: linear-gradient(180deg, #26845f 0%, #1d6a4d 100%);
}

.floating-cart {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 60;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(22, 73, 54, 0.25);
    border-radius: 999px;
    background: linear-gradient(180deg, #fdfbf6 0%, #eee6d9 100%);
    box-shadow: 0 12px 28px rgba(35, 27, 17, 0.2);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(35, 27, 17, 0.24);
}

.floating-cart-icon-wrap {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.floating-cart-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.floating-cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d42f2f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    border: 2px solid #fff;
}

.floating-cart-badge.is-empty {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 248, 242, 0.95) 100%);
    border: 1px solid rgba(217, 209, 194, 0.85);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-top: var(--space-5);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 140px;
    height: 6px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 0 0 999px 0;
}

.card h1,
.card h2,
.card h3 {
    line-height: 1.2;
}

.card h1 {
    margin-top: 0;
    margin-bottom: var(--space-2);
    font-size: clamp(30px, 4vw, 48px);
}

.card h2 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-2);
    font-size: clamp(22px, 2.3vw, 30px);
}

.card p,
.card ul,
.card ol,
.card dl,
.card table,
.card form {
    margin-bottom: var(--space-3);
}

.card > :last-child {
    margin-bottom: 0;
}

.card ul,
.card ol {
    padding-left: 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: var(--space-5);
    align-items: start;
}

.hero-copy > :last-child,
.hero-panel > :last-child {
    margin-bottom: 0;
}

.hero-panel {
    padding: var(--space-4);
    border: 1px solid rgba(217, 209, 194, 0.8);
    border-radius: var(--radius-lg);
    background: rgba(229, 240, 234, 0.42);
}

.hero-panel h2 {
    margin-top: 0;
}

.hero-note {
    color: var(--muted);
    font-weight: 700;
}

.catalog-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.catalog-summary-item {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(217, 209, 194, 0.85);
    background: rgba(255, 255, 255, 0.86);
}

.catalog-summary-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.catalog-summary-value {
    display: block;
    color: var(--brand);
    font-weight: 700;
    line-height: 1.3;
}

.price-highlight {
    display: grid;
    gap: 4px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(22, 73, 54, 0.16);
    background: linear-gradient(180deg, rgba(229, 240, 234, 0.92), rgba(255, 255, 255, 0.96));
    box-shadow: 0 10px 24px rgba(22, 73, 54, 0.06);
    margin: var(--space-4) 0;
}

.price-label,
.price-note {
    color: var(--muted);
    font-size: 14px;
}

.price-value {
    color: var(--brand);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    font-weight: 700;
}

.tag {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 999px;
    padding: 4px 10px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}

.channel-form {
    margin: var(--space-3) 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.channel-form label {
    font-weight: 700;
    color: var(--muted);
}

.channel-form select {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.02);
}

.tag-selector {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.selector-group {
    border: 1px solid rgba(217, 209, 194, 0.9);
    border-radius: var(--radius-lg);
    margin: 0;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.65);
}

.selector-group legend {
    padding: 0 8px;
    color: var(--brand);
    font-weight: 700;
}

.selector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.selector-tag input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.selector-tag span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.selector-tag span:hover {
    transform: translateY(-1px);
}

.selector-tag input:checked + span {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
}

.selector-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    border-top: 1px solid var(--line);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    background: linear-gradient(180deg, rgba(229, 240, 234, 0.45), rgba(255, 255, 255, 0.15));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.selector-result span {
    color: var(--muted);
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.pager a {
    text-decoration: none;
    color: var(--brand);
    font-weight: 700;
}

.answer-box {
    border: 1px solid rgba(22, 73, 54, 0.14);
    border-left: 5px solid var(--brand);
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
    margin: var(--space-3) 0;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(229, 240, 234, 0.8), rgba(255, 255, 255, 0.95));
    box-shadow: 0 10px 24px rgba(22, 73, 54, 0.05);
}

.faq-list dt {
    font-weight: 700;
    margin-top: var(--space-2);
}

.faq-list dd {
    margin: 6px 0 var(--space-2);
    color: #3f3a31;
}

.related-links {
    margin-top: var(--space-3);
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-2) var(--space-3);
}

.related-links ul,
.feature-list,
.quick-links {
    list-style: none;
    padding-left: 0;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--space-2);
}

.feature-list li,
.quick-links li {
    position: relative;
    padding-left: 18px;
}

.feature-list li::before,
.quick-links li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2) var(--space-4);
}

.step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-2) var(--space-4);
    padding-left: 24px;
}

.step-list li {
    padding-left: 4px;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.secondary-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.secondary-link:hover {
    background: #fff;
}

.page-hero {
    background:
        radial-gradient(circle at top right, rgba(182, 116, 45, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 236, 0.98));
}

.page-hero .button-link {
    margin-right: 6px;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid rgba(217, 209, 194, 0.8);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    margin-top: var(--space-2);
}

.cart-page .page-actions {
    margin-bottom: var(--space-4);
}

.cart-clear-button {
    font: inherit;
    cursor: pointer;
}

.cart-table td {
    vertical-align: middle;
}

.cart-product-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.cart-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


.cart-qty-input {
    width: 80px;
    min-height: 36px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
    opacity: 1;
}

.cart-qty-unit {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    margin-left: 2px;
}

.cart-remove-button {
    font: inherit;
    cursor: pointer;
    min-height: 40px;
}

.cart-empty {
    margin: var(--space-3) 0;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px dashed var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.7);
}

.cart-summary {
    margin-top: var(--space-4);
    display: grid;
    gap: var(--space-2);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cart-summary-item {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(217, 209, 194, 0.85);
    background: rgba(255, 255, 255, 0.86);
}

.cart-summary-item-total {
    border-color: rgba(22, 73, 54, 0.3);
    background: linear-gradient(180deg, rgba(229, 240, 234, 0.7), rgba(255, 255, 255, 0.95));
}

.cart-summary-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.cart-summary-value {
    display: block;
    color: var(--brand);
    font-size: clamp(20px, 2.8vw, 28px);
    line-height: 1.2;
}

.cart-order {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
}

.cart-order-note {
    color: var(--muted);
    margin-top: 0;
}

.cart-order-form {
    display: grid;
    gap: var(--space-3);
}

.cart-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2) var(--space-3);
}

.cart-order-field {
    display: grid;
    gap: 6px;
}

.cart-order-field span {
    font-weight: 700;
    color: var(--muted);
}

.cart-order-field input,
.cart-order-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    font: inherit;
    color: var(--text);
}

.cart-order-field textarea {
    min-height: 110px;
    resize: vertical;
}

.cart-order-field-wide {
    grid-column: 1 / -1;
}

.cart-order-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.cart-order-status {
    margin: 0;
    font-weight: 700;
    color: var(--muted);
}

.cart-order-status.is-error {
    color: #b52a2a;
}

.cart-order-status.is-success {
    color: #1d7b56;
}

.admin-dashboard h1 {
    margin-top: 0;
}

.admin-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(27, 91, 67, 0.12), transparent 28%),
        linear-gradient(180deg, #f7f3ec 0%, #efe8dc 100%);
}

.admin-header {
    border-bottom: 1px solid rgba(22, 73, 54, 0.12);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
}

.admin-header-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.admin-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    color: var(--brand);
    text-decoration: none;
}

.admin-brand strong {
    font-size: 1.05rem;
}

.admin-brand span {
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-nav a,
.admin-nav button {
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(22, 73, 54, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.admin-nav a.is-active {
    border-color: rgba(20, 68, 47, 0.45);
    background: linear-gradient(180deg, #1b5b43 0%, #14442f 100%);
    color: #fff;
}

.admin-nav form {
    margin: 0;
}

.admin-main {
    padding: 32px 0 56px;
}

.admin-login-card {
    width: min(100%, 460px);
    margin: 40px auto 0;
}

.admin-login-card form {
    display: grid;
    gap: var(--space-2);
}

.admin-login-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.admin-login-card input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    font: inherit;
    color: var(--text);
}

.admin-login-note,
.admin-login-error {
    padding: 12px 14px;
    border-radius: var(--radius-md);
}

.admin-login-note {
    background: rgba(22, 73, 54, 0.08);
    color: var(--brand);
}

.admin-login-error {
    background: rgba(181, 42, 42, 0.1);
    color: #8d1d1d;
}

.admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
    margin-bottom: var(--space-3);
}

.admin-inline-form {
    display: inline;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.dashboard-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fcfaf6 0%, #f4efe5 100%);
    padding: var(--space-2);
}

.dashboard-label {
    font-size: 13px;
    color: var(--muted);
}

.dashboard-value {
    margin-top: 6px;
    font-size: 26px;
    font-weight: 700;
    color: var(--brand);
}

.dashboard-generated-at {
    margin-top: var(--space-3);
    color: #5d574f;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: rgba(22, 73, 54, 0.04);
}

table th {
    font-size: 14px;
    color: var(--muted);
}

table tr:hover td {
    background: rgba(229, 240, 234, 0.45);
}

th,
td {
    text-align: left;
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

td strong {
    color: var(--brand);
}

.body-text h2,
.body-text h3 {
    margin-top: var(--space-5);
}

.body-text ul,
.body-text ol {
    padding-left: 20px;
}

.body-text a {
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.site-footer .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    justify-content: space-between;
    color: var(--muted);
}

.site-footer a {
    color: var(--brand);
    font-weight: 700;
}

.footer-social {
    width: 100%;
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid rgba(217, 209, 194, 0.7);
}

.footer-social-title {
    margin: 0 0 var(--space-2);
    font-size: 16px;
    color: var(--muted);
    font-weight: 700;
}

.footer-counters {
    width: 100%;
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid rgba(217, 209, 194, 0.7);
}

.footer-counters-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.social-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
    gap: var(--space-2) var(--space-3);
}

.social-list li {
    margin: 0;
}

.social-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(22, 73, 54, 0.18);
    background: rgba(255, 255, 255, 0.74);
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.social-link[href*="max.ru"] .social-icon {
    filter: brightness(0);
}

.social-label {
    white-space: nowrap;
}

.social-link:hover {
    border-color: rgba(22, 73, 54, 0.35);
    background: #fff;
    transform: translateY(-1px);
}

@media (max-width: 980px) {
    .card {
        padding: var(--space-5);
    }

    .site-header .container {
        gap: var(--space-2);
    }

    .hero-grid {
        gap: var(--space-4);
    }
}

@media (max-width: 760px) {
    .site-header .container,
    .site-footer .container {
        flex-direction: column;
        display: flex;
        align-items: flex-start;
    }

    .site-header .container {
        gap: var(--space-2);
    }

    .header-contacts {
        width: 100%;
        justify-content: flex-start;
    }

    nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    .header-email,
    .header-phone {
        width: 100%;
        justify-content: center;
    }

    nav a {
        white-space: nowrap;
    }

    .selector-result {
        align-items: stretch;
        flex-direction: column;
    }

    .selector-submit {
        width: 100%;
    }

    .card {
        padding: var(--space-4) var(--space-3);
        border-radius: var(--radius-lg);
    }

    .page-actions,
    .channel-form {
        align-items: stretch;
    }

    .page-actions > * {
        width: 100%;
        justify-content: center;
    }

    .quick-links,
    .feature-list,
    .catalog-summary,
    .related-links-grid,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .footer-social {
        padding-top: var(--space-3);
    }

    .footer-counters {
        padding-top: var(--space-3);
    }

    .social-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
    }

    .hero-panel {
        padding: var(--space-3);
    }

    .admin-header-inner {
        align-items: flex-start;
    }

    .admin-nav {
        width: 100%;
    }

    .price-highlight {
        margin: var(--space-3) 0;
    }

    .channel-form select {
        width: 100%;
    }

    .table-scroll {
        overflow: visible;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: var(--space-3);
        border: 1px solid rgba(217, 209, 194, 0.9);
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.95);
        overflow: hidden;
    }

    td {
        border-bottom: 1px dashed rgba(217, 209, 194, 0.85);
        display: flex;
        gap: 10px;
        justify-content: space-between;
        align-items: flex-start;
    }

    td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        font-weight: 700;
        color: var(--muted);
    }

    td:last-child {
        border-bottom: none;
    }

    td > a {
        text-align: right;
        overflow-wrap: anywhere;
    }

    .cart-qty-controls {
        margin-left: auto;
    }

    .cart-remove-button {
        margin-left: auto;
    }

    .cart-order-grid {
        grid-template-columns: 1fr;
    }

    .cart-order-actions {
        align-items: stretch;
    }

    .cart-order-actions .button-link {
        width: 100%;
    }

    .floating-cart {
        right: 14px;
        top: 14px;
        width: 58px;
        height: 58px;
    }
}
