/* Сайт — шрифты self-hosted (без запросов к Google) */
/* Oswald: marketing pages use 400–700 */
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('../fonts/oswald-cyrillic-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('../fonts/oswald-cyrillic-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url('../fonts/oswald-cyrillic-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('../fonts/oswald-cyrillic-700-normal.woff2') format('woff2');
}
/* Roboto: 400, 500, 700 */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('../fonts/roboto-cyrillic-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('../fonts/roboto-cyrillic-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('../fonts/roboto-cyrillic-700-normal.woff2') format('woff2');
}

:root {
    --cream-bg: #FDFBF8;
    --warm-brown: #bdac93;
    --forest-green: #5a694e;
    --mint-green: #e6ffd1;
    --text-dark: #1a202c;
    /*--text-gray: #718096;*/
}

body {
    font-family: 'Oswald', sans-serif;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    /*color: var(--text-dark);*/
}
p, a {
    font-family: 'Oswald', sans-serif;
}
.text-oswald{
    font-family: 'Oswald', sans-serif;
}
.text-roboto{
    font-family: 'Roboto', sans-serif;
}
.text-roboto * {
    font-family: 'Roboto', sans-serif;
}

/* Оформление юридического текста (политика, оферта и т.п.) */
.prose.text-roboto h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}
.prose.text-roboto h2 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}
.prose.text-roboto h2:first-of-type {
    margin-top: 1.5rem;
}
.prose.text-roboto h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.prose.text-roboto p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1rem;
}
.prose.text-roboto ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.prose.text-roboto li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.prose.text-roboto li:last-child {
    margin-bottom: 0;
}
.prose.text-roboto a {
    color: var(--forest-green);
    text-decoration: underline;
}
.prose.text-roboto a:hover {
    color: var(--warm-brown);
}


.scene {
    perspective: 1000px;
    perspective-origin: 50% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: pan-y;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    touch-action: pan-y;
    cursor: grab;
}

.carousel-container.swiping {
    cursor: grabbing;
}

.carousel-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 220px;
    height: 340px;
    margin-left: -110px;
    margin-top: -180px;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    transition: none;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
    -webkit-user-drag: none;
    user-drag: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.6rem 0.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /*border-top: 1px solid rgba(255, 255, 255, 0.3);*/
}

.item-info .role {
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.2;
    /* will-change убран — в Yandex Browser вызывает глюки рендеринга при 3D-карусели */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: always;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    color: var(--text-dark);
}

/* Улучшение четкости текста для всех элементов карусели */
.carousel-item * {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: always;
}

/* Предотвращение дрожания при анимации */
@media (prefers-reduced-motion: no-preference) {
    .carousel-item {
        animation: none;
    }
}

@media (max-width: 640px) {
    .carousel-item {
        width: 155px;
        height: 240px;
        margin-left: -78px;
        margin-top: -120px;
    }

    .carousel-item img {
        height: 100%;
    }

    .item-info .role {
        font-size: 0.9rem;
    }
}

/* Testimonials Slider Styles */
.testimonials-slider {
    position: relative;
}

.testimonials-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Убираем transition во время свайпа для более отзывчивого управления */
.testimonials-track.swiping {
    transition: none;
}

.testimonial-slide {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.testimonial-slide:hover {
    transform: translateY(-4px);
}


/* Responsive Design */
@media (max-width: 768px) {

}

@media (max-width: 640px) {

}

/* Touch/Swipe Support */
.testimonials-track {
    user-select: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.testimonial-slide {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Smooth scrolling for better performance */
.testimonials-container {
    -webkit-overflow-scrolling: touch;
}

/* Loading state */
.testimonials-slider.loading .testimonials-track {
    opacity: 0.7;
}

.testimonials-slider.loading .testimonial-nav {
    pointer-events: none;
}



/* Feature cards */
.feature-card {
    background: #ffffff;
    border: 2px solid var(--forest-green);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(90, 105, 78, 0.15);
}

/* Stats cards */
.stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Benefits cards */
.benefit-card {
    background: #ffffff;
    border: 2px solid var(--forest-green);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: left;
}
