.site-header{min-height:80px}
.header-inner{
  transition:width .34s var(--motion),height .34s var(--motion),color .48s ease,background-color .48s ease,box-shadow .48s ease;
}
.site-header.has-scrolled .header-inner{width:calc(100% - 52px);height:60px}
.site-header .brand{transition:opacity .22s ease,transform .22s ease}
@media(hover:hover) and (pointer:fine){
  .site-header .brand:hover{opacity:.85;transform:translateY(-1px)}
}
@media(min-width:901px){
  .site-header.has-scrolled .header-inner{width:min(1100px,calc(100% - 120px))}
}
@media(max-width:900px){
  .site-header{min-height:76px}
  .site-header.has-scrolled .header-inner{height:58px}
}
@media(max-width:360px){
  .site-header.has-scrolled .header-inner{width:calc(100% - 32px)}
}
.hero{
  box-shadow:inset 0 1px #fff5,inset 0 -2px #8c2b221f,0 4px 6px #641e1214,0 16px 30px -18px #8a391863;
}
.hero::before{
  content:"";position:absolute;z-index:-1;width:clamp(285px,45vw,620px);aspect-ratio:1;
  bottom:-7%;left:5%;transform:rotate(-13deg);pointer-events:none;
  background:linear-gradient(143deg,#ffdaab45 4%,#ffbc8f20 57%,#9a27060b 100%);
  mask:url("./mark.svg") center/contain no-repeat;
}
.product{box-shadow:inset 0 1px #ffffff12,0 12px 23px -18px #000a}
.lab-actions .donation-trigger{
  min-height:46px;padding:10px 16px;border:1px solid #ffad7338;border-radius:12px;
  background:linear-gradient(114deg,#fa611c,#e53706);color:#fff;font-size:clamp(14px,1.4vw,18px);
  font-weight:750;line-height:1.2;text-align:center;box-shadow:inset 0 1px #ffcc8559,0 6px 13px #0002;
}
.lab-actions .donation-trigger:hover{background:linear-gradient(114deg,#ff7131,#ee460e);text-decoration:none}
@media(max-width:640px){
  .hero::before{left:-3%;bottom:2%}
  .lab-actions{gap:12px 16px}
}
@media(prefers-reduced-motion:reduce){
  .header-inner,.site-header .brand{transition:none}
  .site-header .brand:hover{transform:none}
}

.languages .language-options{
  --menu-motion:cubic-bezier(.22,1,.36,1);
  opacity:0;visibility:hidden;transform:translateY(-8px) scale(.96);pointer-events:none;
  transition:opacity .22s var(--menu-motion),transform .22s var(--menu-motion),visibility .22s,
    background-color .48s ease,color .48s ease,border-color .48s ease,box-shadow .48s ease;
}
.languages[open] .language-options{opacity:1;visibility:visible;transform:translateY(0) scale(1);pointer-events:auto}
.site-header .languages summary svg{transition:transform .22s cubic-bezier(.22,1,.36,1)}
@supports selector(details::details-content){
  .languages::details-content{content-visibility:visible}
}
@media(prefers-reduced-motion:reduce){
  .languages .language-options,.site-header .languages summary svg{transition:none}
}

.site-footer {
  position:relative;isolation:isolate;
  background:linear-gradient(115deg,#201e1b,#151515);
  box-shadow:inset 0 1px #fff1;
}
.site-footer .footer-inner {padding-block:clamp(25px,3.5vw,44px);}
.site-footer .brand,.site-footer .footer-links a {
  transition:opacity .22s ease,transform .28s cubic-bezier(.22,1,.36,1);
}
.footer-languages .language-options {z-index:3;}
@media (hover:hover) and (pointer:fine) {
  .site-footer :is(.brand,.footer-links a):hover {opacity:.82;transform:translateY(-1px);}
}
@media (prefers-reduced-motion:reduce) {
  .site-footer :is(.brand,.footer-links a):hover {transform:none;}
}

.site-footer .footer-links { gap:6px; }
.site-footer .footer-links a,.footer-languages summary {
  min-height:44px;display:inline-flex;align-items:center;padding:10px;border-radius:10px;
  border:0;background:transparent;color:#e6e1dd;font-size:15px;font-weight:750;text-decoration:none;
}
.site-footer .footer-links a:hover,.footer-languages summary:hover,.footer-languages[open] summary {
  background:#ffffff14;color:#fff;opacity:1;transform:none;
}
.footer-languages summary{justify-content:center;width:84px;gap:5px}
.footer-languages summary:has(.language-code:not(:empty)) .footer-current-flag{width:23px;height:17px}
html[lang=uk] .footer-current-flag{background-image:url("/teneta-home/uk-ios.png")}
html[lang=en] .footer-current-flag{background-image:url("/teneta-home/en-ios.png")}
html[lang=zh-CN] .footer-current-flag{background-image:url("/teneta-home/zh-ios.png")}
.footer-languages summary svg {transition:transform .22s cubic-bezier(.22,1,.36,1);}
.footer-languages .language-options {
  bottom:calc(100% + 8px);min-width:150px;padding:6px;background:#fffdfa;color:#191919;
  border-color:#25211a24;border-radius:12px;box-shadow:0 14px 36px #0002;
  transform-origin:bottom right;
}
.footer-languages .language-options button {color:inherit;min-height:39px;}
.footer-languages .language-options button:hover,.footer-languages .language-options button[aria-pressed=true] {background:#efebe5;}
.site-footer :focus-visible {outline-color:#c8c0b8;}
@media(max-width:480px) {
  .site-footer .footer-inner {grid-template-columns:1fr auto;gap:11px;padding-inline:4px;}
  .site-footer .footer-inner>.brand {grid-column:1;justify-self:start;}
  .site-footer .footer-languages {grid-column:2;}
  .site-footer .footer-links {grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap;}
}
@media(prefers-reduced-motion:reduce) {.footer-languages summary svg {transition:none;}}

.hero-art{width:90%;justify-self:center}
.ide-art{left:auto;right:5%;bottom:4%;width:82%;max-height:54%;object-position:right bottom}
@media(max-width:650px){.hero-art{margin:16px auto 0;width:94%}}

/* Footer language controls use the header menu, opening upwards. */
.site-footer .footer-languages summary{width:84px;height:34px;min-height:34px;padding:6px;gap:5px;border-radius:9px;font-size:15px;font-weight:800;transition:background-color .48s ease,color .48s ease}
.site-footer .footer-languages .language-options{min-width:125px;padding:6px;background:#1b1b1b;color:#fff;border-color:#ffffff24;box-shadow:0 14px 36px #0002;border-radius:12px}
.site-footer .footer-languages .language-options button{font-size:13px;font-weight:700;line-height:20px;min-height:40px;gap:10px;padding:9px 12px;border-radius:7px}
.site-footer .footer-languages .language-options button:is(:hover,[aria-pressed=true]){background:#ffffff14;color:#fff}
.site-footer .footer-languages .language-options img{width:23px;height:17px;object-fit:contain}
@media(max-width:900px){.site-footer .footer-languages summary{width:76px;height:44px;min-height:44px}.site-footer .footer-languages .language-options button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.site-footer .footer-languages summary{transition:none}}

/* The approved phone and notebook share one transparent Hero photograph. */
.hero-art.hero-devices{width:100%;max-width:650px;justify-self:center}
@media(max-width:650px){.hero-art.hero-devices{width:100%;margin:18px auto 0}}
