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

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

a:hover {
    color: var(--accent-red);
}

.site-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 16px;
}


/* ============================================================
   BREADCRUMBS & TOP SPACING BELOW STICKY HEADER
   ============================================================ */
.breadcrumbs, .catalog-breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 14px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.4;
}

.breadcrumbs a, .catalog-breadcrumbs a {
    color: var(--color-navy-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.breadcrumbs a:hover, .catalog-breadcrumbs a:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.page-back-bar {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
}

.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 11px 0 8px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.page-back-link svg {
    color: #6B7280;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.page-back-link:hover {
    border-color: #121316;
    color: #121316;
    background: #F9FAFB;
}

.page-back-link:hover svg {
    color: #B81028;
}

.inner-page-wrap {
    padding-top: 10px;
    padding-bottom: 36px;
}

.inner-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.inner-page-titles {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inner-page-h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.22;
    color: #121316;
}

.inner-page-sub {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.38;
    color: #6B7280;
}

@media (max-width: 640px) {
    .inner-page-head {
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 10px 12px;
        margin-bottom: 10px;
        gap: 5px;
    }
    .inner-page-head .page-back-link {
        height: auto;
        padding: 0;
        border: 0;
        background: transparent;
        color: #6B7280;
        font-size: 12px;
    }
    .inner-page-h1 { font-size: 17.5px; }
    .inner-page-sub { font-size: 12px; }
}

.page-content {
    min-height: calc(100vh - 380px);
}

body.page-fullscreen-view .page-content {
    min-height: calc(100dvh - 116px);
    display: flex;
    flex-direction: column;
}

body.page-fullscreen-view .site-footer {
    margin-top: 0;
}

/* ============================================================
   SECTION BLOCKS & GENERAL CONTAINERS
   ============================================================ */
.section-block {
    padding: 32px 0;
}

.section-block.alt-bg {
    background: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.block-head-dense {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 0 10px 0;
}

.block-head-dense.text-center {
    justify-content: space-between;
    text-align: left;
}

.dense-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: #121316;
    text-transform: none;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

@media (max-width: 1480px), (max-height: 860px) {
    .breadcrumbs, .catalog-breadcrumbs, .page-back-bar { margin-top: 2px; margin-bottom: 10px; }
    .section-block { padding: 20px 0; }
    .dense-title { font-size: 21px; }
    .dense-sub { font-size: 12.5px; }
    .block-head-dense { margin-bottom: 12px; padding-bottom: 8px; }
}

.dense-sub {
    font-size: 13.5px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.link-dense-action {
    font-size: 13px;
    font-weight: 600;
    color: #121316;
    background: #FFFFFF;
    border: 1px solid var(--border-highlight);
    border-radius: 4px;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-dense-action:hover {
    background: #121316;
    border-color: #121316;
    color: #FFFFFF;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary,
.btn-outline,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 38px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: #B81028;
    border: 1px solid #B81028;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background: #990D22;
    border-color: #990D22;
    color: #FFFFFF !important;
}

.btn-outline {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    color: #121316 !important;
}

.btn-outline:hover {
    background: #F6F7F9;
    border-color: #121316;
    color: #121316 !important;
}

.btn-secondary {
    background: #121316;
    border: 1px solid #121316;
    color: #FFFFFF !important;
}

.btn-secondary:hover {
    background: #1C1E22;
    border-color: #1C1E22;
    color: #FFFFFF !important;
}

