/*
Theme Name: ТурГид
Theme URI: https://po-rf.ru/
Author: ne.seo
Author URI: https://po-rf.ru/
Description: Тема для путеводителя по России с регионами, городами и статьями
Version: 1.0
License: GPL v2 or later
Text Domain: turgid
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
}


.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo span {
    color: #3b82f6;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}
nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover {
    color: #3b82f6;
}
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1200x400?text=Russia+travel') center/cover;
    opacity: 0.1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: 22px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}
.hero .btn {
    display: inline-block;
    background: white;
    color: #1e3a8a;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.hero .btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}
.advantages {
    margin-bottom: 60px;
}
.advantages h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #0f172a;
}
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.adv-item {
    background: white;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.adv-item:hover {
    transform: translateY(-5px);
}
.adv-icon {
    font-size: 48px;
    color: #3b82f6;
    margin-bottom: 20px;
}
.adv-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}
.adv-item p {
    color: #475569;
}
.categories {
    margin-bottom: 60px;
}
.categories h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #0f172a;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.category-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}
.category-card:hover {
    transform: translateY(-5px);
    background: #f1f5f9;
}
.category-card i {
    font-size: 40px;
    color: #3b82f6;
    margin-bottom: 15px;
}
.category-card span {
    font-size: 18px;
    font-weight: 600;
}
.regions, .cities-archive {
    margin-bottom: 60px;
}
.regions h2, .cities-archive h1 {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #0f172a;
}
.region-grid, .city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.region-card, .city-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.region-card:hover, .city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
}
.region-img, .city-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.region-content, .city-content {
    padding: 20px;
}
.region-title, .city-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0f172a;
}
.region-desc, .city-desc {
    color: #475569;
    margin-bottom: 15px;
    font-size: 14px;
}
.cities-list, .cities-list-small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.city-link, .city-link-small {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.city-link:hover, .city-link-small:hover {
    background: #3b82f6;
    color: white;
}
/* Страница города */
.article-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin: 20px 0 40px;
}
.article-content {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}
.article-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.article-meta {
    display: flex;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.featured-image {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-item i {
    font-size: 24px;
    color: #3b82f6;
}
.info-item span {
    font-size: 14px;
    color: #475569;
}
.info-item strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
}
.article-section {
    margin-bottom: 40px;
}
.article-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
.article-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 20px 0 12px;
}
.article-section p {
    margin-bottom: 16px;
    color: #334155;
}
.article-section ul {
    margin: 16px 0 16px 24px;
}
.article-section li {
    margin-bottom: 6px;
}
.inset-box {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 16px;
    margin: 24px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.gallery-item {
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item img:hover {
    transform: scale(1.05);
}
.map-container {
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
    height: 300px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    margin: 20px 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.price-table th, .price-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
}
.price-table th {
    background: #f1f5f9;
    font-weight: 600;
}
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.sidebar-widget {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.sidebar-widget h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0f172a;
}
.table-of-contents {
    list-style: none;
}
.table-of-contents li {
    margin-bottom: 10px;
}
.table-of-contents a {
    text-decoration: none;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.table-of-contents a:hover {
    color: #3b82f6;
}
.table-of-contents a::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
}
.cities-side-list {
    list-style: none;
}
.cities-side-list li {
    margin-bottom: 12px;
}
.cities-side-list a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 12px;
    transition: background 0.2s;
}
.cities-side-list a:hover {
    background: #e2e8f0;
}
.newsletter {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 40px;
    padding: 60px 40px;
    color: white;
    text-align: center;
    margin-bottom: 60px;
}
.newsletter h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}
.newsletter p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}
.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    outline: none;
}
.newsletter-form button {
    background: #fbbf24;
    color: #0f172a;
    border: none;
    padding: 15px 30px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-form button:hover {
    background: #f59e0b;
}
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: 60px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col p {
    max-width: 300px;
    margin-top: 16px;
}
.footer-col h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #3b82f6;
}
.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #334155;
    font-size: 14px;
}
@media (max-width: 900px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        order: 2;
    }
}
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 18px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .article-content {
        padding: 20px;
    }
    .quick-info {
        grid-template-columns: 1fr;
    }
}
/* === Стили для страницы статьи === */
.article-section .articles-grid .article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Комментарии */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}
.comments-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0f172a;
}
.comment-list {
    list-style: none;
    padding: 0;
}
.comment {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}
.comment-author {
    font-weight: 600;
    color: #0f172a;
}
.comment-metadata {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}
.comment-content p {
    margin-bottom: 8px;
    color: #334155;
}
.comment-respond {
    margin-top: 30px;
}
.comment-respond label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s;
}
.comment-respond input[type="text"]:focus,
.comment-respond input[type="email"]:focus,
.comment-respond textarea:focus {
    border-color: #3b82f6;
    outline: none;
}
.comment-respond .form-submit input[type="submit"] {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.comment-respond .form-submit input[type="submit"]:hover {
    background: #1e3a8a;
}

/* Ссылки внутри контента */
.article-section a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}
.article-section a:hover {
    text-decoration: underline;
}

/* Изображения в контенте */
.article-section img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}
.article-section figure {
    margin: 20px 0;
}
.article-section figcaption {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin-top: 8px;
}

/* === СТИЛЬНЫЙ БЛОК МЕТА-ДАННЫХ === */
.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}
.article-meta-top .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-meta-top .meta-item i {
    color: #3b82f6;
    width: 18px;
    text-align: center;
    font-size: 15px;
}
.article-meta-top .meta-item:not(:last-child)::after {
    content: "•";
    color: #94a3b8;
    margin-left: 12px;
}
.article-footer-meta {
    margin: 30px 0 20px;
    padding: 16px 0;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    font-size: 15px;
    color: #64748b;
    text-align: center;
}
.article-footer-meta i {
    color: #3b82f6;
    margin-right: 6px;
}

@media (max-width: 768px) {
    .article-meta-top {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .article-meta-top .meta-item:not(:last-child)::after {
        content: none;
    }
    .article-meta-top .meta-item {
        width: 100%;
    }
}

.article-meta span i {
    color: #3b82f6;
    width: 16px;
    text-align: center;
    margin-right: 2px;
}
.article-list-meta span i {
    color: #3b82f6;
    width: 16px;
    text-align: center;
    margin-right: 2px;
}

/* === Блок погоды (стилизованный) === */
.city-weather {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: background 0.3s ease;
    gap: 16px;
}
.city-weather .weather-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.city-weather .weather-icon {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.city-weather .weather-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}
.city-weather .weather-temp {
    font-size: 40px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}
.city-weather .weather-desc {
    font-size: 18px;
    color: #475569;
    text-transform: capitalize;
}
.city-weather .weather-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}
.city-weather .weather-details {
    display: flex;
    gap: 20px;
    color: #475569;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.city-weather .weather-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.city-weather .weather-details i {
    color: #3b82f6;
    width: 16px;
}
.city-weather .weather-sun {
    display: flex;
    gap: 20px;
    color: #64748b;
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.city-weather .weather-sun span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.city-weather .weather-sun i {
    color: #f59e0b;
    width: 16px;
}

/* Фоны для разных типов погоды */
.city-weather.weather-clear { background: linear-gradient(135deg, #fef9e7, #fdebd0); }
.city-weather.weather-clouds { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); }
.city-weather.weather-rain { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.city-weather.weather-snow { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.city-weather.weather-thunderstorm { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.city-weather.weather-drizzle { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.city-weather.weather-mist { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.city-weather.weather-fog { background: linear-gradient(135deg, #f1f5f9, #d1d5db); }
.city-weather.weather-squall { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }
.city-weather.weather-tornado { background: linear-gradient(135deg, #f1f5f9, #d1d5db); }

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .city-weather {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .city-weather .weather-left {
        justify-content: center;
        width: 100%;
    }
    .city-weather .weather-right {
        align-items: center;
        width: 100%;
    }
    .city-weather .weather-details {
        justify-content: center;
    }
    .city-weather .weather-sun {
        justify-content: center;
    }
    .city-weather .weather-icon {
        width: 80px;
        height: 80px;
        padding: 8px;
    }
    .city-weather .weather-icon img {
        width: 64px;
        height: 64px;
    }
    .city-weather .weather-temp {
        font-size: 32px;
    }
}
@media (max-width: 480px) {
    .city-weather .weather-left {
        flex-direction: column;
        text-align: center;
    }
    .city-weather .weather-details {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .city-weather .weather-sun {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}

/* === ОГЛАВЛЕНИЕ (свёрнутое) === */
.toc-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
    cursor: pointer;
}
.toc-details summary {
    font-weight: 600;
    font-size: 18px;
    color: #0f172a;
    outline: none;
    user-select: none;
    padding: 4px 0;
}
.toc-details summary::-webkit-details-marker {
    color: #3b82f6;
}
.toc-details summary:hover {
    color: #3b82f6;
}
.toc-details .table-of-contents {
    margin-top: 12px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.toc-details .table-of-contents li {
    margin-bottom: 0;
}
.toc-details .table-of-contents a {
    text-decoration: none;
    color: #334155;
    font-size: 15px;
    transition: color 0.2s;
    display: inline-block;
    padding: 2px 0;
}
.toc-details .table-of-contents a:hover {
    color: #3b82f6;
}
.toc-details .table-of-contents a::before {
    content: "•";
    color: #3b82f6;
    margin-right: 8px;
    font-weight: bold;
}

/* === ВИДЖЕТЫ ЯНДЕКС.ПУТЕШЕСТВИЙ === */
.widget-yandex {
    margin-bottom: 30px;
}
.widget-yandex h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}
.widget-yandex .yandex-widget-container {
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.widget-yandex-map .yandex-widget-container {
    min-height: 300px;
    height: auto;
    overflow: visible;
}
.widget-yandex-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.widget-yandex-hotels .yandex-widget-container {
    min-height: 200px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-yandex iframe {
    width: 100% !important;
    height: auto !important;
    min-height: 300px;
    border: 0;
    display: block;
}
/* === СТИЛИ ДЛЯ КОНТЕНТА === */
.article-content-main {
    margin-top: 0;
}
.article-content-main h2 {
    font-size: 28px;
    font-weight: 600;
    color: #0f172a;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
.article-content-main h2:first-child {
    margin-top: 0;
}
.article-content-main h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 28px 0 12px;
}
.article-content-main p {
    margin-bottom: 16px;
    color: #334155;
}
.article-content-main ul,
.article-content-main ol {
    margin: 16px 0 16px 24px;
}
.article-content-main li {
    margin-bottom: 8px;
}
.article-content-main blockquote {
    background: #f1f5f9;
    border-left: 4px solid #3b82f6;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #334155;
}
.article-content-main blockquote cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-size: 14px;
    color: #64748b;
}
.article-content-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.article-content-main table th,
.article-content-main table td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}
.article-content-main table th {
    background: #f1f5f9;
    font-weight: 600;
}
.article-content-main table tr:nth-child(even) {
    background: #f8fafc;
}
.article-content-main table tr:hover {
    background: #f1f5f9;
}
.article-content-main hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 40px 0;
}
.article-content-main img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}
.article-content-main .faq-section {
    margin-top: 40px;
}

/* Адаптив для таблиц на мобильных */
@media (max-width: 768px) {
    .article-content-main table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 13px;
    }
    .article-content-main table th,
    .article-content-main table td {
        padding: 8px 10px;
    }
    .toc-details .table-of-contents a {
        font-size: 14px;
    }
    .widget-yandex-map .yandex-widget-container {
        height: 200px;
    }
}

/* === FAQ АККОРДЕОН (компактный) === */
.faq-compact {
    margin-top: 30px;
}
.faq-compact h2 {
    font-size: 26px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
}
.faq-compact .faq-list {
    display: flex;
    flex-direction: column;
    gap: 6px; /* было 8px → уменьшили */
}
.faq-compact .faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0;
    transition: border-color 0.2s;
    cursor: pointer;
}
.faq-compact .faq-item:hover {
    border-color: #3b82f6;
}
.faq-compact .faq-item summary {
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
    padding: 12px 16px; /* симметрично: сверху и снизу 12px, слева и справа 16px */
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    outline: none;
}
.faq-compact .faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-compact .faq-item summary::after {
    content: "+";
    font-size: 20px;
    color: #3b82f6;
    transition: transform 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
}
.faq-compact .faq-item[open] summary::after {
    content: "−";
}
.faq-compact .faq-item .faq-answer {
    padding: 0 16px 16px 16px; /* было 0 16px 14px 16px → нижний отступ стал 16px (равен боковым) */
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
}
.faq-compact .faq-item .faq-answer p {
    margin-bottom: 10px;
}
.faq-compact .faq-item .faq-answer p:last-child {
    margin-bottom: 0;
}
.faq-compact .faq-item .faq-answer ul,
.faq-compact .faq-item .faq-answer ol {
    margin: 6px 0 10px 18px;
}
.faq-compact .faq-item .faq-answer li {
    margin-bottom: 4px;
}

/* Адаптив */
@media (max-width: 768px) {
    .faq-compact .faq-item summary {
        font-size: 15px;
        padding: 10px 14px; /* симметрично на мобилках */
    }
    .faq-compact .faq-item .faq-answer {
        padding: 0 14px 14px 14px; /* симметрично на мобилках */
        font-size: 14px;
    }
    .faq-compact .faq-item summary::after {
        font-size: 18px;
    }
}