:root {
    /* Palette: Cyber Mint & Deep Slate */
    --bg-color: #0F172A;
    --card-bg: #1E293B;
    --primary-color: #00FFC2;
    /* Bright Mint */
    --secondary-color: #7000FF;
    /* Deep Violet */
    --text-color: #F8FAFC;
    --text-muted: #94A3B8;
    --border-radius: 12px;
    --font-main: 'Manrope', sans-serif;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    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;
}

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

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

.logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Nav Menu (Mobile Hidden by default) */
.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #0F172A;
    z-index: 5000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.nav.active {
    right: 0;
}

/* Header inside Mobile Menu */
.nav__mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}

/* Приховати мобільний хедер на десктопі */
.nav__mobile-header .logo {
    font-size: 1.2rem;
}

.nav__close {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: var(--text-color);
}

.nav__close:hover svg {
    stroke: var(--primary-color);
    transition: 0.3s;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 20px;
}

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

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

/* Burger Button */
.burger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

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

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

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

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

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

    .nav {
        position: static;
        height: auto;
        width: auto;
        background: none;
        flex-direction: row;
        padding: 0;
        z-index: auto;
        transition: none;
        right: 0;
    }

    .nav__mobile-header {
        display: none;
    }

    .nav__list {
        flex-direction: row;
        gap: 30px;
        padding: 0;
    }

    .nav__link {
        font-size: 1rem;
    }
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('images/hero-bg.jpg') 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.95) 0%, rgba(112, 0, 255, 0.3) 100%);
}

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

.badge {
    display: inline-block;
    background: rgba(0, 255, 194, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 255, 194, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 194, 0.3);
    background: rgba(0, 255, 194, 0.2);
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: #E2E8F0;
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero__note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #CBD5E1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.btn--primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 194, 0.4);
}

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

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

.btn--outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

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

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

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

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

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

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

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

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

.service-item {
    background: rgba(112, 0, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(112, 0, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(112, 0, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 255, 194, 0.2);
}

.service-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.review-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

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

.review-card__image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

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

.review-card__text {
    font-style: italic;
    margin-bottom: 20px;
}

/* Contacts */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .contacts__wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.contacts__list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contacts__form-wrapper {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form {
    width: 100%;
}

.form__group {
    margin-bottom: 20px;
}

.form input {
    width: 100%;
    padding: 15px;
    border-radius: 6px;
    border: 2px solid #475569;
    background: #0F172A;
    color: #fff;
    outline: none;
    transition: border-color var(--transition);
}

.form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 194, 0.1);
}

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

.captcha-group span {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

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

.form__status {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #020617;
    padding: 60px 0 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer__col h4 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer__col p,
.footer__col a,
.footer__col li {
    color: var(--text-color);
    margin-bottom: 8px;
}

.footer__col a {
    transition: var(--transition);
    display: inline-block;
}

.footer__col a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer__link {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-align: left;
    margin-bottom: 8px;
    text-decoration: underline;
    transition: var(--transition);
    display: inline-block;
}

.footer__link:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}


/* 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;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    z-index: 3001;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active,
.modal-overlay.active {
    display: block;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.modal__content h4 {
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal__content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal__content ul,
.modal__content ol {
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 20px;
}

.modal__content ul {
    list-style: disc;
}

.modal__content ol {
    list-style: decimal;
}

.modal__content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal__content ul ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

.modal__content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.modal__content a:hover {
    opacity: 0.8;
}