/* Глобальные переменные и настройки */
:root {
    --bg-gradient: linear-gradient(135deg, #81d4fa 0%, #29b6f6 50%, #039be5 100%);
    --menu-bg: #01579b;
    --section-bg: #b3e5fc;
    --text-color: #003c8f;
    --accent: #0277bd;
    --hover-accent: #0288d1;
    --hero-bg: #4fc3f7;
    --btn-accent: #00b0ff;
    --btn-hover: #0091ea;
    --border-radius: 25px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Comic Sans MS', 'Trebuchet MS', sans-serif;
}

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

/* Навигация */
header {
    background: var(--menu-bg);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 6px 15px rgba(1, 87, 155, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: nowrap;
}

.logo {
    text-decoration: none;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Логотип по высоте совпадает с пунктами меню */
.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px #00b0ff, 0 0 20px #00b0ff, 2px 2px 0px #01579b;
    padding: 0 18px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #81d4fa;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    animation: logo-glow 2.5s infinite alternate;
    letter-spacing: 2px;
    box-sizing: border-box;
}

@keyframes logo-glow {
    0% { box-shadow: 0 0 15px #00b0ff, inset 0 0 10px #00b0ff; border-color: #81d4fa; }
    100% { box-shadow: 0 0 30px #4fc3f7, inset 0 0 20px #4fc3f7; border-color: #ffffff; }
}

.menu-toggle { display: none; }

.burger {
    font-size: 32px;
    color: #e1f5fe;
    cursor: pointer;
    display: none;
    user-select: none;
}

/* Меню в одну строку */
.menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    justify-content: flex-end;
    flex-wrap: nowrap; 
    width: auto;
    margin: 0;
}

.menu li {
    display: flex;
    align-items: center;
}

/* Пункты меню по высоте одинаковы с логотипом */
.menu a {
    color: #e1f5fe;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    padding: 0 10px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    box-sizing: border-box;
}

.menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Основной контент */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    flex-grow: 1;
}

.main-404 {
    margin: auto; 
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Стили страницы 404 */
.error-banner {
    background: var(--hero-bg);
    border: 4px dashed #0277bd;
    border-radius: var(--border-radius);
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(1, 87, 155, 0.3);
    animation: pulse 2.5s infinite alternate;
    max-width: 800px;
    width: 100%;
}

.error-code {
    font-size: 100px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 4px 4px 0px #01579b;
    line-height: 1;
    margin-bottom: 20px;
}

.error-message {
    font-size: 24px;
    font-weight: bold;
    color: #01579b;
    text-shadow: 1px 1px 0px #81d4fa;
    margin-bottom: 30px;
}

/* Стили главной страницы */
.hero-banner {
    background: var(--hero-bg);
    border: 4px dashed #0277bd;
    border-radius: var(--border-radius);
    padding: 35px 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(1, 87, 155, 0.2);
    animation: pulse 2.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.hero-title {
    font-size: 34px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 2px 2px 0px #01579b;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.error-banner .hero-title {
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: bold;
    color: #01579b;
    text-shadow: 1px 1px 0px #81d4fa;
    text-transform: uppercase;
}

.hero-features { margin-top: 25px; }

.hero-features p {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 0px #01579b;
    text-align: center;
    margin-bottom: 10px;
}

.horizontal-section {
    background: var(--section-bg);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(1, 87, 155, 0.2);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.horizontal-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(1, 87, 155, 0.3);
}

.section-icon-box {
    background: var(--accent);
    color: #e1f5fe;
    font-size: 50px;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 110px;
    box-shadow: 0 5px 0px #01579b;
}

.section-content { flex: 1; }

h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #01579b;
    text-shadow: 1px 1px 0px #81d4fa;
}

p, ul, ol {
    font-size: 18px;
    color: #003c8f;
    line-height: 1.7;
    text-align: justify; 
    margin-bottom: 15px;
}

.large-text {
    font-size: 24px;
    line-height: 1.8;
    font-weight: 500;
}

ul, ol { margin-left: 25px; }
li { margin-bottom: 10px; }

.action-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 15px 35px;
    background: var(--btn-accent);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    font-size: 18px;
    box-shadow: 0 6px 0px #01579b;
    transition: all 0.2s;
    text-transform: uppercase;
    text-align: center;
}

.hero-features .action-btn { margin-top: 20px; }

.action-btn:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 0px #01579b;
}

.action-btn:active {
    box-shadow: 0 0px 0px #01579b;
    transform: translateY(6px);
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.btn-group .action-btn { margin-top: 0; }

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.payment-card {
    background: #40c4ff;
    border: 3px solid #0288d1;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 0px #0288d1;
    transition: all 0.2s;
    color: #01579b;
}

.payment-card:hover {
    background: #00b0ff;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 0px #01579b;
}

.payment-card:hover h3, .payment-card:hover p { color: #ffffff; }

.payment-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #01579b;
    text-shadow: none;
}

.payment-card p {
    font-size: 16px;
    text-align: center;
    margin-bottom: 0;
}

.tariff-section {
    background: #0288d1;
    color: #e1f5fe;
}

.tariff-section h2 {
    color: #ffffff;
    text-shadow: 2px 2px 0px #01579b;
}

.tariff-section p { color: #b3e5fc; }

.tariff-section .section-icon-box {
    background: #e1f5fe;
    color: #0288d1;
    box-shadow: 0 5px 0px #01579b;
}

.tariff-bottom {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.price-tag {
    font-size: 55px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 4px 4px 0px #01579b;
    background: #00b0ff;
    padding: 10px 30px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--menu-bg);
    color: #e1f5fe;
    margin-top: auto;
    box-shadow: inset 0 6px 15px rgba(0,0,0,0.2);
}

footer p {
    text-align: center;
    margin: 0;
}

.footer-index { margin-top: 50px; }

/* Адаптивность */
@media (max-width: 1100px) {
    .menu { gap: 5px; }
    .menu a { font-size: 13px; padding: 0 8px; }
    .logo-text { font-size: 22px; padding: 0 14px; }
}

@media (max-width: 950px) {
    .menu a { font-size: 12px; padding: 0 6px; }
    .logo-text { font-size: 20px; padding: 0 10px; }
}

@media (max-width: 900px) {
    .horizontal-section { flex-direction: column; text-align: center; padding: 25px; }
    .section-icon-box { margin: 0 auto 15px auto; }
    .tariff-bottom { flex-direction: column; justify-content: center; }
    p, ul, ol, .large-text { text-align: left; }
}

@media (max-width: 768px) {
    .burger { 
        display: block; 
        position: absolute; 
        right: 20px; 
        top: 50%;
        transform: translateY(-50%); 
    }
    .nav-container { 
        flex-direction: row; 
        justify-content: flex-start; 
        position: relative;
    }
    .logo-text { font-size: 24px; padding: 0 16px; height: 44px; }
    .menu {
        display: none; 
        flex-direction: column; 
        width: 100%;
        background: var(--menu-bg); 
        position: absolute; 
        top: 100%;
        left: 0; 
        padding: 20px 0; 
        text-align: center;
        box-shadow: 0 6px 15px rgba(0,0,0,0.3);
        height: auto;
    }
    .menu li { margin: 5px 0; }
    .menu a { height: auto; padding: 10px 15px; }
    .menu-toggle:checked ~ .menu { display: flex; }
    
    .error-code { font-size: 80px; }
    .hero-title { font-size: 28px; }
    .error-message { font-size: 20px; }
}