:root {
    --main-color: rgb(205, 192, 176);
    --main-lite: rgb(249, 246, 241);
    --lite: rgb(237, 227, 217);
    --dark: rgb(53, 66, 46);
    --middle: rgb(114, 122, 107);
}


h1{
    margin-top: 100px;
}
h1,
h2 {

    text-align: center;
    color: var(--dark);
    padding: 0 10%;

}

p {
    font-size: 1.5em;
    text-align: justify;
    color: var(--dark);
    margin: 0;
    padding: 0 10%;
    line-height: 1;
    margin: 1em;

}

ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    background-color: var(--middle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

li {
    list-style-type: none;
    flex: 1;
    text-align: center;
}

li a {
    display: block;
    width: 100%;
    padding: 10px 0;
    text-decoration: none;
    color: var(--dark);
    text-align: center;
    transition: background-color 0.3s;

}

li a:hover {
    background-color: var(--lite);
}

.active {
    background-color: var(--lite);
    color: var(--dark);
}

div {
    display: flex;
    justify-content: center;
    text-align: center;
}

.img-div {
    width: 100%;
    padding: 0 10%;
    box-sizing: border-box;
}

.img-div img {
    width: 100%;
    height: auto;
}

a {
    color: var(--dark)
}

/* Стили для body */
body {
    align-items: center;
    margin: 0;
    min-height: 100vh;

    background-image:
    url('../images/background.jpeg'),
      linear-gradient(to bottom, white 20%, rgb(249, 246, 241) 90%, rgb(114, 122, 107) 100%);
    background-repeat: repeat-x, repeat-x;
    background-position: top, top;
    background-size: auto, auto;

    position: relative;
    justify-content: center;
    margin-bottom: 5%;
}


/* Стили для изображений по бокам */
.left-image,
.right-image {
    position: fixed;
    top: 0;
    width: 10%;
    height: 100vh;
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
    animation: floatUpDown 4s ease-in-out infinite;
    z-index: 2;

}

.left-image {
    left: 0;
}

.right-image {
    right: 0;
}

.left-gradient,
.right-gradient {
    position: fixed;
    top: 0;
    width: 10%;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 80%, var(--main-color) );
    z-index: 2;
}

.left-gradient {
    left: 0;
}

.right-gradient {
    right: 0;
}


.countdown-header {
    text-align: center;
    margin-bottom: 10px;
}

.countdown-header h2 {
    font-size: 24px;
    font-weight: bold;
}

.countdown {
    display: flex;
    justify-content: center;
    padding: 0 10%;
    /* Отступы слева и справа на 10% */
    box-sizing: border-box;
    /* Учитывать padding в расчетах ширины */
}

.countdown-item {
    margin: 0 20px;
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 2em;
}
@media (max-width: 480px) {
    .countdown {
        padding: 0 10%;
        gap: 5px; /* меньше расстояние между элементами */
    }

    .countdown-item {
        margin: 0; /* убираем лишние отступы */
        text-align: center; /* корректное выравнивание по центру */
    }

    .countdown-item span {
        font-size: 1.2em; /* уменьшаем цифры */
    }

    .countdown-item .label {
        margin-top: 8px;  /* чуть больше отступа на маленьких экранах */
        font-size: 0.7em; /* уменьшаем подпись */
    }
}

.label {
    font-size: 0.8em;
    color: var(--dark);
}
#days, #hours, #minutes, #seconds {
  color: var(--middle); /* фиолетовый */
  font-weight: 600;
}


button.confirm-button {
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-lite) 100%);
  border: none;
  color: var(--dark);
  font-family: inherit;
  padding: 12px 28px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 4px 15px var(--middle);
}

button.confirm-button:hover {
  background: linear-gradient(135deg, var(--main-lite) 0%, var(--main-color) 100%);
}

/* Плашка "Подтверждено" */
div.confirmation-label {
  display: inline-block;
  background-color: var(--main-color); /* зелёный */
  color: white;
  padding: 12px 28px;
  font-size: 1.1rem;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--lite);
  user-select: none;
}

.wrapper {
  padding: 0 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-text-box {
  display: flex;
  justify-content: stretch;
  align-items: center;
  width: 100%;
  max-width: 1200px; /* Максимальная ширина, чтобы на больших экранах не растягивалось */
  gap: 1%; /* Пробел между изображением и текстом */
}

.image-text-box img {
  width: 100%; /* Делаем изображение адаптивным */
  height: auto;
  border-radius: 8px;
}
.carousel {
  position: relative;
  width: 80vw;
  margin: 0 10vw;
  overflow: hidden;
  aspect-ratio: 16 / 9;

  /* Стили для границ */
  border: 1px solid var(--middle);        /* мягкий персиковый цвет рамки */
  border-radius: 15px;               /* скруглённые углы */
  box-shadow: 0 8px 20px var(--middle); /* лёгкая тень для глубины */
  background-color: var(--main-lite);         /* нежный бежевый фон */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-image {
  width: 100%;
  height: auto;
  display: none;
  user-select: none;
  object-fit: contain;
}

.carousel-image.active {
  display: block;
}

button.prev, button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--main-lite); /* полупрозрачный цвет рамки */
  border: none;
  color: var(--dark);                      /* тёмно-коричневый цвет стрелок */
  font-size: 28px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 10;
}

button.prev:hover, button.next:hover {
  background: var(--lite); /* при наведении ярче */
  color: var(--dark);
}

button.prev {
  left: 15px;
}

button.next {
  right: 15px;
}

.center-container {
    margin-top: 30px; /* регулируй размер по желанию */
    display: flex;
    justify-content: center;
}

.image-wrapper {
  z-index: 1;
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.main-image {
  width: 100%;
  height: auto;
  display: block;
}

.image-button {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 25%;
  height: 45px;           /* фиксированная высота */
  
  font-size: 1rem;
  
  background: linear-gradient(135deg, var(--main-color) 0%, var(--main-lite) 100%);
  border: none;
  color: var(--dark);
  font-family: inherit;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 4px 15px var(--middle);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px;        /* отступы слева и справа */
}
