@font-face {
  font-family: "LedokoL Display";
  font-style: normal;
  font-weight: 455;
  font-display: swap;
  src: url("/fonts/ledokol-display.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00AB, U+00BB, U+0400-045F, U+0490-0491, U+2013-2014, U+2019;
}

:root {
  --ledokol-serif: "LedokoL Display", Georgia, serif;
  --ledokol-deep: #081b29;
  --ledokol-ice: #edf5f7;
  --ledokol-border: #182f421f;
  --ledokol-accent: #f3d083;
  --ledokol-radius: clamp(1rem, 2vw, 1.6rem);
  --ledokol-shadow: 0 14px 36px #0b273011, 0 2px 6px #0b27300b;
  --ledokol-ease: cubic-bezier(.2, .75, .25, 1);
}

#top .hero-icebreaker .top {
  border: 1px solid #e7f5ff3d;
  border-radius: var(--ledokol-radius);
  background: #0a2033b8;
  padding-inline: clamp(.45rem, 1.55vw, 1.15rem);
  margin-top: clamp(.45rem, 1vw, 1rem);
  box-shadow: 0 8px 24px #040f1b40;
}

@supports (backdrop-filter: blur(12px)) {
  #top .hero-icebreaker .top { backdrop-filter: blur(12px); }
}

.hero-icebreaker .intro h1 {
  text-shadow: 0 3px 24px #061321b5;
}

#main.home-main > section h2,
.reset-page :is(h1,h2,h3),
.inner-hero h1,
.recipe-detail h1 {
  font-family: var(--ledokol-serif);
  font-weight: 455;
}
#main.home-main > section h2 {
  font-size: clamp(1.2rem, 5.1vw, 2.5rem);
}

#main.home-main > :is(#programs,#health,#reviews,#method) {
  background: linear-gradient(130deg, #f3f7f8, #e8f0ef);
}
#main.home-main > :is(#nutrition,#nutrients,#about,.sales-faq) {
  background: #fbfdfd;
}
#main.home-main > #support,
#main.home-main > #products,
#main.home-main > #telegram,
.reset-page .reset-formats {
  color: #fffaf2;
  background: radial-gradient(ellipse at 88% 0%, #24495a, transparent 65%), var(--ledokol-deep);
}
#main.home-main > #products .action,
#main.home-main > #telegram .channel-tag { color: #ffe5ac; }
#main.home-main > #products .action:hover { color: #fffaf2; }

.home-main :is(.card,.review-card),
.reset-page .reset-stages > li,
.reset-page :is(.reset-format,.reset-hero-art,.review-card),
.recipe-sample {
  min-width: 0;
  border: 1px solid var(--ledokol-border);
  border-radius: var(--ledokol-radius);
  background: #fff;
  box-shadow: var(--ledokol-shadow);
}

.home-main .card,
.recipe-sample { overflow: clip; }
#main.home-main #programs .card-copy > h3 {
  color: var(--ledokol-deep);
  font-size: clamp(1.5rem, 2.55vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.027em;
  overflow-wrap: anywhere;
}
#main.home-main #nutrition .card { background: #fff; }
#main.home-main .feature-grid > img { border-radius: var(--ledokol-radius); }
.home-main .health-carousel { padding-block: .4rem .85rem; }
.home-main .health-carousel > .card { scroll-margin-inline: .25rem; }

.site-head,
.reset-page .site-head {
  background: var(--ledokol-deep);
  border-bottom: 1px solid #cfedff2b;
}
.inner-hero,
.reset-page .reset-hero {
  background: radial-gradient(ellipse at 92% 0%, #dae9ef, transparent 68%), #f7fafb;
}
.reset-page .reset-hero-art {
  padding: .35rem;
  overflow: clip;
}
.reset-page .reset-hero-art img { border-radius: calc(var(--ledokol-radius) - .35rem); }
.reset-page .reset-format { background: #f8fcfe; }
.reset-page .reset-format-guided {
  border-color: #b2d2df;
  background: linear-gradient(145deg, #e6f4fa, #f9fcfe 62%);
}
.reset-page .reset-format .button {
  padding-inline: .85rem;
  border: 1px solid transparent;
  background: var(--ledokol-deep);
}
.reset-page .reset-format .button:hover { background: #24495a; }
.reset-page .reset-format-guided .button {
  background: var(--ledokol-accent);
  color: var(--ledokol-deep);
}
.reset-page .reset-format-guided .button:hover { background: #ffe2a7; }

.button { border-radius: .8rem; }
.language-switch a { border-radius: .45rem; }
.language-switch a[aria-current="page"] { background: #d4ecff1a; }
:is(.method-details,.diagnosis-details,.reset-directions,.sales-faq details)[open] > summary {
  text-decoration: underline;
  text-underline-offset: .23em;
}
:is(.card,.reset-format,.recipe-sample):focus-within {
  outline: 2px solid #507788;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.button,.health-controls button,.recipe-jump a,.language-switch a) {
    transition: translate .18s var(--ledokol-ease), background-color .2s ease, box-shadow .2s ease;
  }
  :is(.button,.health-controls button,.recipe-jump a):active { translate: 0 2px; }
  :is(.home-main .card,.reset-format,.recipe-sample) {
    transition: translate .24s var(--ledokol-ease), box-shadow .24s var(--ledokol-ease);
  }
  @media (hover: hover) and (pointer: fine) {
    :is(.home-main .card,.reset-format,.recipe-sample):hover {
      translate: 0 -3px;
      box-shadow: 0 18px 36px #0b27301a;
    }
    :is(.button,.health-controls button):hover { translate: 0 -2px; }
    :is(.button,.health-controls button):active { translate: 0 2px; }
  }
  .ledokol-enter { animation: ledokol-enter .48s var(--ledokol-ease) both; }
  @keyframes ledokol-enter {
    from { opacity: .45; transform: translateY(12px); }
  }
  @supports (animation-timeline: scroll()) {
    body::after {
      content: "";
      position: fixed;
      z-index: 60;
      inset: 0 0 auto;
      height: 3px;
      background: linear-gradient(90deg, #6fc5e2, #b9e5e9, #f3d083);
      transform-origin: left center;
      pointer-events: none;
      animation: ledokol-read linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes ledokol-read {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
  }
}

@media (max-width: 600px) {
  #top .hero-icebreaker .top { margin-top: .4rem; }
  #main.home-main .health-carousel > .card { border-radius: .9rem; }
}

@media (max-width: 420px) {
  #top .hero-icebreaker .top .site-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  #top .hero-icebreaker .top .site-nav a {
    grid-column: span 2;
    white-space: normal;
  }
  #top .hero-icebreaker .top .site-nav a:nth-child(n + 4) { grid-column: span 3; }
}
