:root {
  --sun: #ba7f00;
  --berry: #5e1747;
  --forest: #0f3e2f;
  --lake: #0a3a55;
  --lake-purple: #3b1f4a;
  --mist: #d6f3ea;
  --gray: #858585;
  --content-max-width: 1200px;
}

.bg-lake { background-color:  rgba(10, 58, 85, 0.8); }

.bg-lake-light { background-color: rgba(41, 114, 140, 0.8); }
.color-lake-light { color: rgba(41, 114, 140, 1); }
.text-lake-purple { color: var(--lake-purple); }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: "DM Sans", Arial, sans-serif;
  background: linear-gradient(160deg, var(--forest), var(--lake), var(--lake-purple));
  color: #ecfff8;
  overflow-x: hidden;
  overflow-x: clip;
}

.heading-font {
  font-family: "Jost", Arial, sans-serif;
}

/*.glass {*/
/*  background: rgba(6, 16, 18, 0.55);*/
/*  border: 1px solid rgba(255, 255, 255, 0.08);*/
/*  backdrop-filter: blur(10px);*/
/*}*/

.glass {
  background: rgba(167, 243, 208, 0.08); /* Очень слабый оттенок изумруда */
  border: 1px solid rgb(10 58 85 / 25%);
  backdrop-filter: blur(10px);
}

.glass-1 {
  background: rgb(85 10 10 / 0%); /* Очень слабый оттенок изумруда */
  border-width: 0;
  backdrop-filter: blur(7px) !important;
}

.glass-2 {
  background: rgb(23 40 50 / 70%);
  border-width: 0;
  backdrop-filter: blur(7px) !important;
}

.glass-3 {
  background: rgba(77, 115, 129, 0.2); /* Очень слабый оттенок изумруда */
  /*background: rgb(47 67 81 / 70%);*/
  border-width: 0;
  backdrop-filter: blur(7px) !important;
}

.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.text-shadow-md {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.text-shadow-lg {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.text-shadow-light {
  text-shadow: 3px -1px 15px rgb(255 226 221 / 50%);
}

.hero-overlay {
  background: linear-gradient(
          180deg,
          rgba(175, 0, 30, 0.2)   0%,
          rgba(175, 0, 30, 0.2) 58%,
          rgba(10, 58, 85, 0.95) 88%,
          rgba(10, 58, 85) 99%
  );
}

.hero-bg {
  background-image: url("media/fon.jpeg");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center top;
}

.hero-top-meta {
  text-align: justify;
  text-align-last: justify;
}

.hero-top-meta .hero-date {
  text-align: left;
  text-align-last: left;
}

.hero-main-content {
  top: -50px;
}

@media (max-width: 1199px) {
  .hero-top-meta {
    text-align: left;
    text-align-last: left;
  }
}

@media (max-width: 640px) and (orientation: portrait) {
  #top {
    padding-top: 7rem;
  }

  .hero-main-content {
    top: 24px;
  }

  .hero-top-meta {
    text-align: right;
    text-align-last: right;
  }

  .hero-top-meta .hero-date {
    text-align: right;
    text-align-last: right;
  }

  #top h1 {
    font-size: 1.95rem;
    line-height: 1.15;
  }

  #top p:not(.hero-lead) {
    font-size: 0.875rem;
  }

  #top .section-label {
    letter-spacing: 0.28em;
  }

  #top a {
    font-size: 0.75rem;
  }

  #top .glass-1.p-12 {
    padding: 1.5rem;
  }

  .hero-bg {
    background-size: 300%;
  }

  .hero-overlay {
    background: linear-gradient(
            180deg,
            rgba(175, 0, 30, 0.2)   0%,
            rgba(175, 0, 30, 0.2) 58%,
            rgba(10, 58, 85, 0.95) 88%,
            rgba(10, 58, 85) 99%
    );
  }
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.section-border {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.container-max-width {
  max-width: var(--content-max-width);
}

.gradient-band-0 {
  background: linear-gradient(
          160deg,
          var(--lake-purple) 10%,
          var(--lake) 71%,
          var(--forest) 80%,
          var(--lake) 89%,
          var(--lake-purple) 95%
  );
}

.gradient-band-1 {
  background: linear-gradient(
    165deg,
    var(--lake) 0%,
    var(--lake) 15%,
    var(--lake-purple) 35%,
    var(--lake-purple) 50%,
    var(--forest) 72%,
    var(--lake) 98%
  );
}

.gradient-band-2 {
  background: linear-gradient(
          165deg,
            /*var(--gray) 0%,*/
          var(--lake) 0%,
          var(--lake)10%,
          var(--forest)20%,
          var(--forest) 40%,
          var(--lake-purple) 65%,
          var(--lake-purple) 100%
  );
}

.gradient-band-3 {
  background: linear-gradient(
          165deg,
            /*var(--gray) 0%,*/
          var(--lake-purple) 0%,
          var(--lake-purple) 12%,
          var(--berry) 17%,
          var(--berry) 27%,
          var(--forest) 37%,
          var(--forest) 55%,
          var(--lake) 62%,
          var(--lake) 70%,
          var(--lake-purple) 77%,
          var(--lake-purple) 100%
  );
}

.section-label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-weight: 600;
}

/* Мятный/Циановый для лесных и водных градиентов */
.label-band-1 {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  /*text-shadow: 0 1px 1px rgb(185 133 123);*/
}

/* Светло-голубой для расписания и локации */
.label-band-2 { color: rgba(186, 230, 253, 0.9); }

.label-band-yellow { color: rgba(255, 210, 108, 0.8); }
.section-label-purple { color: rgb(220 156 77); }

.label-food { color: rgba(253, 226, 236, 0.9); }
/* Золотистый/Солнечный для детского пространства на бордовом */

.label-kids { color: rgba(254, 240, 138, 0.9); }
/* Чистый белый для галереи и условий */
.label-light { color: rgba(255, 255, 255, 0.8); }

.site-header {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.site-header.is-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.reveal:not(.is-visible):not(.reveal-left):not(.reveal-right) {
  transform: translateY(60px);
}

.reveal-left:not(.is-visible) {
  transform: translateX(-100px);
}

.reveal-right:not(.is-visible) {
  transform: translateX(100px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.reveal-delay-0-5s {
  transition-delay: 0.5s !important;
}

.reveal-delay-1s {
  transition-delay: 1s !important;
}

.reveal-delay-3s {
  transition-delay: 3s !important;
}

.reveal-fade.is-visible {
  transition: opacity 5s ease-out, transform 2.5s ease-out;
  transform: translateY(5px);
}

.ticker {
  animation: ticker 18s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.edit-mode [contenteditable="true"] {
  outline: 1px dashed rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
}

.edit-mode [contenteditable="true"]:focus {
  outline-color: rgba(110, 231, 183, 0.9);
}

.yandex-form-embed {
  margin-top: 0 !important;
  padding: 0;
  line-height: 0;
}

.yandex-form-embed iframe {
  display: block;
  margin: 0 auto;
  padding: 0;
  border: 0;
}

@media (max-width: 640px) {
  .yandex-form-embed iframe {
    width: 325px;
    max-width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 1200px) {
  .yandex-form-embed iframe {
    width: 650px !important;
    max-width: 100%;
  }
}

@media (min-width: 1801px) {
  .yandex-form-embed iframe {
    width: 980px !important;
    max-width: 100%;
  }
}

.edit-toolbar {
  position: fixed;
  top: 65px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(6, 16, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #ecfff8;
}

.edit-toolbar__title {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(110, 231, 183, 0.9);
}

.edit-toolbar__actions {
  display: flex;
  gap: 8px;
}

.edit-toolbar__button {
  border: none;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.9);
  color: #0f172a;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
}

.edit-toolbar__button:disabled {
  opacity: 0.7;
  cursor: default;
}

.edit-toolbar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ecfff8;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.edit-toolbar__hint {
  color: rgba(255, 255, 255, 0.6);
}

.edit-login-hint {
  position: fixed;
  top: 66px;
  right: 16px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(6, 16, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ecfff8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.edit-login-hint:hover,
.edit-login-hint:focus,
.edit-login-hint:active {
  opacity: 1;
  background: rgba(6, 16, 18, 0.9);
}

.section-fon-bg {
  position: relative;
  background: transparent;
  overflow: hidden;
}

.section-fon-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('media/loc1.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 1;
}
