* {
  font-family: "Fredoka Medium", "Nunito";
}

.container-fluid {
    --bs-gutter-x: 0;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito-Bold.woff') format('woff');
  unicode-range: U+0400-04FF, U+0500-052F; /* Кириллица */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Fredoka Medium";
  src: url("../fonts/Fredoka-Medium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Fredoka Bold";
  src: url("../fonts/Fredoka-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Script";
  src: url("../fonts/Black_script.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

.container_green {
  background: #90ba1e;
  background: linear-gradient(
    90deg,
    rgba(144, 186, 30, 1) 0%,
    rgba(193, 225, 94, 1) 50%,
    rgba(195, 226, 96, 1) 100%
  );
}

.menu_background {
  width: 100vw;
  height: auto;
  display: block;

  position: absolute;
  animation: jelly 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes jelly {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.1);
  }
}

.container_beige {
  background: #fcf5e6;
  box-shadow:
  -12px 0 22px -12px rgba(0,0,0,0.5),   /* слева */
  12px 0 22px -12px rgba(0,0,0,0.5);    /* справа */
  max-width: 80%;
  min-height: 100vh;
  margin: 0 auto;
}

.title_container {
   padding-top: 17rem;
}

.fairy-appear {
  opacity: 0;
  transform: translateY(40px) scale(0.97) rotate(-2deg);
  filter: blur(2px) brightness(1.3);
  animation: fairyIn 1s cubic-bezier(.53,1.7,.41,.8) forwards;
  position: relative;
} 

@keyframes fairyIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.97) rotate(-2deg);
    filter: blur(2px) brightness(1.3);
    text-shadow: 0 0 0 0 #f9eaa7, 0 0 0 0 #ffd6f5;
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.04) rotate(2deg);
    filter: blur(0.5px) brightness(1.18);
    text-shadow: 0 0 24px 6px #ffe86988, 0 0 22px 2px #ff9bda99;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
    filter: blur(0);
    text-shadow: 0 0 0 0 #ffe86900, 0 0 0 0 #ff9bda00;
  }
}

.main_title {
  font-size: clamp(2.5rem, 15vw, 7.5rem);
  font-weight: 700;
  line-height: 0.82;
  position: relative;
  text-align: center;
}

.sweet {
  position: relative;
  font-size: clamp(1.5rem, 8vw, 4rem);
  z-index: 4;
  font-family: "Fredoka Bold";
  background: -webkit-linear-gradient(45deg, #563009, #3c1101);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.swfooter {
  font-size: clamp(1.5rem, 8vw, 2rem);
}

.fairytale {
  padding: 15px;

  margin-top: clamp(-2rem, -5vw, -1rem);

  transform: rotate(-10deg) !important;
  display: inline-block;
  font-family: "Script";
  background: -webkit-linear-gradient(45deg, #7aa20c, #d3f85a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar {
  margin-top: 20px;
}

.nav-item {
  font-size: clamp(1.5rem, 2.5vw, 1.5rem);
}

.nav-link {
  color: #3c1101 !important;
  position: relative;
  /* чуть приподнять буквы, если будет transform */
  z-index: 1;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 95%;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #7aa20c 0%, #d3f85a 100%);
  border-radius: 2px;
  transition: all 0.5s cubic-bezier(.36,2,.21,.81);
  transform: translateX(-50%);
  z-index: -1;
}

.nav-link:hover,
.nav-link:focus {
  color: #e46719 !important; /* можно градиент, если нужно */
  text-shadow:
    0 0 8px #fffbe8,
    0 0 12px #ffe869,
    0 0 18px #ff9bda;
  transform: translateY(-3px) scale(1.06);
}

.navbar-nav {
  margin-bottom: 45px !important;
}

.logo-marquee {
  overflow: hidden;
  background: transparent;
  width: 100%;
  height: 80px;
  position: relative;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
  align-items: center;
  gap: 2rem;
}

.logo-track img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(60, 17, 1, 0.07));
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.title-picture-mob-only {
  display: block;
  width: 100vw;        /* ширина на всю ширину экрана */
  aspect-ratio: 2.5 / 1; /* квадрат */
  object-fit: cover;
  margin: 0 auto;
  max-width: 100%;
}

.picture-caption{
  position: relative;
  width: 100%;
  /* по желанию, max-width и margin для центровки */
}

.picture-title {
  font-family: "Script";
  position: absolute;
  top: 60%;   
  right: 25%;     /* по центру вертикали */
  color: #3c1101;
  z-index: 2;
}

.slider-title {
  font-family: "Script";
  font-size: clamp(2rem, 4vw, 2.2rem);
  color: #3c1101;
  margin-bottom: 150px;
}

.carousel-caption {
  color: #3c1101;
  text-shadow: none;
  text-align: left;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 2.4rem);
  padding: 25px;
  font-family: "Script";
  background:-webkit-linear-gradient(45deg, #563009, #3c1101);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-us-text{
  display: block;
  text-align: center;
  padding: 0 25px 0 25px;
}

.marquee-wrap {
  margin: 15px 0 15px 0;
  width: 100%;
  overflow: hidden;
  background: #fdf6e6;
  height: 2.2rem;
}
.marquee-text {
  font-family: "Script";
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  font-size: 1.3rem;
  color: #7aa20c;
  animation: marquee 20s linear infinite;
}
@keyframes marquee-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100vw); }
}

.fade-stagger {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(.47,1.64,.41,.8) forwards;
}


@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.maerchen-footer {
  background: white;
  padding: 2rem 0;
  font-size: 1.1rem;
  color: #3c1101;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  max-width: 80%;
  margin: 0 auto;
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.footer-title {
  font-size: 2rem;
}

.footer-year {
  font-size: 1rem;
  color: #3c1101;
  opacity: 0.74;
}

.footer-center {
  text-align: center;
}
.footer-creator {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-creator .vivid-logo {
  width: 50px;
  margin-bottom: 0.3em;
}
.footer-vivid-label {
  color: #222;
  font-weight: 500;
  font-size: 0.5rem;
}
.footer-vivid-label br { display: none; }
@media (max-width: 700px) {
  .footer-vivid-label { font-size: 0.9rem; }
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}
.footer-links li {
  margin-bottom: 0.4em;
}
.footer-links li:last-child {
  margin-bottom: 0;
}
.footer-links a {
  color: #3c1101;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #7aa20c;
  text-decoration: underline;
}

/* Адаптация под мобилки */
@media (max-width: 850px) {
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    text-align: center;
  }
  .footer-left, .footer-right, .footer-center {
    align-items: center !important;
    text-align: center !important;
  }
  .footer-right {
    align-items: center;
    margin-top: 1rem;
  }
  .footer-links {
    text-align: center;
  }
}

.animated-vivid {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(2px) brightness(1.1);
  animation: vividAppear 1.1s cubic-bezier(.5,1.8,.3,1.05) forwards;
  animation-delay: 5s; /* Задержка после появления футера */
}

@keyframes vividAppear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(2px) brightness(1.1);
  }
  70% {
    opacity: 1;
    transform: translateY(-10px) scale(1.06);
    filter: blur(0.5px) brightness(1.14);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) brightness(1);
  }
}

.footer-creator {
  color: #7aa20c;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s cubic-bezier(.36,2,.21,.81);
}

.footer-link-ext, .footer-creator
  {
  cursor: pointer;
  color: #7aa20c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s;
}
.footer-link-ext:hover, .footer-creator:hover {
  color: #e46719;
  text-decoration: underline;
    transform: scale(1.04) rotate(-1deg);
}

.impressum {
  padding: 20px;
}