/* ---------- RESET & БАЗА ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.2s ease;
    position: relative;
}

.logo-img {
    height: 50px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Адаптивность для мобильных */
@media (max-width: 40px) {
    .logo-img {
        height: 40px;
    }
}

/* Фоновый узор "листья" (прозрачный) */
.leaf-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cpath fill='none' stroke='rgba(50,213,227,0.12)' stroke-width='1.5' d='M240 180c40-60 100-70 140-30s40 90 0 140-100 50-140 10-40-90 0-140zM560 520c30-50 90-60 120-20s20 80-20 110-80 30-110-10-20-80 10-110zM120 620c50-30 110-10 130 30s0 90-50 110-100 10-120-30-10-80 40-110zM680 120c40-40 100-20 110 20s-20 90-60 100-90 10-100-30 10-80 50-90z'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
    opacity: 0.35;
}

/* Стеклянная панель */
.glass-panel {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 2rem;
    padding: 2rem 2rem 1.5rem;
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

/* ---------- ТЁМНАЯ ТЕМА ---------- */
body.dark {
    background: #07120a;
}
body.dark .glass-panel {
    background: rgba(8, 18, 10, 0.7);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(50, 213, 227, 0.25);
}
body.dark,
body.dark p,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark .card,
body.dark .feature-item,
body.dark .support-block,
body.dark .legal-content,
body.dark .footer-links a {
    color: #f0f7ea;
}
body.dark .logo-text {
    background: linear-gradient(135deg, #c0e0a0, #8bc06a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.dark .logo-sub,
body.dark .period,
body.dark .copyright {
    color: #c0dbc0;
}
body.dark a:not(.btn) {
    color: #7dd3e0;
}

/* ---------- СВЕТЛАЯ ТЕМА (чистая, светлая, эко) ---------- */
body.light {
    background: #f2f7ef;  /* очень светлый зелёный, свежий */
}
body.light .glass-panel {
    background: rgba(255, 255, 250, 0.85);  /* почти белый, но с прозрачностью */
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 40px rgba(60, 50, 20, 0.08), 0 0 0 1px rgba(50, 213, 227, 0.35);
}
body.light,
body.light p,
body.light h1,
body.light h2,
body.light h3,
body.light .card,
body.light .feature-item,
body.light .legal-content,
body.light .footer-links a {
    color: #1f3a1a;  /* тёмно-зелёный, контрастный */
}
body.light .logo-text {
    background: linear-gradient(135deg, #2a7a24, #1e8b7a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.light .btn-outline {
    border-color: #32d5e3;
    color: #1a6e7a;
}
body.light .support-block {
    background: rgba(50, 213, 227, 0.08);
}
body.light .card {
    background: rgba(255, 255, 245, 0.7);
    border-color: rgba(50, 213, 227, 0.3);
}
body.light .card:hover {
    background: rgba(255, 255, 250, 0.95);
    border-color: #32d5e3;
}
body.light .feature-item {
    background: rgba(245, 250, 235, 0.7);
}
body.light .feature-item:hover {
    background: rgba(50, 213, 227, 0.1);
}
body.light .legal-content {
    background: rgba(245, 250, 235, 0.6);
}

/* ---------- ОБЩИЕ ЭЛЕМЕНТЫ (акцент #32d5e3) ---------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(50, 213, 227, 0.4);
}
.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.logo-sub {
    font-size: 0.85rem;
    opacity: 0.8;
}
.theme-btn {
    background: rgba(50, 213, 227, 0.2);
    border: 1px solid rgba(50, 213, 227, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 3rem;
    backdrop-filter: blur(4px);
    transition: 0.2s;
}
.theme-btn:hover {
    background: rgba(50, 213, 227, 0.4);
    transform: scale(1.05);
}

/* Карточки цен */
.price-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}
.card {
    flex: 1;
    min-width: 200px;
    background: rgba(30, 45, 25, 0.45);
    backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    padding: 1.8rem 1.2rem;
    text-align: center;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(50, 213, 227, 0.3);
}
.card:hover {
    transform: translateY(-6px);
    background: rgba(40, 55, 35, 0.6);
    border-color: rgba(50, 213, 227, 0.7);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
body.light .card {
    background: rgba(255, 255, 245, 0.7);
}
body.light .card:hover {
    background: rgba(255, 255, 250, 0.95);
}
.card.popular {
    position: relative;
    border: 1px solid #32d5e3;
    box-shadow: 0 10px 25px rgba(50, 213, 227, 0.2);
}
.badge {
    position: absolute;
    top: -12px;
    left: 30%;
    background: #32d5e3;
    color: #07120a;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: bold;
}
.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.75rem 0;
    background: linear-gradient(135deg, #32d5e3, #1f9eb0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.period {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 1.2rem;
}

/* Градиентные кнопки */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #32d5e3, #1f9eb0);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(50, 213, 227, 0.3);
}
.btn:hover {
    background: linear-gradient(135deg, #1f9eb0, #108090);
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(50, 213, 227, 0.5);
}
.btn-outline {
    background: transparent;
    border: 1px solid #32d5e3;
    color: #32d5e3;
    box-shadow: none;
}
.btn-outline:hover {
    background: rgba(50, 213, 227, 0.15);
    color: #ffffff;
    transform: scale(0.98);
}
body.light .btn-outline {
    color: #1a6e7a;
}
body.light .btn-outline:hover {
    background: rgba(50, 213, 227, 0.2);
    color: #0e4a52;
}

/* Фичи */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2.5rem 0;
    justify-content: center;
}
.feature-item {
    flex: 1;
    min-width: 180px;
    background: rgba(40, 55, 35, 0.4);
    backdrop-filter: blur(6px);
    border-radius: 1.2rem;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid rgba(50, 213, 227, 0.2);
}
.feature-item:hover {
    background: rgba(50, 213, 227, 0.1);
    border-color: #32d5e3;
}
.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 4px #32d5e3);
}

.support-block {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
}
.support-block a {
    color: #32d5e3;
    text-decoration: none;
    font-weight: 500;
}
.support-block a:hover {
    text-decoration: underline;
}

/* Страницы ошибок / сообщений */
.error-page, .message-page {
    text-align: center;
    padding: 3rem 1rem;
}
.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #32d5e3, #1f9eb0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.message-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 6px #32d5e3);
}
.message-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Юридические страницы */
.legal-page h1 {
    margin-bottom: 1.5rem;
}
.legal-content {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    padding: 1.8rem;
    border-radius: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #32d5e3;
}
.legal-content p {
    margin-bottom: 1.2rem;
}

/* Футер */
footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(50, 213, 227, 0.3);
    font-size: 0.85rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}
.footer-links a {
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
    color: #32d5e3;
}
.copyright {
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 700px) {
    .glass-panel {
        margin: 1rem;
        padding: 1.2rem;
    }
    .price-cards {
        gap: 1rem;
    }
    .logo-text {
        font-size: 1.4rem;
    }
}
