/* ================================
   VARIABLES & RESET
================================ */

:root {
    /* Unique Color Palette */
    --primary-color: #00F0FF;        /* Неоновый лазурный */
    --accent-color: #2E0066;         /* Глубокий фиолетово-синий */
    --background-color: #FDFDFD;     /* Перламутрово-белый */
    --text-color: #2B2B2B;           /* Графитовый */
    --text-light: #6B7280;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --border-color: #E5E7EB;
    --shadow-color: rgba(0, 240, 255, 0.1);
    --glow-color: rgba(0, 240, 255, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --element-spacing: 2rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px var(--glow-color);
}

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

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* ================================
   TYPOGRAPHY
================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    filter: brightness(1.1);
    text-shadow: 0 0 8px var(--glow-color);
}

/* ================================
   LAYOUT UTILITIES
================================ */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--glow-color);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ================================
   BUTTONS & INTERACTIVE ELEMENTS
================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #00D4E6);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--glow-color);
    filter: brightness(1.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

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

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

/* ================================
   HEADER & NAVIGATION
================================ */

.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    position: relative;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    min-height: 70px;
}

/* Logo */
.logo-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo-link:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 20px var(--glow-color);
}

/* Mobile Menu Toggle (Hidden by default) */
.menu-toggle-checkbox {
    display: none;
}

.menu-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.burger-line {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 240, 255, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 80%;
}

.mobile-menu-overlay {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        transform: translateX(-100%);
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        height: 100%;
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        z-index: 998;
    }
    
    /* Menu Active States */
    .menu-toggle-checkbox:checked ~ .nav-menu {
        transform: translateX(0);
    }
    
    .menu-toggle-checkbox:checked ~ .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }
    
    /* Burger Animation */
    .menu-toggle-checkbox:checked + .menu-toggle-btn .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle-checkbox:checked + .menu-toggle-btn .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle-checkbox:checked + .menu-toggle-btn .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ================================
   MAIN CONTENT
================================ */

.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-color) 0%, rgba(0, 240, 255, 0.05) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1.1) rotate(10deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Content Sections */
.section {
    position: relative;
}

.section:nth-child(even) {
    background: var(--light-gray);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--element-spacing);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.card-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.card-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.card-description {
    text-align: center;
    color: var(--text-light);
}

/* ================================
   FORMS
================================ */

.form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

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

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-checkbox {
    margin-top: 0.25rem;
    transform: scale(1.2);
}

.form-checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-light);
}

.form-checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), #00D4E6);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--glow-color);
    filter: brightness(1.1);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ================================
   FOOTER
================================ */

.footer {
    background: var(--accent-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section {
    text-align: left;
}

.footer-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-link,
.contact-text {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--glow-color);
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
    padding: 0.25rem 0;
}

.legal-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--glow-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ================================
   COOKIE BANNER
================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: var(--transition-smooth);
    border-top: 3px solid var(--primary-color);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
    gap: 2rem;
}

.cookie-text h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.cookie-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-accept,
.btn-reject {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.btn-accept {
    background: var(--primary-color);
    color: var(--white);
}

.btn-accept:hover {
    background: #00D4E6;
    box-shadow: var(--shadow-glow);
}

.btn-reject {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-reject:hover {
    background: var(--light-gray);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .btn-accept,
    .btn-reject {
        flex: 1;
        max-width: 150px;
    }
}

/* ================================
   UNIFIED POLICY PAGES STYLES
================================ */

.policy-title {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policy-section-block {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.policy-subsection {
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.policy-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-list li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.policy-content .contact-info {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.policy-content .contact-info h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.policy-content .contact-info .contact-item {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* ================================
   RESPONSIVE DESIGN
================================ */

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --element-spacing: 1.5rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .form {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .legal-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .form {
        padding: 1.5rem 1rem;
    }
}

/* ================================
   ACCESSIBILITY
================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-color: rgba(0, 0, 0, 0.5);
        --border-color: #000000;
    }
}

/* ================================
   PRINT STYLES
================================ */

@media print {
    .header,
    .cookie-banner,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        color: #000000 !important;
        background: #ffffff !important;
    }
    
    a {
        color: #000000 !important;
        text-decoration: underline !important;
    }
}
