/* Переменные и сброс */
:root {
    --purple: #773476;
    --orange: #DF673F;
    --bg-light: #fcfcfd;
    --gray-bg: #f9fafb;
    --text-main: #000000;
    --text-muted: #4b5563;
    /*--border-color: #f0f0f2;*/
    --border-color: #d2d2d2;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
img {
    max-width: 100%;
}

/* Навигация */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f9fafb;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo img {
    width: 140px;
    height: auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-orange {
    background-color: var(--orange);
    color: #fff;
}

.btn-orange:hover {
    background: #374151;
}

.btn-black {
    background: #000;
    color: #fff;
}

.btn-black:hover {
    background: #374151;
}

/* Hero секция */
.hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2.5rem;
}

.italic-semibold {
    font-weight: 600;
    font-style: italic;
    color: var(--purple);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 36rem;
}

.hero-description p { margin-bottom: 1.5rem; }

.hero-visual img {
    width: 100%;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    transition: all 0.3s ease;
}

/* Макет секции */
.problem-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .problem-layout {
        grid-template-columns: 0.8fr 1.2fr; /* Картинка чуть уже текста */
    }
}

/* Стили контента */

h2.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem); /* Пропорционально меньше h1 */
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* Для мобильных устройств можно чуть уменьшить отступ */
@media (max-width: 768px) {
    h2.section-title {
        margin-bottom: 2rem;
    }
}

.problem-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.problem-text-block .text-large {
    margin-bottom: 1.5rem;
    font-size: 1.45rem;
    line-height: 1.4;
}

.problem-list-block {
    background: #fff;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.text-accent-note {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* Кастомные буллеты */
.custom-bullets {
    list-style: none;
    margin-bottom: 1.5rem;
}

.custom-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.custom-bullets li::before {
    content: "•";
    color: var(--orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.text-conclusion {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    color: var(--text-main);
}

/* Изображение */
.image-placeholder {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #e5e7eb; /* Цвет на случай, если картинка не загрузится */
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}





/* WHAT WE DO */


.section-services {
    padding: 4rem 0;
    background-color: #ffffff;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 850px;
    line-height: 1.5;
}

.section-subtitle span {
    margin-top: 1em;
    display: inline-block;
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    /*margin-bottom: 4rem;*/
}

.service-item {
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    aspect-ratio: 16/11;
    background: #f8f9fa;
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    /* Убираем рамку, если картинки уже на светлом фоне, 
       или оставляем легкую, если они на белом */
    border: 1px solid var(--border-color);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h3-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Блок "Чего не делаем" */
.dont-do-block {
    /*border-top: 1px solid var(--border-color);*/
    /*padding-top: 3rem;*/
    color: var(--text-muted);
}

.dont-do-block .text-muted span {
    display: inline-block;
    margin-top: 0.5em;
}

.negative-content {
    max-width: 1000px; /* Чтобы не растягивать на весь экран */
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem 4rem;
    margin-top: 2rem;
}

/* Стили буллетов (если не были добавлены ранее) */
.custom-bullets {
    list-style: none;
    padding: 0;
}

.custom-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.4;
}

.custom-bullets li::before {
    content: "•";
    color: var(--orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* HOW WE WORK */

.section-how-we-work {
    padding: 4rem 0;
    background-color: #ffffff;
}

.work-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .work-layout {
        grid-template-columns: 0.9fr 1.1fr; /* Картинка чуть меньше текстовой части */
    }
}

.work-features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-item .h3-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-item .text-muted {
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Тень для изображений, чтобы они выглядели "премиально" */
.shadow-premium {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    overflow: hidden;
}


/* Section BLACK */

.section-black {
    background-color: #000;
    color: #fff;
    padding: 8rem 0;
    overflow: hidden;
}

.partner-layout {
    display: grid;
    grid-template-columns: 1fr; /* По умолчанию в одну колонку (мобайл) */
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .partner-layout {
        grid-template-columns: 1fr 400px 1fr; /* Текст - Фото - Текст */
        gap: 4rem;
    }
}


/* ОТЗЫВЫ */

/* Секция отзывов — Общие стили */
.section-gray {
    background-color: #f9fafb;
    padding: 8rem 0;
    overflow: hidden;
}

.testimonial-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Обертка для карточки и стрелок */
.testimonial-card-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

/* Карточка отзыва */
.testimonial-card {
    background: #ffffff;
    padding: 4rem;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    flex-grow: 1;
    min-height: 480px; /* Предотвращает скачки контента */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Кавычка */
.quote-icon {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 6rem;
    color: var(--purple);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

/* Контент внутри карточки */
.testimonial-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}

.testimonial-text {
    font-size: 1.25rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 2.5rem;
    flex-grow: 1; /* Толкает блок автора вниз */
}

/* Блок автора */
.testimonial-author {
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
    display: flex; /* Выстраиваем в ряд */
    align-items: center;
    gap: 1.5rem; /* Отступ между лого и текстом */
}

.card-logo-wrapper {
    height: 100px; /* Высота логотипа */
    width: 100px;  /* Фиксированная ширина для стабильности */
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.card-logo-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 24px;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.25rem;
}

.author-role {
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
}

.author-firm {
    color: #9ca3af;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Кнопки-стрелки */
.slider-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #9ca3af;
    flex-shrink: 0;
}

.slider-arrow:hover {
    border-color: var(--purple);
    color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Навигация по логотипам */
.testimonial-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
}

.logo-item {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.logo-item:hover {
    opacity: 0.6;
}

.logo-item.active {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* Анимация смены слайда */
.fade-in {
    animation: fadeInContent 0.6s ease forwards;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ --- */

@media (max-width: 1024px) {
    .testimonial-card {
        padding: 3rem;
    }
    .testimonial-logos {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-gray {
        padding: 5rem 0;
    }

    .testimonial-card-wrapper {
        gap: 0;
    }

    /* Скрываем стрелки на мобильных (используем свайпы) */
    .slider-arrow {
        display: none;
    }

    .testimonial-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
        min-height: 520px; /* Высота под узкий экран */
    }

    .quote-icon {
        font-size: 4rem;
        top: 1rem;
        left: 1rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .testimonial-logos {
        margin-top: 2.5rem;
        gap: 1.5rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Логотипы сеткой 2х2 */
        justify-items: center;
    }

    .logo-item {
        height: 30px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        min-height: 600px; /* Для очень длинных текстов на узких экранах */
    }
    
    .author-name {
        font-size: 1.1rem;
    }
}



/* Стили текста */
.partner-bio .name {
    font-size: 2.25rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
}

.partner-bio .credentials {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.bio-text {
    color: #c9d0dc;
    font-size: 1em;
    line-height: 1.6;
    font-weight: 400;
}

.bio-text p {
    margin-bottom: 1.25rem;
}

.bio-text strong {
    color: #fff; /* Выделение компаний белым */
}

/* Стили изображения */
.partner-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 1023px) {
    .partner-visual {
        order: -1; /* На планшетах фото сверху, либо уберите это свойство для порядка Н-Ф-О */
    }
    /* Если хотите порядок: Наталья - Фото - Оксана на мобайле: */
    .bio-left { order: 1; }
    .partner-visual { order: 2; }
    .bio-right { order: 3; }
}

.partner-image-wrapper {
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.grayscale-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(1);
    transition: filter 0.8s ease;
}

.grayscale-img:hover {
    filter: grayscale(0);
}

.partnership-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    white-space: nowrap;
}

/* Выравнивание текста для десктопа */
@media (min-width: 1024px) {
    .bio-left { text-align: right; }
    .bio-left .partnership-label { justify-content: flex-end; }
}




/* Bento Сетка */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.bento-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.bento-card:hover {
    border-color: var(--purple);
}

.span-8 { grid-column: span 12; }
.span-4 { grid-column: span 12; }
.span-12 { grid-column: span 12; }

@media (min-width: 768px) {
    .span-8 { grid-column: span 8; }
    .span-4 { grid-column: span 4; }
    .span-12 { grid-column: span 12; }
}

/* Стили текста и утилиты */
.section-gray { background-color: var(--gray-bg); padding: 4rem 0; }
.section-black { background-color: #000; color: #fff; padding: 4rem 0; }
.accent-purple { color: var(--purple); }
.accent-orange { color: var(--orange); }
.bg-purple { background-color: var(--purple); }
.text-white { color: #fff; }
.italic { font-style: italic; }
.text-large { font-size: 1.5rem; line-height: 1.6; color: #374151; }
.text-muted { color: #6b7280; }
.highlight-orange { border-bottom: 2px solid var(--orange); font-style: italic; }

/* Партнеры */
.partner-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
}

@media (min-width: 1024px) {
    .partner-section { grid-template-columns: 1fr 1fr; }
    .partner-image-box { position: sticky; top: 8rem; }
}

.image-wrapper {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.grayscale-img {
    width: 100%;
    filter: grayscale(1);
    transition: 1s ease;
}

.grayscale-img:hover { filter: grayscale(0); }

.partnership-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.partnership-label .line { width: 3rem; height: 1px; background: var(--orange); }

.partnership-label span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgb(201, 208, 220);
}

.partner-card .name { font-size: 2.5rem; font-weight: 300; margin-bottom: 1.5rem; }
.partner-card .bio { color: #9ca3af; display: flex; flex-direction: column; gap: 1rem; }

/* Отзыв */
.testimonial-card {
    background: #fff;
    padding: 4rem;
    border-radius: 32px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.quote-icon {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 5rem;
    color: var(--purple);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.author-name { font-weight: 700; font-size: 1.125rem; }
.author-role { color: #6b7280; }
.author-firm { font-size: 0.75rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }

/* Футер */
.footer { padding: 4rem 0; text-align: center; }

.footer h2 { 
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.footer-email {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.footer-email:hover { color: var(--orange); border-bottom-color: var(--orange); }

.copyright {
    margin-top: 4rem;
    font-size: 10px;
    letter-spacing: 0.5em;
    color: #7a818c;
}

/* Анимация */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

