:root {
    --primary-color: #ff7300;
    --logo-color: #4796E0;
    --secondary-color: #2c3e50;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #ffffff;
    --footer-bg: #1a252f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 5px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo_c {
    font-size: 24px;
    font-weight: bold;
    color: var(--logo-color);
}

.phone {
    font-size: 18px;
    font-weight: 600;
}

.hero {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #fff;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.tariffs-section {
    padding: 80px 0;
    flex-grow: 1;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f5;
}

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

.card-header {
    background-color: #fff;
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.card-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.price-box {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-box span {
    font-size: 1rem;
    color: #777;
    font-weight: normal;
}

.card-body {
    padding: 30px;
    flex-grow: 1;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
}

.card-footer {
    padding: 30px;
    background-color: #fafbfc;
    text-align: center;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: #e06500;
}

.card.popular {
    border: 2px solid var(--primary-color);
    position: relative;
}

.card.popular::before {
    content: "Популярно";
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

footer {
    background-color: var(--footer-bg);
    color: #a0aec0;
    padding: 30px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--primary-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links button {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 20px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-links button:hover {
    color: #fff;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-window.large {
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 40px 30px 30px;
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.modal-text-content {
    overflow-y: auto;
    padding-right: 15px;
    font-size: 0.95rem;
    color: #444;
    text-align: justify;
}

.modal-text-content h4 {
    margin: 15px 0 5px;
    color: var(--secondary-color);
}

.modal-text-content p {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #e06500;
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links button {
        margin: 5px 10px;
    }

    .modal-window {
        width: 90%;
        padding: 30px 20px;
    }

    .modal-window.large {
        width: 95%;
        max-height: 90vh;
        padding: 45px 15px 20px;
    }
}