:root {
    --primary-color: #00D4FF;
    --primary-dark: #00A3C4;
    --secondary-color: #161B2E;
    --background-color: #0A0F1C;
    --text-color: #E0E6ED;
    --text-muted: #8B9BB4;
    --accent-color: #FF0055;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --font-main: 'Rajdhani', sans-serif;
    --container-width: 1200px;
    --header-height: 70px;
}

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

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

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

ul {
    list-style: none;
}

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

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

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

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section__title--left {
    text-align: left;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
}

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

.btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: 1px;
}

.logo__icon {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 2px var(--primary-color));
    }

    50% {
        filter: drop-shadow(0 0 8px var(--primary-color));
    }

    100% {
        filter: drop-shadow(0 0 2px var(--primary-color));
    }
}

.nav {
    display: none;
}

/* Mobile Menu */
.burger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    transition: var(--transition);
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 9px;
}

.burger span:nth-child(3) {
    bottom: 0;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

.nav.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.nav__link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

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

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero_bg.jpg') no-repeat center center/cover;
    text-align: center;
    padding-top: var(--header-height);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--background-color) 0%, rgba(10, 15, 28, 0.7) 100%);
}

.hero__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__badge {
    background-color: rgba(0, 212, 255, 0.15);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Features */
.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white);
}

.feature-card__text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services */
.services__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

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

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

.service-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card__img {
    transform: scale(1.1);
}

.service-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--white);
}

.service-card__content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.service-card__content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Reviews */
.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.review-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.review-card__text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    background-color: #2A3245;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__author h4 {
    font-size: 1rem;
    color: var(--white);
}

.review-card__author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contacts */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.contacts__desc {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.contacts__list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contacts__list i {
    color: var(--primary-color);
    width: 25px;
    text-align: center;
}

.form {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
}

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

.form__input {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.form__input--captcha {
    width: 80px;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #05080E;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.logo--small {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 250px;
}

.footer__title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer__links li,
.footer__contacts li {
    margin-bottom: 12px;
}

.footer__links a,
.footer__links button {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0;
    text-align: left;
    transition: var(--transition);
}

.footer__links a:hover,
.footer__links button:hover {
    color: var(--primary-color);
}

.footer__contacts li {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.85rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    z-index: 2000;
    display: none;
    /* JS will show */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-popup__text {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cookie-popup__buttons {
    display: flex;
    gap: 15px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    z-index: 3001;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

.modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--primary-color);
}

.modal__content h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal__content p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.modal__content ul {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style: disc;
    color: var(--text-muted);
}

/* Responsive */
@media (min-width: 768px) {
    .section__title {
        font-size: 2.5rem;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contacts__wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cookie-popup {
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 400px;
        bottom: 30px;
    }
}

@media (min-width: 1024px) {
    .burger {
        display: none;
    }

    .nav {
        display: block;
    }

    .nav__list {
        flex-direction: row;
        gap: 40px;
        text-align: left;
    }

    .logo {
        position: relative;
        z-index: 1002;
    }

    .nav__link {
        font-size: 1rem;
    }

    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}