/* Variables */
:root {
    --bg-color: #0f1014;
    --surface-color: #1b1e26;
    --primary: #00ff9d;
    --primary-hover: #00cc7d;
    --secondary: #2563eb;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #2d3748;
    --success: #10b981;
    --error: #ef4444;

    --font-main: 'Outfit', sans-serif;

    --container-width: 1200px;
    --header-height: 70px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    :root {
        --header-height: 80px;
    }
}

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

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .container {
        max-width: var(--container-width);
    }
}

.section {
    padding: 60px 0;
}

@media (min-width: 1024px) {
    .section {
        padding: 100px 0;
    }
}

.section__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 1024px) {
    .section__title {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .btn {
        padding: 12px 32px;
    }
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn--primary:hover {
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

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

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

.btn--sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

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

.btn__loader {
    display: none;
    margin-left: 8px;
}

.btn.loading .btn__text {
    opacity: 0;
}

.btn.loading .btn__loader {
    display: block;
    position: absolute;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

@media (min-width: 1024px) {
    .logo__text {
        font-size: 1.25rem;
    }
}

/* Nav - Mobile First (Hidden/Offcanvas) */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
    padding-top: var(--header-height);
}

.nav.active {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.nav__link {
    font-size: 1.5rem;
    color: var(--text-muted);
}

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

/* Nav - Desktop */
@media (min-width: 1024px) {
    .nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        padding-top: 0;
        right: auto;
        z-index: auto;
    }

    .nav__list {
        flex-direction: row;
        gap: 30px;
    }

    .nav__link {
        font-size: 1rem;
    }
}

/* Burger */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

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

.burger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

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

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

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

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 16, 20, 0.8), var(--bg-color));
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .badge {
        font-size: 0.875rem;
    }
}

.hero__title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

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

@media (min-width: 768px) {
    .hero__subtitle {
        font-size: 1.25rem;
    }
}

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

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

.feature-card {
    background-color: var(--surface-color);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

@media (min-width: 1024px) {
    .feature-card {
        padding: 40px 30px;
    }
}

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

.feature-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(121, 40, 202, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: var(--primary);
}

.feature-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

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

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.service-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card__content {
    padding: 24px;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card__text {
    color: var(--text-muted);
}

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

@media (min-width: 768px) {
    .reviews__grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.review-card {
    background-color: var(--surface-color);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

@media (min-width: 1024px) {
    .review-card {
        padding: 30px;
    }
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.review-card__stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

.review-card__author {
    font-weight: 600;
}

.review-card__text {
    color: var(--text-muted);
    font-style: italic;
}

/* Contacts */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 1024px) {
    .contacts__wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.contacts__item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contacts__item i {
    width: 40px;
    height: 40px;
    background-color: var(--surface-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contacts__item h4 {
    margin-bottom: 4px;
    color: var(--primary);
}

.contacts__item p {
    color: var(--text-muted);
}

.contacts__form {
    background-color: var(--surface-color);
    padding: 24px;
    border-radius: var(--border-radius);
}

@media (min-width: 1024px) {
    .contacts__form {
        padding: 40px;
    }
}

.form__title {
    margin-bottom: 24px;
    font-size: 1.5rem;
    text-align: center;
}

.form__group {
    margin-bottom: 20px;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary);
}

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

.captcha-question {
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--bg-color);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

@media (min-width: 1024px) {
    .footer {
        text-align: left;
        padding-top: 80px;
    }
}

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

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        margin-bottom: 60px;
    }
}

.logo--footer .logo__text {
    font-size: 1.5rem;
}

@media (max-width: 1023px) {
    .logo--footer {
        justify-content: center;
    }
}

.footer__desc {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__title {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__list a,
.footer__link-btn {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.footer__list a:hover,
.footer__link-btn:hover {
    color: var(--primary);
}

/* Footer Contacts Style Override */
.footer__col:last-child .footer__list a {
    color: var(--text-main);
    font-size: 1rem;
}

.footer__col:last-child .footer__list a:hover {
    color: var(--primary);
}

.footer__bottom {
    background-color: #15171d;
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 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: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    display: none;
    background-color: var(--surface-color);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    flex-direction: column;
}

.modal.active {
    display: flex;
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal--small {
    max-width: 400px;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

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

.modal__content h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

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

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

.success-icon {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 20px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--primary);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(150%);
    transition: transform 0.5s ease;
}

.cookie-popup.active {
    transform: translateY(0);
}

.cookie-popup__content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-link {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.cookie-popup__actions {
    display: flex;
    gap: 10px;
}