@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-page: #f8f9fa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: #f0f0f0;
    --text-main: #111111;
    --text-muted: #555555;
    --text-soft: #666666;
    --text-faint: #888888;
    --border-color: #e0e0e0;
    --shadow-sm: rgba(0,0,0,0.05);
    --shadow-md: rgba(0,0,0,0.08);
    --shadow-lg: rgba(0,0,0,0.10);
    --footer-bg: #2a2a2a;
    --footer-text: #b0b0b0;
    --footer-social-bg: #3a3a3a;
    --contact-bg: #ffffff;
    --hero-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-page: #0f1117;
    --bg-white: #1a1d2e;
    --bg-card: #1e2235;
    --bg-subtle: #252840;
    --text-main: #e8e8e8;
    --text-muted: #b0b0b0;
    --text-soft: #9a9ab0;
    --text-faint: #7a7a90;
    --border-color: #2e3250;
    --shadow-sm: rgba(0,0,0,0.3);
    --shadow-md: rgba(0,0,0,0.4);
    --shadow-lg: rgba(0,0,0,0.5);
    --footer-bg: #0a0d18;
    --footer-text: #8888a0;
    --footer-social-bg: #1e2235;
    --contact-bg: #141722;
    --hero-bg: #1a1d2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* шапка */

.header {
    background: var(--bg-white);
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.logo {
    height: 60px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: #4169E1;
}

.nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4169E1;
}

/* главный блок */

.hero {
    position: relative;
    width: 100%;
    min-height: 800px;
    background: var(--hero-bg);
    overflow: hidden;
    transition: background 0.3s ease;
}

.hero-container {
    max-width: 1700px;
    margin: -100px auto 0;
    padding: 0px 100px 0px;
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--text-main);
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
}

.btn {
    padding: 15px 35px;
    background: #3b4cff;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: #2d3ce0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 76, 255, 0.3);
}

/* картинка с градиентом */
.hero-image {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hero-image img {
    width: auto;
    padding-top: 140px;
    max-width: 1200px;
    height: auto;
    position: relative;
    z-index: 5;
        -webkit-mask-image: linear-gradient(to bottom,
        #000 0%, #000 92%, transparent 100%);
            mask-image: linear-gradient(to bottom,
        #000 0%, #000 92%, transparent 100%);
}

/* волна на фоне */
.wave {
    position: absolute;
    bottom: -150px;
    left: 0;
    width: 117%;
    z-index: 2;
    pointer-events: none;
}


.wave img {
    width: 100%;
    height: auto;
    display: block;
}

/* растушёванный переход низа секции */
.section-feather::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--feather-h, 220px);
    pointer-events: none;
    z-index: 3;
    /* только чистый вертикальный фейд, без дымки */
    background: linear-gradient(to bottom,
        rgba(255,255,255,0) 0%,
        var(--feather-to, var(--bg-page)) 100%);
}

/* статистика */

.stats-wrapper {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 60;
    pointer-events: none;
}

.stats {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    pointer-events: auto;
}

.stat {
    position: relative;
    z-index: 1;
    background: var(--bg-white);
    padding: 30px 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat span {
    font-size: 48px;
    font-weight: 800;
    color: #3b4cff;
    display: block;
    line-height: 1;
}

.stat p {
    margin-top: 10px;
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

/* контейнер */

.container {
    max-width: 1280px;
    margin: 120px auto 80px;
    padding: 0 60px;
    overflow: visible;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #4054FF;
     color: linear-gradient(149deg, rgba(64, 84, 255, 1) 0%, rgba(24, 38, 202, 1) 100%);
    margin-bottom: 55px;
}

/* преимущества */

.features {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 22px;
}

.feature {
    background: var(--bg-card);
    border-radius: 22px;
    padding: 35px 30px;
    box-shadow: 0 8px 25px var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.feature-main {
    grid-column: 1;
}

.feature h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-main);
}

.feature h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 12px 0 10px;
    color: var(--text-main);
}

.feature p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
    flex-grow: 1;
}


.icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 12px;
}

.feature .btn {
    margin-top: 22px;
    align-self: flex-start;
}

/* специальности */

.specialties {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* карточки */


.card {
    position: relative;
    background: var(--bg-card);
    border-radius: 26px;
    padding: 34px 30px;
    box-shadow: 0 10px 30px var(--shadow-lg);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.card-content {
    position: relative;
    z-index: 10; /* контент выше картинки */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.card-content ul {
    list-style: none;
    margin-bottom: auto;
    flex-grow: 1;
}

.card-content li {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 12px;
    line-height: 1.5;
    position: relative;
    padding-left: 18px;
}

.card-content li:before {
    content: "•";
    color: #3b4cff;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -3px;
}

/* кнопка внутри карточки */
.btn-small {
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 26px;
    align-self: flex-start;
    margin-top: 18px;
    position: relative;
    z-index: 10; /* кнопка выше картинки */
}

/* картинка позади всего */
.card-image {
    position: absolute;
    bottom: 80px;        /* свисание ниже карточки — одинаковое у всех, ок */
    right: 80px;
    width: 95%;
    max-width: 230px;
    height: 200px;        /* ← ДОБАВЛЕНО: одинаковая высота зоны = один уровень */
    z-index: 1;
    pointer-events: none;
}

.card-image img {
    width: 130%;          /* ← было 150%, убрал переразмер */
    height: 130%;         /* ← заполняет зону */
    object-fit: contain;
    object-position: bottom right;
    display: block;
}

/* разные размеры для каждой карточки */

.card--software .card-image {
    width: 70%;
    height: 65%;
}

.card--bank .card-image {
    width: 75%;
    height: 90%;
}

.card--food .card-image {
    width: 70%;
    height: 55%;
}

.card--accounting .card-image {
    width: 75%;
    height: 58%;
}

/* адаптив */

@media (max-width: 1200px) {
    .hero-container {
        padding: 60px 40px 0;
    }

    .stats {
        padding: 0 40px;
    }

    .container {
        padding: 0 40px;
    }
}

@media (max-width: 1024px) {
    .features {
        grid-template-columns: 1fr 1fr;
    }

    .feature-main {
        grid-column: 1 / -1;
    }

    .specialties {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav ul {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 15px 30px;
        flex-direction: row;
        justify-content: space-between;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 30px 0;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        max-width: 500px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px;
    }

    .container {
        padding: 0 30px;
        margin: 100px auto 60px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        height: 40px;
    }

    .hero {
        min-height: auto;
        padding-bottom: 200px;
    }

    .hero-container {
        padding: 30px 20px 0;
        gap: 20px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-image {
        display: none;
    }

    .stats {
        position: static;
        margin: 20px 20px 0;
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
        gap: 12px;
    }

    .stats-wrapper {
        position: static;
        padding: 0 20px 40px;
    }

    .stat {
        padding: 20px 15px;
    }

    .stat span {
        font-size: 32px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .specialties {
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .container {
        padding: 0 20px;
        margin: 60px auto 40px;
    }

    .btn {
        padding: 13px 28px;
        font-size: 14px;
    }
}


/* отзывы */

.reviews-section {
    max-width: 1280px;
    margin: 0 auto 80px;
    padding: 0 60px;
}

.reviews-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reviews-track-outer {
    overflow: hidden;
    flex: 1;
}

.reviews-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
    background: var(--bg-card);
    border-radius: 22px;
    padding: 36px 32px;
    box-shadow: 0 8px 28px var(--shadow-md);
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.review-stars {
    color: #f5a623;
    font-size: 20px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4054FF, #1826CA);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.review-specialty {
    font-size: 13px;
    color: var(--text-faint);
    margin-top: 2px;
}

.reviews-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4054FF;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.reviews-arrow:hover {
    background: #4054FF;
    border-color: #4054FF;
    color: #fff;
    transform: scale(1.1);
}

.reviews-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.reviews-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.reviews-dot.active {
    background: #4054FF;
    transform: scale(1.3);
}

@media (max-width: 1024px) {
    .review-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 600px) {
    .reviews-section {
        padding: 0 20px;
    }

    .review-card {
        flex: 0 0 100%;
    }

    .reviews-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

     /* часто задаваемые вопросы */

        .faq-section {
            max-width: 900px;
            margin: 80px auto;
            padding: 0 40px;
        }

        .faq-title {
            text-align: center;
            font-size: 40px;
            font-weight: 700;
            color: #4054FF;
            color: linear-gradient(149deg, rgba(64, 84, 255, 1) 0%, rgba(24, 38, 202, 1) 100%);
            margin-bottom: 50px;
        }

        .faq-container {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .faq-item {
            background: #4054FF;
            background: linear-gradient(149deg, rgba(64, 84, 255, 1) 0%, rgba(24, 38, 202, 1) 100%);
            border-radius: 50px;
            padding: 22px 35px;
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
        }

        .faq-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(59, 76, 255, 0.3);
        }

        .faq-question {
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            user-select: none;
            gap: 16px;
        }

        .faq-icon {
            width: 28px;
            height: 28px;
            min-width: 28px;
            background: #ffffff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }

        .faq-icon i {
            color: #4054FF;
            color: linear-gradient(149deg, rgba(64, 84, 255, 1) 0%, rgba(24, 38, 202, 1) 100%);
            font-size: 14px;
        }

        .faq-answer {
            color: rgba(255, 255, 255, 0.92);
            font-size: 14px;
            line-height: 1.75;
            margin-top: 0;
            padding-right: 44px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.38s ease, margin-top 0.3s ease;
        }

        .faq-item.active .faq-answer {
            max-height: 600px;
            margin-top: 14px;
        }

        .faq-item.active .faq-icon {
            transform: rotate(180deg);
        }

        /* контакты */

        .contact-section {
            background: var(--contact-bg);
            padding: 80px 0;
            transition: background 0.3s ease;
        }

        .contact-container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 40px;
        }

        .contact-title {
            text-align: center;
            font-size: 40px;
            font-weight: 700;
            color: #3b4cff;
            margin-bottom: 60px;
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .contact-map {
            background: #d3d3d3;
            border-radius: 30px;
            height: 400px;
            position: relative;
            overflow: hidden;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .info-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 20px;
        }

        .info-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 18px;
        }

        .info-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .info-icon i {
            color: #3b4cff;
            font-size: 18px;
        }

        .info-details {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .info-label {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-main);
            margin-bottom: 4px;
        }

        .info-text {
            font-size: 14px;
            color: var(--text-soft);
            line-height: 1.5;
        }

        .social-links {
            display: flex;
            gap: 12px;
            margin-top: 8px;
        }

        .social-link {
            width: 40px;
            height: 40px;
            background: var(--bg-subtle);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background: #3b4cff;
            transform: translateY(-3px);
        }

        .social-link i {
            color: #3b4cff;
            font-size: 18px;
            transition: color 0.3s ease;
        }

        .social-link:hover i {
            color: #ffffff;
        }

        /* подвал */

        .footer {
            background: var(--footer-bg);
            padding: 50px 0 30px;
            transition: background 0.3s ease;
        }

        .footer-container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 40px;
            display: grid;
            grid-template-columns: 1.2fr 1fr 1fr;
            gap: 50px;
        }

        .footer-section h3 {
            font-size: 18px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 20px;
        }

        .footer-section p {
            font-size: 14px;
            color: var(--footer-text);
            line-height: 1.7;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: var(--footer-text);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: #3b4cff;
        }

        .footer-contact {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .footer-contact p {
            margin-bottom: 8px;
        }

        .footer-social {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .footer-social a {
            width: 36px;
            height: 36px;
            background: var(--footer-social-bg);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .footer-social a:hover {
            background: #3b4cff;
        }

        .footer-social i {
            color: var(--footer-text);
            font-size: 16px;
        }

        .footer-social a:hover i {
            color: #ffffff;
        }

        /* адаптив */

        @media (max-width: 900px) {
            .contact-content {
                grid-template-columns: 1fr;
            }

            .footer-container {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .faq-section {
                padding: 0 30px;
            }
        }

        @media (max-width: 600px) {
            .faq-title,
            .contact-title {
                font-size: 30px;
            }

            .faq-item {
                padding: 18px 25px;
            }

            .faq-question {
                font-size: 15px;
            }

            .faq-answer {
                font-size: 13px;
                padding-right: 30px;
            }

            .contact-map {
                height: 300px;
            }
        }

/* ── кнопки управления (язык + тема) ── */

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lang-switcher {
    display: flex;
    background: var(--bg-subtle);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
    transition: background 0.3s ease;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    font-family: "Montserrat", sans-serif;
}

.lang-btn:hover {
    color: #4169E1;
}

.lang-btn.active {
    background: #4169E1;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.35);
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: #4169E1;
    color: #ffffff;
    transform: rotate(20deg);
}

@media (max-width: 900px) {
    .header-controls {
        gap: 8px;
    }
    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    .theme-toggle {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .header-controls {
        gap: 6px;
    }
    .lang-btn {
        padding: 3px 7px;
    }
}
