:root {
    --primary-color: #2c3e50;
    --secondary-color: #672de7;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #1a252f;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --gray: #95a5a6;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
        "header header header"
        "sidebar main ads"
        "footer footer footer";
    min-height: 100vh;
}
.ad-bg-rectangle {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

/* Общие стили */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #672de7;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #5311e5;
    color: var(--white);
    border: #fff solid 2px;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: #5311e5;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #c0392b;;
    color: var(--white);
}

/* Шапка */
header {
    grid-area: header;
    background-color: #5311e5e0;
    color: var(--white);
    padding: 15px 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: #ff4848;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--white);
    font-size: 1.5rem;
}

.header-contacts {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    gap: 5px;
}

.contact-link:hover {
    color: #fff;
}

/* Боковое меню */
.sidebar {
    grid-area: sidebar;
    background-color: var(--white);
    padding: 20px;
    box-shadow: var(--box-shadow);
    height: auto;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.sidebar-menu a:hover, 
.sidebar-menu a.active {
    background-color: #2c3e50;;
    color: var(--white);
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Основной контент */
.main-content {
    grid-area: main;
    padding: 30px 20px;
    background-color: var(--white);
}

/* Рекламный блок */
.ads-container {
    grid-area: ads;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #f8f9fa;
    border-left: 1px solid #eee;
}

.ad-block {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    z-index: 10;
}

.ad-close:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.ad-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 8px;
}

.ad-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.ad-content {
    margin-bottom: 15px;
}

.ad-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.ad-block:hover .ad-image {
    transform: scale(1.03);
}

.ad-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-bottom: 10px;
}

/* Рейтинг компаний */
.rating-section {
    margin-bottom: 50px;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.rating-table th {
    background: linear-gradient(360deg, #322550, #461ca1, #4f00ff);
    color: var(--white);
    padding: 15px;
    text-align: left;
}

.rating-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.rating-table tr:last-child td {
    border-bottom: none;
}

.rating-table tr:hover {
    background-color: #f9f9f9;
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--light-color);
}

.company-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.company-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.rating-stars {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Стили для статьи */
.article-section {
    margin-bottom: 50px;
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.article-section h3 {
    color: var(--primary-color);
    margin: 25px 0 15px;
    font-size: 1.3rem;
    position: relative;
    padding-left: 20px;
}

.article-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #5311e5;
    border-radius: 50%;
}

.article-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-color);
}

.article-section .conclusion {
    font-weight: 600;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

.modal-body {
    padding: 30px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab.active {
    border-bottom: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.rating-stars-input {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.rating-stars-input i {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.rating-stars-input i.active {
    color: #f1c40f;
}

.reviews-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.review-item {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

.review-author {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.review-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.review-rating {
    color: #f1c40f;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.review-text {
    margin-bottom: 15px;
    line-height: 1.6;
}

.review-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.action-btn:hover {
    color: var(--accent-color);
}

.action-btn.liked {
    color: var(--secondary-color);
}

.comment-system {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.comment-form-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.comment-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    min-height: 40px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.comment-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.comment-submit-btn {
    align-self: flex-end;
    margin-top: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.comments-container {
    margin-top: 20px;
}

.comment-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 15px;
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.95rem;
}

.comment-date {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.comment-action:hover {
    color: #3498db;
}

.comment-action.liked {
    color: #672de7;
}

.reply-form {
    margin-top: 15px;
    padding: 15px;
    background-color: #f1f8ff;
    border-radius: 8px;
    display: none;
}

.reply-form.active {
    display: block;
}

.replies-container {
    margin-top: 15px;
    padding-left: 25px;
    border-left: 2px solid #3498db;
}

.nested-comment {
    background-color: #f8f9fa;
    margin-top: 15px;
}

.empty-comments {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-style: italic;
}

.company-details {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.company-logo-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light-color);
}

.company-info {
    flex: 1;
}

.advantages-list, .disadvantages-list {
    list-style-type: none;
    margin-bottom: 20px;
}

.advantages-list li, .disadvantages-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.advantages-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #27ae60;
}

.disadvantages-list li:before {
    content: '\f00d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #672de7;
}

.review-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Кнопка "Наверх" */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #c0392b;
    transform: translateY(-5px);
}

/* Подвал */
footer {
    grid-area: footer;
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    z-index: 1000;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__info .logo {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.footer__info p {
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer__nav h3,
.footer__contacts h3,
.footer__subscribe h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer__nav h3::after,
.footer__contacts h3::after,
.footer__subscribe h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer__nav ul {
    list-style: none;
}

.footer__nav li {
    margin-bottom: 12px;
}

.footer__nav a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer__nav a i {
    margin-right: 10px;
    width: 20px;
}

.footer__nav a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer__contacts p {
    margin-bottom: 15px;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.footer__contacts p i {
    margin-right: 10px;
    width: 20px;
    color: var(--secondary-color);
}

.footer__subscribe {
    position: relative;
}

.footer__subscribe p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-form input {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
}

.subscribe-form input::placeholder {
    color: var(--gray);
}

.subscribe-form button {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: #c0392b;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

.footer__bottom a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    margin-left: 15px;
}

.footer__bottom a:hover {
    color: var(--white);
}

.footer__links {
    display: flex;
}

/* Стили для модального окна с таймером */
#promoModal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

#promoModal .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 16px;
    width: 550px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    border: 1px solid #e0e0e0;
    transform: scale(0.95);
    animation: modalAppear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    overflow: hidden;
}

/* Анимация появления */
@keyframes modalAppear {
    0% {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Декоративные элементы */
#promoModal .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f1c40f);
}

/* Кнопка закрытия */
#promoModal .close {
    position: absolute;
    right: 10px;
    top: 15px;
    font-size: 32px;
    font-weight: 300;
    color: #95a5a6;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#promoModal .close:hover {
    color: #e74c3c;
    background-color: #f9f9f9;
    transform: rotate(90deg);
}

/* Заголовок */
#promoModal .modal-title {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Основной текст */
#promoModal .modal-text {
    color: #34495e;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 18px;
}

/* Выделенный текст */
#promoModal .highlight {
    color: #e74c3c;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

#promoModal .highlight::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

/* Список преимуществ */
#promoModal ul {
    text-align: left;
    padding-left: 30px;
    margin: 25px 0 30px;
    list-style-type: none;
}

#promoModal ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 17px;
    color: #2c3e50;
    line-height: 1.6;
}

#promoModal ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

/* Кнопка призыва к действию */
#promoModal .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
    display: inline-block;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

#promoModal .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.5);
}

/* Таймер автозакрытия */
#promoModal .timer-bar {
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: timerCountdown 15s linear forwards;
}

@keyframes timerCountdown {
    0% { width: 100%; }
    100% { width: 0; }
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    #promoModal .modal-content {
        width: 90%;
        padding: 25px 15px;
        border-radius: 8px;
    }
    
    #promoModal .modal-title {
        font-size: 1.4rem;
    }
    
    #promoModal .modal-text {
        font-size: 1rem;
    }
    
    #promoModal ul li {
        font-size: 0.95rem;
        padding-left: 25px;
    }
    
    #promoModal .btn-primary {
        padding: 12px 25px;
        font-size: 1rem;
    }


/* Стили для десктопной версии таблицы рейтинга */
@media (min-width: 769px) {
    .desktop-rating-table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .desktop-rating-table th {
        background: linear-gradient(360deg, #322550, #461ca1, #4f00ff);
        color: white;
        padding: 15px;
        text-align: left;
        font-size: 1.1rem;
    }
    
    .desktop-rating-table td {
        padding: 15px;
        border-bottom: 1px solid #eee;
        vertical-align: top;
    }
    
    .desktop-rating-table tr:last-child td {
        border-bottom: none;
    }
    
    .desktop-rating-table tr:hover {
        background-color: #f9f9f9;
    }
    
    .company-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }
    
    .company-image {
        width: 120px;
        height: 120px;
        border-radius: 8px;
        object-fit: cover;
        border: 2px solid #eee;
    }
    
    .company-title {
        font-weight: 600;
        color: #2c3e50;
        text-align: center;
    }
    
    .company-actions {
        display: flex;
        gap: 10px;
        margin-top: 5px;
    }
    
    .company-description-cell {
        max-width: 500px;
    }
    
    .company-description {
        font-size: 0.95rem;
        color: #333;
        margin-bottom: 10px;
        line-height: 1.5;
    }
    
    .rating-stars {
        color: #f1c40f;
        font-size: 1.2rem;
    }
    
    /* Скрываем мобильную версию таблицы на десктопе */
    .rating-table:not(.desktop-rating-table) {
        display: none;
    }
}

/* Стили для мобильной версии */
@media (max-width: 768px) {
    .desktop-rating-table {
        display: none;
    }
    
    body {
        grid-template-areas: 
            "header"
            "main"
            "footer";
        grid-template-columns: 1fr;
        overflow-x: hidden;
    }
    
    .sidebar, .ads-container {
        display: none;
    }
    
    /* Мобильное меню */
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        background-color: var(--white);
        z-index: 900;
        transform: translateX(-100%);
        transition: var(--transition);
        padding: 20px;
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    /* Стили для таблицы рейтинга на мобильных */
    .rating-table {
        display: block;
        width: 100%;
        overflow-x: hidden;
    }
    
    .rating-table thead {
        display: none;
    }
    
    .rating-table tbody {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .rating-table tr {
        display: flex;
        flex-direction: column;
        background-color: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        padding: 0;
        margin-bottom: 20px;
        overflow: hidden;
        position: relative;
    }
    
    /* Новые стили для мобильных карточек компаний */
    .rating-table td {
        padding: 0;
        border-bottom: none;
        display: flex;
        flex-direction: column;
    }
    
    /* Номер компании */
    .rating-table td:first-child {
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: #5311e5;
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        z-index: 2;
        border: #fff solid 2px;
    }
    
    /* Вертикальное изображение */
    .company-logo {
        width: 100%;
        height: 500px;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
    }
    
    /* Контейнер с информацией поверх изображения */
    .info-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.8), #0000007a);
        padding: 15px;
        color: white;
        z-index: 1;
    }
    
    .company-name {
        font-size: 1.2rem;
        margin-bottom: 5px;
        color: white !important;
    }
    
    .company-description {
        color: rgba(255,255,255,0.9) !important;
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .rating-stars {
        color: #f1c40f !important;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    /* Кнопки под изображением */
    .action-buttons {
        display: flex;
        gap: 8px;
        margin-top: 10px;
    }
    
    .action-buttons .btn {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.85rem;
        text-align: center;
    }
    
    /* Скрываем лишние ячейки на мобильных */
    .rating-table td:nth-child(3),
    .rating-table td:nth-child(4),
    .rating-table td:nth-child(5) {
        display: none;
    }
    
    .burger-menu {
        display: block;
    }
    
    .header-contacts {
        display: none;
    }
    
    .mobile-contacts {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .article-section {
        padding: 20px;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Стили для формы отзыва */
.review-section {
    margin: 50px 0;
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.review-form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Стили для списка отзывов */
.reviews-list {
    margin-top: 40px;
}

/* Стили для модального окна оплаты */
#paymentModal .modal-body {
    padding: 30px;
}

.payment-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.payment-methods {
    margin-top: 30px;
    text-align: center;
}

.payment-methods .methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.payment-success {
    text-align: center;
    padding: 20px;
}

.payment-success .success-icon {
    font-size: 60px;
    color: #27ae60;
    margin-bottom: 20px;
}

.circle-bg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ccc;
    background-image: url('путь/к/изображению.jpg');
    background-size: cover;
    background-position: center;
}


/* Показывать десктопную таблицу только на десктопных устройствах */
@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}