.carousel {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
}

.slides-container {
    overflow: hidden;
    border-radius: 0;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

/* карточка слайда */
.slide {
    flex: 0 0 100%;
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.slide-image {
    width: 100%;
    height: 320px;
    background-color: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

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

/* текстовая часть */
.slide-content {
    padding: 30px 20px;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide h3 {
    font-family: algerian;
    font-size: 3rem;
    font-weight: normal;
    color: black;
    margin: 0 0 20px 0;
    padding: 0;
}
.slide p {
    font-family: algerian;
    font-size: 2rem;
    font-weight: normal;
    color: black;
    margin: 0 0 20px 0;
    padding: 0;
}

/* Стили для кнопки */
.slide-button {
    font-family: algerian;
    font-size: 1.5rem;
    color: black;
    margin: 0;
    padding: 12px 30px;
    background: white;
    border: 2px solid black;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.slide-button:hover {
    background: black;
    color: white;
}

/* стрелки навигации */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 2px solid black;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 15;
    font-size: 2rem;
    color: black;
    line-height: 1;
    padding: 0;
    font-family: algerian;
}

.arrow:hover {
    background: black;
    color: white;
}

.arrow-left {
    left: -10px;
}

.arrow-right {
    right: -10px;
}

/* точки-индикаторы */
.dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 0;
    border: 2px solid black;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
}

.dot.active {
    background: black;
    width: 30px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .carousel { padding: 10px; }
    .slide-image { height: 250px; }
    .slide-content { padding: 20px 15px; }
    .slide h2 { font-size: 2.2rem; }
    .slide-button { font-size: 1.2rem; padding: 10px 20px; }
    .arrow { width: 40px; height: 40px; font-size: 1.6rem; }
    .arrow-left { left: -5px; }
    .arrow-right { right: -5px; }
}

@media (max-width: 480px) {
    .slide-image { height: 200px; }
    .slide h2 { font-size: 1.8rem; }
    .slide-button { font-size: 1rem; padding: 8px 15px; }
    .dots { gap: 10px; }
    .dot.active { width: 25px; }
}