:root {
    /* Color Palette */
    --primary: #6C63FF;
    /* Deep Purple */
    --primary-hover: #5a52d5;
    --secondary: #2F2E41;
    /* Dark Gray */
    --accent: #00D4FF;
    /* Cyan */
    --background: #F7F9FC;
    /* Light Grayish Blue */
    --surface: #FFFFFF;
    /* White */
    --text-main: #2F2E41;
    --text-light: #6E7C87;
    --border: #E2E8F0;
    --error: #FF4757;
    --success: #2ED573;
    --overlay: rgba(47, 46, 65, 0.9);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing & Sizes */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(108, 99, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-weight: 600;
}

input,
textarea {
    font-family: var(--font-body);
    outline: none;
}

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

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

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

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

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
}

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

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

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

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

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

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 1002;
}

.burger span {
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    z-index: 1001;
}

.mobile-menu.active {
    right: 0;
}

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

.mobile-menu__list li {
    margin: 25px 0;
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background: url('images/hero.jpg') no-repeat center center/cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(47, 46, 65, 0.95) 0%, rgba(47, 46, 65, 0.7) 100%);
}

.hero__container {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero__badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    color: var(--accent);
    font-weight: 600;
}

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

.hero__subtitle {
    font-size: 1.25rem;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

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

.feature-card {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(108, 99, 255, 0.1);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.feature-card__title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-card__text {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.service-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card__content {
    padding: 25px;
    text-align: center;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.service-card__text {
    color: var(--text-light);
}

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

.review-card {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

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

.review-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #eee;
    object-fit: cover;
}

.review-card__name {
    margin-bottom: 2px;
    font-size: 1.1rem;
}

.review-card__role {
    font-size: 0.9rem;
    color: var(--text-light);
}

.review-card__text {
    font-style: italic;
    color: var(--text-main);
}

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

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item__title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.contact-item__text {
    font-size: 1.1rem;
}

.contacts__form {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.captcha-label {
    font-weight: 700;
    font-size: 1.2rem;
    user-select: none;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: white;
    padding: 60px 0 20px;
}

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

.logo--footer .logo-text {
    color: white;
}

.footer__desc {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

.footer__title {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer__link,
.footer__text,
.footer__link-btn {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer__link-btn {
    text-align: left;
    padding: 0;
    font-weight: 400;
    font-family: var(--font-body);
}

.footer__link:hover,
.footer__link-btn:hover {
    color: var(--primary);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--surface);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: var(--border-radius);
    padding: 40px;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal__content {
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    /* Adjust for padding */
    padding-right: 10px;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    line-height: 1;
    color: var(--secondary);
    transition: color 0.3s ease;
}

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

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

.modal h4 {
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 10px;
}

.modal p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

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

.modal li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--surface);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    max-width: 350px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
    border: 1px solid var(--border);
}

.cookie-popup.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-popup__actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero__title {
        font-size: 3rem;
    }
}

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

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

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

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .footer__container {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 500px;
    }
}