:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --accent: #8B5CF6;
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --white: #FFFFFF;
    --error: #EF4444;
    --success: #10B981;
    --glass: rgba(30, 41, 59, 0.7);
    --border-glass: rgba(255, 255, 255, 0.1);

    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: left;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--white), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

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

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

.logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
}

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

.nav__link {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    transition: var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav__link:hover::after {
    width: 100%;
}

/* Burger Menu */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 20px;
}

.burger span,
.burger::before,
.burger::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

.burger::before {
    top: 0;
}

.burger span {
    top: 50%;
    transform: translateY(-50%);
}

.burger::after {
    bottom: 0;
}

.burger.active::before {
    transform: rotate(45deg);
    top: 9px;
}

.burger.active span {
    opacity: 0;
}

.burger.active::after {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    gap: 10px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

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

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

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

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

.link-btn:hover {
    color: var(--white);
}

/* Hero */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: 20px;
}

.hero__image img {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.feature-card:hover .feature-card__icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

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

/* Services */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px) translateX(5px);
    background: rgba(30, 41, 59, 0.9);
}

.service-item:hover::before {
    opacity: 1;
}

.service-item h3 {
    margin-bottom: 12px;
}

.service-item p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-item__link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

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

.review-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.review-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.review-card__stars {
    color: #FBBF24;
    margin-bottom: 20px;
    transition: var(--transition);
}

.review-card:hover .review-card__stars {
    transform: scale(1.1);
}

.review-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

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

.review-card__author {
    color: var(--text-muted);
    font-weight: 500;
}

/* Contact */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact__details {
    margin-top: 40px;
}

.contact__details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.contact__details i {
    color: var(--primary);
    width: 20px;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
}

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

.form-group input {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
}

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

.captcha-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

.hidden {
    display: none;
}

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

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

.form-status {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Footer */
.footer {
    padding-top: 80px;
    border-top: 1px solid var(--border-glass);
}

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

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

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

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

.footer__links a {
    color: var(--text-muted);
}

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

.footer__contact li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.footer__bottom {
    padding: 30px 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2000;
    transform: translateY(150%);
    transition: var(--transition);
}

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

.cookie-popup__content {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    width: 95%;
    max-width: 800px;
    max-height: 85vh;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    z-index: 3100;
    border: 1px solid var(--border-glass);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    display: block;
    /* Overriding previous display: none if any */
}

.modal.active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.modal__content {
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    padding-right: 15px;
}

.modal__content::-webkit-scrollbar {
    width: 6px;
}

.modal__content::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 10px;
}

.modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--white);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

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

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

/* Responsive */
@media (max-width: 1024px) {
    section {
        padding: 80px 0;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        transition: var(--transition);
        padding: 40px;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

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

    .nav__link {
        font-size: 1.5rem;
    }

    .burger {
        display: block;
    }

    .hero__container,
    .contact__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__content {
        order: 2;
    }

    .hero__image {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero__actions {
        flex-direction: column;
        gap: 15px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .features__grid,
    .services__grid,
    .reviews__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact__container {
        gap: 30px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__col .logo {
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer__links,
    .footer__contact {
        padding: 0;
    }

    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .cookie-popup__actions {
        width: 100%;
    }

    .cookie-popup__actions .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 15px;
    }

    .modal {
        padding: 30px 15px;
    }

    .modal__close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }

    .logo__text {
        font-size: 1.2rem;
    }
}