/* --- Variables & Reset --- */
:root {
    --primary-color: #1a1f3a;
    /* Deep Navy */
    --secondary-color: #5b21b6;
    /* Vibrant Purple */
    --accent-color: #06b6d4;
    /* Cyan */
    --text-color: #334155;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --font-main: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn--primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(91, 33, 182, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(91, 33, 182, 0.4);
}

.btn--sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

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

.btn--outline:hover {
    background: var(--text-color);
    color: var(--white);
}

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo svg {
    transition: transform 0.3s;
}

.logo:hover svg {
    transform: rotate(5deg);
}

.nav__list {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

.nav__link:not(.cta-link)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s;
}

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

.cta-link {
    color: var(--secondary-color);
    font-weight: 600;
}

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

/* Burger Menu */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.burger.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
}

.burger.toggle span:nth-child(2) {
    opacity: 0;
}

.burger.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%),
        url('images/hero-bg.jpg') center/cover no-repeat;
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 75px;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.85), rgba(91, 33, 182, 0.75));
}

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

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 500;
    text-align: center;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.8;
}

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

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

.section__title {
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    font-weight: 700;
}

.text-center {
    text-align: center;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(91, 33, 182, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.7;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

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

/* Services Masonry */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.service-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(91, 33, 182, 0.2);
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-item:hover img {
    transform: scale(1.08);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px;
    background: linear-gradient(to top, rgba(26, 31, 58, 0.95), rgba(26, 31, 58, 0.7), transparent);
    color: var(--white);
}

.service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-content p {
    line-height: 1.6;
    opacity: 0.95;
}

.service-content--text-only {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: static;
}

.service-content--text-only h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Reviews */
.bg-light {
    background: var(--bg-light);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.review-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.review-card:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 35px rgba(91, 33, 182, 0.12);
}

.review-text {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.author-role {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

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

.contact__info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact__info>p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: var(--text-color);
    line-height: 1.7;
}

.contact__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact__list i {
    color: var(--accent-color);
    font-size: 1.3rem;
    width: 25px;
}

.contact__form {
    background: var(--white);
    padding: 45px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

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

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

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

.captcha-group span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.captcha-group input {
    flex: 1;
    min-width: 80px;
}

.form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #cbd5e1;
    padding: 70px 0 25px;
}

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

.footer__col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer__col p {
    line-height: 1.8;
    margin-bottom: 10px;
}

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

.footer ul li a {
    transition: var(--transition);
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    color: #94a3b8;
}

.logo--footer .logo__text {
    color: var(--white);
    font-size: 1.4rem;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

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

.modal-window {
    background: var(--white);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    padding: 50px 45px;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.open .modal-window {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-color);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    color: var(--text-color);
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

.modal-body h4 {
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

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

.modal-body ol {
    list-style: decimal;
    margin-left: 25px;
    margin-bottom: 20px;
}

.modal-body ol li {
    margin-bottom: 10px;
}

.modal-body a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: var(--transition);
}

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

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        transition: 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

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

    .burger {
        display: block;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

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

    .section__title {
        font-size: 2.3rem;
    }

    .features__grid,
    .masonry-grid,
    .reviews__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .contact__form {
        padding: 35px 25px;
    }

    .modal-window {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .badge {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}