/* Stockmarket category shell: first-screen layout only */

.ft-category-main {
    display: block;
}

#content.itx-category-shell {
    --itx-sidebar-width: 300px;
    --itx-sidebar-gap: 16px;
}

.itx-category-sidebar-shell,
.itx-category-shell.itx-category-sidebar-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--itx-sidebar-width);
    column-gap: var(--itx-sidebar-gap);
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.itx-category-sidebar-shell > .ft-main-content,
.itx-category-sidebar-shell .ft-main-content {
    grid-column: 1;
}

#content.itx-category-shell.itx-category-sidebar-shell .left_part {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    float: none !important;
    box-sizing: border-box;
    margin: 0;
    justify-self: stretch;
}

#content.itx-category-shell.itx-category-sidebar-shell .sidebar {
    min-width: var(--itx-sidebar-width);
    width: var(--itx-sidebar-width) !important;
    max-width: var(--itx-sidebar-width);
    padding: 0;
    margin: 0 0 0 auto;
    float: none !important;
    box-sizing: border-box;
    justify-self: end;
    align-self: start;
}

#content.itx-category-shell.itx-category-sidebar-shell .sidebar:not(.event-sidebar) {
    position: relative;
}

#content.itx-category-shell.itx-category-sidebar-shell .sidebar .inner-fixed-blockdiv {
    min-width: auto;
    width: 100%;
    max-width: 100%;
}

#content.itx-category-shell.itx-category-sidebar-shell .sidebar #floatingBanner,
#content.itx-category-shell.itx-category-sidebar-shell .sidebar .blockdiv300,
#content.itx-category-shell.itx-category-sidebar-shell .sidebar .sponsor_mini,
#content.itx-category-shell.itx-category-sidebar-shell .sidebar .inner-fixed-blockdiv {
    width: var(--itx-sidebar-width) !important;
    max-width: var(--itx-sidebar-width) !important;
    margin-left: auto;
    margin-right: auto;
}

#content.itx-category-shell.itx-category-sidebar-shell .sidebar .inner-fixed-blockdiv.fixed {
    width: var(--itx-sidebar-width) !important;
    max-width: var(--itx-sidebar-width) !important;
}

#content.itx-category-shell.itx-category-shell--no-sidebar {
    display: block !important;
}

#content.itx-category-shell.itx-category-shell--no-sidebar .left_part {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-right: 0;
    float: none !important;
}

@media only screen and (max-width: 1100px) {
    #content.itx-category-shell.itx-category-sidebar-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    #content.itx-category-shell.itx-category-sidebar-shell .sidebar {
        display: none !important;
    }

    #content.itx-category-shell.itx-category-sidebar-shell .left_part {
        width: 100%;
        max-width: 100%;
    }
}

#content .left_part,
.left_part {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    padding-right: 0;
    float: none;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.left_part {
    min-width: 0;
}

.left_part .designv2-article-container,
.category .designv2-article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333333;
}

.designv2-breadcrumbs {
    margin-bottom: 1rem;
}

.designv2-breadcrumbs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.designv2-breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.designv2-breadcrumbs li:not(:last-child)::after {
    content: "•";
    margin-left: 0.5rem;
    color: #adb5bd;
    font-size: 0.8rem;
}

.designv2-breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.designv2-article-title {
    margin: 1.25rem 0 1rem;
    color: #1a1a1a;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
}

.designv2-author-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.designv2-author-meta .author-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333333;
}

.designv2-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

.designv2-social-btn {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #ffffff;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.designv2-translation-current {
    cursor: default;
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    opacity: 0.8;
}

.designv2-translation-link,
.designv2-social-btn[title="Просмотры"],
.designv2-social-btn[title="Views"] {
    width: auto;
    white-space: nowrap;
}

.designv2-social-btn .views-count {
    margin-left: 0.25rem;
    font-size: 0.75rem;
}

.section_offset.paddingBottom0 {
    padding-bottom: 0;
}

.section_offset {
    margin-bottom: 1.5rem;
}

.separator1 {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 0 0 1rem;
}

.link_accent {
    color: #146eb3;
    text-decoration: none;
}

.category_box {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.category_link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 0.85rem;
    border: 1px solid #dbe3eb;
    border-radius: 999px;
    color: #334155;
    text-decoration: none;
    background: #ffffff;
}

.tabs_box.section_offset {
    margin-bottom: 1rem;
}

.tabs_list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.PFDregular {
    font-family: "pf_dindisplay_proregular", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tabs_list li a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #4b5563;
    text-decoration: none;
}

.tabs_list li.active a {
    color: #111827;
    font-weight: 700;
}

.icon::before {
    content: "";
    display: inline-block;
    background: url("../images/icon.png") 0 0 no-repeat;
}

.category_icon::before {
    width: 25px;
    height: 28px;
    background-position: -156px -272px;
}

.page_title1 {
    margin: 0 0 0.75rem;
}

.box1 {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 10px 10px 10px 0;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
}

.box1 > i.icon {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.align_center {
    text-align: center;
}

.d_ib {
    display: inline-block;
}

.navigation_box {
    margin-bottom: 24px;
}

.navigation_box .prev,
.navigation_box .next {
    position: relative;
    display: block;
    float: left;
    width: 48px;
    height: 48px;
    margin-right: 10px;
    border: 2px solid #e3e3e3;
    background-color: #ffffff;
}

.navigation_box .next {
    float: right;
    margin-right: 0;
    margin-left: 10px;
}

.navigation_box .prev::before,
.navigation_box .next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    margin-left: -6px;
    background: url("../images/icon.png") -47px 0 no-repeat;
}

.navigation_box .next::before {
    background-position: -89px 0;
}

.navigation_box .prev:hover,
.navigation_box .next:hover {
    background-color: #333131;
}

.navigation_box .prev:hover::before {
    background-position: -68px 0;
}

.navigation_box .next:hover::before {
    background-position: -114px 0;
}

.nav_list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: inherit;
}

.nav_list li {
    float: left;
    margin-bottom: 0 !important;
    padding: 4px 5px;
    color: #333131;
    font: 16px/18px "pf_dindisplay_proregular", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nav_list li::before {
    display: none;
}

.nav_list li a {
    display: block;
    width: 18px;
    padding: 0 4px;
    color: #333131;
    text-align: center;
    text-decoration: none;
}

.nav_list li span {
    display: block;
    padding: 0 5px;
}

.nav_list li a:hover {
    color: #ff1616;
}

.nav_list li.current a,
.nav_list li.current span {
    color: #ffffff;
    background-color: #404347;
}

.tooltip {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.navigation_box a:hover > .tooltip,
.navigation_box a:focus > .tooltip {
    opacity: 1;
    visibility: visible;
}

.itx-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.itx-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.itx-cards-grid .itx-post-big {
    grid-column: 1 / -1;
}

.itx-post-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
}

.itx-post-big {
    min-height: 400px;
    border-radius: 12px;
}

.itx-post-big .itx-post-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.itx-post-bg {
    position: relative;
    min-height: 400px;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.itx-post-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.itx-post-big .itx-post-image {
    position: absolute;
    inset: 0;
    opacity: 0.16;
}

.itx-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.5) 0%, rgba(31, 41, 55, 0.7) 50%, rgba(17, 24, 39, 0.92) 100%);
}

.itx-post-big .itx-post-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 30px;
    color: #ffffff;
}

.itx-post-big .itx-post-category span,
.itx-post-medium .itx-post-category a,
.itx-post-small .itx-post-category a {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    font-weight: 600;
}

.itx-post-big .itx-post-category span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.itx-post-big .itx-post-title,
.itx-post-medium .itx-post-title,
.itx-post-small .itx-post-title {
    margin: 0 0 12px;
    line-height: 1.35;
}

.itx-post-big .itx-post-title {
    font-size: clamp(1.6rem, 3vw, 1.95rem);
    color: #ffffff;
}

.itx-post-big .itx-post-excerpt,
.itx-post-big .itx-post-meta {
    color: rgba(255, 255, 255, 0.92);
}

.itx-post-medium,
.itx-post-small {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.itx-post-medium .itx-post-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.itx-post-medium .itx-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.itx-post-medium .itx-post-content-wrap,
.itx-post-small .itx-post-content-wrap {
    padding: 20px;
}

.itx-post-medium .itx-post-title a,
.itx-post-small .itx-post-title a,
.itx-post-medium .itx-post-category a,
.itx-post-small .itx-post-category a {
    color: inherit;
    text-decoration: none;
}

.itx-post-medium .itx-post-title {
    font-size: 18px;
    color: #222222;
}

.itx-post-small {
    border-left: 3px solid transparent;
}

.itx-post-small .itx-post-title {
    font-size: 16px;
    color: #222222;
}

.itx-post-meta {
    font-size: 13px;
    color: #666666;
}

.itx-post-author {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.75rem;
    opacity: 0.92;
}

.itx-section-separator {
    height: 1px;
    margin: 0 15px 32px;
    background: #e5e7eb;
}

@media (max-width: 900px) {
    .designv2-author-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .designv2-social-buttons {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .left_part .designv2-article-container,
    .category .designv2-article-container {
        padding: 0 15px;
    }

    .box1 {
        padding-right: 0;
        padding-left: 0;
    }

    .box1 > i.icon,
    .tooltip {
        display: none;
    }

    .itx-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 28px;
    }

    .itx-post-big,
    .itx-post-bg {
        min-height: 320px;
    }

    .itx-post-big .itx-post-content {
        padding: 22px 18px;
    }

    .itx-post-author {
        margin-left: 0.5rem;
    }
}
