:root {
    --primary-color: #00AEEF;
    --primary-hover: #0088cc;
    --secondary-color: #E0009B;
    --secondary-hover: #b3007c;
    --text-main: #000F4C;
    --text-muted: #7C8499;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --font-main: 'TT Rounds Neue Trial', system-ui, -apple-system, sans-serif;
    --border-radius: 10px;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.5;
}

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

/* Header Styles */
.header {
    background-color: var(--bg-white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 40px;
}

.contacts {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
}

.contact-phone {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

.contact-phone:hover {
    color: var(--primary-color);
}

.contact-time {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-login {
    color: var(--text-main);
    background: transparent;
}

.btn-login:hover {
    color: var(--primary-color);
}

.btn-sbp {
    background-color: #000F4C;
    color: var(--bg-white);
}

.btn-sbp:hover {
    background-color: #000a33;
}

.icon-sbp {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 15px 30px;
    font-size: 18px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-block {
    width: 100%;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a2a6c, #11998e, #38ef7d);
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Tariffs Section */
.tariffs {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tariff-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.tariff-card.hit {
    border: 2px solid var(--secondary-color);
}

.tariff-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.tariff-name {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tariff-price {
    margin-bottom: 25px;
}

.price-value {
    font-size: 42px;
    font-weight: 700;
}

.price-currency, .price-period {
    font-size: 16px;
    color: var(--text-muted);
}

.tariff-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.tariff-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}

/* Footer */
.footer {
    background-color: #285DD6;
    color: var(--bg-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer .contact-label {
    color: rgba(255,255,255,0.7);
}

.footer .contact-phone {
    color: var(--bg-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .contacts {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 76, 0.5);
    display: none; /* Changed from flex */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    display: flex; /* Make it visible with flex instead of just opacity */
    opacity: 1;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-height: 90vh; /* Don't overflow screen */
    overflow-y: auto; /* Enable scrolling inside modal if needed */
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--secondary-color);
    background: var(--bg-light);
}

.modal-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.modal-content {
    text-align: center;
    font-size: 16px;
    color: var(--text-main);
}

.modal-phone {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    margin: 20px 0;
    transition: var(--transition);
}

.modal-phone:hover {
    color: var(--primary-color);
}

