/*
	Author: Oleksandr Matsenko, admin@tria.sumy.ua
	Author URI: https://tria.sumy.ua/
*/



/* css/main.css */
:root {
  --color-primary: #4fa9dd;
  --color-primary-dark: #3b8fc2;
  --color-primary-light: #70bce5;
  --color-secondary: #ffd45a;
  --color-secondary-dark: #e6bd45;
  --color-accent: #7bc96f;
  --color-accent-dark: #63ad58;
  --color-background: #f7fafc;
  --color-text: #2d3748;
  --color-muted: #718096;
  --color-line: #edf2f7;
  --color-footer: #1a2e3b;
  --shadow-soft: 0 10px 40px -10px rgba(79, 169, 221, 0.15);
  --shadow-card: 0 12px 30px rgba(45, 55, 72, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--color-text);
  background-color: var(--color-background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page__body {
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
}

.top-line {
  position: relative;
  z-index: 50;
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 14px;
}

.top-line__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.top-line__contacts,
.top-line__actions,
.top-line__link,
.top-line__contrast-button {
  display: flex;
  align-items: center;
}

.top-line__contacts,
.top-line__actions {
  gap: 16px;
  flex-wrap: wrap;
}

.top-line__link,
.top-line__contrast-button {
  gap: 6px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.top-line__link:hover {
  color: var(--color-secondary);
}

.top-line__contrast-button {
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.top-line__contrast-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.top-line__icon,
.button__icon,
.site-nav__icon,
.site-nav__dropdown-chevron,
.mobile-nav__icon,
.stats__icon,
.section-label__icon,
.about__subtitle-icon,
.check-list__icon,
.method-card__icon,
.news__all-icon,
.news-card__date-icon,
.news-card__link-icon,
.document-link__icon,
.site-footer__icon,
.scroll-top__icon,
.page-sidebar__icon,
.page-content__breadcrumb-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 1px 4px rgba(45, 55, 72, 0.04);
  backdrop-filter: blur(12px);
}

.site-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: visible;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-primary-dark);
  background: var(--color-secondary);
  box-shadow: var(--shadow-card);
  font-size: 20px;
  font-weight: 800;
  transition: transform 0.25s ease;
}

.brand:hover .brand__mark {
  transform: scale(1.05);
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__name {
  color: var(--color-primary-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.brand__description {
  color: var(--color-muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.site-nav__link:hover {
  color: var(--color-primary);
  background: rgba(79, 169, 221, 0.1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  display: none;
  min-width: 260px;
  max-width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, calc(100vh - 100px));
  margin-top: 4px;
  padding: 8px 0;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(45, 55, 72, 0.15);
  opacity: 0;
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.has-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.site-nav__dropdown-link {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.site-nav__dropdown-link:hover {
  color: var(--color-primary);
  background: rgba(79, 169, 221, 0.06);
}

.dropdown-menu--wide {
  min-width: 280px;
  max-width: min(380px, calc(100vw - 24px));
}

/* Праві пункти меню: 2-й рівень не виходить за правий край */
.site-nav > .site-nav__item.has-dropdown:nth-last-child(-n+2) > .dropdown-menu {
  left: auto;
  right: 0;
}

.site-nav__dropdown-item {
  position: relative;
}

.site-nav__dropdown-link--parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 12px;
}

.site-nav__dropdown-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--color-muted);
  transition: transform 0.2s ease;
}

.site-nav__subdropdown {
  position: absolute;
  top: 0;
  left: auto;
  right: 100%;
  z-index: 201;
  display: none;
  min-width: 280px;
  max-width: min(380px, calc(100vw - 32px));
  margin-left: 0;
  margin-right: 4px;
  padding: 8px 0;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(45, 55, 72, 0.15);
  overflow-x: hidden;
  overflow-y: auto;
}

/* Корекція позиції (додає JS при наведенні) */
.dropdown-menu--align-right {
  left: auto;
  right: 0;
}

.dropdown-menu--align-left {
  left: 0;
  right: auto;
}

.dropdown-menu--align-up {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}

.site-nav__subdropdown--align-right {
  left: 100%;
  right: auto;
  margin-left: 4px;
  margin-right: 0;
}

.site-nav__subdropdown--align-left {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 4px;
}

.site-nav__subdropdown--align-up {
  top: auto;
  bottom: 0;
}

.has-submenu:hover > .site-nav__dropdown-link--parent .site-nav__dropdown-chevron,
.has-submenu:focus-within > .site-nav__dropdown-link--parent .site-nav__dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-submenu--scroll {
  max-height: min(70vh, 480px);
  overflow-y: auto;
}

.has-submenu:hover > .site-nav__subdropdown,
.has-submenu:focus-within > .site-nav__subdropdown {
  display: block;
}

.has-submenu:hover > .site-nav__dropdown-link--parent,
.has-submenu:focus-within > .site-nav__dropdown-link--parent {
  color: var(--color-primary);
  background: rgba(79, 169, 221, 0.06);
}

.site-header__menu-button {
  display: none;
  border: 0;
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
}

.site-header__menu-icon {
  width: 32px;
  height: 32px;
}

.mobile-nav {
  position: absolute;
  left: 0;
  top: 100%;
  display: none;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid var(--color-line);
  box-shadow: inset 0 10px 15px -15px rgba(45, 55, 72, 0.35);
}

.mobile-nav--open {
  display: block;
}

.mobile-nav__link,
.mobile-nav__button,
.mobile-nav__submenu-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid #f7fafc;
  padding: 16px 24px;
  color: var(--color-text);
  background: #fff;
  font-weight: 700;
  text-align: left;
}

.mobile-nav__button {
  cursor: pointer;
}

.mobile-nav__submenu {
  display: none;
  background: #f8fafc;
  padding-left: 40px;
}

.mobile-nav__submenu--open {
  display: block;
}

.mobile-nav__button--nested {
  padding-left: 40px;
  font-size: 14px;
  font-weight: 700;
  background: #f8fafc;
}

.mobile-nav__submenu--level3 {
  padding-left: 56px;
  background: #eef2f6;
}

.mobile-nav__submenu--level3 .mobile-nav__submenu-link {
  font-size: 13px;
  font-weight: 600;
}

.mobile-nav__submenu-link {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
}

.mobile-nav__icon {
  transition: transform 0.25s ease;
}

.mobile-nav__button--open .mobile-nav__icon {
  transform: rotate(180deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 192px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(112, 188, 229, 0.4), rgba(255, 255, 255, 0.8));
}

.hero__container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__label {
  display: inline-block;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(45, 55, 72, 0.08);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero__title {
  max-width: 980px;
  margin: 0 auto 24px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.13;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.7);
}

.hero__title-accent {
  color: var(--color-primary);
}

.hero__text {
  max-width: 680px;
  margin: 0 auto 40px;
  color: #4a5568;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
}

.hero__actions,
.button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__actions {
  gap: 24px;
  flex-wrap: wrap;
}

.button {
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 16px 32px;
  box-shadow: 0 12px 25px rgba(45, 55, 72, 0.12);
  font-weight: 800;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.button:hover {
  transform: translateY(-4px);
}

.button--primary {
  color: #fff;
  background: var(--color-primary);
}

.button--primary:hover {
  background: var(--color-primary-dark);
}

.button--light {
  color: var(--color-primary);
  background: #fff;
  border-color: rgba(79, 169, 221, 0.2);
}

.button--light:hover {
  background: #f8fafc;
}

.stats {
  position: relative;
  z-index: 20;
  margin-top: -96px;
  margin-bottom: 80px;
}

.stats__container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stats__card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 128px;
  border-bottom: 4px solid var(--color-primary);
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.stats__card:hover {
  transform: scale(1.04);
}

.stats__card--secondary {
  border-bottom-color: var(--color-secondary);
}

.stats__card--accent {
  border-bottom-color: var(--color-accent);
}

.stats__card--neutral {
  border-bottom-color: var(--color-primary-light);
}

.stats__icon-wrap {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-primary);
  background: rgba(79, 169, 221, 0.1);
}

.stats__card--secondary .stats__icon-wrap {
  color: var(--color-secondary-dark);
  background: rgba(255, 212, 90, 0.2);
}

.stats__card--accent .stats__icon-wrap {
  color: var(--color-accent-dark);
  background: rgba(123, 201, 111, 0.2);
}

.stats__card--neutral .stats__icon-wrap {
  color: #4a5568;
  background: #edf2f7;
}

.stats__icon {
  width: 32px;
  height: 32px;
}

.stats__value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.stats__value--time {
  font-size: 20px;
}

.stats__label {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.about,
.news {
  padding: 64px 0;
  background: #fff;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--color-primary);
  font-weight: 800;
}

.section-title {
  margin-bottom: 24px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
}

.about__text,
.section-heading__text {
  color: #4a5568;
  line-height: 1.7;
}

.about__text + .about__text {
  margin-top: 16px;
}

.about__subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 20px;
}

.about__subtitle-icon {
  color: var(--color-secondary-dark);
}

.check-list,
.method-card__list,
.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list__item,
.method-card__item,
.site-footer__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list__icon {
  margin-top: 2px;
  color: var(--color-accent);
}

.team {
  display: grid;
  gap: 24px;
}

.team__person {
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-background);
  box-shadow: 0 4px 14px rgba(45, 55, 72, 0.04);
}

.team__person--with-photo {
  display: flex;
  gap: 16px;
  padding: 16px;
}

.team__person--compact {
  padding: 16px;
  text-align: center;
}

.team__photo {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border-radius: 12px;
  object-fit: cover;
}

.team__name {
  margin-bottom: 6px;
  color: var(--color-primary-dark);
  font-size: 18px;
}

.team__role {
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
}

.team__role--secondary {
  color: var(--color-secondary-dark);
}

.team__role--accent {
  color: var(--color-accent-dark);
}

.team__description {
  color: #4a5568;
  font-size: 13px;
  line-height: 1.5;
}

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

.technologies {
  padding: 64px 0;
  background: linear-gradient(#fff, var(--color-background));
  border-top: 1px solid var(--color-line);
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading--center {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

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

.method-card {
  border-radius: 16px;
  padding: 32px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.method-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--color-primary-dark);
  font-size: 22px;
}

.method-card--accent .method-card__title {
  color: var(--color-accent-dark);
}

.method-card__list {
  display: grid;
  gap: 14px;
}

.method-card__item {
  color: #4a5568;
  line-height: 1.55;
}

.method-card__item::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--color-primary);
}

.method-card--accent .method-card__item::before {
  background: var(--color-accent);
}

.news__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.news__subtitle {
  color: var(--color-muted);
}

.news__all-link,
.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-weight: 800;
  transition: color 0.25s ease;
}

.news__all-link:hover,
.news-card__link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.news-card {
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-background);
  box-shadow: 0 4px 14px rgba(45, 55, 72, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(45, 55, 72, 0.12);
}

.news-card__media {
  position: relative;
  height: 192px;
  overflow: hidden;
}

.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover .news-card__image {
  transform: scale(1.08);
}

.news-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
}

.news-card__tag--secondary {
  color: var(--color-text);
  background: var(--color-secondary);
}

.news-card__tag--accent,
.news-card__tag--primary {
  color: #fff;
}

.news-card__tag--accent {
  background: var(--color-accent);
}

.news-card__tag--primary {
  background: var(--color-primary);
}

.news-card__body {
  padding: 24px;
}

.news-card__date {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 14px;
}

.news-card__title {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.news-card:hover .news-card__title {
  color: var(--color-primary);
}

.news-card__text {
  display: -webkit-box;
  margin-bottom: 16px;
  overflow: hidden;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news__mobile-link {
  display: none;
}

.documents {
  padding: 64px 0;
  background: rgba(79, 169, 221, 0.05);
}

.documents__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.document-link {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 14px rgba(45, 55, 72, 0.04);
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.document-link:hover {
  box-shadow: var(--shadow-card);
}

.document-link--primary:hover {
  color: #fff;
  background: var(--color-primary);
}

.document-link--secondary:hover {
  color: var(--color-text);
  background: var(--color-secondary);
}

.document-link__icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.document-link--secondary .document-link__icon {
  color: var(--color-secondary-dark);
}

.document-link:hover .document-link__icon {
  color: currentColor;
}

.document-link__text {
  font-weight: 800;
}

.site-footer {
  padding: 64px 0 32px;
  color: #cbd5e0;
  background: var(--color-footer);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.site-footer__brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-footer);
  background: var(--color-secondary);
  font-weight: 800;
}

.site-footer__brand-name,
.site-footer__title {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.site-footer__brand-name {
  font-size: 20px;
}

.site-footer__text {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.65;
}

.site-footer__socials {
  display: flex;
  gap: 16px;
}

.site-footer__social-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-footer__social-link:hover {
  color: #fff;
  background: var(--color-primary);
}

.site-footer__title {
  display: inline-block;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 18px;
}

.site-footer__list {
  display: grid;
  gap: 14px;
}

.site-footer__item,
.site-footer__link {
  font-size: 14px;
  line-height: 1.45;
}

.site-footer__icon,
.site-footer__link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--color-primary);
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.site-footer__link:hover {
  color: #fff;
}

.site-footer__map {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-radius: 12px;
  background: #4a5568;
}

.site-footer__map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.site-footer__map:hover .site-footer__map-image {
  opacity: 0.7;
}

.site-footer__map-link {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  background: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
  transform: translate(-50%, -50%);
  transition: background-color 0.25s ease;
}

.site-footer__map-link:hover {
  background: var(--color-primary-dark);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  color: #a0aec0;
  font-size: 12px;
}

.site-footer__policy {
  display: flex;
  gap: 16px;
}

.scroll-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 50;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 12px 24px rgba(45, 55, 72, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.scroll-top:hover {
  background: var(--color-primary-dark);
}

.scroll-top--visible {
  opacity: 1;
  pointer-events: auto;
}

body.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

body.high-contrast * {
  color: #ff0 !important;
  background-color: #000 !important;
  border-color: #fff !important;
  box-shadow: none !important;
}

body.high-contrast img {
  filter: grayscale(100%) contrast(120%);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: var(--color-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* Inner page layout (page.php) */
.page__body--inner {
  display: flex;
  flex-direction: column;
}

.site-header--inner .site-header__container {
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-header--inner .site-nav {
  gap: 2px;
}

.site-header--inner .site-nav__link {
  padding: 8px 10px;
  font-size: 13px;
}

.site-header--inner .site-nav__link--dropdown {
  gap: 2px;
}

.site-nav__link--active {
  color: var(--color-primary);
  background: rgba(79, 169, 221, 0.12);
}

.page-layout {
  flex: 1;
  padding: 40px 0 80px;
}

.page-layout__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.page-content {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.page-content__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

.page-content__breadcrumb-link {
  color: var(--color-primary);
  transition: color 0.25s ease;
}

.page-content__breadcrumb-link:hover {
  color: var(--color-primary-dark);
}

.page-content__breadcrumb-separator {
  color: var(--color-line);
}

.page-content__breadcrumb-current {
  color: var(--color-text);
}

.page-content__title {
  margin-bottom: 16px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
}

.page-content__lead {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
  color: #4a5568;
  font-size: 18px;
  line-height: 1.7;
}

.page-content__heading {
  margin: 32px 0 16px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

.page-content__heading:first-of-type {
  margin-top: 0;
}

.page-content__subheading {
  margin: 24px 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.page-content__text {
  color: #4a5568;
  line-height: 1.75;
}

.page-content__text + .page-content__text,
.page-content__list + .page-content__text {
  margin-top: 16px;
}

.page-content__link {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content__link:hover {
  color: var(--color-primary-dark);
}

.page-content__list {
  margin: 16px 0 0;
  padding-left: 24px;
  color: #4a5568;
  line-height: 1.75;
}

.page-content__list-item + .page-content__list-item {
  margin-top: 8px;
}

.page-sidebar {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.page-sidebar__widget {
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.page-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 800;
}

.page-sidebar__icon {
  color: var(--color-primary);
}

.page-sidebar__calendar-placeholder {
  display: grid;
  min-height: 280px;
  place-items: center;
  /* padding: 24px; */
  padding: 4px 24px;
  border: 2px dashed var(--color-line);
  border-radius: 12px;
  background: var(--color-background);
  text-align: center;
}

.page-sidebar__placeholder-text {
  max-width: 220px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.page-sidebar__banner {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-sidebar__banner + .page-sidebar__banner {
  margin-top: 12px;
}

.page-sidebar__banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.page-sidebar__banner--accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
}

.page-sidebar__banner-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.page-sidebar__banner-title {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.page-sidebar__banner-text {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
}


/* --- breadcrumbs --- */
.breadcrumbs {
	font-size: 12px;
	color: #777;
	margin: 0 0 0px 0; 
	text-align: center;
  font-weight: 400;
}

#content>.breadcrumbs {
	text-align: left;
	font-size: 12px;
	color: #777;
	margin: 10px 0 30px 0px; 
}
.hk-active {
	color: #1a4a9d;
	text-decoration: none;
}
.hk-active:hover {
	color: #ce9004;
	text-decoration: underline;
}
.divider {color: #ce9004; padding: 0 2px; } 

.breadcrumbs .current {
	color: #4d4d4d;
}	

/* conten */
.w-content p {
  margin-top: 2px;
  margin-bottom: 12px;
}
.w-content h2, .w-content h3 {
  margin-top: 2px;
  margin-bottom: 12px;
}


/* календарь */
/* ===== WordPress Calendar ===== */
#wp-calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
    background: transparent;
    font-family: inherit;
}

/* Заголовок месяца */
#wp-calendar caption {
    text-align: center;
    font-weight: 600;
    padding: 12px 0;
    font-size: 18px;
    color: #222;
}

/* Шапка дней недели */
#wp-calendar thead th {
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
    padding: 8px 0;
}

/* Ячейки */
#wp-calendar td {
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #f5f6f8;
    color: #333;
}

/* Дни с постами (кликабельные) */
#wp-calendar td a {
    display: block;
    color: #fff;
    background: #2d6cdf;
    border-radius: 10px;
    padding: 6px 0;
    text-decoration: none;
    font-weight: 500;
}

/* Hover эффект */
#wp-calendar td a:hover {
    background: #1f4fb8;
    transform: scale(1.05);
}

/* Пустые ячейки */
#wp-calendar .pad {
    background: transparent;
}

/* Текущий день */
#wp-calendar .today {
    background: #ffcc00;
    color: #000;
    font-weight: 700;
}

/* Навигация (prev / next) */
#wp-calendar nav,
#wp-calendar tfoot {
    margin-top: 1px;
}

#wp-calendar #prev a,
#wp-calendar #next a {
    color: #2d6cdf;
    text-decoration: none;
    font-weight: 500;
}

#wp-calendar #prev a:hover,
#wp-calendar #next a:hover {
    text-decoration: underline;
}


.page-sidebar__banner2 img {
  border-radius: 12px;
}
.page-sidebar__banner2 {
  margin-top: 1px;  
  margin-bottom: 14px;  
}



/* --- mams --- */
.wrap-block-mams {
	position: relative;
}  
.wrap-block-childr {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
} 






/* -- spoiler -- */
.spoiler-z {
    color: #000000;
    text-align: left;
    font-size: 17px;
    line-height: 22px;
	font-weight: 600;
    margin-bottom: 10px;
}
summary::-webkit-details-marker {
	display: none;
  }
  summary::-moz-list-bullet {
	list-style-type: none;
  }
  summary::marker {
	display: none;
  }
  summary {
	display: inline-block;
	padding: 30px 30px 0px 60px;
	font-size: 30px;
	cursor: pointer;
	position: relative;
	width: calc(100% - 30px);
	border-bottom: 1px dashed  #b9b9b9;
	background-image: linear-gradient( #fff, #eeeeee);
	border-radius: 20px;
  }
  summary:before {
	left: 20px;
	top: 30px;
	color: transparent;
background: url("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIzNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMmI2NWVhIiBkPSJNOC41OSAxNi4zNGw0LjU4LTQuNTktNC41OC00LjU5TDEwIDUuNzVsNiA2LTYgNnoiLz48L3N2Zz4=") no-repeat 100% 100%;
	width: 30px;
	height: 30px;
	content: "";
	position: absolute;
	transition: transform 0.5s;
  }
  details[open] > summary:before {
	transform: rotateZ(90deg);
  }



  /* summary ~ * { */
  summary ~ * {
	padding: 30px;
	/* border-radius: 0 0 20px 20px; */
	border-radius: 20px;
	border-right: 2px solid #e4e4e4;
	border-bottom: 2px solid #e4e4e4;
	border-left: 2px solid #e4e4e4;
	width: calc(100% - 30px);
	/* background: #f4f4f4; */
	background: linear-gradient(to bottom, #f4f4f4, #ffffff);
  }

.summary-content h4 {
    font-size: 22px;
    line-height: 24px;
    color: #000;
    margin-bottom: 10px;
    margin-left: 0px;
    display: flex
;
}

.summary-content a {
	text-decoration: none;
}
.summary-content p {
	margin-bottom: 20px;
}
.summary-content img {
	width: 100%;
	height: auto;
	border-radius: 14px;
}



  details[open] summary ~ * {
	animation: sweep 0.5s ease-in-out;
  }
  @keyframes sweep {
	0% {
	  opacity: 0;
	}
	100% {
	  opacity: 1;
	}
  }
  summary:focus {
	outline: 0;
	box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.3), inset 0 0 2px rgba(0, 0, 0, 0.3);
  }
  details {
	display: block;
	margin-bottom: 0.5rem;

  }



  
/* form-7 */
/* Контейнер формы */
.wpcf7 form {
  max-width: 600px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* Метки */
.wpcf7 form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

/* Текстовые поля, email, телефон, textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

/* Ховер и фокус */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #82bf40;
  outline: none;
}

/* Кнопка */
.wpcf7 input[type="submit"] {
  background: #0d6df6;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
  background: #82bf40;
}

/* Сообщения об ошибках */
.wpcf7-not-valid-tip {
  color: #d63638;
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 10px;
}

/* Сообщение об отправке */
.wpcf7 form .wpcf7-response-output {
  margin: 15px 0;
  padding: 10px;
  border: 2px solid #0073aa;
  border-radius: 4px;
  background: #f0f6fc;
}

a.button7 { 
	text-decoration: none;
	color: #fff;;
}

.button7 {
	/* float: right; */
	border-radius: 4px;
	padding: 6px 10px 4px 10px ;
	color: #fff;
	background: #0d6df6;
	font-size: 14px;
	border: none;
	cursor: pointer;	
}
.button7:hover {
 	cursor: pointer;
	background: #ade3ff;
	transition: .3s;
}




/* Адаптивная галерея WordPress */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto;
}

.gallery-item {
    flex: 1 1 auto;
    min-width: 150px;
    overflow: hidden;
	
	/* margin-top: -20px; */
	margin-bottom: -10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.gallery-item a img {
	border: none !important;
}


/* Поддержка колонок */
.gallery-columns-2 .gallery-item { width: calc(50% - 8px); }
.gallery-columns-3 .gallery-item { width: calc(33.33% - 8px); }
.gallery-columns-4 .gallery-item { width: calc(25% - 8px); }

a img.aligncenter {
	margin: auto;
	display: block;
} 



/* рекомендации */
.w-recommendation-block {
	float: left;
	width: 98%;
	margin: 1%;
	padding: 4px;
}

.w-newrecommendations-h2 {
	margin-top: 10px;
	margin-bottom: 20px;
	text-align: justify;
}
.w-recommendation-h2 a {
	font-size: 30px;
	line-height: 31px;
	font-weight: 400;
	font-family: 'Open Sans', sans-serif;
	text-decoration: none;
	color: #000;
}

.w-recommendation-date {
	margin-top: 10px;
	margin-bottom: 20px;
	font-size: 10px;
	line-height: 10px;
	color: #2c2c2c;
	width: fit-content;
	padding: 4px 4px 4px 0;
} 
.w-recommendation-txt {
	margin-top: 10px;
	margin-bottom: 20px;
	text-align: justify;
}
.w-recommendation-txt a {
	font-size: 19px;
	line-height: 21px;
	font-weight: 300;
	text-decoration: none;
	color: #3e3e3e;
}
.w-recommendation-more {
	float: right;
	margin-top: 7px;
	font-size: 16px;
	line-height: 20px;
	color: #fff;
	width: fit-content;
	padding: 10px 20px;
	background-color: #63ad58;
  border-radius: 14px;
  position: relative;
}



/* ---to next page only --- */
ul.vb { padding: 4px 0 0 6px; }
ul.vb  li { list-style: none;  
	background: url('../img/c-li.png') 4px 4px no-repeat; 
	padding: 0px 0 3px 26px; 
	margin: 1px 0 0 0;  
	min-height: 20px; }
.vb ul li a { color: #292526; text-transform: uppercase; text-decoration: none; display: block; border-bottom: 1px dotted #fff; } 
.vb ul li a:hover { color: #ee8941; text-transform: uppercase; text-decoration: none; display: block; 
	border-bottom: 1px dotted #ee8941; } 

/* table */
 table { 
	width: 100% !important;
	margin: 20px 0 10px 0;
	padding: 4px; 
	border: 1px dashed #d3d3d3;
	border-collapse: collapse;
	overflow-x: auto;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}
th, thead {  padding: 6px 2px 6px 2px; 
	background: #F1F1F2;
}
tr {  padding: 4px; border: 1px dashed #d3d3d3; }
td {  padding: 4px; border: 1px dashed #d3d3d3; }

tr>th:first-child,tr>td:first-child {
	white-space: nowrap;
  } 