:root {
    /* Randomization: Deep Ocean Tech Palette */
    --primary-color: #0F172A;
    /* Темно-синий, почти черный */
    --secondary-color: #38BDF8;
    /* Яркий голубой */
    --accent-color: #22D3EE;
    /* Неоновый циан */
    --text-color: #334155;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --error: #EF4444;
    --success: #10B981;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-main: 'Montserrat', sans-serif;
}

/* Reset & Base */
* {
    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;
    background-color: var(--white);
}

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

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
}

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

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

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), #1e293b);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
}

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

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

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

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

.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);
}

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

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

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

.nav__close {
    display: none;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger .line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/hero.jpg') center/cover no-repeat;
    /* AI technology, futuristic, digital transformation */
}

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

.hero__content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.feature-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Services (Masonry-like with Grid) */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
    margin-bottom: 40px;
}

.masonry-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    color: var(--white);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background-size: cover;
    background-position: center;
}

.masonry-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.masonry-content {
    position: relative;
    z-index: 2;
}

.item-1 {
    grid-row: span 2;
    background-image: url('images/phone.jpg');
    /* Smart phone */
}

.item-2 {
    background-image: url('images/learning.jpg');
    /* Laptop learning */
}

.item-3 {
    background-image: url('images/analytics.jpg');
    /* Data processing, technology */
}

.item-4 {
    grid-column: span 2;
    background-image: url('images/smart-home.jpg');
    /* Smart home */
}

.cta-box {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

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

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

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

.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author span {
    font-weight: 600;
    color: var(--primary-color);
}

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

.contact__info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.contact__info i {
    color: var(--secondary-color);
}

.contact__note {
    margin-top: 30px;
    padding: 15px;
    background: var(--light-bg);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

.contact__form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    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(56, 189, 248, 0.2);
}

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

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

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

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

.success-message {
    color: var(--success);
}

.error-message {
    color: var(--error);
}

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

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

.logo--footer {
    color: var(--white);
    margin-bottom: 20px;
}

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

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

.footer__col a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer__col a:hover {
    color: var(--secondary-color);
}

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

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    z-index: 2001;
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

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

.modal-content {
    padding: 40px;
    overflow-y: auto;
}

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

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

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

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 400px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1500;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.show {
    transform: translateX(-50%) translateY(0);
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.cookie-buttons .btn--outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header__container {
        padding: 0 20px;
    }

    .burger {
        display: flex;
        z-index: 1002;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        z-index: 2000;
    }

    .nav.active {
        right: 0;
    }

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

    .nav__link {
        font-size: 1.5rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
    }

    .hero__title {
        font-size: 2rem;
    }

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

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

    .item-4 {
        grid-column: span 1;
    }
}