* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 22px;
  background-color: #eeeeee;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
body.page-excursions .menu {
  margin-bottom: 14px;
}

.sl-header {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}
.sl-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.pics {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 100%;
  display: flex;
  transition: transform var(--slider-transition);
}
.pics.no-transition {
  transition: none !important;
}
.sl {
  width: 25%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
}
.sl-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: white;
  text-align: center;
  text-shadow: 0 0 4px #000, 0 0 8px #000, 0 0 12px #000;
  z-index: 10;
  padding: 20px;
}
.sl-content .logo {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
  border-radius: 50%;
  transition: transform 0.5s ease;
}
.sl-content .logo:hover {
  transform: scale(1.1);
}
.nav {
  position: absolute;
  top: 0;
  height: 100%;
  width: 15%;
  cursor: pointer;
  z-index: 20;
}
.prev { left: 0; }
.next { right: 0; }

.menu {
  background-color: #ccc;
  padding: 14px 0;
  margin-bottom: 30px;
}
.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 6px;
}
.menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px 16px;
  transition: background-color 0.3s, color 0.3s;
}
.menu a:hover {
  background-color: #bbb;
  color: #222;
}
.menu a.active {
  background-color: #aaa;
  color: #222;
}

main {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}
.block {
  width: 100%;
  max-width: 1000px;
  background-color: #dddddd;
  padding: 25px;
  text-align: center;
  position: relative;
  top: 0;
  transition: 
    top 0.5s ease,
    background-color var(--theme-transition),
    color var(--theme-transition);
}
.block:hover {
  top: -8px;
}
.block p {
  margin-bottom: 10px;
  line-height: 1.6;
}
.one h2, .two h2, .three h2 {
  margin-bottom: 10px;
  font-size: 28px;
}
.line {
  border: none;
  border-top: 2px solid #ccc; 
  margin: 20px 0;
}
.a {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px)); 
  gap: 25px;
  justify-content: center; 
  width: 100%;
  max-width: 800px;
  margin: 0 auto 20px;
}
.a_str {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
  justify-content: flex-start;
  width: 100%;
}
.icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.a_str small {
  display: block;
  margin-top: 5px;
}

.excursion {
  width: 100%;
  max-width: 1000px;
  background-color: #dddddd;
  overflow: hidden;
}
.tour-header {
  padding: 18px 26px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tour-header::after {
  content: "▼";
  font-size: 16px;
  transition: transform 0.5s;
}
.tour-header.active::after {
  transform: rotate(180deg);
}
.tour {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  font-size: 18px;
  line-height: 1.6;
  transition: 
    max-height var(--accordion-transition),
    padding var(--accordion-transition),
    background-color var(--theme-transition),
    color var(--theme-transition);
}
.tour.show {
  padding: 0 24px 20px;
  margin-bottom: 20px;
}
.category-title {
  text-align: center;
  font-size: 28px;
}
.tour-type {
  display: inline-block;
  padding: 2px 8px;
  font-size: 18px;
  vertical-align: middle;
}
.tour ul {
  list-style: none;
  padding-left: 0;
}
.tour li {
  position: relative;
  padding-left: 1.5em;
}
.tour li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #333;
  font-weight: bold;
}

.map {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 45%; 
  overflow: hidden;
  background-color: #f4f4f4;
}
.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.btn {
  gap: 10px;
  display: inline-block;
  font-size: 24px;
  padding: 12px 36px 12px 24px; 
  width: 100%;
  max-width: 320px;
  margin: 16px auto 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  position: relative;
}
.btn:hover {
  transform: translateY(-2px);
}

.request-tour {
  text-align: center;
  width: 100%;
  max-width: 1000px; 
}
.yandex-btn {
  background-color: #ffcc00; 
  color: #333;
}
.yandex-btn:hover {
  background-color: #d4aa00;
  color: #222;
}
.yandex-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: url('icons/yandex.png') no-repeat center / contain;
}

.whatsapp-btn {
  background-color: #1fd662; 
  color: white;
}
.whatsapp-btn:hover {
  background-color: #19aa4e; 
  color: #f0f0f0;
}
.whatsapp-btn .whatsapp-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: url('icons/whatsapp.png') no-repeat center / contain;
  filter: invert(1);
}

footer {
  text-align: center;
  padding: 20px;
  color: #7a7a7a;
  margin-top: 20px;
  font-size: 18px;
}

.theme-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: no-repeat center / 50px;
  background-image: url('icons/day.png');
  cursor: pointer;
  z-index: 30;
  transition: transform 0.2s;
  filter: invert(1);
}
:root.dark .theme-btn {
  background-image: url('icons/night.png');
}
.theme-btn:hover {
  transform: scale(1.05);
}

:root {
  --theme-transition-duration: 0.3s;
  --slider-transition-duration: 0.6s;
  --accordion-transition-duration: 0.4s;

  --theme-transition: var(--theme-transition-duration) ease;
  --slider-transition: var(--slider-transition-duration) ease-in-out;
  --accordion-transition: var(--accordion-transition-duration) ease;
}
body,
.sl-content,
.menu,
.excursion,
.category-title,
.menu a,
.line,
footer,
.icon,
.tour li::before {
  transition: background-color var(--theme-transition), color var(--theme-transition);
}

:root.dark {
  color: #f0f0f0; 
}
:root.dark body {
  background-color: #1e1e1e; 
}
:root.dark .sl-content {
  color: #ffffff;
}
:root.dark .block,
:root.dark .excursion,
:root.dark .form-block,
:root.dark .map {
  background-color: #2a2a2a; 
  color: #f0f0f0;
}
:root.dark .menu {
  background-color: #383838; 
}
:root.dark .menu a {
  color: #f0f0f0;
}
:root.dark .menu a:hover {
  background-color: #4a4a4a; 
  color: #ffffff;
}
:root.dark .menu a.active {
  background-color: #555; 
  color: #ffffff;
}
:root.dark .a_str,
:root.dark .tour,
:root.dark .block p,
:root.dark .block span,
:root.dark .block small {
  color: #f0f0f0;
}
:root.dark .icon {
  filter: invert(1);
}
:root.dark footer, 
:root.dark .category-title {
  color: #ccc; 
}
:root.dark input,
:root.dark textarea,
:root.dark select {
  background-color: #333; 
  color: #f0f0f0;
  border: 1px solid #666; 
}
:root.dark input::placeholder,
:root.dark textarea::placeholder {
  color: #aaa; 
}
:root.dark .tour li::before {
  color: #ddd; 
}
:root.dark .line {
  border-top: 2px solid #555;
}

@media (max-width: 768px) {
  body {
    margin: 8px;
    padding: 18px;
    font-size: 18px;
  }

  .sl-header {
    height: 180px;
  }
  .sl-content h1 {
    font-size: 26px;
    line-height: 1.3;
    padding: 0 10px;
    word-wrap: break-word;
  }
  .sl-content .logo {
    width: 70px;
    height: 70px;
    margin-bottom: 6px;
  }

  .block {
    padding: 20px;
  }
  .two h2, .three h2, .category-title {
    font-size: 24px;
  }
  .a {
    grid-template-columns: 1fr;
    justify-content: center; 
    gap: 20px;
    max-width: 100%;
  }
  .a_str {
    max-width: none;
    gap: 12px;
  }
  .icon {
    width: 36px;
    height: 36px;
  }
  .one, .three{
    text-align: center; 
  }

  .tour-header {
    font-size: 18px;;
  }
  .tour-type {
    font-size: 14px;
  }

  .btn {
    font-size: 20px;
    padding: 10px 20px;
  }

  footer {
    padding: 14px;
    font-size: 14px;
  }

  .theme-btn {
    width: 36px;
    height: 36px;
    background-size: 36px;
  }
}