:root {
    --bg-color: #0A0F1C;
    --text-color: #F1F5F9;
    --primary-color: #4F46E5;
    --primary-hover: #4338ca;
    --accent-color: #06B6D4;
    --secondary-bg: #111827;
    --overlay-color: rgba(10, 15, 28, 0.85);
    --font-main: 'Space Grotesk', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

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

.header__container {
    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(--accent-color);
}

.logo__icon {
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    gap: 30px;
}

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

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

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
    transform-origin: 1px;
}

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

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

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

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(30, 27, 75, 0.9));
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin: 0 auto 40px;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

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

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

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

.btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

/* Section Common */
.section {
    padding: 80px 0;
}

.section__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-color);
}

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

.feature-card {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

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

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-color);
}

.feature-card p {
    color: #94a3b8;
}

/* Services (Masonry-like) */
.services__grid {
    display: grid;
    /* Try to fit 4 columns if space permits, otherwise wrap */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    group: relative;
}

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

.service-item:hover .service-item__img {
    transform: scale(1.05);
}

.service-item__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.service-item h3 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.service-item p {
    font-size: 0.9rem;
    color: #e2e8f0;
}

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

.review-card {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 12px;
}

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

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

.review-card__location {
    font-size: 0.85rem;
    color: #94a3b8;
}

.review-card__text {
    font-style: italic;
    color: #cbd5e1;
}

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

.contacts__info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contacts__list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1.1rem;
}

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

.form__group {
    margin-bottom: 20px;
}

.form__input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

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

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

.captcha-group label {
    white-space: nowrap;
    font-weight: 700;
}

.form-message {
    margin-top: 15px;
    text-align: center;
    min-height: 20px;
}

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

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

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

.footer__col h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

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

.link-text {
    color: var(--accent-color);
    text-decoration: underline;
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

.modal__content h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.modal__content p {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.modal__content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav__list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-bg);
        padding: 20px;
        text-align: center;
    }

    .nav__list.active {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .hero__title {
        font-size: 2.5rem;
    }

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