:root {
    /* Light Palette: Clean & Tech */
    --color-bg: #ffffff;
    --color-bg-alt: #f1f5f9;
    --color-primary: #3b82f6;
    /* Tech Blue */
    --color-primary-dark: #2563eb;
    --color-accent: #0ea5e9;
    /* Sky Blue */
    --color-text: #1e293b;
    /* Slate 800 */
    --color-text-light: #64748b;
    /* Slate 500 */

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

    --header-height: 70px;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    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: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--color-text);
}

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

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 1rem;
}

.btn--primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn--outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

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

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

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

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

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

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

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

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

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

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

.nav__close {
    position: absolute;
    top: 25px;
    /* Відступ зверху */
    right: 25px;
    /* Відступ справа */

    /* Розміри та скидання стандартних стилів */
    width: 45px;
    height: 45px;
    background: transparent;
    /* Прозорий фон */
    border: none;
    /* Без рамок */
    outline: none;
    /* Без обведення */

    /* Текст/Іконка */
    font-size: 2rem;
    /* Розмір хрестика */
    color: var(--color-text);
    /* Колір тексту (темний) */

    /* Вирівнювання іконки по центру */
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 2001;
    /* Поверх усього */
    transition: all 0.3s ease;
    /* Плавна анімація */
}

.nav__close:hover {
    color: var(--color-primary);
    /* Зміна кольору на синій */
    transform: rotate(90deg);
    /* Поворот на 90 градусів */
    background: rgba(0, 0, 0, 0.05);
    /* Легкий фон при наведенні */
    border-radius: 50%;
    /* Робимо коло при наведенні */
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    /* Light overlay */
}

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

.badge {
    background: #e0f2fe;
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 0.95rem;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--color-text);
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

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

/* Features */
.feature-card {
    background: var(--color-bg);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

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

/* Services */
.services {
    background-color: var(--color-bg-alt);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-item {
    background: var(--color-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.service-item.highlight {
    background: var(--color-primary);
    color: white;
}

.service-item.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

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

.review-card {
    background: var(--color-bg-alt);
    padding: 30px;
    border-radius: var(--radius);
}

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

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    /* Це важливо для коректного відображення фото */
    display: block;
    /* Прибираємо flex, бо це тепер картинка */
}

.review-card p {
    font-style: italic;
    color: var(--color-text-light);
}

/* Contact */
.contact__wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

.form {
    margin: 30px 0;
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

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

.form__group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form__footer {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 15px;
    text-align: center;
}

.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

.form-success {
    text-align: center;
    padding: 20px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: var(--radius);
    margin: 20px 0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #10b981;
}

.contact__info-block {
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
    color: var(--color-text-light);
}

.contact__info-block p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
.footer {
    background: var(--color-bg-alt);
    padding: 60px 0 20px;
    border-top: 1px solid #e2e8f0;
}

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

.footer__col h4 {
    margin-bottom: 20px;
    color: var(--color-text);
}

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

.footer__col ul li a {
    color: var(--color-text-light);
}

.footer__col ul li a:hover {
    color: var(--color-primary);
}

.footer__col p {
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #cbd5e1;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Modals & Popups */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 500px;
    border: 1px solid #e2e8f0;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: var(--radius);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.modal__content {
    padding: 40px 30px;
    overflow-y: auto;
    color: var(--color-text);
}

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

.modal__content p,
.modal__content ul {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.modal__content ul {
    list-style: disc;
    padding-left: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        z-index: 200;
    }

    .nav.show {
        right: 0;
    }

    .nav__list {
        margin-top: 100px;
        flex-direction: column;
        align-items: center;
        font-size: 1.5rem;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .contact__wrapper {
        padding: 25px;
    }
}

/* Сховати кнопку закриття на ПК (екрани більше 768px) */
@media (min-width: 769px) {
    .nav__close {
        display: none !important;
    }
}