/*
Theme Name: NEW Cycling Material Final - VeloDAILY.RU - 3.3
Author: Gemini Partner / A.Y.
Version: 3.3
*/

:root {
    --bg-main: #fff;
    --separator: rgb(248, 247, 252);
    --text-dark: #222;
    --text-light: #555;
    --accent: #6200ee;
    --accent2: #008bee;
    --fira: "Fira Sans", sans-serif;
    --lora: "Lora", serif;
    --primary-font: "Fira Sans", sans-serif;
    --secondary-font: "Lora", serif;
    /* Для заголовков и лид-абзацев */
    }
* {
    box-sizing: border-box
    }
body {
    background-color: var(--bg-main);
    margin: 0;
    padding: 0;
    font-family: var(--lora);
    font-size: 16.8px;
    line-height: 26.88px;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased
    }
h1, h2, h3, h4, h5, h6, .site-logo, .nav-links a, .search-input-full, .sidebar-title, .sidebar-post-title, .main-pagination a, .main-pagination span, .tag-link, .widget-title {
    font-family: var(--fira) !important;
    font-weight: 600 !important
    }
.post-date {
    font-size: 11px;
    color: #888;
    font-family: var(--secondary-font);
    margin-bottom: 10px
    }
.breadcrumb {
    font-size: 11px;
    color: #ccc
    }
.breadcrumb a {
    font-size: 11px;
    font-weight: 300;
    color: var(--accent2)
    }
.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 750px) 320px;
    max-width: 1140px;
    margin: 40px auto;
    gap: 70px;
    padding: 0 20px
    }
.content-area {
    min-width: 0 !important;
    overflow: hidden
    }
.sidebar-area {
    width: 320px
    }
.main-header {
    border-bottom: 1px solid var(--separator);
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    background-color: rgb(229, 246, 255)
    }
.header-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative
    }
.site-logo {
    font-size: 24px;
    text-decoration: none;
    color: #000;
    text-transform: uppercase
    }
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0
    }
.nav-links a {
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    font-size: 14px
    }
#search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    display: none;
    align-items: center;
    z-index: 1100;
    padding: 0 20px
    }
#search-overlay.is-active {
    display: flex
    }
.search-form-fullscreen {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto
    }
.search-input-full {
    flex-grow: 1;
    border: none;
    font-size: 18px;
    padding: 10px 20px;
    outline: none
    }
.search-trigger, .search-close, .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center
    }
.menu-toggle {
    display: none
    }
.post-item-list {
    display: flex;
    gap: 25px;
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
    clear: both;
    padding-bottom: 25px;
    margin-bottom: 25px
    }
.post-item-image {
    flex-shrink: 0;
    width: 240px;
    height: 155px;
    flex: 0 0 200px;
    overflow: hidden;
    border-radius: 4px
    }
.post-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    object-position: center;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease !important
    }
.post-item-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    line-height: 1.2
    }
@media (max-width: 600px) {
    .post-item-list {
        flex-direction: column;
        /* Фото станет над текстом */
        }
    .post-item-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
        /* На мобилках можно сделать фото покрупнее */
        }
    .vd-standard-post .post-item-content h2 {
        font-size: 18px !important
        }
    }
.post-tags-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--separator);
    display: flex;
    flex-wrap: wrap;
    gap: 10px
    }
.tag-link {
    background-color: rgb(248, 247, 252) !important;
    color: #444;
    padding: 5px 12px;
    border-radius: 3px;
    text-decoration: none !important;
    font-size: 13px;
    display: inline-block;
    align-items: center;
    border: 1px solid rgb(235, 235, 245);
    transition: background 0.2s;
    background: #f0f0f0;
    margin: 5px 5px 0 0
    }
.tag-link:hover {
    background-color: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent);
    background: #e0e0e0
    }
.entry-title {
    font-size: 2.2em;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: var(--secondary-font);
    font-weight: 700
    }
.post-main-image img {
    width: 100%;
    height: auto;
    border-radius: 4px
    }
.image-caption {
    font-family: var(--secondary-font);
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 12px 0 30px 0;
    font-style: italic;
    margin-top: 10px
    }
.sidebar-widget {
    margin-bottom: 45px
    }
.sidebar-title {
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase
    }
.sidebar-small-post {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px
    }
.sidebar-thumb {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 4px;
    overflow: hidden
    }
.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
    }
.sidebar-post-title {
    font-size: 0.9em;
    line-height: 1.3em
    }
.main-pagination {
    margin-top: 40px;
    display: flex;
    gap: 8px;
    margin: 40px 0;
    justify-content: center
    }
.main-pagination a, .main-pagination span {
    padding: 10px 18px;
    background: var(--separator);
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 4px
    }
.main-pagination .current {
    background: var(--accent);
    color: #fff !important;
    background-color: #07C !important;
    border-color: #07C !important
    }
.scroll-top-btn {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translatey(-50%);
    background: var(--accent);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001
    }
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        max-width: 800px
        }
    .sidebar-area {
        width: 100%
        }
    }
@media (max-width: 768px) {
    .menu-toggle {
        display: flex
        }
    .desktop-nav {
        display: none
        }
    .post-item-list {
        flex-direction: column
        }
    .post-item-image {
        width: 100%;
        height: 200px
        }
    .wp-block-gallery .wp-block-image {
        width: calc(50% - 15px)
        }
    .wp-block-gallery figure img {
        height: 180px !important
        }
    .footer-feedback-btn.md-btn {
        display: flex;
        width: 100%;
        max-width: 300px;
        margin: 10px auto
        }
    .archive-subtitle {
        font-size: 1.2rem;
        margin: 30px 0 20px 0;
        text-align: center;
        border-left: none;
        padding-left: 0
        }
    .team-card-header {
        flex-direction: column;
        text-align: center
        }
    .team-main-info h3 {
        justify-content: center
        }
    .team-content-grid {
        grid-template-columns: 1fr
        }
    .team-col-facts {
        border-right: none;
        border-bottom: 1px solid #f0f0f0
        }
    .race-card-header {
        flex-direction: column;
        text-align: center
        }
    .race-main-info h3 {
        justify-content: center
        }
    .race-stages-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr))
        }
    }
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: all 0.3s ease;
    padding: 30px 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1)
    }
.mobile-drawer.is-active {
    left: 0
    }
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9998
    }
.mobile-drawer-overlay.is-active {
    display: block
    }
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px
    }
.mobile-nav-links {
    list-style: none;
    padding: 0
    }
.mobile-nav-links li {
    margin-bottom: 20px
    }
.mobile-nav-links a {
    text-decoration: none;
    color: #000;
    font-family: var(--fira);
    font-weight: 600;
    font-size: 18px
    }
.site-footer {
    background-color: rgb(226, 237, 243);
    padding: 60px 0;
    margin-top: 60px;
    color: var(--text-dark)
    }
.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Две основные колонки */
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 60px
    }
.footer-left .footer-logo {
    font-size: 28px;
    font-family: var(--fira);
    font-weight: 600;
    text-decoration: none;
    color: #000
    }
.footer-description {
    margin: 20px 0;
    font-size: 15px;
    color: var(--text-light)
    }
.footer-socials {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    align-items: center
    }
.footer-socials a {
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 1
    }
.footer-socials i {
    font-size: 24px
    }
.footer-legal-blocks {
    margin-top: 30px
    }
.legal-item {
    font-size: 14px;
    margin: 10px 0
    }
.tiny-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4
    }
.footer-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 15px 0
    }
.partner-label {
    font-family: var(--fira);
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    color: var(--text-dark)
    }
.footer-copyright-block {
    font-size: 13px;
    color: var(--text-light)
    }
.footer-copyright-block a {
    color: inherit;
    text-decoration: underline
    }
.footer-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Три равных части внутри правой колонки */
    gap: 20px
    }
.footer-nav-col h4 {
    font-family: var(--fira);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--accent)
    }
.footer-nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0
    }
.footer-nav-col li {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-light)
    }
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px
        }
    .footer-right {
        grid-template-columns: 1fr
        }
    .desktop-nav {
        display: none;
        /* Скрываем обычное меню */
        }
    .mobile-menu-toggle {
        display: flex;
        /* Показываем гамбургер */
        align-items: center;
        justify-content: center
        }
    .teams-grid {
        grid-template-columns: 1fr
        }
    .team-main-photo img {
        height: 200px;
        /* Уменьшаем высоту фото на мобильных */
        }
    .vd-hero-section-wrapper {
        grid-template-columns: 1fr;
        /* Все в одну колонку */
        padding: 15px
        }
    .vd-hero-post .post-item-image {
        height: 250px !important
        }
    .vd-featured-post .post-item-image {
        height: 180px !important
        }
    }
.footer-socials svg {
    width: 32px !important;
    height: 32px !important;
    display: block;
    fill: #222 !important;
    /* Принудительно черный цвет */
    transition: fill 0.2s ease, transform 0.2s ease
    }
.footer-socials a:hover svg {
    fill: var(--accent) !important;
    /* Пурпурный при наведении */
    transform: translatey(-3px)
    }
.footer-counters {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start
    }
.yandex-counter {
    min-height: 31px;
    /* Стандартная высота информера */
    display: block;
    clear: both
    }
.page-header {
    padding-bottom: 15px;
    margin-top: 0;
    border-bottom: 1px solid var(--separator);
    margin-bottom: 30px
    }
.search-results .post-item-list {
    border-color: var(--separator)
    }
a {
    transition: color 0.2s ease-in-out
    }
.archive-description {
    max-width: 750px;
    margin-bottom: 30px;
    line-height: 1.5;
    font-family: var(--primary-font);
    margin-top: 10px;
    font-style: italic;
    color: #666;
    font-size: 15px
    }
.page-title {
    margin: 0;
    padding-bottom: 5px;
    letter-spacing: -0.5px;
    font-family: var(--secondary-font);
    font-size: 28px;
    text-transform: uppercase
    }
.breadcrumbs-content a {
    text-decoration: none;
    color: var(--accent);
    transition: opacity 0.2s
    }
.breadcrumbs-content a:hover {
    opacity: 0.7
    }
.breadcrumbs-content span {
    margin: 0 8px;
    color: #ccc
    }
figcaption {
    font-family: var(--lora);
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin: 12px 0 30px 0;
    font-style: italic
    }
.teams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 колонки на десктопе */
    gap: 30px;
    /* Расстояние между карточками */
    margin-top: 30px
    }
@media (min-width: 1200px) {
    .teams-grid {
        grid-template-columns: repeat(3, 1fr)
        }
    }
.team-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Все карточки одной высоты в ряду */
    }
.team-details {
    flex-grow: 1;
    /* Растягиваем контент, чтобы кнопки прижались к низу */
    display: flex;
    flex-direction: column
    }
.team-actions {
    margin-top: auto;
    /* Прижимает кнопки к нижней границе карточки */
    }
.riders-list {
    list-style: none;
    /* Убираем стандартные точки */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column
    }
.riders-list li {
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    /* Легкий разделитель между именами */
    color: #333
    }
.riders-list li:last-child {
    border-bottom: none;
    /* Убираем черту у последнего гонщика */
    }
.riders-list li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
    width: 15px
    }
.team-main-photo {
    margin: 15px 0;
    max-height: 250px;
    /* Ограничиваем высоту (те самые 200-300px) */
    overflow: hidden;
    position: relative;
    border-radius: 4px
    }
.team-main-photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    /* Картинка заполнит область без искажений */
    transition: transform 0.3s ease;
    display: block
    }
.team-photo-link:hover img {
    transform: scale(1.05)
    }
.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none
    }
.team-photo-link:hover .zoom-icon {
    opacity: 1
    }
.vd-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer
    }
.vd-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5)
    }
.vd-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer
    }
.vd-close:hover {
    color: var(--accent)
    }
.wp-block-table {
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 35px 0;
    background: #fff;
    display: block;
    overflow-x: auto;
    /* Для мобильных */
    font-family: "Fira Sans"
    }
.wp-block-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0
    }
.wp-block-table th {
    background-color: #f8fafd;
    color: #8898aa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e6ed
    }
.wp-block-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 15px;
    color: #32325d
    }
.wp-block-table tr:nth-child(1) td {
    background-color: rgba(255, 237, 0, 0.1)
    }
.wp-block-table tr:nth-child(1) td:first-child {
    color: #d4af37;
    font-weight: 800
    }
.wp-block-table tr:nth-child(2) td {
    background-color: rgba(157, 161, 164, 0.1)
    }
.wp-block-table tr:nth-child(2) td:first-child {
    color: #9da1a4;
    font-weight: 800
    }
.wp-block-table tr:nth-child(3) td {
    background-color: rgba(205, 127, 50, 0.1)
    }
.wp-block-table tr:nth-child(3) td:first-child {
    color: #cd7f32;
    font-weight: 800
    }
.wp-block-table td:first-child {
    font-weight: 400;
    color: #adb5bd;
    width: 60px
    }
.wp-block-table tr:last-child td {
    border-bottom: none
    }
.row-dnf td, .row-dns td, .row-otl td {
    color: #a0aec0 !important;
    /* Серый приглушенный цвет */
    background-color: #fafbfc !important;
    /* Очень светлый фон */
    }
.row-dnf td:first-child, .row-dns td:first-child {
    border-left: 4px solid #e53e3e;
    /* Яркий красный маркер слева */
    color: #e53e3e !important;
    font-weight: 600
    }
.row-otl td:first-child {
    border-left: 4px solid #ed8936;
    /* Оранжевый маркер */
    color: #ed8936 !important;
    font-weight: 600
    }
.row-dnf:hover td, .row-dns:hover td, .row-otl:hover td {
    color: #4a5568 !important;
    opacity: 1
    }
.entry-content iframe, .entry-content object, .entry-content embed, .wp-block-embed {
    max-width: 100%;
    /* Видео никогда не выйдет за границы текста */
    border-radius: 12px;
    /* Скругление в стиле ваших таблиц */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Легкая тень для объема */
    }
.wp-block-embed-youtube, .wp-block-embed {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    /* Центрируем, если видео узкое */
    }
.wp-block-embed__wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    /* Соотношение сторон 16:9 */
    height: 0;
    overflow: hidden
    }
.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
    }
.wp-block-video {
    width: 100% !important;
    max-width: 100% !important;
    margin: 30px 0;
    box-sizing: border-box
    }
.wp-block-video video {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    border-radius: 12px;
    /* Скругление как у таблиц */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: block
    }
.wp-block-video figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: #8898aa;
    text-align: center;
    font-style: italic;
    font-family: "Fira Sans", sans-serif
    }
.entry-content img, .wp-block-image img, .wp-block-image {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto
    }
.wp-block-image img {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px
    }
.wp-block-image figcaption {
    font-size: 13px;
    color: #8898aa;
    text-align: center;
    margin-top: 8px;
    font-style: italic
    }
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /* Расстояние между фото */
    margin: 30px 0 !important;
    padding: 0 !important;
    list-style-type: none !important
    }
.wp-block-gallery .wp-block-image {
    margin: 0 !important;
    flex-grow: 1;
    /* Расчет ширины для 3 колонок по умолчанию */
    width: calc(33.33% - 15px);
    position: relative
    }
.wp-block-gallery figure img {
    width: 100% !important;
    height: 250px !important;
    /* Фиксированная высота для ровной сетки */
    object-fit: cover !important;
    /* Обрезает фото, чтобы они были одинаковыми */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease
    }
.wp-block-gallery figure img:hover {
    transform: scale(1.02)
    }
@media (max-width: 480px) {
    .wp-block-gallery .wp-block-image {
        width: 100%
        }
    }
.wp-block-gallery .wp-block-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 !important;
    padding: 20px 10px 10px !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    /* Градиент для читаемости */
    color: #fff !important;
    font-size: 12px !important;
    text-align: center;
    border-bottom-left-radius: 12px;
    /* Закругляем под радиус фото */
    border-bottom-right-radius: 12px;
    opacity: 0;
    /* Скрываем по умолчанию */
    transition: opacity 0.3s ease
    }
.wp-block-gallery .wp-block-image:hover figcaption {
    opacity: 1
    }
#backToTop {
    display: none;
    /* Скрыта по умолчанию */
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translatey(-50%);
    /* Точное центрирование по вертикали */
    z-index: 999;
    width: 45px;
    height: 45px;
    border: none;
    outline: none;
    background-color: #07C !important;
    /* Тёмный цвет из вашей палитры */
    color: white;
    cursor: pointer;
    border-radius: 12px;
    /* Единство стиля с таблицами */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease
    }
#backToTop:hover {
    background-color: #05a !important;
    /* Золотой при наведении (как 1-е место в таблице) */
    transform: translatey(-50%) scale(1.1)
    }
.arrow-up {
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    margin-top: 5px
    }
.main-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #e1eff7;
    color: #333;
    font-family: "Fira Sans", sans-serif;
    font-size: 15px;
    transition: all 0.2s ease
    }
.main-pagination .prev, .main-pagination .next {
    font-size: 18px;
    font-weight: bold;
    color: rgb(0, 122, 255);
    /* Сделаем их акцентными */
    }
.main-pagination .page-numbers:hover {
    background-color: rgb(229, 246, 255);
    border-color: #07C !important;
    color: #07C !important
    }
.entry-content p:first-of-type {
    font-weight: 600;
    /* Делаем жирным */
    font-size: 1em;
    /* Немного увеличиваем размер для акцента */
    color: #1f201d;
    /* Делаем цвет чуть насыщеннее */
    line-height: 1.5;
    /* Увеличиваем межстрочный интервал для читаемости */
    font-family: var(--lora)
    }
@media screen and (max-width: 768px) {
    .entry-content p:first-of-type {
        font-weight: 600;
        font-size: 1.05em;
        /* Чуть меньше, чем на десктопе */
        line-height: 1.4;
        /* Более компактный интервал */
        margin-bottom: 15px;
        /* Отступ снизу, чтобы текст не слипался со вторым абзацем */
        }
    .related-grid {
        /* На смартфонах: 1 колонка (один над другим) */
        grid-template-columns: 1fr;
        gap: 30px;
        /* Увеличим отступ между новостями для удобства */
        }
    .related-post-title {
        font-size: 18px;
        /* На мобильном заголовки можно сделать чуть крупнее */
        }
    }
.news-post {
    margin-bottom: 3rem;
    max-width: 100%
    }
.post-meta {
    color: #888;
    font-family: var(--secondary-font);
    font-size: 12px;
    margin-bottom: 10px
    }
.post-main-image {
    margin: 0
    }
.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block
    }
.featured-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block
    }
.related-grid {
    display: grid;
    /* На компьютере: 3 колонки одинаковой ширины */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px
    }
.related-item {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    /* Внутренний отступ, чтобы картинка и текст не прилипали к краям */
    transition: all 0.3s ease;
    /* Плавность для всех изменений */
    border: 1px solid #eee;
    /* Тонкая рамка в обычном состоянии */
    display: flex;
    flex-direction: column;
    font-size: 0.88rem;
    border-left: 3px solid var(--team-color);
    padding-left: 10px
    }
.related-item:hover {
    transform: translatey(-5px);
    /* Карточка слегка приподнимается */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    /* Появляется мягкая тень */
    border-color: #d1e7ff;
    /* Рамка становится чуть синее */
    cursor: pointer
    }
.related-thumb {
    width: 100%;
    /* Устанавливаем жесткое соотношение сторон 16:9 */
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 6px;
    background-color: #f0f0f0;
    /* Фон на случай, если картинка долго грузится */
    }
.related-item a {
    text-decoration: none;
    color: inherit
    }
.related-thumb img {
    width: 100%;
    height: 100%;
    /* Магия здесь: картинка заполняет контейнер без искажений,
           лишнее просто обрезается, как в Instagram */
    object-fit: cover;
    /* Центрируем изображение, чтобы важная часть была посередине */
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    /* Подготовили для эффекта наведения */
    }
.related-item:hover .related-thumb img {
    transform: scale(1.05)
    }
.related-post-title {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.3s ease
    }
.related-item:hover .related-post-title {
    color: #08c;
    /* Цвет вашего бренда или Telegram-бара */
    }
.vd-hero-section-wrapper {
    background-color: #f9fbff !important;
    padding: 25px;
    margin-bottom: 35px;
    border-radius: 4px;
    /* Как в твоем оригинале */
    border: 1px solid #eef4f9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px
    }
.vd-hero-section-wrapper .post-item-list {
    display: block !important;
    /* Отменяем flex из раздела №6 */
    border-bottom: none !important;
    /* Убираем черту под 1 и 2 постом */
    padding: 0 !important;
    margin: 0 !important
    }
.vd-hero-section-wrapper .vd-hero-post {
    grid-column: 1/-1;
    border-bottom: 1px solid #e1eff7 !important;
    padding-bottom: 25px !important;
    margin-bottom: 5px !important
    }
.vd-hero-section-wrapper .post-item-image {
    width: 100% !important;
    /* Вместо 200px */
    height: auto !important;
    /* Вместо 155px */
    flex: none !important;
    margin-bottom: 15px
    }
.vd-hero-post .post-item-image img {
    height: 380px !important;
    width: 100% !important;
    object-fit: cover
    }
.vd-featured-post .post-item-image img {
    height: 200px !important;
    width: 100% !important;
    object-fit: cover
    }
.vd-hero-post .post-item-content h2 {
    font-size: 28px !important;
    /* Чуть крупнее стандартных 24px */
    margin-bottom: 10px !important
    }
.vd-featured-post .post-item-content h2 {
    font-size: 20px !important;
    /* Чуть меньше стандартных 24px */
    }
.vd-hero-section-wrapper .entry-excerpt {
    font-size: 15px !important;
    line-height: 1.5;
    color: var(--text-light)
    }
@media (max-width: 800px) {
    .vd-hero-section-wrapper {
        grid-template-columns: 1fr;
        padding: 15px
        }
    .vd-hero-post .post-item-image img {
        height: 220px !important
        }
    }
.vd-standard-post .post-item-content h2 {
    font-size: 19px !important;
    /* Было 24px, делаем компактнее */
    line-height: 1.15 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.2px
    }
.vd-standard-post .entry-excerpt {
    font-family: var(--lora) !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #444 !important
    }
.post-item-list.vd-standard-post {
    padding: 20px 0 !important;
    /* Чуть уменьшили вертикальные отступы */
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 25px !important;
    margin-bottom: 25px !important;
    gap: 20px !important
    }
.vd-standard-post:last-of-type {
    border-bottom: none !important
    }
.entry-content img, .post-main-image img, .featured-image {
    max-width: 100% !important;
    height: auto !important
    }
.post-item-list .post-item-content h2 a {
    transition: color 0.2s ease-in-out !important;
    color: var(--text-dark);
    text-decoration: none !important
    }
.post-item-list .post-item-content h2 a:hover {
    color: #07C !important;
    /* Глубокий голубой */
    }
.post-item-image a {
    display: block;
    overflow: hidden;
    border-radius: 4px
    }
.post-item-image:hover img {
    filter: brightness(1.05);
    transform: scale(1.03)
    }
.entry-excerpt {
    color: var(--text-light)
    }
.telegram-bar {
    background-color: #f7fcff;
    border-bottom: 1px solid #d1e7ff;
    border-top: 1px solid #d1e7ff;
    padding: 10px 15px;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em
    }
.telegram-bar a {
    color: #08c;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 136, 204, 0.3);
    transition: all 0.2s ease
    }
.telegram-bar a:hover {
    color: #005f99;
    border-bottom-color: #005f99
    }
@media (max-width: 850px) {
    .main-layout {
        display: flex !important;
        flex-direction: column !important;
        float: none !important;
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important
        }
    .content-area {
        order: 1 !important;
        width: 100% !important;
        float: none !important;
        margin: 0 !important
        }
    .sidebar-area {
        order: 2 !important;
        width: 100% !important;
        float: none !important;
        margin-top: 50px !important;
        /* Отступ, чтобы не слипалось с пагинацией */
        padding-top: 30px;
        border-top: 2px solid #f0f0f0
        }
    .vd-hero-section-wrapper {
        display: block !important;
        margin-left: -15px !important;
        /* Растягиваем фон до краев экрана */
        margin-right: -15px !important;
        padding: 20px 20px !important;
        /* Внутренние отступы для контента (20px) */
        background-color: #f9fbff !important;
        border-top: 1px solid #eef4f9 !important;
        /* Легкая верхняя граница */
        border-bottom: 1px solid #eef4f9 !important;
        /* Легкая нижняя граница */
        box-sizing: border-box !important;
        border-radius: 0 !important
        }
    .vd-hero-section-wrapper .post-item-image {
        width: 100% !important;
        height: auto !important;
        /* Позволяем картинке сохранять пропорции */
        margin-bottom: 15px !important
        }
    .vd-hero-section-wrapper .post-item-image img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover;
        border-radius: 4px;
        /* Скругление углов у самой картинки */
        }
    .vd-hero-section-wrapper .post-item-list {
        display: block !important;
        margin-bottom: 25px !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid #e1eff7 !important
        }
    .vd-hero-section-wrapper .post-item-content {
        padding: 0 5px !important
        }
    .post-item-list.vd-standard-post {
        flex-direction: column !important;
        /* Фото над текстом */
        padding: 20px 0 !important
        }
    .post-item-list.vd-standard-post .post-item-image {
        width: 100% !important;
        height: 200px !important;
        margin-bottom: 15px
        }
    .telegram-bar {
        font-size: 13px;
        line-height: 1.4;
        padding: 12px;
        text-align: center
        }
    .entry-title {
        font-size: 24px !important;
        /* Было 36px, для мобильных 24px — идеал */
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        padding: 0 5px !important
        }
    .main-header {
        padding: 5px 0 !important
        }
    }
.has-background {
    padding: 10px !important
    }
.vd-tg-form-wrapper {
    background: #f7fcff;
    /* Тот самый светлый бэкграунд */
    color: #333;
    /* Темный текст для контраста */
    padding: 25px;
    border-radius: 12px;
    font-family: inherit;
    margin: 20px 0;
    border: 1px solid #e1e8ed;
    /* Тонкая рамка, чтобы форма не сливалась с белым фоном */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03)
    }
.vd-tg-form-wrapper h3 {
    margin-top: 0;
    color: #2c3e50 !important;
    /* Темный заголовок */
    font-size: 1.5em;
    margin-bottom: 15px
    }
.vd-tg-form-wrapper input[type="text"], .vd-tg-form-wrapper input[type="email"], .vd-tg-form-wrapper textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    /* Более заметная граница для светлого фона */
    background: #fff;
    color: #333;
    box-sizing: border-box
    }
.vd-tg-form-wrapper input:focus, .vd-tg-form-wrapper textarea:focus {
    border-color: #e67e22;
    /* Оранжевый акцент при наведении */
    outline: none
    }
.vd-tg-form-wrapper .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap
    }
.vd-tg-form-wrapper .form-col {
    flex: 1;
    min-width: 200px
    }
.vd-tg-form-wrapper .file-upload {
    margin-bottom: 15px;
    font-size: 0.9em
    }
.vd-tg-form-wrapper .file-upload label {
    display: block;
    margin-bottom: 5px;
    color: #555
    }
.vd-tg-form-wrapper .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px
    }
.vd-tg-form-wrapper .privacy-note {
    font-size: 0.78em;
    color: #7f8c8d;
    /* Серый текст для пояснения */
    margin: 0;
    line-height: 1.4;
    max-width: 70%
    }
.vd-tg-form-wrapper .submit-btn {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease
    }
.vd-tg-form-wrapper .submit-btn:hover {
    background: #d35400;
    transform: translatey(-1px)
    }
.vd-tg-form-wrapper .success-msg {
    background: #eafaf1;
    border: 1px solid #27ae60;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #27ae60
    }
.footer-feedback-btn.md-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    /* Белый цвет, чтобы выделиться на rgb(226, 237, 243) */
    color: #1976d2 !important;
    /* Material Blue для текста */
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    /* text-transform: uppercase; */
    letter-spacing: 0.8px;
    border-radius: 4px;
    border: none;
    /* Мягкая тень для эффекта глубины Material */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1)
    }
.footer-feedback-btn.md-btn:hover {
    background-color: #f0f7ff;
    /* Очень легкий голубой оттенок при наведении */
    box-shadow: 0 5px 12px rgba(25, 118, 210, 0.15);
    /* Цветная тень при наведении */
    transform: translatey(-2px)
    }
.footer-feedback-btn.md-btn:active {
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    transform: translatey(0)
    }
.velo-breadcrumbs a {
    text-decoration: none;
    transition: color 0.2s
    }
.velo-breadcrumbs a:hover {
    color: #e67e22 !important
    }
.calculator-page-wrapper {
    max-width: 800px;
    /* Ограничиваем ширину для лучшей читаемости */
    margin: 0 auto
    }
.yandex-ad-block {
    min-height: 250px;
    /* Чтобы страница не "прыгала" при загрузке рекламы */
    display: flex;
    flex-direction: column;
    justify-content: center
    }
.calc-footer-nav a {
    color: #1976d2;
    text-decoration: underline
    }
.calc-footer-nav a:hover {
    color: #e67e22
    }
.archive-item {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--separator);
    padding-bottom: 20px;
    display: flex;
    gap: 20px
    }
.archive-item .post-item-image {
    flex: 0 0 200px
    }
.archive-item .post-item-image img {
    width: 100%;
    height: auto;
    border-radius: 4px
    }
.archive-item .post-item-content {
    flex: 1
    }
.archive-item .entry-title {
    margin: 0 0 10px 0;
    font-family: var(--secondary-font);
    font-size: 1.3rem
    }
.archive-item .entry-title a {
    text-decoration: none;
    color: #222
    }
.archive-item .post-date {
    margin-top: 12px;
    font-family: var(--secondary-font);
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase
    }
.archive-pagination {
    font-family: var(--secondary-font);
    margin-top: 40px;
    display: flex;
    gap: 10px
    }
.archive-pagination a, .archive-pagination span {
    padding: 8px 12px;
    background: var(--bg-header);
    border-radius: 4px;
    text-decoration: none;
    color: inherit
    }
.footer-partners {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px
    }
.footer-partners img {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0
    }
.footer-partners a {
    text-decoration: none;
    color: inherit
    }
.footer-partners a:hover {
    text-decoration: underline
    }
.footer-partners .sep {
    color: #ccc;
    margin: 0 5px
    }
.rider-card-full {
    font-weight: 400;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin: 30px 0;
    overflow: hidden;
    font-family: var(--fira), sans-serif;
    /* Используем твой шрифт */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    container-type: inline-size;
    /* Позволяет карточке адаптироваться к своей ширине */
    }
.rider-card-header {
    display: flex;
    background: #fcfcfc;
    padding: 30px;
    border-bottom: 1px solid #eee;
    align-items: center;
    gap: 30px
    }
.rider-photo-big {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0
    }
.rider-main-info h3 {
    margin: 0 0 5px 0 !important;
    font-size: 1.8rem !important;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.2
    }
.rider-country-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #666;
    font-weight: normal
    }
.rider-flag-icon {
    width: 24px;
    height: auto;
    border-radius: 2px
    }
.rider-team-label {
    font-size: 1.1rem;
    color: #000;
    font-weight: 600;
    margin-bottom: 10px
    }
.rider-desc-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
    margin: 0
    }
.rider-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff
    }
.rider-col-facts {
    padding: 25px;
    border-right: 1px solid #f0f0f0
    }
.rider-col-awards {
    padding: 25px;
    background: #fafafa
    }
.rider-info-row {
    margin-bottom: 18px;
    font-size: 0.95rem;
    display: flex;
    gap: 8px;
    line-height: 1.4;
    align-items: flex-start
    }
.rider-info-row strong {
    color: #888;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    min-width: 90px;
    flex-shrink: 0
    }
.awards-title-mini {
    display: block;
    color: #888;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    font-weight: bold
    }
.rider-awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #333
    }
.rider-awards-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px
    }
.rider-awards-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fc0;
    /* Желтый акцент под Red Bull или твой бренд */
    font-weight: bold
    }
.rider-footer-link {
    display: block;
    background: #000;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    padding: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.3s
    }
.rider-footer-link:hover {
    background: #333
    }
.rider-spec-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Увеличили расстояние между строками специализаций */
    }
.rider-spec-list span {
    line-height: 1.2;
    /* Делаем межстрочный интервал внутри одной фразы чуть плотнее */
    display: block
    }
.rider-social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    margin: 8px 0 12px 0
    }
.rider-social-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    color: #d32f2f;
    /* Или любой твой акцентный цвет */
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s
    }
.rider-social-links a:hover {
    border-color: #d32f2f;
    opacity: 0.8
    }
.social-btn {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555 !important;
    transition: all 0.2s;
    border: 1px solid #ddd
    }
.social-btn:hover {
    background: #000;
    color: #fff !important;
    border-color: #333;
    background-color: #333
    }
.social-btn.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #fff !important
    }
.social-btn.instagram:hover {
    background-color: #E1306C;
    border-color: #E1306C;
    color: #fff !important
    }
.social-btn.twitter:hover {
    background-color: #000;
    border-color: #000;
    color: #fff !important
    }
.social-btn.strava:hover {
    background-color: #FC6100;
    border-color: #FC6100;
    color: #fff !important
    }
.archive-subtitle {
    margin: 40px 0 25px 0;
    font-size: 1.5rem;
    font-weight: 700;
    border-left: 4px solid #000;
    /* Небольшой акцент слева */
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px
    }
.team-card-full {
    font-weight: 400;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin: 30px 0;
    overflow: hidden;
    font-family: var(--fira), sans-serif;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    container-type: inline-size
    }
.team-card-header {
    display: flex;
    background: #fcfcfc;
    padding: 30px;
    border-bottom: 1px solid #eee;
    align-items: center;
    gap: 30px
    }
.team-logo-big {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
    padding: 0;
    border: 1px solid #e0e0e0;
    flex-shrink: 0
    }
.team-main-info h3 {
    margin: 0 0 5px 0 !important;
    font-size: 1.8rem !important;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.2
    }
.team-country-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #666;
    font-weight: normal
    }
.team-flag-icon {
    width: 24px;
    height: auto;
    border-radius: 2px
    }
.team-code-label {
    font-size: 1.1rem;
    color: var(--team-color);
    font-weight: 600;
    margin-bottom: 10px
    }
.team-desc-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
    margin: 0
    }
.team-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff
    }
.team-col-facts {
    padding: 25px;
    border-right: 1px solid #f0f0f0
    }
.team-col-sidebar {
    padding: 25px;
    background: #fafafa
    }
.team-info-row {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.4
    }
.team-info-row strong {
    display: block;
    color: #888;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    margin-bottom: 8px
    }
.team-sponsors-list {
    display: flex;
    flex-direction: column;
    gap: 4px
    }
.sponsor-tag {
    font-size: 0.9rem
    }
.sponsor-tag a {
    color: var(--team-color);
    text-decoration: none;
    font-weight: 600
    }
.sponsor-tag a:hover {
    text-decoration: underline
    }
.sponsor-tag small {
    color: #888;
    font-size: 0.8rem
    }
.team-equipment-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px
    }
.equipment-item {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px
    }
.equip-label {
    color: #888;
    font-size: 0.7rem;
    /* text-transform: uppercase; */
    letter-spacing: 0.3px
    }
.equip-value {
    font-weight: 500
    }
.staff-list {
    display: flex;
    flex-direction: column;
    gap: 4px
    }
.staff-item {
    font-size: 0.88rem
    }
.staff-name {
    font-weight: 600
    }
.staff-role {
    color: #888
    }
.related-teams-list {
    display: flex;
    flex-direction: column;
    gap: 6px
    }
.related-name {
    font-weight: 600;
    display: block
    }
.related-meta {
    color: #888;
    font-size: 0.78rem
    }
.sidebar-title-mini {
    display: block;
    color: #888;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: bold
    }
.sidebar-title-mini:not(:first-child) {
    margin-top: 25px
    }
.team-history-list {
    font-size: 0.85rem
    }
.team-col-facts .team-history-list {
    margin-top: 0
    }
.team-col-facts .history-item {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    line-height: 1.3
    }
.team-col-facts .history-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--team-color);
    font-weight: bold
    }
.history-item {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    line-height: 1.3
    }
.history-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--team-color);
    font-weight: bold
    }
.history-year {
    font-weight: 700;
    color: #000;
    margin-right: 6px
    }
.history-name {
    color: #555
    }
.team-roster-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem
    }
.roster-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    text-decoration: none;
    color: #333;
    transition: color 0.2s
    }
.roster-item:hover {
    color: var(--team-color)
    }
.roster-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 1px;
    flex-shrink: 0
    }
.roster-name {
    font-size: 0.85rem
    }
.team-social-links {
    display: flex;
    gap: 10px;
    margin: 8px 0 12px 0
    }
.team-social-links .social-btn {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555 !important;
    transition: all 0.2s;
    border: 1px solid #ddd
    }
.team-social-links .social-btn:hover {
    background: #000;
    color: #fff !important;
    border-color: #000
    }
.team-social-links .social-btn.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #fff !important
    }
.team-social-links .social-btn.instagram:hover {
    background-color: #E1306C;
    border-color: #E1306C;
    color: #fff !important
    }
.team-social-links .social-btn.twitter:hover {
    background-color: #000;
    border-color: #000;
    color: #fff !important
    }
.team-social-links .social-btn.strava:hover {
    background-color: #FC6100;
    border-color: #FC6100;
    color: #fff !important
    }
.team-social-links .social-btn.youtube:hover {
    background-color: #F00;
    border-color: #F00;
    color: #fff !important
    }
.team-social-links .social-btn.tiktok:hover {
    background-color: #000;
    border-color: #000;
    color: #fff !important
    }
.team-social-links .social-btn.linkedin:hover {
    background-color: #0077B5;
    border-color: #0077B5;
    color: #fff !important
    }
.race-card-full {
    font-weight: 400;
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin: 30px 0;
    overflow: hidden;
    font-family: var(--fira), sans-serif;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    container-type: inline-size
    }
.race-card-header {
    display: flex;
    background: #fcfcfc;
    padding: 30px;
    border-bottom: 1px solid #eee;
    align-items: center;
    gap: 30px
    }
.race-logo-big {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
    border: 1px solid #e0e0e0;
    flex-shrink: 0
    }
.race-main-info h3 {
    margin: 0 0 5px 0 !important;
    font-size: 1.8rem !important;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.2
    }
.race-organizer-label {
    font-size: 1.1rem;
    color: #d32f2f;
    font-weight: 600;
    margin-bottom: 10px
    }
.race-desc-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
    margin: 0
    }
.race-facts-section {
    border-bottom: 1px solid #eee
    }
.race-facts-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #f5f5f5
    }
.race-facts-row:last-child {
    border-bottom: none
    }
.race-fact-item {
    flex: 1;
    min-width: 120px;
    padding: 14px 20px;
    border-right: 1px solid #f0f0f0;
    text-align: center
    }
.race-fact-item:last-child {
    border-right: none
    }
.fact-label {
    display: block;
    color: #888;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600
    }
.fact-value {
    font-size: 1rem;
    font-weight: 700;
    color: #000
    }
.race-facts-classifications {
    padding: 14px 20px;
    gap: 10px
    }
.race-facts-classifications .fact-label {
    display: inline-block;
    margin-bottom: 0;
    margin-right: 10px
    }
.classifications-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
    }
.class-jersey {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap
    }
.race-stages-details {
    border-top: 1px solid #eee
    }
.stages-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 25px;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    list-style: none
    }
.stages-summary::-webkit-details-marker {
    display: none
    }
.stages-summary:hover {
    background: #f9f9f9
    }
.stages-arrow {
    font-size: 0.8rem;
    color: #888;
    transition: transform 0.3s
    }
.race-stages-details[open] .stages-arrow {
    transform: rotate(180deg)
    }
.race-stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 0 25px 25px 25px
    }
.stage-card {
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.2s
    }
.stage-card:hover {
    transform: translatey(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08)
    }
.stage-profile {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    background: #f0f0f0
    }
.stage-card-content {
    padding: 12px
    }
.stage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px
    }
.stage-num {
    font-weight: 700;
    font-size: 0.85rem;
    color: #000
    }
.stage-date {
    font-size: 0.75rem;
    color: #888
    }
.stage-route {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #333
    }
.stage-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px
    }
.stage-type {
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px
    }
.stage-dist {
    font-weight: 600
    }
.stage-elev {
    color: #d32f2f
    }
.stage-type-badge {
    width: 100%;
    padding: 6px 0;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px
    }
.stage-type-badge[data-type*="Flat"], .stage-type-badge[data-type*="равнинный"], .stage-type-badge[data-type*="Равнинный"] {
    background: #e8f5e9;
    color: #2e7d32
    }
.stage-type-badge[data-type*="Hilly"], .stage-type-badge[data-type*="холмистый"], .stage-type-badge[data-type*="Холмистый"] {
    background: #fff3e0;
    color: #e65100
    }
.stage-type-badge[data-type*="Medium mountain"], .stage-type-badge[data-type*="средней сложности"], .stage-type-badge[data-type*="Средние горы"] {
    background: #fce4ec;
    color: #c62828
    }
.stage-type-badge[data-type*="Mountain"], .stage-type-badge[data-type*="горный"], .stage-type-badge[data-type*="Горный"] {
    background: #e53935;
    color: #fff
    }
.stage-type-badge[data-type*="Individual Time Trial"], .stage-type-badge[data-type*="ITT"], .stage-type-badge[data-type*="индивидуальная"] {
    background: #e3f2fd;
    color: #1565c0
    }
.stage-type-badge[data-type*="Индивидуальная"], .stage-type-badge[data-type*="ITT"] {
    background: #e3f2fd;
    color: #1565c0
    }
.stage-type-badge[data-type*="Командная"], .stage-type-badge[data-type*="TTT"] {
    background: #e0f7fa;
    color: #00838f
    }
.race-social-links {
    display: flex;
    gap: 10px;
    margin: 8px 0 12px 0
    }
.race-social-links .social-btn {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555 !important;
    transition: all 0.2s;
    border: 1px solid #ddd
    }
.race-social-links .social-btn:hover {
    background: #000;
    color: #fff !important;
    border-color: #000
    }
.race-social-links .social-btn.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #fff !important
    }
.race-social-links .social-btn.instagram:hover {
    background-color: #E1306C;
    border-color: #E1306C;
    color: #fff !important
    }
.race-social-links .social-btn.twitter:hover {
    background-color: #000;
    border-color: #000;
    color: #fff !important
    }
.race-social-links .social-btn.tiktok:hover {
    background-color: #000;
    border-color: #000;
    color: #fff !important
    }
.race-social-links .social-btn.strava:hover {
    background-color: #FC6100;
    border-color: #FC6100;
    color: #fff !important
    }
.stages-collapse-wrap {
    display: flex;
    justify-content: center;
    padding: 0 25px 20px 25px
    }
.stages-collapse-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--fira), sans-serif
    }
.stages-collapse-btn:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc
    }

.rider-spec-list span {
    display: inline-block;
    padding: 4px 8px;
    margin: 3px 5px 0 0;
    font-size: 12px;
    border-radius: 6px;
    background: #f2f2f2;
}

/* ==================== МОБИЛЬНАЯ АДАПТАЦИЯ ==================== */

/* Для планшетов (до 900px) */
@media (max-width: 900px) {
    /* Карточка гонщика */
    .rider-card-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }
    
    .rider-main-info h3 {
        justify-content: center;
        font-size: 1.5rem !important;
    }
    
    .rider-country-meta {
        justify-content: center;
    }
    
    .rider-social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .rider-content-grid {
        grid-template-columns: 1fr;
    }
    
    .rider-col-facts {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 20px;
    }
    
    .rider-col-awards {
        padding: 20px;
    }
    
    /* Карточка команды */
    .team-card-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }
    
    .team-main-info h3 {
        justify-content: center;
        font-size: 1.5rem !important;
    }
    
    .team-country-meta {
        justify-content: center;
    }
    
    .team-social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .team-content-grid {
        grid-template-columns: 1fr;
    }
    
    .team-col-facts {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 20px;
    }
    
    .team-col-sidebar {
        padding: 20px;
    }
    
    .team-equipment-list {
        grid-template-columns: 1fr;
    }
    
    /* Карточка гонки */
    .race-card-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }
    
    .race-main-info h3 {
        justify-content: center;
        font-size: 1.5rem !important;
        flex-direction: column;
        gap: 10px;
    }
    
    .race-social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .race-facts-row {
        flex-direction: column;
    }
    
    .race-fact-item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
    }
    
    .race-fact-item:last-child {
        border-bottom: none;
    }
    
    .fact-label {
        margin-bottom: 0;
        font-size: 0.7rem;
    }
    
    .fact-value {
        font-size: 0.95rem;
    }
    
    .race-facts-classifications {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .race-facts-classifications .fact-label {
        margin-bottom: 5px;
    }
    
    .classifications-inline {
        flex-wrap: wrap;
    }
    
    .race-stages-grid {
        grid-template-columns: 1fr;
        padding: 0 15px 20px 15px;
    }
}

/* Для маленьких телефонов (до 600px) */
@media (max-width: 600px) {
    /* Карточка гонщика */
    .rider-card-header {
        padding: 20px;
    }
    
    .rider-photo-big {
        width: 120px;
        height: 120px;
    }
    
    .rider-main-info h3 {
        font-size: 1.3rem !important;
        flex-direction: column;
        gap: 8px;
    }
    
    .rider-team-label {
        font-size: 1rem;
    }
    
    .rider-desc-text {
        font-size: 0.85rem;
    }
    
    .rider-info-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .rider-info-row strong {
        min-width: auto;
    }
    
    .rider-spec-list span {
        display: inline-block;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .rider-awards-list li {
        font-size: 0.82rem;
    }
    
    .social-btn {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    /* Карточка команды */
    .team-card-header {
        padding: 20px;
    }
    
    .team-logo-big {
        width: 100px;
        height: 100px;
    }
    
    .team-main-info h3 {
        font-size: 1.3rem !important;
        flex-direction: column;
        gap: 8px;
    }
    
    .team-code-label {
        font-size: 0.9rem;
    }
    
    .team-desc-text {
        font-size: 0.85rem;
    }
    
    .team-info-row strong {
        font-size: 0.65rem;
    }
    
    .team-info-row {
        font-size: 0.85rem;
    }
    
    .equipment-item {
        font-size: 0.8rem;
    }
    
    .staff-item {
        font-size: 0.8rem;
    }
    
    .roster-item {
        font-size: 0.8rem;
    }
    
    /* Карточка гонки */
    .race-card-header {
        padding: 20px;
    }
    
    .race-logo-big {
        width: 90px;
        height: 90px;
    }
    
    .race-main-info h3 {
        font-size: 1.3rem !important;
    }
    
    .race-organizer-label {
        font-size: 0.9rem;
    }
    
    .race-desc-text {
        font-size: 0.85rem;
    }
    
    .race-fact-item {
        padding: 10px 15px;
    }
    
    .fact-label {
        font-size: 0.65rem;
    }
    
    .fact-value {
        font-size: 0.85rem;
    }
    
    .class-jersey {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .stage-card-content {
        padding: 10px;
    }
    
    .stage-num {
        font-size: 0.8rem;
    }
    
    .stage-route {
        font-size: 0.8rem;
    }
    
    .stage-meta {
        font-size: 0.7rem;
    }
    
    .stages-summary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .stages-collapse-btn {
        padding: 6px 20px;
        font-size: 0.8rem;
    }
}