body.CavePage main {
  background: #eeeeee;
  padding-top: 35px;
  padding-bottom: 55px;
}

body.CavePage a {
  color: inherit;
}

section.CaveOverview {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 210px;
  gap: 22px;
  align-items: start;
}

section.CaveOverview figure {
  border: 3px solid #f1c30e;
  border-radius: 5px;
  background: white;
  padding: 5px;
}

section.CaveOverview figure + figure {
  margin-top: 22px;
}

section.CaveOverview img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

table.CaveDescription {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 3px solid #f1c30e;
  font: 17px sans-serif;
  line-height: 1.35;
}

table.CaveDescription caption {
  caption-side: top;
  padding: 0 0 18px;
  font: bold 35px "mft", sans-serif;
  color: #3a3a3a;
}

table.CaveDescription th,
table.CaveDescription td {
  border: 1px solid #d2d2d2;
  padding: 10px 12px;
  vertical-align: top;
}

table.CaveDescription thead th {
  background: #f1c30e;
  color: white;
  font-weight: bold;
}

table.CaveDescription tbody th {
  width: 28%;
  background: #f8f8f8;
  font-weight: bold;
}

section.CaveInfo {
  margin-top: 35px;
  background: white;
  border-left: 5px solid #f1c30e;
  padding: 22px 28px;
  font: 20px sans-serif;
  line-height: 1.45;
}

section.CaveInfo li + li {
  margin-top: 8px;
}

section.CaveInfo span {
  font-weight: bold;
}

section.CaveInfo a {
  color: #f1a900;
  font-weight: bold;
}

section.CaveSchedule {
  margin-top: 35px;
}

section.CaveSchedule h1 {
  margin: 18px 0 20px;
  text-align: center;
  font: bold 32px "mft", sans-serif;
}

p.CaveScheduleNote {
  color: #c41212;
  font: bold 20px sans-serif;
  text-align: center;
  line-height: 1.35;
}

div.CaveScheduleGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

div.CaveScheduleGrid article {
  background: white;
  border: 3px solid #f1c30e;
  border-radius: 5px;
  padding: 18px;
}

div.CaveScheduleGrid article:last-child {
  grid-column: 1 / -1;
}

div.CaveScheduleGrid h2 {
  margin-bottom: 12px;
  font: bold 22px sans-serif;
}

div.CaveScheduleGrid article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

div.CaveScheduleGrid span {
  display: inline-block;
  min-width: 64px;
  padding: 7px 10px;
  background: #eeeeee;
  border-radius: 5px;
  text-align: center;
  font: bold 16px sans-serif;
}

button.CaveButton {
  display: block;
  width: 230px;
  margin: 28px auto 0;
  padding: 12px 18px;
  border: none;
  border-radius: 5px;
  background: #f1c30e;
  color: white;
  font: bold 20px sans-serif;
  cursor: pointer;
  transition-duration: 0.2s;
}

button.CaveButton:hover {
  transform: scale(1.04);
}

div#caveForm {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(139, 139, 139, 0.9);
  display: none;
  min-height: 100%;
  overflow: auto;
  z-index: 2;
}

div#caveForm form {
  margin: auto;
  background: white;
  width: 660px;
  min-height: 100%;
  position: relative;
  box-sizing: border-box;
  padding: 40px 80px 0;
}

div#caveForm form * {
  box-sizing: border-box;
}

div#caveForm form > * {
  margin-bottom: 35px;
}

div#caveForm form > h1 {
  font: bold 25px sans-serif;
}

div#caveForm form button#closeButton {
  padding: 0;
  border: none;
  color: inherit;
  background-color: transparent;
  position: absolute;
  outline: none;
  top: 25px;
  right: 25px;
  height: 25px;
  width: 25px;
  background: url("../Images/Svg/Cross.svg") no-repeat;
}

div#caveForm form button#closeButton:hover {
  cursor: pointer;
}

div#caveForm fieldset.NamePhone > label {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

div#caveForm fieldset.NamePhone > input {
  display: block;
  border: none;
  border-bottom: 1px solid;
  width: 100%;
  line-height: 2em;
  padding: 0 5px;
  outline-color: #f1c30e;
  font-size: 18px;
}

div#caveForm fieldset.Consent > label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font: bold 18px sans-serif;
  line-height: 1.2;
}

div#caveForm fieldset.Consent > label:hover {
  cursor: pointer;
}

div#caveForm fieldset.Consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border: 3px solid #111111;
  background: #ffffff;
  margin: 4px 0 0;
  position: relative;
  outline-color: #f1c30e;
}

div#caveForm fieldset.Consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 14px;
  border-right: 4px solid #111111;
  border-bottom: 4px solid #111111;
  transform: rotate(40deg);
}

div#caveForm fieldset.Buttons {
  margin-bottom: 20px;
}

div#caveForm fieldset.Buttons > input {
  padding: 10px;
  background: #f1c30e;
  text-align: center;
  color: white;
  font: bold 18px sans-serif;
  border-radius: 5px;
  border: none;
  width: auto;
  margin-top: 30px;
  cursor: pointer;
}

div#caveForm fieldset.Buttons > div.g-recaptcha {
  float: right;
}

@media only all and (max-width: 960px) {
  section.CaveOverview {
    grid-template-columns: 1fr;
  }

  div.CaveGallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  section.CaveOverview figure + figure {
    margin-top: 0;
  }

  div.CaveGalleryLeft {
    order: 2;
  }

  table.CaveDescription {
    order: 1;
  }

  div.CaveGalleryRight {
    order: 3;
  }
}

@media only all and (max-width: 710px) {
  div#caveForm {
    padding: 0 20px;
  }

  div#caveForm form {
    width: 100%;
  }
}

@media only all and (max-width: 670px) {
  body.CavePage main {
    padding-top: 25px;
  }

  table.CaveDescription caption {
    font-size: 30px;
  }

  table.CaveDescription th,
  table.CaveDescription td {
    display: block;
    width: 100%;
  }

  table.CaveDescription thead {
    display: none;
  }

  table.CaveDescription tbody th {
    width: 100%;
  }

  section.CaveInfo {
    padding: 18px;
    font-size: 18px;
  }

  div.CaveScheduleGrid {
    grid-template-columns: 1fr;
  }

  div.CaveScheduleGrid article:last-child {
    grid-column: auto;
  }

  div#caveForm {
    padding: 0 5px;
  }

  div#caveForm fieldset.Buttons > input {
    margin-top: 20px;
  }

  div#caveForm fieldset.Buttons > div.g-recaptcha {
    float: none;
  }
}

@media only all and (max-width: 490px) {
  div.CaveGallery {
    grid-template-columns: 1fr;
  }

  p.CaveScheduleNote {
    font-size: 18px;
  }

  div#caveForm form {
    padding: 50px calc(50% - 150px) 0;
  }
}

@media only all and (max-width: 360px) {
  button.CaveButton {
    width: 100%;
  }
}

.SelectWrapper {
  position: relative;
  width: 100%;
}

.SelectWrapper select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.SelectWrapper select:hover {
  border-color: #888;
}

.SelectWrapper select:focus {
  outline: none;
  border-color: #ff6a00;
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.2);
}

.SelectWrapper::after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
}

.SelectWrapper select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #999;
}


/* Новая структура контента */
/* Расширенная структура контента */
section.CaveContent {
  background: white;
  border: 3px solid #f1c30e;
  border-radius: 5px;
  padding: 40px;
  max-width: 1200px; /* Увеличили максимальную ширину контента (было 960px) */
  margin: 0 auto;
}

h1.CaveMainTitle {
  font: bold 40px "mft", sans-serif; /* Чуть увеличили заголовок */
  color: #3a3a3a;
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
}

/* Увеличенный текст */
.CaveStoryText {
  font: 21px/1.65 sans-serif;
  color: #222;
  margin-bottom: 40px;
  text-align: justify;
}

.CaveStoryText p + p {
  margin-top: 20px;
}

/* Увеличенный слайдер */
.CaveSliderContainer {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border: 3px solid #f1c30e;
  border-radius: 5px;
  overflow: hidden;
  background: #000;
}

.CaveSlider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.SliderSlide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}

.SliderSlide.active {
  opacity: 1;
  z-index: 2;
}

.SliderSlide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left top;
}

.SliderBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s translateY(-50%);
}

.SliderBtn:hover {
  background: #f1c30e;
  color: #111;
}

.PrevBtn { left: 20px; }
.NextBtn { right: 20px; }

@media only all and (max-width: 1024px) {
  section.CaveContent {
    padding: 30px;
  }
  .CaveStoryText {
    font-size: 19px;
  }
}

@media only all and (max-width: 670px) {
  section.CaveContent {
    padding: 15px;
  }
  h1.CaveMainTitle {
    font-size: 28px;
  }
  .CaveStoryText {
    font-size: 17px;
    text-align: left;
  }
  .CaveSlider {
    aspect-ratio: 3 / 2;
  }
  .SliderBtn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .PrevBtn { left: 10px; }
  .NextBtn { right: 10px; }
}