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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: #1e293b;
    padding: 20px 0;
    border-bottom: 1px solid #334155;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: #38bdf8;
}

.nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

.nav a.active, .nav a:hover {
    color: #38bdf8;
}

/* Buttons */
.btn-primary {
    background: #0284c7;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.btn-primary:hover {
    background: #0369a1;
}

.btn-secondary {
    background: #334155;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* Hero */
.hero {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-btns a {
    margin: 0 10px;
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 50px;
}

.tariffs-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.tariff-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 40px;
    flex: 1;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tariff-card.featured {
    border: 2px solid #38bdf8;
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #38bdf8;
    color: #0f172a;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
}

.tariff-price {
    font-size: 2.2rem;
    color: #38bdf8;
    font-weight: bold;
    margin: 15px 0 25px;
}

.tariff-price span {
    font-size: 1rem;
    color: #94a3b8;
}

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

.tariff-features li {
    padding: 10px 0;
    border-bottom: 1px solid #334155;
}

.btn-connect {
    text-align: center;
    background: #334155;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* Channels & EPG */
.channels-page, .setup-section, .contacts-section {
    padding: 60px 0;
}

.controls-bar {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.controls-bar input, .controls-bar select {
    padding: 12px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
}

.controls-bar input {
    flex-grow: 1;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.channel-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.channel-card:hover {
    transform: translateY(-5px);
}

.channel-card img {
    max-width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.archive-tag {
    background: #059669;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
    display: inline-block;
}

/* Modal EPG */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1e293b;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
}

.epg-item {
    border-bottom: 1px solid #334155;
    padding: 10px 0;
}

.epg-time {
    color: #38bdf8;
    font-weight: bold;
}

.footer {
    background: #090d16;
    text-align: center;
    padding: 30px 0;
    color: #64748b;
    border-top: 1px solid #1e293b;
}

.footer a {
    color: #38bdf8;
}