

/* Mobile header: keep the compact original layout */
@media screen and (max-width: 807px) {
  .header__block {
    display: none !important;
  }

  .header-wrap {
    align-items: center;
    justify-content: space-between;
    min-height: 0;
  }

  .header__logo.nn-header-logo {
    flex: 0 0 auto;
    margin: 0 0 0 20px !important;
  }

  .mobile-btn {
    display: block !important;
    flex: 0 0 auto;
    margin-left: auto !important;
    margin-right: 20px !important;
    padding: 0;
  }

  .mobile-btn img {
    display: block;
  }
}
:root { --nn-navy: #102765; --nn-blue: #2456bf; --nn-indigo: #536edb; --nn-cyan: #39b9d5; --nn-ice: #eaf8ff; }
body.home, body.page-template-location { background: radial-gradient(circle at 14% 9%, rgba(126, 158, 255, 0.88) 0px, rgba(126, 158, 255, 0) 31%), radial-gradient(circle at 86% 24%, rgba(57, 196, 221, 0.68) 0px, rgba(57, 196, 221, 0) 32%), linear-gradient(135deg, rgb(37, 59, 142) 0%, rgb(80, 107, 212) 48%, rgb(39, 155, 199) 100%); color: rgb(255, 255, 255); }
body.home .site, body.page-template-location .site { background: transparent; }
.header { padding: 24px 0px 18px; }
.header-wrap { align-items: flex-end; min-height: 100px; }
.header__logo.nn-header-logo, .nn-footer-logo { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-width: 184px; padding: 12px 16px 13px; border: 2px solid rgba(255, 255, 255, 0.72); border-radius: 17px; background: rgba(235, 248, 255, 0.96); box-shadow: rgba(12, 36, 105, 0.18) 0px 12px 30px; line-height: 1; display: inline-flex !important; width: auto !important; height: auto !important; margin: 0px 32px 0px 0px !important; text-decoration: none !important; }
.nn-logo-line, .nn-footer-logo .nn-logo-line { display: block; padding: 0px; border-radius: 0px; background: transparent; color: rgb(19, 34, 82); font-family: Unbounded, Arial, Helvetica, sans-serif; font-weight: 750; letter-spacing: -0.025em; white-space: nowrap; }
.nn-logo-line--top { font-size: 20px; line-height: 1.06; }
.nn-logo-line--bottom { font-size: 24px; line-height: 1.08; }
.header__block { display: flex; flex: 1 1 auto; flex-direction: column; gap: 18px; width: auto; }
.header-up, .header-down { width: 100%; height: auto; }
.header-up { display: flex; justify-content: flex-end; }
.header-up__wrap { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 24px; width: auto; max-width: none; height: auto; margin: 0px; }
.header-up__address, .header-up__phone, .header-up__time { width: auto; color: rgb(255, 255, 255); font-size: 15px; line-height: 1.25; white-space: nowrap; margin: 0px !important; }
.header-up__address br { display: none; }
.header-up__phone, .header-up__time { font-weight: 700; }
.header-down { display: flex; align-items: flex-end; gap: 28px; margin: 0px; }
.header__nav { display: flex; align-items: flex-end; flex: 1 1 auto; min-height: 52px; }
.header-menu { display: flex; justify-content: flex-start; gap: clamp(24px, 3.2vw, 48px); width: auto; max-width: none; margin: 0px; }
.header-menu__item a { font-size: 16px; line-height: 1.2; }
.header .buy-ticket { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 210px; height: 52px; margin: 0px 0px 0px auto; padding: 0px 22px; font-size: 18px; line-height: 1; }
.home .header, .home .offer-slider, .home .info, .home .price, .home .goods-slider, .page-template-location .header, .page-template-location .location { background: transparent !important; }
.home .services { background: linear-gradient(rgba(43, 100, 190, 0) 0%, rgba(31, 72, 159, 0.86) 9%, rgba(34, 88, 180, 0.94) 28%, rgba(37, 135, 197, 0.9) 62%, rgba(43, 157, 199, 0.46) 88%, rgba(43, 157, 199, 0) 100%) !important; }
.home .services .services__title, .home .services .services__subtitle, .home .services .services__text, .home .services .services__description { color: rgb(255, 255, 255) !important; text-shadow: rgba(10, 34, 96, 0.18) 0px 2px 18px; }
.home .news-section { padding-top: 86px; color: rgb(23, 23, 53); background: linear-gradient(rgb(54, 168, 204) 0%, rgb(143, 204, 231) 72px, rgb(216, 234, 255) 175px, rgb(233, 244, 255) 36%, rgb(220, 236, 255) 72%, rgb(216, 245, 247) 100%) !important; }
.home .footer, .page-template-location .footer { background: linear-gradient(135deg, rgb(11, 28, 84) 0%, rgb(21, 62, 134) 56%, rgb(23, 111, 153) 100%) !important; }
.info-content h1 { display: inline-flex; flex-direction: column; align-items: flex-start; width: fit-content; max-width: 100%; padding: 19px 25px 22px; border: 4px solid rgb(139, 220, 255); border-radius: 4px; background: linear-gradient(135deg, rgb(16, 39, 101) 0%, rgb(24, 72, 154) 100%); box-shadow: rgba(9, 36, 105, 0.25) 16px 16px 0px; margin: 0px 0px 44px !important; }
.info-content h1 strong, .info-content h1 strong:nth-child(1), .info-content h1 strong:nth-child(2), .info-content h1 strong:nth-child(3) { display: block; color: rgb(255, 255, 255); font-size: clamp(48px, 5.2vw, 72px); line-height: 1.08; letter-spacing: -0.035em; white-space: nowrap; width: auto !important; margin: 0px !important; padding: 0px !important; background: transparent !important; }
.nn-partners { color: rgb(255, 255, 255); display: block !important; min-height: 0px !important; height: auto !important; padding: 52px 0px !important; background: linear-gradient(108deg, rgb(41, 87, 170) 0%, rgb(46, 120, 198) 54%, rgb(54, 168, 204) 100%) !important; }
.nn-partners .partners__container, .nn-partners__block { min-height: 0px !important; height: auto !important; }
.nn-partners__block { grid-template-columns: minmax(210px, 0.72fr) minmax(0px, 1.28fr); align-items: center; gap: 58px; display: grid !important; margin: 0px !important; padding: 0px !important; }
.nn-partners .partners__title { width: auto; margin: 0px; color: rgb(255, 255, 255); font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.nn-partners__logos { display: flex; align-items: stretch; justify-content: flex-end; gap: 22px; width: 100%; }
.nn-partners__logos > div, .nn-partners .partners__all-instruments, .nn-partners .partners__vkusvil { display: flex; align-items: center; justify-content: center; flex: 1 1 0px; min-height: 94px; padding: 16px 24px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 20px; background: rgba(10, 35, 99, 0.54); backdrop-filter: blur(8px); box-shadow: rgba(6, 30, 95, 0.18) 0px 14px 32px; width: auto !important; margin: 0px !important; }
.nn-partners__logos img { display: block; width: auto; max-width: 220px; height: auto; max-height: 62px; object-fit: contain; }
.page-template-location .location { min-height: 620px; padding: 72px 0px 98px; }
.page-template-location .location > .container { display: grid; grid-template-columns: minmax(480px, 1.08fr) minmax(400px, 0.82fr); align-items: start; gap: 92px; }
.page-template-location .location__wrap { width: auto; }
.page-template-location .location__title, .page-template-location .location__subtitle, .page-template-location .location__time { color: rgb(255, 255, 255); }
.page-template-location .location__title { margin-top: 0px; }
.page-template-location .location__subtitle { max-width: 390px; }
.nn-location-photo { position: relative; z-index: 1; width: 100%; max-width: 560px; margin-top: 72px; justify-self: end; }
.nn-location-photo::after { content: ""; position: absolute; z-index: -1; right: 26px; bottom: -26px; width: calc(100% - 38px); height: calc(100% - 20px); border-radius: 32px; background: rgb(18, 50, 118); opacity: 0.9; }
.nn-location-photo img { display: block; width: 100%; aspect-ratio: 1.52 / 1; border: 3px solid rgba(255, 255, 255, 0.65); border-radius: 32px; object-fit: cover; object-position: center center; box-shadow: rgba(9, 31, 94, 0.26) 0px 22px 50px; }
@media (max-width: 1064px) {
  .header-up__wrap { gap: 15px; }
  .header-up__address, .header-up__phone, .header-up__time, .header-menu__item a { font-size: 13px; }
  .header-menu { gap: 22px; }
  .header .buy-ticket { width: 165px; height: 44px; font-size: 15px; }
  .page-template-location .location > .container { grid-template-columns: minmax(360px, 1fr) minmax(350px, 0.88fr); gap: 52px; }
  .nn-location-photo { max-width: 490px; margin-top: 58px; }
}
@media (max-width: 807px) {
  .header { padding: 20px 0px; }
  .header.active { background: rgba(20, 52, 137, 0.96) !important; }
  .header-wrap { min-height: 0px; align-items: center; justify-content: space-between; }
  .header__logo.nn-header-logo { min-width: 144px; padding: 9px 12px 10px; border-radius: 13px; margin: 0px 0px 0px 20px !important; }
  .nn-logo-line--top { font-size: 14px; }
  .nn-logo-line--bottom { font-size: 17px; }
  .info-content h1 { padding: 14px 17px 16px; border-width: 3px; box-shadow: rgba(9, 36, 105, 0.22) 10px 10px 0px; }
  .info-content h1 strong, .info-content h1 strong:nth-child(1), .info-content h1 strong:nth-child(2), .info-content h1 strong:nth-child(3) { font-size: 42px; }
  .nn-partners { padding: 42px 0px !important; }
  .home .news-section { padding-top: 62px; background: linear-gradient(rgb(54, 168, 204) 0%, rgb(155, 210, 233) 55px, rgb(223, 237, 255) 135px, rgb(233, 244, 255) 42%, rgb(216, 245, 247) 100%) !important; }
  .nn-partners__block { grid-template-columns: 1fr; gap: 25px; }
  .nn-partners .partners__title { width: auto; font-size: 32px; line-height: 1.05; }
  .nn-partners__logos { justify-content: flex-start; }
  .nn-partners__logos > div, .nn-partners .partners__all-instruments, .nn-partners .partners__vkusvil { min-height: 82px; padding: 13px 18px; }
  .nn-partners__logos img { max-width: 180px; max-height: 54px; }
  .page-template-location .location { min-height: 0px; padding: 125px 0px 80px; }
  .page-template-location .location > .container { grid-template-columns: 1fr; gap: 42px; }
  .page-template-location .location__subtitle { max-width: 340px; }
  .nn-location-photo { max-width: 620px; margin-top: 0px; justify-self: start; }
}
@media (max-width: 616px) {
  .header__logo.nn-header-logo { min-width: 132px; padding: 8px 10px 9px; }
  .nn-logo-line--top { font-size: 13px; }
  .nn-logo-line--bottom { font-size: 15px; }
  .info-content h1 { max-width: 320px; padding: 12px 14px 14px; margin-bottom: 34px !important; }
  .info-content h1 strong, .info-content h1 strong:nth-child(1), .info-content h1 strong:nth-child(2), .info-content h1 strong:nth-child(3) { font-size: 30px; line-height: 1.13; white-space: normal; }
  .nn-partners { padding: 34px 0px 38px !important; }
  .nn-partners .partners__title { font-size: 27px; }
  .nn-partners__logos { gap: 12px; }
  .nn-partners__logos > div, .nn-partners .partners__all-instruments, .nn-partners .partners__vkusvil { min-height: 72px; padding: 11px 12px; border-radius: 14px; }
  .nn-partners__logos img { max-width: 126px; max-height: 45px; }
  .page-template-location .location { padding: 118px 0px 66px; }
  .page-template-location .location > .container { gap: 34px; }
  .page-template-location .location__title { margin-top: 0px; }
  .nn-location-photo::after { right: 14px; bottom: -14px; border-radius: 22px; }
  .nn-location-photo img { border-radius: 22px; }
}

/* Точечная шлифовка партнёров и страницы расположения */
.nn-partners {
  margin-top: -1px !important;
  margin-bottom: -1px !important;
  background: linear-gradient(
    180deg,
    #3c8fca 0%,
    #285fb3 28%,
    #20529d 68%,
    #38a6ca 100%
  ) !important;
}

.nn-partners__logos > div,
.nn-partners .partners__all-instruments,
.nn-partners .partners__vkusvil {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.home .news-section {
  margin-top: -1px !important;
  background: linear-gradient(
    180deg,
    #38a6ca 0%,
    #83c9e3 110px,
    #d8eaff 240px,
    #e9f4ff 40%,
    #dcecff 72%,
    #d8f5f7 100%
  ) !important;
}

@media (min-width: 808px) {
  .page-template-location .location > .container {
    grid-template-columns: minmax(460px, 520px) minmax(340px, 430px);
    gap: 48px;
    justify-content: start;
  }

  .page-template-location .nn-location-photo {
    width: 100%;
    max-width: 430px;
    margin-top: 125px;
    justify-self: start;
  }
}

@media (min-width: 808px) and (max-width: 1064px) {
  .page-template-location .location > .container {
    grid-template-columns: minmax(360px, 460px) minmax(310px, 390px);
    gap: 36px;
  }

  .page-template-location .nn-location-photo {
    max-width: 390px;
    margin-top: 112px;
  }
}


/* Спокойный переход от программ к новостям */
.home .nn-partners {
  background: linear-gradient(
    180deg,
    #3c8fca 0%,
    #3c8fca 54%,
    #4f99cc 68%,
    #72add6 82%,
    #a4c9e6 100%
  ) !important;
}

.home .news-section {
  background: linear-gradient(
    180deg,
    #a4c9e6 0%,
    #b6d2ea 100px,
    #ccdef1 210px,
    #e1ebf7 340px,
    #e8f1fb 62%,
    #e5eef9 100%
  ) !important;
}


/* Бесшовный фон и корректное положение декоративной рамки */
.home .nn-partners {
  background: transparent !important;
}

.home .news-section {
  background: linear-gradient(
    180deg,
    rgba(232, 241, 251, 0) 0,
    rgba(228, 238, 249, .34) 130px,
    rgba(230, 239, 250, .78) 310px,
    rgba(232, 241, 251, .96) 480px,
    #e8f1fb 58%,
    #e5eef9 100%
  ) !important;
}

@media (min-width: 1242px) {
  .home .services-birthday__img {
    transform: translate(-100px, 60px);
  }
}

@media (min-width: 1065px) and (max-width: 1241px) {
  .home .services-birthday__img {
    transform: translate(-70px, 45px);
  }
}


.home .news-section::before {
  display: none !important;
}

/* About block refinements */
.home .info-content h1 {
  border: 0;
  border-radius: 0;
  background: #5b006f;
  box-shadow: none;
}

@media (min-width: 808px) {
  .home .info__img {
    transform: translateY(-120px);
  }
}
