:root {
  --otk-blue: #1758b7;
  --otk-grey: #212121;
  --otk-border: #e6e5e5;
  --otk-white: #fff;
  --otk-header-h: 72px;
  --otk-font: "Nunito Sans", sans-serif;
  --otk-accent: #ffd904;
  --otk-footer: #111a25;
  --otk-muted: #5c5c5a;
  --otk-wash: #f7f7f7;
  --otk-hero: #1e2d3d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  font-family: var(--otk-font);
  color: var(--otk-grey);
  background: var(--otk-white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 40;
  background: var(--otk-white);
  width: 100%;
  container-type: inline-size;
  --otk-pad-l: clamp(20px, 2.778cqi, 40px);
  --otk-gap-l: clamp(16px, 2.778cqi, 40px);
  --otk-nav-px: clamp(6px, 0.833cqi, 12px);
  --otk-nav-fs: clamp(13px, 1.111cqi, 16px);
  --otk-nav-lh: clamp(18px, 1.528cqi, 22px);
  --otk-logo-w: 192px;
  --otk-logo-h: 38px;
  --otk-phone-px: clamp(12px, 1.667cqi, 24px);
}

.site-header__bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: var(--otk-header-h);
  width: 100%;
  padding-left: var(--otk-pad-l);
  background: var(--otk-white);
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 1;
}

.site-header__burger {
  display: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__burger img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.site-header__logo {
  display: flex;
  align-items: center;
  width: var(--otk-logo-w);
  height: var(--otk-logo-h);
  overflow: visible;
  flex-shrink: 0;
}

.site-header__logo img {
  display: block;
  width: var(--otk-logo-w);
  height: var(--otk-logo-h);
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  flex: 1;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: var(--otk-header-h);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item {
  position: relative;
}

.site-nav__item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 20px var(--otk-nav-px);
  border-top: 2px solid transparent;
  text-decoration: none;
  color: var(--otk-grey);
  font-size: var(--otk-nav-fs);
  font-weight: 500;
  line-height: var(--otk-nav-lh);
  letter-spacing: -0.32px;
  white-space: nowrap;
  position: relative;
}

.site-nav__item.is-current > a,
.site-nav__item:hover > a {
  border-top-color: var(--otk-blue);
  box-shadow: inset 0 14px 22px -16px rgb(23 88 183 / 0.7);
}

.site-nav__chevron {
  display: block;
  width: 20px;
  height: 20px;
}

/* Figma 908:5969 @1440. До 1001 (дальше бургер) — cqi шапки, не scale(). */
.site-nav__drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  width: min(345px, 23.958cqi);
  margin: 0;
  padding: min(16px, 1.111cqi);
  list-style: none;
  flex-direction: column;
  gap: min(8px, 0.556cqi);
  background: var(--otk-white);
  border-radius: 0 0 min(12px, 0.833cqi) min(12px, 0.833cqi);
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.35);
}

.site-nav__item:hover .site-nav__drop,
.site-nav__item:focus-within .site-nav__drop {
  display: flex;
}

.site-nav__drop a {
  display: flex;
  align-items: flex-start;
  gap: min(8px, 0.556cqi);
  padding: 0;
  height: auto;
  overflow: visible;
  text-decoration: none;
  color: var(--otk-grey);
  font-size: clamp(13px, 1.111cqi, 16px);
  font-weight: 500;
  line-height: clamp(18px, 1.528cqi, 22px);
  letter-spacing: -0.32px;
  white-space: normal;
}

.site-nav__drop img {
  display: block;
  width: min(20px, 1.389cqi);
  height: min(20px, 1.389cqi);
  flex-shrink: 0;
}

.site-nav__drop a.is-current {
  color: var(--otk-blue);
}

.site-nav__drop a.is-current span {
  text-decoration: underline;
}

@media (hover: hover) {
  .site-nav__drop a:hover,
  .site-nav__drop a:focus-visible {
    color: var(--otk-blue);
  }

  .site-nav__drop a:hover span,
  .site-nav__drop a:focus-visible span {
    text-decoration: underline;
  }
}

.site-header__right {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.site-lang {
  position: relative;
  border-left: 1px solid var(--otk-border);
  background: var(--otk-white);
}

.site-lang__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.32px;
  color: var(--otk-grey);
}

.site-lang__btn img {
  width: 20px;
  height: 20px;
}

.site-lang__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--otk-white);
  border: 1px solid var(--otk-border);
  min-width: 100%;
  z-index: 20;
}

.site-lang.is-open .site-lang__menu {
  display: block;
}

.site-lang__menu a {
  display: block;
  padding: 8px 20px;
  color: var(--otk-grey);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.site-phone {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--otk-header-h);
  padding: 0 var(--otk-phone-px);
  background-color: var(--otk-blue);
  background-image: none;
  color: var(--otk-white);
  text-decoration: none;
  font-size: clamp(12px, calc(16px + (100cqi - 1440px) * 0.0125), 16px);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: max-content;
  transition: background-image 0.2s ease;
}

@media (hover: hover) {
  .site-phone:hover,
  .site-phone:focus-visible {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  }
}

.site-phone__icon {
  display: block;
  width: 24px;
  height: 24px;
  overflow: hidden;
  flex-shrink: 0;
}

.site-phone__icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.site-phone__num {
  white-space: nowrap;
  flex-shrink: 0;
}

.site-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--otk-white);
  flex-direction: column;
  overflow: auto;
}

body.otk-menu-open {
  overflow: hidden;
}

.site-overlay__head {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 11px 20px 11px 20px;
  flex-shrink: 0;
}

.site-overlay__close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.site-overlay__close img {
  display: block;
  width: 28px;
  height: 28px;
}

.site-overlay__logo {
  display: block;
  width: 192px;
  height: 38px;
  flex-shrink: 0;
}

.site-overlay__logo img {
  display: block;
  width: 192px;
  height: 38px;
  object-fit: contain;
}

.site-overlay__nav {
  flex: 1;
  width: min(345px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.otk-acc__top,
.otk-acc__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.32px;
  color: var(--otk-grey);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.otk-acc__sum::-webkit-details-marker {
  display: none;
}

.otk-acc__ico {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.otk-acc__plus,
.otk-acc__minus {
  position: absolute;
  inset: 0;
  width: 30px;
  height: 30px;
}

.otk-acc__minus {
  display: none;
}

.otk-acc[open] .otk-acc__plus {
  display: none;
}

.otk-acc[open] .otk-acc__minus {
  display: block;
}

.otk-acc__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.otk-acc__list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  color: var(--otk-grey);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.32px;
}

.otk-acc__list img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.otk-acc__list a.is-current {
  color: var(--otk-blue);
}

.otk-acc__list a.is-current span {
  text-decoration: underline;
}

@media (hover: hover) {
  .otk-acc__list a:hover,
  .otk-acc__list a:focus-visible {
    color: var(--otk-blue);
  }

  .otk-acc__list a:hover span,
  .otk-acc__list a:focus-visible span {
    text-decoration: underline;
  }
}

.site-overlay__cta {
  width: min(361px, calc(100% - 32px));
  margin: auto auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-overlay__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 72px;
  border-radius: 12px;
  background-color: var(--otk-blue);
  background-image: none;
  color: var(--otk-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  transition: background-image 0.2s ease;
}

@media (hover: hover) {
  .site-overlay__phone:hover,
  .site-overlay__phone:focus-visible {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  }
}

.site-overlay__note {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: var(--otk-grey);
  text-align: center;
}

.site-main {
  width: 100%;
}

.site-stub {
  color: #888;
}

.site-footer {
  width: 100%;
  background: var(--otk-footer);
  color: var(--otk-white);
  border-top: 1px solid var(--otk-border);
  container-type: inline-size;
}

.site-footer__inner {
  max-width: 1440px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 37fr) minmax(0, 71fr);
  align-items: start;
  column-gap: clamp(40px, 13.89cqi, 200px);
  padding: clamp(40px, 5.56cqi, 80px);
}

.site-footer__brand {
  min-width: 0;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.site-footer__logo {
  display: block;
  width: 192px;
  height: 38px;
}

.site-footer__logo img {
  display: block;
  width: 192px;
  height: 38px;
  object-fit: contain;
}

.site-footer__about,
.site-footer__hours {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.site-footer__hours {
  margin-top: -12px;
}

.site-footer__tel {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.24px;
  color: var(--otk-white);
  text-decoration: none;
}

.site-footer__addr {
  margin: -12px 0 0;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--otk-white);
}

.site-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 72px;
  max-width: 100%;
  padding: 0 24px;
  border-radius: 12px;
  background-color: var(--otk-blue);
  background-image: none;
  color: var(--otk-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  transition: background-image 0.2s ease;
}

@media (hover: hover) {
  .site-footer__btn:hover,
  .site-footer__btn:focus-visible {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  }
}

.site-footer__grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4.167cqi, 60px);
  padding-top: 8px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.site-footer__h {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  color: var(--otk-accent);
  text-decoration: none;
  overflow-wrap: break-word;
}

.site-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col a:not(.site-footer__h) {
  color: var(--otk-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.32px;
  overflow-wrap: break-word;
}

.site-footer__col a:not(.site-footer__h):hover {
  color: var(--otk-blue);
  text-decoration: underline;
}

@media (max-width: 1000px) {
  .site-header {
    --otk-pad-l: 20px;
    --otk-gap-l: 20px;
  }

  .site-header__burger {
    display: block;
  }

  .site-header__left {
    gap: var(--otk-gap-l);
  }

  .site-nav {
    display: none;
  }

  .site-overlay:not([hidden]) {
    display: flex;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  body {
    padding-top: var(--otk-header-h);
  }

  body.admin-bar .site-header {
    top: 32px;
  }

  body.admin-bar {
    padding-top: calc(var(--otk-header-h) + 32px);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    row-gap: 40px;
    padding: 40px 16px;
  }

  .site-footer__brand {
    max-width: none;
  }

  .site-footer__grid {
    width: 100%;
    gap: 40px 24px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar {
    padding-top: calc(var(--otk-header-h) + 46px);
  }
}

@media (max-width: 767px) {
  .site-header {
    --otk-logo-w: 50px;
    --otk-logo-h: 50px;
  }

  .site-header__logo {
    overflow: hidden;
  }

  .site-header__logo img,
  .site-overlay__logo img {
    width: auto;
    height: 50px;
    max-width: none;
    margin: 0;
  }

  .site-overlay__logo {
    width: 256px;
    height: 50px;
    overflow: visible;
  }

  .site-phone {
    width: 72px;
    min-width: 72px;
    padding: 0;
    gap: 0;
  }

  .site-phone__num {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .site-footer__col a:not(.site-footer__h) {
    font-size: 14px;
    line-height: 20px;
  }
}

.otk-btn.otk-totop {
  position: fixed;
  right: clamp(16px, 1.67cqi, 24px);
  bottom: clamp(16px, 1.67cqi, 24px);
  z-index: 35;
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
  box-shadow: none;
}

.otk-btn.otk-totop[hidden] {
  display: none;
}

.otk-btn.otk-totop img {
  display: block;
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
  filter: brightness(0) invert(1);
}

/* the_content: WP ставит width/height и style="width:Npx" на img/caption */
.otk-page-split__content :is(img, figure, iframe, video, .wp-caption, .wp-block-image, .wp-block-embed),
.otk-seo :is(img, figure, iframe, video, .wp-caption, .wp-block-image, .wp-block-embed) {
  max-width: 100% !important;
  height: auto;
}

.otk-page-split__content .otk-post__thumb img {
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
}

.otk-page-split__content :is(figure, .wp-caption, .wp-block-image),
.otk-seo :is(figure, .wp-caption, .wp-block-image) {
  width: auto !important;
}
