:root {
    --color-bg: #0B0C10;
    --color-bg-secondary: #1F2833;
    --color-text: #C5C6C7;
    --color-text-heading: #FFFFFF;
    --color-accent: #66FCF1;
    --color-accent-hover: #45A29E;

    --font-main: 'Exo 2', sans-serif;

    --spacing-container: 1rem;
    --spacing-section: 4rem;

    --transition-fast: 0.3s ease;
}

*,
*::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(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

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

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

.section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

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

.btn--outline {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

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

.btn--block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Header */
.header {
    background-color: rgba(11, 12, 16, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo-container {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-heading);
}

.logo-text {
    background: linear-gradient(90deg, #fff, var(--color-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation - Mobile First */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    z-index: 100;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.nav.active {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

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

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

.nav__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('images/hero_background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Header height */
    text-align: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 12, 16, 0.7), rgba(11, 12, 16, 0.9));
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero__badge {
    background-color: rgba(102, 252, 241, 0.1);
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(102, 252, 241, 0.3);
    backdrop-filter: blur(5px);
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 800px;
}

.hero__subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    color: #e0e0e0;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

/* Features Section */
.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background-color: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border-bottom: 2px solid transparent;
}

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

.feature-card__icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.feature-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Services Section */
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    /* Grid structure will be adjusted for desktop */
}

.service-card {
    background-color: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.service-card:hover {
    background-color: #2b3642;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-accent);
    opacity: 0.5;
}

/* Reviews Section */
.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.review-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    object-fit: cover;
}

.review-card__stars {
    color: #FFD700;
}

/* Contact Section */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contacts__info ul {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacts__info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contacts__info i {
    color: var(--color-accent);
}

.contacts__form {
    background-color: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background-color: #0b0c10;
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--color-text);
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--color-accent);
}

.form-captain-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.captcha-label {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-text-heading);
}

.captcha-input {
    width: 100px !important;
    text-align: center;
    padding: 1rem;
    background-color: #0b0c10;
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--color-text);
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.captcha-input:focus {
    border-color: var(--color-accent);
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background-color: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid #333;
    margin-top: 4rem;
    font-size: 0.9rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer__desc {
    margin-bottom: 20px;
}

.footer__col h4 {
    color: var(--color-text-heading);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__col ul li a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 5px var(--color-accent);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 400px;
    background-color: var(--color-bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    border: 1px solid var(--color-accent);
    transition: transform 0.5s ease;
    opacity: 0;
}

.cookie-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-popup__actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    background-color: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    z-index: 3001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #333;
}

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

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

.modal__content h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.modal__content p,
.modal__content ul {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal__content ul {
    padding-left: 1.5rem;
    list-style: disc;
}

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

    .hero__actions {
        flex-direction: row;
        max-width: none;
    }

    .hero__title {
        font-size: 3.5rem;
    }

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

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

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

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

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

@media (min-width: 1024px) {
    .nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        flex-direction: row;
        transform: none;
    }

    .nav__list {
        flex-direction: row;
        gap: 2rem;
    }

    .nav__close {
        display: none;
    }

    .burger {
        display: none;
    }

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

    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 200px);
    }

    .service-card--large {
        grid-column: span 1;
        grid-row: span 2;
    }

    .service-card--wide {
        grid-column: span 2;
    }

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

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