/* agreement-style.css */

/* Основные стили для страницы соглашения */
.agreement-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #fdf8f8 0%, #faf0f4 100%);
}

/* Герой-секция */
.agreement-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.agreement-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><path d="M500 50L520 70L540 50L560 70L580 50L600 70L620 50L640 70L660 50L680 70L700 50L720 70L740 50L760 70L780 50L800 70L820 50L840 70L860 50L880 70L900 50L920 70L940 50L960 70L980 50L1000 70L1000 100L0 100L0 70Z"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.agreement-hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.agreement-hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.agreement-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.agreement-hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
}

.agreement-effective-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
}

/* Контейнер */
.agreement-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Карточка предупреждения */
.agreement-warning-section {
    padding: 40px 0;
}

.agreement-warning-card {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.agreement-warning-icon {
    width: 60px;
    height: 60px;
    background: #ffc107;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.agreement-warning-content {
    flex: 1;
}

.agreement-warning-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #856404;
    margin-bottom: 10px;
}

.agreement-warning-text {
    font-size: 1.1rem;
    color: #856404;
    line-height: 1.6;
    margin: 0;
}

/* Основное содержание */
.agreement-content-section {
    padding: 40px 0 60px;
}

.agreement-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Статьи соглашения */
.agreement-article {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(214, 51, 132, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.agreement-article.highlighted {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(214, 51, 132, 0.15);
}

.agreement-article-header {
    background: linear-gradient(135deg, #fdf8f8 0%, #faf0f4 100%);
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.agreement-article-header:hover {
    background: linear-gradient(135deg, #faf0f4 0%, #f8e8f0 100%);
}

.agreement-article-number {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.agreement-article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.agreement-article-content {
    padding: 30px;
}

.agreement-article-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.agreement-article-content p:last-child {
    margin-bottom: 0;
}

/* Списки */
.agreement-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.agreement-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.agreement-list-icon {
    color: #dc3545;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Таблица тарифов */
.agreement-table-container {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.agreement-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 500px;
}

.agreement-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 18px 20px;
    font-weight: 600;
    text-align: left;
    font-size: 1rem;
}

.agreement-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
}

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

.agreement-table tr:hover {
    background: #fdf8f8;
}

.tariff-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.tariff-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.tariff-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Контактная карточка */
.agreement-contact-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    color: white;
    text-align: center;
    margin-top: 20px;
}

.agreement-contact-header {
    margin-bottom: 25px;
}

.agreement-contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.agreement-contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.agreement-contact-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

.agreement-contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    margin-top: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.agreement-contact-email:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Кнопка возврата */
.agreement-actions-section {
    padding: 40px 0 60px;
}

.agreement-actions {
    text-align: center;
}

.agreement-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
}

.agreement-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
    .agreement-hero {
        padding: 60px 20px 40px;
    }

    .agreement-hero-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .agreement-hero-title {
        font-size: 2.2rem;
    }

    .agreement-hero-subtitle {
        font-size: 1.1rem;
    }

    .agreement-warning-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .agreement-article-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .agreement-article-content {
        padding: 25px 20px;
    }

    .agreement-contact-card {
        padding: 30px 25px;
    }

    .agreement-contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .agreement-contact-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .agreement-hero {
        padding: 40px 15px 30px;
    }

    .agreement-hero-title {
        font-size: 1.8rem;
    }

    .agreement-hero-subtitle {
        font-size: 1rem;
    }

    .agreement-effective-date {
        font-size: 0.9rem;
        padding: 10px 16px;
    }

    .agreement-warning-card {
        padding: 20px;
    }

    .agreement-warning-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .agreement-warning-title {
        font-size: 1.3rem;
    }

    .agreement-article-header {
        padding: 15px;
    }

    .agreement-article-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .agreement-article-title {
        font-size: 1.2rem;
    }

    .agreement-article-content {
        padding: 20px 15px;
    }

    .agreement-table th,
    .agreement-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .agreement-contact-card {
        padding: 25px 20px;
    }

    .agreement-back-btn {
        padding: 14px 25px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* Специальные стили для очень маленьких экранов */
@media (max-width: 360px) {
    .agreement-hero-title {
        font-size: 1.6rem;
    }

    .agreement-hero-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .agreement-article-content p {
        font-size: 1rem;
    }

    .agreement-list-item {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* Анимации */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agreement-article {
    animation: slideInUp 0.6s ease-out;
}
