:root {
    --primary-color: #6366f1;
    /* Indigo */
    --accent-color: #10b981;
    /* Emerald */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Header */
.header {
    background: rgba(15, 23, 42, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    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;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.nav__list {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav__link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

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

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

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&q=80') no-repeat center/cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
}

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

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

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

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

.hero__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

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

.btn--primary:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
}

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

.btn--outline:hover {
    background: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

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

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

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

.section--bg {
    background-color: rgba(255, 255, 255, 0.03);
}

.section--dark {
    background-color: #0b1120;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

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

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

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

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

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

.service-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

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

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.review-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    font-style: italic;
    transition: var(--transition);
}

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

.review-card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
}

.review-card span {
    display: block;
    margin-top: 15px;
    font-style: normal;
    color: var(--accent-color);
    font-weight: 600;
}

/* Contacts */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 250px;
    justify-content: center;
}

.contact-info ul {
    list-style: none;
    margin-top: 30px;
}

.contact-info li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    white-space: nowrap;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 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: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer__col ul {
    list-style: none;
}

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

.footer__col button {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.footer__col button:hover,
.footer__col a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer__col a {
    color: var(--text-gray);
    text-decoration: none;
}

.footer__col p:first-of-type {
    white-space: nowrap;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--accent-color);
    z-index: 2000;
    display: none;
    /* JS handles display */
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    max-width: 500px;
}

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

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

.modal {
    background: var(--bg-card);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 16px;
    position: relative;
    display: none;
    border: 1px solid #334155;
}

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

.modal-content {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

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

.modal-content h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.modal-content ul,
.modal-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

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

.modal-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.modal-content a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    display: inline-block;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav.active {
        right: 0;
    }

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

    .burger {
        display: flex;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .cookie-popup {
        flex-direction: column;
        align-items: flex-start;
    }
}