@font-face {
  font-family: "GD Noto Sans";
  src: url("../pedagogi/fonts/NotoSans-Cyrillic-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --gd-program-green: #185040;
  --gd-program-cream: #f5f7ef;
  --gd-program-yellow: #f3cb3f;
  --gd-program-orange: #f7931e;
  --gd-program-header-height: 146px;
}

.gd-program-header,
.gd-program-header *,
.gd-callback-modal,
.gd-callback-modal *,
.gd-program-footer,
.gd-program-footer * { box-sizing: border-box; }

.gd-program-header {
  position: sticky;
  top: 0;
  z-index: 100000;
  width: 100%;
  height: var(--gd-program-header-height);
  margin-bottom: calc(-1 * var(--gd-program-header-height));
  color: var(--gd-program-green);
  font-family: "GD Noto Sans", "Noto Sans", Arial, sans-serif;
  background: rgba(245, 247, 239, .985);
  box-shadow: 0 1px 0 rgba(24, 80, 64, .05);
  backdrop-filter: blur(10px);
}

.gd-program-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100% - 84px, 1356px);
  height: 126px;
  margin-inline: auto;
  gap: clamp(10px, 1vw, 18px);
  align-items: center;
}

.gd-program-header__wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  display: block;
  width: 100%;
  height: 25px;
  fill: #dcebc7;
  pointer-events: none;
}

.gd-program-header__logo {
  display: block;
  width: 210px;
  height: 120px;
  flex: 0 0 210px;
}

.gd-program-header__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.gd-program-header__nav {
  display: flex;
  min-width: 0;
  margin-left: auto;
  gap: clamp(13px, 1.35vw, 24px);
  align-items: center;
}

.gd-program-header__nav a {
  position: relative;
  padding: 12px 0 14px;
  color: var(--gd-program-green);
  font-size: clamp(13px, 1.02vw, 16px);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.gd-program-header__nav a::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 4px;
  left: 5%;
  height: 4px;
  background: var(--gd-program-yellow);
  border-radius: 50%;
  opacity: 0;
  transform: scaleX(.35) rotate(-1.5deg);
  transition: opacity .18s ease, transform .18s ease;
}

.gd-program-header__nav a:hover::after,
.gd-program-header__nav a:focus-visible::after,
.gd-program-header__nav a.is-active::after { opacity: 1; transform: scaleX(1) rotate(-1.5deg); }

.gd-program-header__garden,
.gd-program-header__callback {
  display: flex;
  min-height: 54px;
  padding: 13px 18px;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
}

.gd-program-header__garden { min-width: 174px; padding-inline: 15px; color: var(--gd-program-green); background: #fff; border: 1px solid #d5e2d5; }
.gd-program-header__garden span:last-child,
.gd-program-header__callback span:last-child { font-size: 25px; line-height: 1; }

.gd-program-header__phone {
  display: flex;
  min-width: 184px;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  color: var(--gd-program-green);
  text-decoration: none;
}

.gd-program-header__phone-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  background: #dcebc7;
  border-radius: 50%;
}

.gd-program-header__phone-icon svg { width: 27px; height: 27px; fill: var(--gd-program-green); }
.gd-program-header__phone > span:last-child { display: grid; }
.gd-program-header__phone small { color: #6f817b; font-size: 10px; font-weight: 800; line-height: 1.2; }
.gd-program-header__phone strong { font-size: 17px; font-weight: 850; line-height: 1.25; white-space: nowrap; }

.gd-program-header__callback {
  min-width: 168px;
  color: #fff;
  background: var(--gd-program-green);
  border: 0;
  cursor: pointer;
}
.gd-program-header__callback span:last-child { color: var(--gd-program-yellow); }

.gd-program-header__toggle,
.gd-program-header__mobile { display: none; }

/* Callback modal */
body.gd-callback-open { overflow: hidden !important; }
.gd-callback-modal[hidden] { display: none !important; }
.gd-callback-modal { position: fixed; inset: 0; z-index: 100001; display: grid; padding: 22px; place-items: center; font-family: "GD Noto Sans", "Noto Sans", Arial, sans-serif; }
.gd-callback-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(9, 43, 34, .72); border: 0; cursor: pointer; }
.gd-callback-modal__dialog { position: relative; z-index: 1; width: min(100%, 620px); max-height: calc(100vh - 44px); padding: clamp(30px, 5vw, 54px); overflow: auto; color: #fff; background: var(--gd-program-green); border: 3px solid #fff; border-radius: 36px 42px 34px 40px; box-shadow: 0 28px 80px rgba(0, 0, 0, .3); }
.gd-callback-modal__close { position: absolute; top: 16px; right: 18px; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; color: #fff; font: 700 34px/1 Arial, sans-serif; background: rgba(255,255,255,.12); border: 0; border-radius: 50%; cursor: pointer; }
.gd-callback-modal__eyebrow { margin: 0 50px 12px 0; color: #8ec63f; font-size: 12px; font-weight: 850; }
.gd-callback-modal h2 { margin: 0; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; }
.gd-callback-modal__lead { margin: 18px 0 26px; color: #dcebc7; font-size: 16px; line-height: 1.55; }
.gd-callback-modal__form .row { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
.gd-callback-modal__form .columns { width: auto !important; padding: 0 !important; float: none !important; }
.gd-callback-modal__form input:not([type="checkbox"]):not([type="submit"]),
.gd-callback-modal__form input[type="tel"],
.gd-callback-modal__form input[type="text"] { width: 100% !important; min-height: 62px !important; padding: 17px 20px !important; color: var(--gd-program-green) !important; font: 700 15px/1.2 inherit !important; background: var(--gd-program-cream) !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important; }
.gd-callback-modal__form input[type="submit"] { width: 100% !important; min-height: 64px !important; margin-top: 15px !important; color: var(--gd-program-green) !important; font: 850 16px/1.2 inherit !important; background: var(--gd-program-yellow) !important; border: 0 !important; border-radius: 999px !important; cursor: pointer; }
.gd-callback-modal__form .wpcf7-acceptance .wpcf7-list-item { margin: 16px 0 0 !important; }
.gd-callback-modal__form .wpcf7-acceptance label { display: grid !important; grid-template-columns: 24px 1fr !important; gap: 10px !important; align-items: start !important; }
.gd-callback-modal__form input[type="checkbox"] { width: 22px !important; height: 22px !important; margin: 2px 0 0 !important; accent-color: var(--gd-program-yellow); }
.gd-callback-modal__form .wpcf7-list-item-label,
.gd-callback-modal__form .form-agreement { color: #fff !important; font-size: 11px !important; line-height: 1.45 !important; }
.gd-callback-modal__form a { color: var(--gd-program-yellow) !important; }
.gd-callback-modal__form .wpcf7-response-output { margin: 18px 0 0 !important; padding: 12px 15px !important; color: #fff !important; border: 1px solid var(--gd-program-yellow) !important; border-radius: 14px !important; }
.gd-callback-modal__success[hidden] { display: none !important; }
.gd-callback-modal__success { display: grid; padding: 14px 0 2px; place-items: center; text-align: center; }
.gd-callback-modal__success-icon { display: grid; width: 82px; height: 82px; margin-bottom: 22px; place-items: center; color: var(--gd-program-green); font-size: 46px; font-weight: 900; background: #8ec63f; border: 8px solid rgba(255,255,255,.18); border-radius: 50%; }
.gd-callback-modal__success h3 { margin: 0; color: #fff; font-size: clamp(30px, 5vw, 42px); line-height: 1.08; }
.gd-callback-modal__success p { margin: 15px 0 26px; color: #dcebc7; font-size: 16px; }
.gd-callback-modal__success button { min-width: 220px; min-height: 58px; padding: 14px 26px; color: var(--gd-program-green); font: 850 16px/1.2 inherit; background: var(--gd-program-yellow); border: 0; border-radius: 999px; cursor: pointer; }
.gd-callback-modal.is-success .gd-callback-modal__dialog { border-color: #8ec63f; }

/* Shared footer */
.gd-program-footer { position: relative; z-index: 20; width: 100%; margin: 0; padding: 66px 30px 92px; color: #fff; font-family: "GD Noto Sans", "Noto Sans", Arial, sans-serif; background: var(--gd-program-green); border: 0; }
.gd-program-footer__wave { position: absolute; right: 0; bottom: -1px; left: 0; display: block; width: 100%; height: 60px; fill: #edf4d8; pointer-events: none; }
.gd-program-footer__inner { position: relative; display: grid; width: min(100%, 1340px); margin-inline: auto; grid-template-columns: 1.15fr 1fr 1fr 1.35fr; gap: 54px 46px; align-items: start; }
.gd-program-footer h2,
.gd-program-footer p,
.gd-program-footer dl,
.gd-program-footer address { margin: 0; }
.gd-program-footer h2 { color: #a8c88a; font-size: 10px; font-weight: 850; letter-spacing: .02em; }
.gd-program-footer__brand img { display: block; width: min(100%, 230px); height: auto; }
.gd-program-footer__brand h2 { margin-top: 38px; }
.gd-program-footer__social { display: flex; margin-top: 13px; gap: 9px; }
.gd-program-footer__social a { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; font-size: 12px; font-weight: 850; text-decoration: none; background: #2fb8ea; border: 3px solid #fff; border-radius: 50%; }
.gd-program-footer__social a:last-child { background: #da3843; }
.gd-program-footer__menu a,
.gd-program-footer__useful a { display: flex; width: fit-content; margin-top: 17px; gap: 12px; align-items: center; color: #fff; font-size: 13px; font-weight: 750; line-height: 1.35; text-decoration: none; }
.gd-program-footer__menu i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.gd-program-footer .is-yellow { background: var(--gd-program-yellow); }
.gd-program-footer .is-blue { background: #2fb8ea; }
.gd-program-footer .is-orange { background: var(--gd-program-orange); }
.gd-program-footer .is-green { background: #8ec63f; }
.gd-program-footer__useful a:nth-of-type(n+2) { color: #dcebc7; font-size: 10px; line-height: 1.5; }
.gd-program-footer__phone { display: block; width: fit-content; margin-top: 16px; color: #fff; font-size: clamp(22px, 2.1vw, 31px); font-weight: 850; line-height: 1.1; text-decoration: none; }
.gd-program-footer__contacts address { margin-top: 14px; color: #dcebc7; font-size: 12px; font-style: normal; line-height: 1.5; }
.gd-program-footer__callback { display: flex; width: 100%; min-height: 58px; margin: 24px 0 34px; padding: 16px 20px; justify-content: space-between; align-items: center; color: #fff; font: 800 13px/1.2 inherit; background: var(--gd-program-orange); border: 0; border-radius: 999px; cursor: pointer; }
.gd-program-footer__contacts dl { display: grid; margin-top: 14px; grid-template-columns: max-content 1fr; gap: 9px 22px; color: #fff; font-size: 11px; font-weight: 700; }
.gd-program-footer__contacts dd { margin: 0; }
.gd-program-footer__legal { display: flex; grid-column: 1 / -1; padding-top: 26px; justify-content: space-between; gap: 24px; color: #a8c88a; font-size: 9px; line-height: 1.55; border-top: 1px solid #4b7569; }
.gd-program-footer__legal a { color: var(--gd-program-yellow); font-weight: 800; text-decoration: none; }
.gd-site-footer[hidden],
.gd-hotspots[hidden],
.gd-mobile-header[hidden],
.ped-desktop nav[hidden],
.ped-mobile-header[hidden],
.ped-mobile-nav[hidden],
.pto-desktop nav[hidden],
.pto-mobile-header[hidden],
.pto-mobile-nav[hidden],
.ped-responsive--footer,
.pto-responsive--footer { display: none !important; }

@media (max-width: 1280px) {
  .gd-program-header__inner { width: min(100% - 36px, 1220px); gap: 12px; }
  .gd-program-header__logo { width: 172px; flex-basis: 172px; }
  .gd-program-header__nav { gap: 14px; }
  .gd-program-header__nav a { font-size: 13px; }
  .gd-program-header__garden { min-width: 138px; padding-inline: 15px; }
  .gd-program-header__phone { min-width: auto; }
  .gd-program-header__phone-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .gd-program-header__phone small { display: none; }
  .gd-program-header__phone strong { font-size: 14px; }
  .gd-program-header__callback { min-width: 154px; padding-inline: 15px; font-size: 13px; }
}

@media (max-width: 1050px) {
  :root { --gd-program-header-height: 94px; }
  .gd-program-header { margin-bottom: 0; }
  body.gd-program-menu-open { overflow: hidden !important; }
  .gd-program-header__inner { width: min(100% - 28px, 920px); height: 82px; }
  .gd-program-header__logo { width: 130px; height: 82px; flex-basis: 130px; }
  .gd-program-header__nav,
  .gd-program-header__garden,
  .gd-program-header__phone,
  .gd-program-header__callback { display: none; }
  .gd-program-header__toggle { display: grid; width: 50px; height: 50px; margin-left: auto; padding: 12px; gap: 5px; place-content: center; background: var(--gd-program-green); border: 0; border-radius: 50%; cursor: pointer; }
  .gd-program-header__toggle span { display: block; width: 23px; height: 2px; background: #fff; border-radius: 2px; transition: .2s ease; }
  .gd-program-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gd-program-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .gd-program-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gd-program-header__mobile { position: fixed; top: calc(var(--gd-program-header-height) - 2px); right: 16px; left: 16px; z-index: 2; display: grid; max-height: calc(100vh - var(--gd-program-header-height) - 24px); padding: 18px; gap: 4px; overflow: auto; visibility: hidden; opacity: 0; background: var(--gd-program-cream); border: 2px solid #dce8d2; border-radius: 29px 33px 27px 31px; box-shadow: 0 18px 50px rgba(20, 71, 56, .2); transform: translateY(-10px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
  .gd-program-header__mobile.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .gd-program-header__mobile a,
  .gd-program-header__mobile button { padding: 13px 15px; color: var(--gd-program-green); font: 800 17px/1.2 inherit; text-align: left; text-decoration: none; background: transparent; border: 0; border-radius: 15px; }
  .gd-program-header__mobile a.is-active { background: #e6f0df; box-shadow: inset 5px 0 var(--gd-program-yellow); }
  .gd-program-header__mobile .gd-program-header__mobile-garden,
  .gd-program-header__mobile .gd-program-header__mobile-callback { display: flex; margin-top: 8px; justify-content: space-between; color: #fff; background: var(--gd-program-green); }
  .gd-program-header__mobile .gd-program-header__mobile-phone { color: var(--gd-program-green); background: #dcebc7; }
  .gd-mobile-header,
  .ped-mobile-header,
  .pto-mobile-header,
  .ped-mobile-nav,
  .pto-mobile-nav { display: none !important; }
  .gd-program-footer { padding: 78px 26px 32px; }
  .gd-program-footer__inner { grid-template-columns: 1fr 1fr 1fr; gap: 44px 28px; }
  .gd-program-footer__brand { grid-column: 1 / -1; }
  .gd-program-footer__brand h2,
  .gd-program-footer__social { display: none; }
}

@media (max-width: 680px) {
  .gd-program-header__inner { width: calc(100% - 22px); }
  .gd-program-header__logo { width: 112px; flex-basis: 112px; }
  .gd-callback-modal { padding: 12px; }
  .gd-callback-modal__dialog { padding: 34px 22px 26px; border-radius: 28px 32px 27px 30px; }
  .gd-callback-modal__form .row { grid-template-columns: 1fr !important; }
  .gd-program-footer { padding: 72px 22px 28px; }
  .gd-program-footer__inner { grid-template-columns: 1fr 1fr; gap: 38px 22px; }
  .gd-program-footer__brand,
  .gd-program-footer__contacts,
  .gd-program-footer__legal { grid-column: 1 / -1; }
  .gd-program-footer__brand img { width: 190px; }
  .gd-program-footer__phone { font-size: 28px; }
  .gd-program-footer__callback { max-width: 390px; }
  .gd-program-footer__legal { flex-direction: column; gap: 14px; }
}
