/* Базовый сброс и шрифты */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    color: #333;
    background-color: #fcfcfc;
    line-height: 1.6;
}
* {
    box-sizing: border-box;
}

/* Цветовые переменные */
:root {
    --color-primary: #1e3a8a;
    --color-accent: #22429b;
    /* --color-accent: #d92c00; */
    --color-background: #fcfcfc;
    --color-foreground: #000;
    --color-muted: #f9fbff;
    --color-card: #ffffff;
    --color-border: #cccccc;
    --color-footer-bg: #1f1f1f;
    --color-background-dark: #f2f6ff;
    --color-text-inverted: #2c2e31;
    --color-text-inverted-muted: #383838;
    --herobg: #cecece;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
}

/* --- HEADER / NAVIGATION --- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 16px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-accent);
}
.nav-menu {
    display: none;
    gap: 32px;
}
.nav-link {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-foreground);
    cursor: pointer;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--color-accent);
}
.language-switcher {
    padding: 8px 16px;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-foreground);
    padding: 6px 10px;
}
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}


/* --- SECTION BASE STYLES --- */
.section {
    padding: 64px 0;
}
@media (max-width: 767px) {
    .section {
        padding: 40px 0;
    }
}
.muted-bg {
    background-color: var(--color-muted);
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
@media (max-width: 767px) {
    .section-header {
        margin-bottom: 32px;
    }
}
.section-header h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}
@media (max-width: 767px) {
    .section-header h2 {
        font-size: 24px;
    }
}
.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 768px;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .section-header p {
        font-size: 16px;
    }
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--herobg), var(--herobg));
    padding: 120px 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.2;
    background-image: url('img/home-img1.jpg');
    background-size: cover;
    background-position: center;
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}
.hero-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 24px;
    /* color: var(--color-foreground); */
    color: #171717;
}
@media (max-width: 767px) {
    .hero-section {
        min-height: 80vh;
    }
    .hero-title {
        font-size: 36px;
    }
}
.hero-subtitle {
    font-size: 20px;
    color: #121212;
    margin-bottom: 32px;
}
@media (max-width: 767px) {
    .hero-subtitle {
        font-size: 16px;
    }
}
.accent-text {
    color: var(--color-accent);
}
@media (min-width: 768px) {
    .hero-title {
        font-size: 65px;
    }
}


/* --- Social Proof / Counters Section --- */
.social-proof-section {
    background-color: var(--color-background-dark, #000);
    padding: 40px 0; /* Уменьшаем padding на мобильных по умолчанию */
    color: var(--color-text-inverted, #fff); /* Белый текст */
    text-align: center;
}

.social-proof-grid {
    display: grid;
    /* ИСПРАВЛЕНО: Устанавливаем 4 столбца по умолчанию для мобильных */
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; /* Уменьшаем отступ для 4-х столбцов на мобильных */
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) { /* Планшеты: 4 столбца */
    .social-proof-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px; 
    }
    .social-proof-section {
        padding: 60px 0;
    }
}

/* На десктопах (960px) и выше остается 4 столбца, без изменений */
@media (min-width: 960px) { 
    .social-proof-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.social-proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px; /* Уменьшаем отступ */
    padding: 0; 
}

.social-proof-number {
    font-size: 56px; /* Размер чисел для десктопов */
    font-weight: 700;
    line-height: 1.1; 
    color: var(--color-text-inverted, #fff);
    margin-bottom: 4px;
}

.social-proof-text {
    font-size: 16px; /* Размер текста для десктопов */
    color: var(--color-text-inverted-muted, #ccc);
    margin: 0;
    max-width: none; 
    padding: 0 2px; /* Минимальный горизонтальный padding */
    line-height: 1.3;
}

/* МЕДИАЗАПРОС ДЛЯ МОБИЛЬНЫХ (Масштабирование текста) */
@media (max-width: 639px) {
    .social-proof-number {
        font-size: 24px; /* Уменьшаем размер числа, чтобы влезло */
        margin-bottom: 0;
    }
    .social-proof-text {
        font-size: 10px; /* Сильно уменьшаем размер текста для 4-х колонок */
        line-height: 1.2;
    }
}

/* --- BUTTONS --- */
.button {
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    border: none;
    text-decoration: none;
}
.button-accent {
    background-color: var(--color-accent);
    color: #fff;
}
.button-accent:hover {
    opacity: 0.9;
}
.button-large {
    padding: 16px 32px;
}
.button-mt {
    margin-top: 32px;
}
.button-full-width {
    width: 100%;
}
@media (max-width: 767px) {
    .button-large {
        padding: 14px 28px;
    }
    .button-full-width {
        width: 100%;
    }
}


/* --- CARDS & GRID LAYOUTS --- */
.card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}
.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
@media (max-width: 767px) {
    .card {
        padding: 20px;
    }
}

/* ADVANTAGES */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
@media (max-width: 767px) {
    .advantages-grid {
        grid-template-columns: 1fr; 
        gap: 16px;
    }
}
.advantage-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.accent-bg-light {
    background-color: #1900d91a;
}
.icon {
    width: 24px;
    height: 24px;
}
.card-title {
    font-weight: bold;
    color: var(--color-foreground);
    margin-bottom: 12px;
    font-size: 16px;
}
.points-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    font-size: 13px;
    color: #666;
}
.points-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.points-list li span:first-child {
    color: var(--color-accent);
    font-weight: bold;
}

/* TECHNOLOGY */
.technology-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 768px) {
    .technology-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}
@media (max-width: 767px) {
    .technology-grid {
        gap: 32px;
    }
}
.technology-content {
    display: flex;
    flex-direction: column;
    gap: 24px; 
}
.technology-card {
    padding: 24px;
    margin-bottom: 0; 
}
.feature-list {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.technology-card > div {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.iconprof{
    padding-top: 8px;
}

.feature-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
}
.feature-title {
    font-weight: bold;
    color: var(--color-foreground);
    margin-top: 0; 
    margin-bottom: 4px;
    font-size: 18px; 
    line-height: 1.2;
}
.feature-description {
    font-size: 14px;
    color: #666;
    margin-top: 0; 
}
.technology-image-wrapper {
    position: relative;
    height: 384px;
    border-radius: 10px;
    overflow: hidden;
    order: -1; 
}
@media (max-width: 767px) {
    .technology-image-wrapper {
        height: 250px;
    }
}
.technology-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PRODUCT */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.product-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.product-card .icon {
    width: 24px;
    height: 24px;
    margin-top: 4px;
    flex-shrink: 0;
}
.product-card > div {
    display: flex;
    flex-direction: column;
}
.product-card .feature-title {
    font-weight: bold;
    color: var(--color-foreground);
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 18px; 
    line-height: 1.2;
}
.product-card .feature-description {
    font-size: 14px;
    color: #666;
    margin-top: 0;
}

@media (max-width: 767px) {
    .product-card .feature-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    .product-card .feature-description {
        font-size: 14px;
    }
}


/* PORTFOLIO */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: 1fr; 
    }
}

.image-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.image-wrapper {
    border-radius: 8px;
    overflow: hidden;
}
.portfolio-image {
    width: 100%;
    height: 192px;
    object-fit: cover;
}
@media (max-width: 767px) {
    .portfolio-image {
        height: 150px;
    }
}
.image-caption {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 8px 0;
    background-color: var(--color-background);
    color: var(--color-foreground);
}

/* PROCESS */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    position: relative;
    text-align: center;
    padding-bottom: 24px; 
    margin-bottom: 24px;
}
@media (max-width: 767px) {
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 2px;
        background-color: var(--color-muted);
    }
}
.step-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin: 0 auto 16px;
}
.step-title {
    font-weight: bold;
    margin-bottom: 8px;
}
.step-description {
    font-size: 14px;
    color: #666;
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.testimonial-card {
    padding: 24px;
}
.rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.star-icon {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
}
.testimonial-text {
    color: var(--color-foreground);
    margin-bottom: 16px;
    font-style: italic;
}
.testimonial-name {
    font-weight: 600;
}
.testimonial-role {
    font-size: 14px;
    color: #666;
}

/* BOOKING FORM */
.form-container-wrapper {
    max-width: 768px;
    margin: 0 auto;
}
.form-card {
    padding: 48px;
}
@media (max-width: 767px) {
    .form-card {
        padding: 24px;
    }
}
.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
@media (max-width: 767px) {
    .form-grid {
        gap: 16px;
    }
}
.form-group {
    display: block;
    width: 100%;
}
.form-group-half {
    width: 100%;
}
@media (min-width: 768px) {
    .form-group-half {
        width: calc(50% - 12px);
    }
}
.form-group-full {
    width: 100%;
}
.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 8px;
    display: block;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-background);
    color: var(--color-foreground);
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}
.form-group textarea {
    resize: vertical;
}
.privacy-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    width: 100%;
    margin-top: 16px;
}
.thank-you-message {
    text-align: center;
    padding: 32px 0;
}
.thank-you-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--color-accent);
}
.thank-you-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}
.thank-you-description {
    color: #666;
}


/* --- FOOTER --- */
.footer {
    background-color: var(--color-footer-bg);
    color: #e6e6e6;
    padding: 48px 0;
}
@media (max-width: 767px) {
    .footer {
        padding: 32px 0;
    }
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 24px;
    }
}
.footer-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 16px;
}
.footer-heading {
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-description {
    font-size: 14px;
    opacity: 0.9;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    space-y: 8px;
}
.footer-list li {
    margin-bottom: 8px;
}
.footer-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}
.footer-link:hover {
    opacity: 1;
}
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    opacity: 0.75;
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}
.footer-links-bottom {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}
@media (min-width: 768px) {
    .footer-links-bottom {
        margin-top: 0;
    }
}







/* --- Стили для секции "Why Choose Us" (Advantages) --- */

.advantages-container {
    width: 100%;
    /* Используйте переменную, если она определена в вашем основном CSS */
    background-color: var(--color-background, #fcfcfc); 
}

/* Стили заголовка */
.section-header-wrapper {
    padding: 48px 0;
}
@media (min-width: 768px) {
    .section-header-wrapper {
        padding: 64px 0;
    }
}
.text-center-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}
.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--color-foreground, #333);
}
@media (min-width: 768px) {
    .section-title {
        font-size: 36px;
    }
}
.section-description {
    font-size: 18px;
    color: var(--color-muted-foreground, #666);
    max-width: 800px;
    margin: 0 auto;
}

/* Стили для отдельных элементов (чередование) */
.advantage-item-wrapper {
    padding: 48px 0;
    border-bottom: 1px solid var(--color-border, #ccc);
}
.advantage-item-wrapper:last-child {
    border-bottom: none;
}
.bg-default {
    background-color: var(--color-background, #fcfcfc);
}
.bg-alt {
    background-color: var(--color-muted, #ffffff);
}
@media (max-width: 767px) {
    .advantage-item-wrapper {
        padding: 32px 0;
    }
}

/* Адаптивный макет блока */
.advantage-item {
    display: flex;
    flex-direction: column; /* По умолчанию: столбец на мобильных */
    gap: 32px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .advantage-item {
        flex-direction: row; /* На десктопе: строка */
        gap: 48px;
    }
    .layout-reverse {
        flex-direction: row-reverse; /* Чередование расположения */
    }
}

/* Блок Изображения */
.image-block {
    width: 100%;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .image-block {
        width: 50%;
    }
}
.image-wrapper {
    position: relative;
    height: 256px; /* 64 (md:h-80) */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
    .image-wrapper {
        height: 320px;
    }
}
.advantage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Блок Контента */
.content-block {
    width: 100%;
}
@media (min-width: 768px) {
    .content-block {
        width: 50%;
    }
}

.content-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--color-accent-light, rgba(34, 66, 155, 0.1));
    flex-shrink: 0;
}
.icon-placeholder svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent, #22429b);
}

.content-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-foreground, #333);
}
@media (min-width: 768px) {
    .content-title {
        font-size: 28px;
    }
}

.content-description {
    font-size: 16px;
    color: var(--color-muted-foreground, #666);
    line-height: 1.6;
}
@media (min-width: 768px) {
    .content-description {
        font-size: 18px;
    }
}

/* --- FAQ Section --- */
.faq-section {
    background-color: var(--color-background, #fcfcfc);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    color: var(--color-foreground);
    position: relative;
}

.faq-question:hover {
    color: var(--color-accent);
}

/* Иконка (плюс/минус) для аккордеона */
.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 0;
}

.faq-answer p {
    padding: 0 0 18px 0; /* Отступ только снизу */
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* Адаптация для мобильных */
@media (max-width: 767px) {
    .faq-question {
        font-size: 16px;
        padding: 14px 0;
    }
    .faq-answer p {
        font-size: 14px;
    }
}