:root {
    --bg-color: #0b1120;
    /* Глубокий темный */
    --card-bg: #1e293b;
    /* Светлее для карточек */
    --primary-color: #f8fafc;
    /* Текст основной */
    --secondary-color: #94a3b8;
    /* Текст вторичный */
    --accent-color: #14b8a6;
    /* Teal / Бирюзовый неон */
    --accent-hover: #0d9488;
    --error-color: #ef4444;
    --border-radius: 12px;
    --nav-height: 70px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn--primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: none;
    margin-top: 20px;
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn--outline {
    border: 1px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn--outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

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

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

/* Header */
.header {
    height: var(--nav-height);
    position: sticky;
    top: 0;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

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

.nav__link {
    transition: all 0.3s ease;
}

.nav__link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.burger,
.close-menu {
    display: none;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11, 17, 32, 0.9), rgba(11, 17, 32, 0.6));
}

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

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

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

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

/* Services Masonry-style */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: 250px;
}

.service-item {
    position: relative;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

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

.service-item.wide {
    grid-column: span 3;
}

.service-item h3,
.service-item p {
    text-shadow: none;
    color: #fff;
}

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

.review-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

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

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

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

.contact__info {
    padding-top: 40px;
}

.contact__form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:hover {
    border-color: rgba(20, 184, 166, 0.5);
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: var(--secondary-color);
    pointer-events: none;
    transition: 0.3s;
    background: var(--card-bg);
    padding: 0 5px;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

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

/* Captcha */
.captcha-group {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#captchaQuestion {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

#captchaAnswer {
    flex: 1;
    max-width: 120px;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

#captchaAnswer:hover {
    border-color: rgba(20, 184, 166, 0.5);
}

#captchaAnswer:focus {
    border-color: var(--accent-color);
}

#captchaAnswer::placeholder {
    color: var(--secondary-color);
    opacity: 0.5;
}

.error-msg {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
    min-height: 20px;
}

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

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

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

.footer__col h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
}

.footer__col p {
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col a {
    transition: all 0.3s ease;
    display: inline-block;
    color: var(--primary-color);
}

.footer__col a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer__col button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    padding: 0;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: inherit;
}

.footer__col button:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Modals & Cookie */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: none;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    border: 1px solid var(--accent-color);
}

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

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.modal {
    background: var(--card-bg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    display: none;
    overflow-y: auto;
}

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

.modal-content h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-content h4 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--primary-color);
}

.modal-content ul,
.modal-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: var(--primary-color);
}

.modal-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.modal-content a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.modal-content a:hover {
    color: var(--accent-hover);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.success-msg {
    color: var(--accent-color);
    text-align: center;
    margin-top: 15px;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes modalSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

/* Mobile Response */
@media (max-width: 1024px) {
    .burger {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        z-index: 1001;
    }

    .burger span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: #fff;
        transition: 0.3s;
    }

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

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

    .burger span:nth-child(3) {
        top: 18px;
    }

    .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);
        top: 9px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        box-shadow: none;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        margin-top: 150px;
    }

    .hero__title {
        font-size: 2.5rem;
    }

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

    .services__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .service-item.large,
    .service-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .cookie-popup {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}