/* Основные стили - обновленная версия с мягкой палитрой и неоновыми акцентами */
:root {
    /* Основная мягкая палитра */
    --primary-color: #3a7d7c; /* Мягкий бирюзовый */
    --secondary-color: #6ba8a7; /* Светлый бирюзовый */
    --accent-color: #ff7e5f; /* Мягкий коралловый */
    --light-color: #f8f5f2; /* Теплый бежевый */
    --dark-color: #2c3e3d; /* Темный болотно-зеленый */
    --text-color: #333333;
    --border-radius: 12px;
    
    /* Неоновые акценты */
    --neon-green: #39ff14;
    --neon-blue: #00e5ff;
    --neon-pink: #ff00ff;
    --neon-yellow: #fff01f;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #ff9a8b);
    --gradient-neon: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fefefe;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(107, 168, 167, 0.05) 0%, transparent 55%),
        radial-gradient(circle at 85% 30%, rgba(255, 126, 95, 0.05) 0%, transparent 45%);
}

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

/* Шапка */
header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(58, 125, 124, 0.2);
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-neon);
    border-image-slice: 1;
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 15px var(--neon-green), 0 0 25px rgba(57, 255, 20, 0.5);
    transform: scale(1.05);
}

.logo span {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(255, 240, 31, 0.4);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
}

nav a:hover {
    color: var(--neon-yellow);
    box-shadow: 0 0 15px rgba(255, 240, 31, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    color: var(--neon-yellow);
    box-shadow: 0 0 10px rgba(255, 240, 31, 0.3);
}

/* Основной контент */
main {
    min-height: 70vh;
    padding: 3.5rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(58, 125, 124, 0.2);
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header .utp {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Карточки */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(107, 168, 167, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-neon);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(58, 125, 124, 0.15),
        0 0 30px rgba(0, 229, 255, 0.1);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    position: relative;
    padding-left: 1rem;
}

.card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Списки */
.content-list {
    margin: 2.5rem 0;
}

.content-list ul, .content-list ol {
    margin-left: 2.5rem;
    margin-bottom: 1.8rem;
}

.content-list li {
    margin-bottom: 0.7rem;
    padding-left: 0.5rem;
}

.content-list ul li::marker {
    color: var(--accent-color);
}

.content-list ol li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* Кнопка Telegram */
.telegram-cta {
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, #0088cc, #34aadc, #00e5ff);
    color: white;
    border-radius: var(--border-radius);
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.2);
}

.telegram-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.telegram-btn {
    display: inline-block;
    background: linear-gradient(135deg, white, #f0f8ff);
    color: #0088cc;
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(0, 229, 255, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    letter-spacing: 0.5px;
}

.telegram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.telegram-btn:hover::before {
    left: 100%;
}

.telegram-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.2),
        0 0 0 4px rgba(0, 229, 255, 0.5),
        0 0 30px rgba(0, 229, 255, 0.4);
    color: #0066a1;
}

.telegram-btn i {
    margin-right: 12px;
    font-size: 1.4rem;
}

/* Подвал */
footer {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-neon);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--neon-yellow);
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(255, 240, 31, 0.2);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 240, 31, 0.3);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #e0f7fa;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.3rem 0;
    display: inline-block;
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-yellow);
    transition: width 0.3s;
}

.footer-section a:hover {
    color: var(--neon-yellow);
    padding-left: 10px;
}

.footer-section a:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.copyright a {
    color: var(--neon-yellow);
    text-decoration: none;
    transition: all 0.3s;
}

.copyright a:hover {
    text-shadow: 0 0 8px rgba(255, 240, 31, 0.5);
}

/* 404 страница */
.error-page {
    text-align: center;
    padding: 6rem 0;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 
        0 0 20px rgba(255, 126, 95, 0.3),
        0 0 40px rgba(255, 126, 95, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.error-page p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--dark-color);
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 1.2rem 0;
    background-color: rgba(107, 168, 167, 0.05);
    margin-bottom: 2.5rem;
    border-radius: 8px;
    padding-left: 1rem;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.breadcrumbs a::after {
    content: '›';
    margin: 0 10px;
    color: var(--secondary-color);
}

.breadcrumbs a:last-child::after {
    content: '';
}

.breadcrumbs span {
    color: var(--dark-color);
    font-weight: 500;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

thead tr {
    background: var(--gradient-primary);
}

th {
    padding: 1rem;
    text-align: left;
    color: white;
    font-weight: 600;
    border-bottom: 3px solid var(--neon-blue);
}

tbody tr {
    transition: all 0.3s;
}

tbody tr:nth-child(even) {
    background-color: rgba(107, 168, 167, 0.05);
}

tbody tr:hover {
    background-color: rgba(107, 168, 167, 0.1);
    transform: scale(1.005);
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(107, 168, 167, 0.1);
}

/* Формы */
input, select, textarea {
    font-family: inherit;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(107, 168, 167, 0.3);
    border-radius: 8px;
    transition: all 0.3s;
    background: white;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 125, 124, 0.1);
}

button {
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* Неоновые эффекты для заголовков */
h2, h3, h4 {
    position: relative;
}

h2::after, h3::after, h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Эффект параллакса */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 1.2rem;
        right: 20px;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .telegram-cta {
        padding: 3rem 1.5rem;
    }
    
    .telegram-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 2rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .telegram-btn {
        width: 100%;
        text-align: center;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Подсветка кода (если будет нужна) */
code {
    background: rgba(107, 168, 167, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(107, 168, 167, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}