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

:root {
    --orange: #F5923E;
    --orange-dark: #E07B28;
    --yellow: #FDE68A;
    --yellow-light: #FFF4C2;
    --blue: #7DD3E8;
    --blue-light: #B5E8F2;
    --teal: #0E5C6B;
    --teal-dark: #0A4550;
    --teal-light: #1A7A8A;
    --gold: #F4C95D;
    --white: #ffffff;
    --bg: #F8FBFC;
    --text: #1E293B;
    --text-light: #64748B;
    --success: #10B981;
    --danger: #EF4444;
    --gradient-main: linear-gradient(135deg, #0E5C6B 0%, #1A7A8A 50%, #7DD3E8 100%);
    --gradient-accent: linear-gradient(135deg, #F5923E 0%, #F4C95D 100%);
    --gradient-warm: linear-gradient(135deg, #F5923E 0%, #FDE68A 100%);
    --gradient-cool: linear-gradient(135deg, #7DD3E8 0%, #0E5C6B 100%);
    --shadow-sm: 0 2px 4px rgba(14, 92, 107, 0.08);
    --shadow: 0 4px 12px rgba(14, 92, 107, 0.12);
    --shadow-lg: 0 12px 32px rgba(14, 92, 107, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    padding: 40px 20px 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* ===== ШАПКА ===== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 16px 0;
    position: relative;
    z-index: 1000;
    border-bottom: 3px solid var(--orange);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.03);
}

.logo-img {
    height: 70px;
    width: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    object-fit: contain;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--teal);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 146, 62, 0.4);
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
    background: var(--gradient-main);
    color: #fff;
    padding: 70px 40px;
    border-radius: 24px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: moveBg 25s linear infinite;
    pointer-events: none;
}

@keyframes moveBg {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.hero h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.5;
}

/* Счётчик обратного отсчёта */
.countdown-block {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-top: 25px;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 18px;
    min-width: 70px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
    display: block;
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.9;
}

/* ===== СТАТИСТИКА ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0 40px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--orange);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card:nth-child(2) { border-top-color: var(--blue); }
.stat-card:nth-child(3) { border-top-color: var(--teal); }
.stat-card:nth-child(4) { border-top-color: var(--gold); }

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card:nth-child(2) .stat-number { color: var(--blue); }
.stat-card:nth-child(3) .stat-number { color: var(--teal); }
.stat-card:nth-child(4) .stat-number { color: var(--orange); }

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== ЗАГОЛОВКИ ===== */
h1, h2, h3 {
    color: var(--teal);
    font-weight: 700;
}

h1 {
    font-size: 34px;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    position: relative;
    padding-left: 18px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 6px;
    height: 28px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ===== КАРТОЧКИ ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-accent);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow);
    z-index: 2;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    color: var(--teal);
    font-size: 20px;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* ===== ПРОГРЕСС-БАР МЕСТ ===== */
.places-bar {
    background: #f1f5f9;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.places-bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    transition: width 0.8s ease;
}

.places-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.places-info .available {
    color: var(--success);
}

.places-info .total {
    color: var(--text-light);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 146, 62, 0.3);
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 146, 62, 0.5);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-success {
    background: var(--gradient-cool);
    box-shadow: 0 4px 12px rgba(14, 92, 107, 0.3);
}

/* ===== ТАБЛИЦЫ ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 20px 0;
}

table th {
    background: var(--gradient-main);
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: rgba(245, 146, 62, 0.04);
}

.schedule-table td:first-child {
    font-weight: 700;
    width: 120px;
    color: var(--teal);
}

/* ===== ЦЕНЫ ===== */
.price {
    font-weight: 700;
    color: var(--success);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50px;
}

.price.free {
    color: var(--teal);
    background: rgba(125, 211, 232, 0.2);
}

/* ===== ФОРМЫ ===== */
form .form-group {
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--teal);
    font-size: 14px;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245, 146, 62, 0.15);
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.alert {
    padding: 16px 22px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left-color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left-color: var(--danger);
}

/* ===== КОМАНДА ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.team-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--gradient-main);
    opacity: 0.1;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-card img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #fff;
    box-shadow: 0 6px 15px rgba(14, 92, 107, 0.2);
    position: relative;
    z-index: 1;
}

.team-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.team-card .position {
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.team-card p {
    color: var(--text-light);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* ===== КОНТАКТЫ И КАРТА ===== */
.contacts-block {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 25px;
    border-left: 4px solid var(--orange);
}

.contacts-block p {
    margin-bottom: 12px;
    font-size: 16px;
}

.contacts-block p b, .contacts-block p strong {
    color: var(--teal);
}

.map-wrap {
    margin-top: 25px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid #fff;
}

.map-wrap iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* ===== ПОДВАЛ ===== */
.site-footer {
    background: var(--teal-dark);
    color: #cbd5e1;
    padding: 40px 0 25px;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.footer-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.footer-contacts {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contacts a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.4);
    transition: all 0.3s;
}

.footer-contacts a:hover {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin: 20px auto;
}

.footer-copy {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.footer-dev {
    font-size: 14px;
    opacity: 0.9;
}

.footer-dev a {
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-dev a:hover {
    opacity: 0.8;
}

/* ===== КНОПКА НАВЕРХ ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
}

/* ===== АДМИН-ПАНЕЛЬ ===== */
.admin-panel {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 2px solid #e2e8f0;
}

.admin-nav a {
    padding: 10px 18px;
    background: #f1f5f9;
    border-radius: 10px;
    text-decoration: none;
    color: var(--teal);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.admin-nav a:hover {
    background: var(--yellow-light);
    transform: translateY(-2px);
}

.admin-nav a.active {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 146, 62, 0.3);
}

/* ===== СТРАНИЦА ВХОДА ===== */
.login-box {
    max-width: 400px;
    margin: 80px auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--orange);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
    color: var(--teal);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .main-nav {
        justify-content: center;
        width: 100%;
    }
    
    .main-nav a {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .hero {
        padding: 40px 25px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .countdown-item {
        min-width: 55px;
        padding: 10px 12px;
    }
    
    .countdown-number {
        font-size: 24px;
    }
    
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    
    .card-grid, .team-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 5px;
}

::selection {
    background: var(--orange);
    color: #fff;
}