:root {
    /* Palette: Neon Slate & Indigo */
    --primary-color: #6366f1;
    /* Indigo 500 */
    --primary-hover: #4f46e5;
    /* Indigo 600 */
    --secondary-color: #0f172a;
    /* Slate 900 (Background) */
    --accent-color: #a5f3fc;
    /* Cyan 200 */
    --text-main: #e2e8f0;
    /* Slate 200 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --card-bg: #1e293b;
    /* Slate 800 */

    --success: #10b981;
    --error: #ef4444;

    --font-main: 'Outfit', sans-serif;

    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

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

.btn--outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn--small {
    padding: 10px 24px;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(165, 243, 252, 0.2);
}

.btn--small:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.btn--full {
    width: 100%;
    background: var(--primary-color);
    color: white;
}

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

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

.logo__img {
    width: 40px;
    height: 40px;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.logo:hover .logo__img {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.5));
}

.nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--secondary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav.active {
    right: 0;
}

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

.nav__link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
}

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

.burger {
    display: block;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

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

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

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

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

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0 auto 24px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-weight: 500;
}

.hero__title {
    font-size: 2.75rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0 auto 40px;
    max-width: 500px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section__title {
    text-align: center;
    font-size: 2.25rem;
    margin: 0 auto 60px;
    position: relative;
    display: block;
    width: fit-content;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Features */
.features__grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card__icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

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

/* Services */
.services__grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
}

.service-card__image {
    height: 220px;
    overflow: hidden;
}

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

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card__content h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.service-card__content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Reviews */
.reviews__wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(10px, 2vw, 20px);
}

.reviews__grid {
    display: grid;
    gap: clamp(20px, 3vw, 30px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    width: 100%;
}

.review-card {
    background: rgba(255, 255, 255, 0.02);
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--border-radius);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: clamp(15px, 2.5vw, 20px);
    left: clamp(15px, 2.5vw, 20px);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
    font-family: serif;
}

.review-card__image {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto clamp(16px, 2.5vw, 20px);
    border: clamp(2px, 0.3vw, 3px) solid var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.review-card__image:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.review-card__image--1 {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.review-card__image--2 {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(165, 243, 252, 0.2);
}

.review-card__image--3 {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.review-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.review-card__image:hover img {
    transform: scale(1.05);
}

.review-card__text {
    font-style: italic;
    margin-bottom: clamp(16px, 2.5vw, 20px);
    color: var(--text-main);
    position: relative;
    z-index: 1;
    flex-grow: 1;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
}

.review-card__author {
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    text-align: right;
}

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

.contact__list {
    margin-top: 40px;
}

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

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

.contact__form h3 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.5rem;
}

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

.form-group input {
    width: 100%;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.8);
}

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

.captcha-group label {
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
    color: var(--accent-color);
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .spinner {
    display: block;
}

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

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

.logo--footer {
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer__col h4 {
    margin-bottom: 24px;
    color: white;
    font-size: 1.1rem;
}

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

.footer__col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer__col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal__content {
    position: relative;
    background: var(--card-bg);
    padding: clamp(30px, 4vw, 50px);
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

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

.modal__close:hover {
    color: white;
}

.modal__body h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal__body h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: 1.15rem;
    font-weight: 600;
}

.modal__body p,
.modal__body ul,
.modal__body ol {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.modal__body p strong {
    color: var(--text-main);
    font-weight: 600;
}

.modal__body ul,
.modal__body ol {
    padding-left: 24px;
    margin-left: 8px;
}

.modal__body ul li,
.modal__body ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.modal__body ul li strong,
.modal__body ol li strong {
    color: var(--text-main);
    font-weight: 600;
}


/* Media Queries */
@media (min-width: 768px) {

    .features__grid,
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    }

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

}

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

    .nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        display: block;
    }

    .nav__list {
        flex-direction: row;
        gap: 40px;
    }

    .nav__link {
        font-size: 1rem;
    }

    .hero__title {
        font-size: 4rem;
    }

    .features__grid,
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        max-width: 1200px;
        margin: 0 auto;
    }

    .reviews__wrapper {
        padding: 0;
    }

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

    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}