/* ============== Buttons ============== */
/* Animate transform only (GPU); animating left forced layout on every frame
   (PSI: forced reflow). */
@keyframes btn-sheen {
    0%      { transform: translate(0, -50%) rotate(45deg); }
    30%     { transform: translate(460px, -50%) rotate(45deg); }
    30.01%  { transform: translate(0, -50%) rotate(45deg); }
    100%    { transform: translate(0, -50%) rotate(45deg); }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    font-family: var(--font-button);
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius-md);
    transition: opacity .2s, transform .2s;
    position: relative;
    overflow: hidden;
    /* Longer translated labels wrap inside the button instead of being clipped
       by overflow: hidden. */
    overflow-wrap: anywhere;
}

@media (max-width: 768px){
    .btn {
        font-size: 16px;
    }
}

.btn:hover { opacity: .85; }

.btn--yellow { background: var(--color-accent); color: var(--color-text); }
.btn--yellow-200 { min-width: 200px; }
.btn--yellow-240 { min-width: 240px; }
.btn--outline  { background: var(--color-text); color: #fff; }
.btn--black  { background: var(--color-text); color: #fff; }
.btn--white  { background: var(--color-bg); color: var(--color-text); }
.btn--ghost  { background: transparent; color: var(--color-text); }
.btn--gray   { background: #f3f3f3; color: var(--color-text); }
.btn--grey   { background: #f3f3f3; color: var(--color-text); }



.btn--yellow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -40px;
    width: 40px;
    height: 73px;
    transform: translateY(-50%) rotate(45deg);
    background: linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(248,251,255,.25) 45%, rgba(234,244,255,.80) 50%, rgba(248,251,255,.25) 55%, rgba(255,255,255,0) 100%);
    animation: btn-sheen 4s linear infinite;
    will-change: transform;
}

.btn--black::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -70px;
    width: 40px;
    height: 73px;
    transform: translateY(-50%) rotate(45deg);
    background: linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.25) 45%, rgba(255,255,255,.80) 50%, rgba(255,255,255,.25) 55%, rgba(255,255,255,0) 100%);
    animation: btn-sheen 4s linear infinite;
    will-change: transform;
}


/* ============== Header ============== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
}

/* Anchor scrolling (IDs used by aria-labelledby, etc.): prevents headings
   from hiding beneath the fixed header. Mobile override: assets/css/mobile.css. */
h2[id], h3[id], h4[id] {
    scroll-margin-top: 100px;
}
.header__container {
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--color-line);
}
@media (max-width: 768px){
      .header__container {
        padding: 15px var(--container-pad);
         border-bottom: none;
      }
}


.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    display: block;
    width: 120px;
    height: auto;
}

.header-nav__list { display: flex; gap: 24px; align-items: center; list-style: none; margin: 0; padding: 0; }
.header-nav__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.header-nav__link, .header-nav__toggle {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 4px; min-height: 44px; border: 0; background: transparent; color: #121212;
    font-family: "SF Pro Display", Helvetica, sans-serif; font-size: 16px;
    font-weight: 600; line-height: 1.4; text-align: left; cursor: pointer;
}
.header-nav__list > .header-nav__item > .header-nav__link { white-space: nowrap; }
.header-nav__toggle { justify-content: center; min-width: 36px; min-height: 44px; }
.header-nav__link:focus-visible, .header-nav__toggle:focus-visible { outline: 2px solid #121212; outline-offset: 2px; border-radius: 4px; }
.header-nav__chevron { width: 19px; height: 19px; flex-shrink: 0; transition: transform .2s; transform: rotate(180deg); }
.header-nav__item--open > button .header-nav__chevron { transform: rotate(0deg); }
.header-nav__submenu {
    display: none; position: absolute; top: 100%; left: var(--submenu-shift, 0px);
    width: 320px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 110px);
    overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box;
    margin: 0; padding: 12px; list-style: none; border-radius: 10px;
    background: #fff14e; box-shadow: 2px 4px 18px rgba(0,0,0,.15); z-index: 1;
}
.header-nav__item--open > .header-nav__submenu { display: block; }
/* Panels with flyouts must not clip their descendants. Leaf panels can scroll. */
.header-nav__submenu:has(.header-nav__submenu) { overflow: visible; max-height: none; }
.header-nav__submenu .header-nav__link { flex: 1; min-width: 0; font-weight: 400; padding: 10px 8px; overflow-wrap: anywhere; white-space: normal; }
.header-nav__submenu .header-nav__link:hover, .header-nav__submenu .header-nav__toggle:hover { background: rgba(0,0,0,.06); border-radius: 6px; }
.header-nav__submenu .header-nav__submenu {
    top: var(--submenu-top, 0px); left: 100%; right: auto;
    width: 320px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px);
}
.header-nav__submenu .header-nav__submenu--left { left: auto; right: 100%; }
.header-nav__submenu > li > button .header-nav__chevron { transform: rotate(90deg); }
.header-nav__submenu > li:has(> .header-nav__submenu--left) > button .header-nav__chevron { transform: rotate(270deg); }
@media (prefers-reduced-motion: reduce) { .header-nav__chevron { transition: none; } }


.header__actions { display: flex; align-items: center; gap: 16px; }
.header__login { font-weight: 700; padding: 13px 20px; background-color: #F4F4F4; border-radius: 10px; }
.header__contacts { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.header__phone { font-weight: 700; line-height: normal;   }
.header__email { color: var(--color-text); font-size: 16px;  font-weight: 700; text-align: right; line-height: normal;}

.header__burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.header__burger span { display: block; width: 24px; height: 2px; background: var(--color-text); }

@media (max-width: 1200px) {
    .header-nav, .header__contacts { display: none; }
    .header__burger { display: flex; border-radius: 8px; background: #FFEB05; }
    .header__actions { margin-left: auto; }
}

@media (max-width: 768px) {
    .header__actions { display: none; padding: 6px; }
}

/* ============== Footer ============== */
.footer {
    background: var(--color-text);
    color: #fff;
    padding: 60px 0 30px;
}
.footer__container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}
.footer__top {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    margin-bottom: 80px;
}

.footer__logo img {
    width: 100%;
}

.footer__brand { display: flex; flex-direction: column; gap: 20px; width: 180px; flex-shrink: 0; }
.footer__cta { align-self: flex-start; }

.footer__columns {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 25px;
}
.footer-col__title { font-size: 16px; font-weight: 500; color: #fff04e; margin-bottom: 10px; }
.footer-col__list { display: flex; flex-direction: column; gap: 5px; }
.footer-col__list a {
    font-size: 16px;
    color: rgba(255,255,255,1);
    transition: color .2s;
}
.footer-col__list a:hover { color: #fff; }
.footer-col__address {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 16px;
}

.footer-col__link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: #fff;
}
.footer-col__text--strong { color: #fff; font-weight: 600; }

.footer__socials { display: flex; flex-direction: row; gap: 10px; }
.footer__social {
    width: 30px;
    height: 30px;
}

.footer__bottom { display: flex; flex-direction: column; gap: 20px; }
.footer__legal-list { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; list-style: disc; }
.footer__legal-list li { text-decoration: underline; padding-right: 3px;}
.footer__legal-list li:first-child { list-style: none;}
.footer__legal-list a { color: #fff;}
.footer__about { font-size: 14px; color: #fff; line-height: normal; }
.footer__copyright { font-size: 14px; color: #fff; }

@media (max-width: 1024px) {
    .footer__columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .footer { padding: 40px 0 20px; }
    .footer__columns { grid-template-columns: 1fr; gap: 30px; }
}

/* ============== Breadcrumbs ============== */
.breadcrumbs { padding: 20px 0; font-size: 14px; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs__item { color: var(--color-text-muted); font-size: 16px; }
.breadcrumbs__item:not(:last-child)::after { content: " / "; margin-left: 6px; color: var(--color-text-muted); }
.breadcrumbs__link { color: var(--color-text-muted); }
.breadcrumbs__link:hover { color: var(--color-text); }
.breadcrumbs__item[aria-current="page"] { color: var(--color-text); }

/* ============== Mobile menu ============== */
.mobile-menu {
    position: fixed; inset: 0; z-index: 200; background: #000;
    opacity: 0; visibility: hidden; transition: opacity .25s; overflow: hidden;
}
.mobile-menu--open { opacity: 1; visibility: visible; }
.mobile-menu__inner {
    width: 100%; max-width: 100%; margin: 0 auto; box-sizing: border-box;
    height: 100vh; height: 100dvh; min-height: 0;
    padding: 0 16px max(20px, env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 16px; background: #000;
}
.mobile-menu__top, .mobile-menu__actions, .mobile-menu__bottom { flex-shrink: 0; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0px 0; }
.mobile-menu__logo img { width: 120px; height: 32px; }
@media (max-width: 480px){
     .mobile-menu__logo img {
        width: 105px;
        height: 30.001px;
     }
}

.mobile-menu__close {
    width: 35px; height: 35px;
    font-size: 32px; line-height: 1;
    color: var(--color-text);
}
.mobile-menu__list, .mobile-menu__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu__list li { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.mobile-menu__list li > a, .mobile-menu__list li > button {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex: 1; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 10px 8px;
    border: 0; background: transparent; color: #fff; text-align: left;
    font-family: "SF Pro Display", Helvetica, sans-serif; font-size: 18px; font-weight: 500;
    line-height: 1.45; white-space: normal; overflow-wrap: anywhere; cursor: pointer;
}
.mobile-menu__list > li > a, .mobile-menu__list > li > button { font-size: 22px; font-weight: 700; }
.mobile-menu__list li > .mobile-menu__toggle { flex: 0 0 44px; justify-content: center; }
.mobile-menu__list li > a:focus-visible, .mobile-menu__list li > button:focus-visible { outline: 2px solid #fff14e; outline-offset: -2px; border-radius: 4px; }
.mobile-menu__chevron { width: 19px; height: 19px; flex-shrink: 0; transition: transform .2s; transform: rotate(180deg); }
.mobile-menu__list li.is-open > button .mobile-menu__chevron { transform: rotate(0deg); }
.mobile-menu__list .sub-menu {
    display: none; position: static; flex: 0 0 calc(100% - 8px); min-width: 0;
    box-sizing: border-box; margin: 4px 0 8px 8px; padding-left: 12px;
    border-left: 1px solid #555;
}
.mobile-menu__list li.is-open > .sub-menu { display: block; }
.mobile-menu__list .sub-menu .sub-menu { padding-left: 8px; }
.mobile-menu__list .sub-menu .sub-menu a { font-size: 16px; }
.mobile-menu__nav { flex: 1 1 0; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.mobile-menu[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .mobile-menu__chevron { transition: none; } }


.mobile-menu__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 440px; align-self: center; }
.mobile-menu__actions .btn {
    flex: 1 1 130px; min-width: 0; text-align: center; box-sizing: border-box;
    width: 100%;
}
.mobile-menu__bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.mobile-menu__contacts { display: flex; flex-direction: column; align-items: center; gap: 8px; font-style: normal; }
.mobile-menu__contacts a { font-family: "SF Pro Display", Helvetica; font-size: 14px; font-weight: 400; color: #fff; line-height: normal; }
.mobile-menu__socials { display: flex; gap: 10px; align-items: center; }
.mobile-menu__social { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
body.body--menu-open { overflow: hidden; }

/* ============== Cookie banner ============== */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px;
    z-index: 150;
    background: var(--color-text); color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    transform: translateY(20px); opacity: 0;
    transition: transform .25s, opacity .25s;
    max-width: 720px; margin: 0 auto;
}
.cookie-banner--show { transform: translateY(0); opacity: 1; }
.cookie-banner__inner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    padding: 16px 20px;
}
.cookie-banner__text { font-size: 14px; line-height: 1.5; flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.cookie-banner__text a { color: var(--color-accent); text-decoration: underline; }
.cookie-banner__btn { flex-shrink: 0; }

/* ===== Image alignment and sizing in WordPress WYSIWYG content ===== */
.alignnone { margin: 1em 0; }

img.aligncenter,
figure.aligncenter { display: block; margin-left: auto; margin-right: auto; }
figure.aligncenter { width: -moz-fit-content; width: fit-content; max-width: 100%; }

img.alignleft,
figure.alignleft { float: left; margin: 0.4em 1.6em 1em 0; max-width: 100%; }

img.alignright,
figure.alignright { float: right; margin: 0.4em 0 1em 1.6em; max-width: 100%; }

/* When an image is wrapped in an aligned <figure>, the figure handles spacing
   and wrapping; the nested <img> must not duplicate them. */
figure.alignleft img,
figure.alignright img,
figure.aligncenter img { float: none; margin: 0; max-width: 100%; }

/* Large/Medium/Small sizes preserve the selected width with automatic height */
img.size-thumbnail, img.size-medium, img.size-large, img.size-full { height: auto; }

/* Clear floats after floated images inside WYSIWYG containers */
.wysiwyg-block__body::after,
.wysiwyg::after,
.decker-post__content::after,
.cta-inline__text::after,
.features__text::after,
.features__item-text::after,
.video-block__text::after { content: ""; display: table; clear: both; }
