body {
    margin: 0;
    font-family: 'Playfair Display SC', serif;
    background: white;
}

.container {
    max-width: 430px;
    margin: auto;
}

.hero {
    height: 630px;
    background-size: cover;
    color: white;
    text-align: center;
    padding-top: 40px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
}

.hero p {
    font-size: 13px;
    letter-spacing: 3px;
    opacity: 0.86;
}

.btn {
    margin-top: 370px;
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.51);
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-family: 'Playfair Display', serif;
}

.slogan {
    padding: 20px;
    text-align: center;
    font-family: 'Manrope', sans-serif;
}

.gallery h2,
.services h2,
.contacts h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 400;
}
.courses h2 {
    background-color: black;
    color: white;
    padding: 20px 0;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Playfair Display SC', serif;
    letter-spacing: 2px;
    text-align: center;
}

    gap: 16px;
    padding: 16px;
    justify-content: center;
}



.services ul {
    list-style: none;
    padding: 0 14px;
}

.services li {
    padding: 14px 0;
    font-size: 16px;
}

/* ⬇️ Обновлённый блок обучения */
.course {
    background: black;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.course img {
    height: 180px;
    border-radius: 8px;
}

.course .info {
    max-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Уменьшенный отступ между элементами */
}

.course .info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-family: 'Manrope', sans-serif;
    color: #adadad;
}

.course .info h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    color: white;
}

.btn.small {
    font-size: 14px;
    padding: 6px 12px;
    background-color: #363636;
    border-radius: 8px;
    width: fit-content;
    margin-top: 8px;
}

.contacts {
    height: 550px;
    background-size: cover;
    color: white;
    text-align: center;
    padding-top: 60px;
    position: relative;
}

.contacts .btn {
    margin-top: 330px;
}

.contacts .socials {
    margin-top: 20px;
}

.contacts .socials a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 6px 12px;
    border-radius: 3px;
}

footer {
    text-align: center;
    background: #040406;
    color: white;
    padding: 16px;
    font-size: 13px;
}


.fade-up-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up-visible {
  opacity: 1;
  transform: translateY(0);
}


.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}


.invisible {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}


.dark-background {
    background-color: black;
    color: white;
}


/* Подводка для услуг */
.services ul li {
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-bottom: 8px;
}


/* Горизонтальная прокрутка для работ */
.works.scrollable {
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
}

.works.scrollable img {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 240px;
    height: 240px;
    object-fit: cover;
}


.works-carousel {
    margin-top: 90px;
    height: 310px;
    overflow: hidden;
    padding: 0 16px;
    position: relative;
touch-action: pan-y; /* позволяет горизонтальный свайп */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}


.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    padding-top: 30px;
    scroll-snap-align: center;
  touch-action: pan-x;
}

.carousel-track img {
    width: 240px;
    height: 240px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}


.works-carousel {
    margin-top: 30px;
    margin-bottom: 60px;
}

.gallery {
    margin-bottom: 60px;
}




.works {
    display: flex;
    gap: 20px;
    overflow: hidden;
    justify-content: center;
    transform: translateX(-60px); /* Смещение влево */
}

.works img {
    width: 210px;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease;
}
.carousel-track img {
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0.4;
  transform: scale(0.85);
}

.carousel-track img.active {
  transform: scale(1.2);
  opacity: 1 !important;
  z-index: 2;
}

.carousel-track img.side {
  transform: scale(0.9);
  opacity: 0.5;
  z-index: 1;
}

