html {
  scroll-behavior: smooth;
}

.subtitle-css {
  font-weight: 600;
  font-size: 1.25rem;
  width: fit-content;
  padding: 0.3em 0.6em;
  background-color: transparent; /* фон стал прозрачным */
  border-radius: 20px; /* увеличено закругление */
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2),
              inset -2px -2px 6px rgba(255,255,255,0.4);
}


/* Заголовки и форма */
.card h4 {
  font-weight: bold;
  font-size: 1.25rem;
}
.small-option {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* Слайдер */
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%);
  z-index: 1;
}
.slide-content {
  z-index: 2; /* чтобы контент был поверх градиента */
}

.slide {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 400px;
  border-radius: 32px;
  margin-bottom: 20px;
  overflow: hidden;
  color: white;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: none;
}
.slide.active {
  display: block;
  opacity: 1;
}
.slide-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px;
}
.subtitle, .title, .description {
  color: white;
  max-width: 400px;
  font-size: 1rem;
}

.btn-light {
  background-color: rgba(255, 255, 255, 0.15); /* слегка замазанный фон */
  backdrop-filter: blur(4px); /* размывает задний фон под кнопкой */
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0.75rem;
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.25),
              inset -2px -2px 6px rgba(255,255,255,0.25),
              0 0 8px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.2); /* чуть более выраженный фон при наведении */
  box-shadow: inset 1px 1px 4px rgba(0,0,0,0.2),
              inset -1px -1px 4px rgba(255,255,255,0.2),
              0 0 10px rgba(255,255,255,0.4);
}



.segments-bar {
  position: absolute;
  bottom: 10px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 4px;
}
.segment {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  position: relative;
}
.segment::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background-color: rgba(255, 255, 255, 0.8);
  transition: width 2.5s linear;
}
.segment.active::before {
  width: 100%;
  border-radius: 12px;
}

/* Хедер и футер */
.site-header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ccc;
  padding: 10px;
}

.site-footer {
  background-color: #141414;
  color: white;
  border-bottom: 1px solid #ccc;
  padding: 10px;
}


/* Ограничение ширины на мобильных устройствах */
@media (max-width: 1024px) {
  body {
    min-width: 1024px;
    overflow-x: auto;
  }

  .container {
    min-width: 1024px;
  }
}


.footer_icon {
  width: 50px;
  height: 50px;
  padding: 15px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.2),
              inset -2px -2px 6px rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 8px;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Расположение по шаблону */
.img1 {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}
.img2 {
  grid-column: 3 / span 3;
  grid-row: 1;
}
.img3 {
  grid-column: 3;
  grid-row: 2;
}
.img4 {
  grid-column: 4;
  grid-row: 2;
}
.img5 {
  grid-column: 5;
  grid-row: 2;
}



