/* COLOR SCHEME: NEON CYBER-GRID (Dark Mode)
    Generated Variables
    --bg-body: Основной фон
    --bg-surface: Фон карточек
    --primary: Основной цвет (Purple Neon)
    --secondary: Вторичный цвет (Cyan Neon)
    --text-main: Основной текст
    --text-muted: Приглушенный текст
    Для изменения цветовой схемы измените значения переменных ниже
*/
:root {
    --bg-body: #0b0e14;
    --bg-surface: #151a23;
    --primary: #7b2cbf;
    /* Purple Neon */
    --primary-hover: #9d4edd;
    --secondary: #4cc9f0;
    /* Cyan Neon */
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --border: #2a303c;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Mulish', sans-serif;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px rgba(123, 44, 191, 0.4);
}

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

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

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

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

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

.text-gradient {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-head {
    margin-bottom: 3rem;
}

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

.mb-4 {
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(123, 44, 191, 0.6);
}

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

.btn--outline:hover {
    background: rgba(76, 201, 240, 0.1);
}

.btn--full {
    width: 100%;
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
}

.nav__list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav__link:hover {
    color: var(--secondary);
}

.nav__link--cta {
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 8px 20px;
    border-radius: 20px;
}

.nav__close {
    display: none;
}

.burger {
    display: none;
    background: none;
}

/* Hero */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(11, 14, 20, 0.8), var(--bg-body)),
        repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(76, 201, 240, 0.05) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(76, 201, 240, 0.05) 50px);
    z-index: -1;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(123, 44, 191, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #d0aae6;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero__eu-note {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 40px;
    opacity: 0.8;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features (About) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Services (Masonryish) */
.services-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-wide {
    grid-column: span 1;
}

/* Mobile first default */
.card-tall {
    min-height: 300px;
}

@media (min-width: 768px) {
    .card-wide {
        grid-column: span 2;
    }

    .card-tall {
        grid-row: span 2;
    }
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.link-arrow {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary);
}

/* Reviews */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: linear-gradient(180deg, var(--bg-surface), rgba(21, 26, 35, 0));
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.review-stars {
    color: #ffd700;
    letter-spacing: 2px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: start;
}

@media (min-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.form {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 14px;
    background: #0b0e14;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    transition: 0.3s;
    font-family: inherit;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.1);
}

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

.error-msg {
    color: #ff4d4d;
    font-size: 0.8rem;
    position: absolute;
    bottom: -18px;
    left: 0;
    opacity: 0;
    transition: 0.3s;
}

.form-group.error .form-input {
    border-color: #ff4d4d;
}

.form-group.error .error-msg {
    opacity: 1;
    bottom: -20px;
}

.form-status {
    margin-top: 15px;
    min-height: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.link-btn {
    background: none;
    color: var(--secondary);
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotate 1s linear infinite;
    margin-left: 10px;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background: #050609;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: white;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li button,
.footer ul li a {
    background: none;
    color: var(--text-muted);
    text-align: left;
}

.footer ul li button:hover,
.footer ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Modals & Popups */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    z-index: 1000;
    border: 1px solid var(--border);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content {
    color: var(--text-main);
}

.modal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.modal-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-family: var(--font-heading);
}

.modal-content h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    font-family: var(--font-heading);
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-main);
}

.modal-content ul,
.modal-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-main);
}

.modal-content strong {
    color: var(--text-main);
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
}

.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--secondary);
    padding: 20px;
    border-radius: var(--radius-sm);
    max-width: 350px;
    z-index: 900;
    box-shadow: var(--shadow);
    animation: slideIn 0.5s ease;
    display: block;
}

.cookie-popup.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .cookie-popup {
        right: 10px;
        left: 10px;
        bottom: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
}

.cookie-content {
    margin-bottom: 15px;
}

.cookie-content h4 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.cookie-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Nav */
@media (max-width: 1024px) {
    .burger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 30px;
    }

    .burger-line {
        width: 100%;
        height: 2px;
        background: white;
        transition: 0.3s;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        z-index: 99;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        font-size: 1.5rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: white;
        background: none;
    }
}