
:root {
    /* Цветовая палитра */
    --primary-color: #31bc69;
    --primary-gradient: linear-gradient(135deg, #31bc69 0%, #089e4e 100%);
    --secondary-color: #0095ff;
    --secondary-gradient: linear-gradient(135deg, #0095ff 0%, #0855c4 100%);
    --accent-color: #f1c40f;
    
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-link: #60a5fa;
    
    --border-color: #334155;
    
    /* Размеры и отступы */
    --container-width: 1200px;
    --header-height: 4rem;
    --border-radius: 0.75rem;
    --border-radius-sm: 0.5rem;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-neon: 0 0 15px rgba(49, 188, 105, 0.3);
    
    /* Шрифты */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

/* Header Section */
.hdr {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

/* Desktop Header Elements (скрываем на мобильном по умолчанию, если нужно, или стилизуем) */
.hdr-wrap, .hdr-bns-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 992px) {
    .hdr-wrap, .hdr-bns-wrap {
        display: none;
    }
}

.hdr-wrap-itm-btn, .hdr-bns-wrap-itm-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--bg-card);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.hdr-wrap-itm-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.hdr-wrap-itm-free span {
    background: var(--accent-color);
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
    animation: pulse 2s infinite;
}

/* Mobile Header */
.ams-mob-header {
    display: none; /* Flex on mobile controlled by media query */
    width: 100%;
    justify-content: flex-end;
    gap: 0.75rem;
}

.ams-item-box {
    flex: 1;
}

.ams-item-log, .ams-item-reg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ams-item-log {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.ams-item-log:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.ams-item-reg {
    background-image: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-neon);
}

.ams-item-reg:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .ams-mob-header {
        display: flex;
    }
    .hdr {
        padding: 0.75rem;
    }
}

/* Navigation Scroll Bar */
.nv {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: relative;
    z-index: 900;
}

.nv-wrap {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 0 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.nv-wrap::-webkit-scrollbar {
    display: none;
}

.nv-itm {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nv-itm-txt {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.nv-itm-txt:hover, .nv-itm-txt.active {
    color: var(--text-main);
}

.nv-itm-txt.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

/* Hero Section / Tizer */
.tizpromik-box {
    position: relative;
    width: 100%;
    min-height: 80vh; /* Используем vh для полного экрана */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Параллакс эффект */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Затемнение фона */
.tizpromik-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0.9) 100%);
    z-index: 1;
}

.tizpromik-box .tizer {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width);
    padding: 2rem;
    text-align: center;
}

.tizpromik-box h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white !important;
    background-image: var(--primary-gradient);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(49, 188, 105, 0.4);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s;
}

.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(49, 188, 105, 0.5);
}

.button:hover::after {
    transform: rotate(45deg) translate(100%, 100%);
}

.text-tiz {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.text-htiz {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    margin-top: 1rem;
}

.text-htiz .promo {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-family: monospace;
    font-weight: 700;
    display: block;
    margin: 0.5rem 0;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
    cursor: copy;
    transition: transform 0.2s;
}

.text-htiz .promo:active {
    transform: scale(0.95);
}

/* Main Content Area */
.ams-main {
    width: 100%;
    max-width: var(--container-width);
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.wn-txt {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.wn-txt h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 2.5rem 0 1.5rem;
    color: white;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--secondary-color);
}

.wn-txt p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.wn-txt a {
    color: var(--text-link);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.wn-txt a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-link);
    transition: width 0.3s ease;
}

.wn-txt a:hover::after {
    width: 100%;
}

.wn-txt ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.wn-txt ul li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-main);
}

.wn-txt ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Table Styling */
.wn-txt table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.wn-txt table caption {
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.wn-txt table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.wn-txt table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.wn-txt table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

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

.wn-txt table td:first-child {
    font-weight: 700;
    color: var(--secondary-color);
    width: 3rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

/* Slots Grid (Generic for provided HTML classes) */
.ams-slots-list {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.ams-slots-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.ams-slots-wrap-item {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: var(--bg-dark);
    position: relative;
}

.ams-slots-wrap-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ams-slots-wrap-item:hover img {
    transform: scale(1.1);
}

.ams-slots-wrap-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.ams-slots-wrap-item:hover::after {
    opacity: 1;
}

/* Modal Window Styles */
.modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    display: none; /* Controlled by JS */
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wn-txt {
        padding: 1.5rem;
    }
    
    .wn-txt ul {
        grid-template-columns: 1fr;
    }
    
    .button {
        width: 100%;
        padding: 1rem;
    }
    
    .tizpromik-box h1 {
        margin-bottom: 1rem;
    }
    
    .text-htiz {
        width: 100%;
        padding: 1rem;
    }
    
    .nv-wrap {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .wn-txt table td {
        display: block;
        width: 100%;
        text-align: left;
        border-right: none;
    }
    
    .wn-txt table td:first-child {
        background-color: rgba(255,255,255,0.05);
        display: inline-block;
        width: auto;
        padding: 0.5rem 1rem;
        margin-top: 0.5rem;
        border-radius: 4px;
    }
}
