/* Шрифты теперь подключаются только через fonts.css */

/* Базовые стили для страницы */
body {
    line-height: 1.6;
    color: #1E1E1E;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Запрет прокрутки для тела страницы */
body.no-scroll {
    overflow: hidden;
}

/* Стили для главного контейнера */
.article-container {
    max-width: 1200px;
    margin: 120px auto 80px;
    padding: 0 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    min-height: 1px;
}

/* Шапка статьи */
.article-header {
    padding: 40px;
    text-align: left;
    background-color: #fff;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Стили для шапки внутри контента */
.article-header-inner {
    padding-bottom: 40px;
}

/* Разделительная линия между заголовком и контентом */
.article-divider {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 0 0 40px 0;
}

.article-title {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    color: #1E1E1E;
    display: block;
    width: 100%;
}

.article-subtitle {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;   
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    margin-bottom: 0;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content:center;
}

.blog-card__date {
    color: #ff6b00;
    font-size: 14px;
    padding: 4px 18px;
    background-color: #fff0e8;
    border-radius: 30px;
    display: inline-block;
}

.blog-card__category {
    padding: 4px 18px;
    background-color: #fff0e8;
    color: #ff6b00;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.blog-card__reading-time {
    padding: 4px 18px;
    background-color: #fff0e8;
    color: #ff6b00;
    border-radius: 30px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.blog-card__reading-time svg {
    width: 12px;
    height: 12px;
    fill: #888;
}

/* Контент статьи */
.article-content {
    padding: 1px 30px 30px 30px;
    background-color: #fff;
    border-radius: 16px;
    margin-bottom: 60px;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    line-height: 1.3;
    color: #1E1E1E;
}

.article-content h3, .article-content h4 {
    margin: 30px 0 15px;
}

.article-content h3 {
    font-size: 24px;
}

.article-content h4 {
    font-size: 20px;
}

.article-content ul {
    margin: 20px 0;
    padding-left: 30px;
    list-style-type: disc;
    -webkit-padding-start: 30px;
    -webkit-margin-before: 20px;
    -webkit-margin-after: 20px;
}

.article-content li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
    display: list-item;
    -webkit-margin-after: 10px;
}

.article-content li:first-child {
    -webkit-margin-before: 0;
    margin-top: 0;
}

.blockquote {
    background: rgb(255 221 196 / 20%);
    border: 1px solid #ffc9a1;
    border-radius: 12px;
    padding: 20px 30px;
    margin: 30px 0;
}

.blockquote p{
    color: #333;
    margin: 0;
}

/* Стили для изображений в статье */
.article-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .article-container {
        margin-top: 100px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-header {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-header-inner {
        padding-bottom: 15px;
    }
    
    .article-divider {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .article-container {
        margin-top: 80px;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .article-title {
        font-size: 24px;
        padding-bottom: 10px;
    }
    
    .article-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .article-content {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .article-header-inner {
        padding-bottom: 30px;
    }
    
    .article-divider {
        margin-bottom: 30px;
    }
    
    .article-meta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .blog-card__date,
    .blog-card__category,
    .blog-card__reading-time {
        font-size: 0.9rem;
        padding: 0.2rem 0.6rem;
    }
    
    .blog-card__reading-time svg {
        width: 10px;
        height: 10px;
    }
}

/* Стили для кнопки "К списку статей" */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff0e8;
    color: #ff6b00;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    margin-left: calc((100% - 900px) / 2);
}

.back-to-blog:hover {
    background-color: #FF6B00;
    color: white;
}

.back-to-blog-icon {
    transition: transform 0.3s ease;
}

.back-to-blog:hover .back-to-blog-icon {
    transform: translateX(-3px);
}

@media (max-width: 940px) {
    .back-to-blog {
        margin-left: 20px;
        margin-top: 20px;
    }
}

/* Стили для блока рекомендаций */
.recommended-posts {
    margin: 60px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.recommended-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.recommended-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #FF6B00;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px auto;
    width: 100%;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.blog-card__image-container {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

.blog-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}

.blog-card__content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-grow: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    gap: 10px;
}

.blog-card__title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: #222;
}

.blog-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    color: #FF6B00;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    margin-top: auto;
}

.blog-card__link:hover {
    color: #2040a0;
}

.arrow-icon {
    margin-left: 0.3rem;
    transition: transform 0.2s ease;
}

.blog-card__link:hover .arrow-icon {
    transform: translateX(3px);
}

.blog-card__author {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.blog-card__author-avatar,
.blog-card .blog-card__author-avatar,
.recommended-posts .blog-card__author-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    margin: 0;
    border: 1px solid #e6e6e6;
}

.blog-card__author-name {
    font-size: 0.85rem;
    color: #444;
    font-weight: 500;
    white-space: nowrap;
}

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.article-content img.blog-post-author__avatar,
.blog-post-author__avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    margin: 0;
}

.blog-post-author__name {
    font-size: 16px;
    color: #444;
    font-weight: 500;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recommended-title {
        font-size: 24px;
    }
    
    .blog-card__title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для формы обратной связи */
.feedback-form-container {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    margin: 60px 0 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feedback-form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.feedback-form-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
    margin-bottom: 25px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #000000;
    border-radius: 0;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background-color: transparent;
    margin-bottom: 5px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Не скрывать кастомный чекбокс .form-checkbox (как на лендингах услуг / геймификации) */
.checkbox-container input:not(.form-checkbox) {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #FF6B00;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #FF6B00;
    border-color: #FF6B00;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.privacy-link {
    color: #FF6B00;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.submit-button {
    background-color: #FF6B00;
    color: #FFFFFF;
    font-size: 16px;
    padding: 15px 30px;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-align: center;
    width: auto;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: #E55D00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
}

.phone-image-container {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
}

.phone-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

@media (max-width: 992px) {
    .contact-form__content {
        flex-direction: column;
    }
    
    .contact-form__left {
        max-width: 100%;
    }
    
    .contact-form__right {
        display: none;
    }
    
    .contact-form__title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

/* Стили для секции формы обратной связи */
.contact-form {
    padding: 0 20px 80px 20px;
    background-color: #f9f9f9;
}

.contact-form__container {
    max-width: 840px;
    margin: 0 auto;
}

.contact-form__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.contact-form__content::before {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    z-index: 1;
}

.contact-form__left {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.contact-form__right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-form__title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #000000;
}

.contact-form__form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-input:focus {
    border-bottom-color: #FF6B00;
    box-shadow: none;
}

.form-input::placeholder {
    color: #999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-input:focus::placeholder {
    opacity: 0.7;
    transform: translateY(-10px);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 40px 0;
    }
    
    .contact-form__content {
        padding: 25px;
    }
    
    .contact-form__title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .form-input {
        padding: 12px 0;
        font-size: 14px;
    }
    
    .submit-button {
        font-size: 14px;
        padding: 12px 24px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 0;
    }
    
    .contact-form__content {
        padding: 40px;
        border-radius: 12px;
    }
    
    .contact-form__title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .checkbox-text {
        font-size: 12px;
    }
    
    .submit-button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Стили для видео блока */
.article-video {
    margin: 40px 0;
    border-top: 1px solid #eee;
}

.article-video h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1E1E1E;
    text-align: center;
}

.article-video p {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .article-video {
        margin: 30px 0;
        padding: 20px 0;
    }
    
    .article-video h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .article-video p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .video-container {
        border-radius: 8px;
    }
}

/* Стили для блока "Поделиться статьей" */
.share-article {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-article__title {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.share-article__icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-article__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #edf2f7;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
    padding: 0;
}

.share-article__icon svg {
    width: 16px;
    height: 16px;
}

.share-article__icon:hover {
    background-color: #e2e8f0;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E0E5EB;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-button:hover {
    background: #FF6B00;
    transform: translateY(-2px);
}

.share-button img {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.share-button:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

@media (max-width: 576px) {
    .share-article {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Стили для обложки статьи из S2-Kak-mobilnye-prilozenuya-transformiryt-rossiiskii-retail.html */
.article-cover {
    margin: 30px 0 40px 0;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cover_img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .article-cover {
        margin: 30px 0;
        border-radius: 8px 8px 0 0;
    }
    
    .cover_img {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .article-cover {
        margin: 30px 0;
        border-radius: 6px 6px 0 0;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }
    
    .cover_img {
        margin: 0;
    }
    
    .article-cover {
        margin-bottom: 20px;
        border-radius: 6px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 768px) {
    .article-cover {
        margin-bottom: 25px;
        border-radius: 8px;
    }
}

/* Стиль для изображений внутри контента статьи */
.article-content img {
    margin: 0;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

/* Стили для блока "Поделиться статьей", которые отличаются от существующих */
.article-share {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-text {
    font-size: 16px;
    font-weight: 600;
    color: #171717;
}

/* Стили для блока рекомендаций */
.recommended-posts .blog-card__date {
    font-size: 12px;
}

.recommended-posts .blog-card__category {
    font-size: 12px;
}

/* Принудительные классы теперь находятся в fonts.css */

/* Стили для блока "Скачать приложение" */
.download-app-section {
    margin: 60px 0;
    padding: 40px 40px;
    background: #fff;
    color: #1E1E1E;
    text-align: left;
    border-radius: 16px;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.download-app-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.download-app-text {
    min-width: 0;
    max-width: 560px;
    flex: 1 1 0;
}

.download-app-title {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #1E1E1E;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.download-app-description {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    color: #666;
    font-weight: 400;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 30%;
    flex-shrink: 0;
}

.download-button {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    background: #FF6B00;
    border: 2px solid #FF6B00;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    font-weight: 600;
    box-sizing: border-box;
}

.download-button:hover {
    background: #E55D00;
    border-color: #E55D00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.2);
    color: #fff;
    text-decoration: none;
}

.download-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    flex-shrink: 0;
}

.download-button__content {
    text-align: left;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download-button__label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.1;
}

.download-button__store {
    font-size: 18px;
    line-height: 1.1;
}

@media (max-width: 900px) {
    .download-app-row {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .download-app-text {
        max-width: 100%;
        margin-bottom: 0;
    }
    .download-buttons {
        flex-direction: row;
        gap: 14px;
        width: 100%;
        margin-top: 0;
    }
    .download-button {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .download-app-section {
        padding: 25px;
    }
    .download-app-title {
        font-size: 22px;
    }
    .download-app-description {
        font-size: 14px;
    }
    .download-buttons {
        flex-direction: row;
        gap: 14px;
        width: 100%;
    }
    .download-button {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }
} 


@media (max-width: 480px) {
    .download-button {
        padding: 12px 16px;
    }
    .download-button__store {
        font-size: 14px;
    }
}


@media (max-width: 364px) {
    .download-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .download-button {
        width: 100%;
        min-width: 0;
    }
}

/* Стили для таблиц */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.article-content table thead {
    background: #f8f8f8;
}

.article-content table thead th {
    color: #333333;
    font-weight: 600;
    font-size: 16px;
    padding: 20px 24px;
    text-align: left;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.article-content table thead th:last-child {
    border-right: none;
}

.article-content table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.article-content table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.article-content table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.article-content table tbody tr:hover {
    background-color: #fafafa;
}

.article-content table tbody tr:last-child {
    border-bottom: none;
}

.article-content table tbody td {
    padding: 18px 24px;
    font-size: 15px;
    line-height: 1.5;
    color: #333333;
    border-right: 1px solid #e0e0e0;
    vertical-align: top;
}

.article-content table tbody td:last-child {
    border-right: none;
}

.article-content table tbody td:first-child {
    font-weight: 500;
    color: #1E1E1E;
}

.article-content table tbody td:last-child {
    color: #FF6B00;
    font-weight: 500;
    border-right: none;
}

/* Адаптивные стили для таблиц */
@media (max-width: 768px) {
    .article-content table {
        margin: 25px 0;
        border-radius: 8px;
        font-size: 14px;
    }
    
    .article-content table thead th {
        padding: 16px 18px;
        font-size: 14px;
    }
    
    .article-content table tbody td {
        padding: 14px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .article-content table {
        margin: 20px -20px;
        border-radius: 0;
        width: calc(100% + 40px);
        border: none;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .article-content table thead th {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .article-content table thead th:first-child,
    .article-content table thead th:last-child {
        border-radius: 0;
    }
    
    .article-content table tbody td {
        padding: 12px 15px;
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Для очень узких экранов делаем таблицу прокручиваемой */
    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin: 20px 0;
        width: 100%;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }
    
    .article-content table thead,
    .article-content table tbody,
    .article-content table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .article-content table thead th,
    .article-content table tbody td {
        white-space: normal;
        word-wrap: break-word;
    }
}