:root {
    /* Color Palette */
    --color-bg: #0b0c10;
    --color-bg-secondary: #1f2833;
    --color-text: #c5c6c7;
    --color-heading: #ffffff;
    --color-primary: #4cc9f0;
    /* Neon Blue */
    --color-primary-dark: #3a0ca3;
    --color-accent: #7209b7;
    /* Deep Purple */
    --color-error: #ef476f;
    --color-success: #06d6a0;

    /* Font */
    --font-main: 'Saira', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition: all 0.3s ease;

    /* Border Radius */
    --radius: 8px;
    --radius-lg: 16px;
}

*,
*::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-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

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

ul {
    list-style: none;
}

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

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

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

.section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn--primary {
    background: linear-gradient(45deg, var(--color-accent), var(--color-primary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(114, 9, 183, 0.4);
}

.btn--primary:hover {
    box-shadow: 0 6px 20px rgba(114, 9, 183, 0.6);
    transform: translateY(-2px);
}

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

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

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    background-color: rgba(11, 12, 16, 0.95);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading);
}

.logo__icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.logo--small {
    font-size: 1rem;
}

.nav {
    display: none;
}

.burger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.burger__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-heading);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

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

.burger__line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

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

.burger.active .burger__line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

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

.burger.active .burger__line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu */
.nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--color-bg-secondary);
    padding: 4rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

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

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

    .nav {
        display: block;
    }

    .nav__close {
        display: none;
    }

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

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    margin-top: 60px;
    /* Header height */
}

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

.hero__container {
    position: relative;
    z-index: 2;
}

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

.badge {
    display: inline-block;
    background: rgba(76, 201, 240, 0.2);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(76, 201, 240, 0.3);
    margin-bottom: var(--spacing-sm);
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

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

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

/* Features */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    background-color: lighten(var(--color-bg-secondary), 5%);
}

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

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

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

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

@media (max-width: 640px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

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

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

.service-card__content {
    padding: 1.5rem;
}

.service-card__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* Reviews */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

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

.review-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
}

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

.review-card__avatar-placeholder {
    width: 50px;
    height: 50px;
    background-color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

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

.review-card__name {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.review-card__role {
    font-size: 0.85rem;
    color: var(--color-primary);
}

.review-card__text {
    font-style: italic;
    opacity: 0.9;
}

/* Contacts */
.contacts__container {
    display: grid;
    gap: 3rem;
}

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

.contacts__list {
    margin-top: 2rem;
}

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

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

.contacts__form {
    background-color: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: var(--radius);
}

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

.form-input {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-bg);
    border: 1px solid #333;
    border-radius: var(--radius);
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

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

.captcha-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.captcha-question {
    font-weight: 600;
    font-size: 1.2rem;
    white-space: nowrap;
}

.error-msg {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
.footer {
    background-color: #050608;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer__title {
    margin-bottom: 1.5rem;
    color: var(--color-heading);
}

.footer__desc {
    margin-top: 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer__links li {
    margin-bottom: 0.8rem;
}

.footer__links a {
    opacity: 0.7;
}

.footer__links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background-color: var(--color-bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    border: 1px solid var(--color-primary);
}

.cookie-popup.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideUp 0.5s ease;
}

@media (min-width: 768px) {
    .cookie-popup.active {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-popup__text {
    font-size: 0.9rem;
}

.cookie-popup__text a {
    color: var(--color-primary);
    text-decoration: underline;
}

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

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    /* Flex when active */
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.modal {
    display: none;
    /* Block when active */
    background-color: var(--color-bg-secondary);
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.modal__content h3 {
    color: var(--color-primary);
    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;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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