body {
  margin: 0;
  font-synthesis: none;
}

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

  &:focus:not(:focus-visible) {
    outline: none;
  }

  &:focus-visible {
    outline: var(--ids__border-width-m) solid var(--ids__link);
    outline-offset: 2px;
  }
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0
}

img {
  display: block;
  width: 100%;
}



/* Fonts */
@font-face {
  font-family: "Medeo Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/MedeoSansVariable.woff2") format("woff2");
}

@font-face {
  font-family: "Medeo Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/MedeoSansVariable-Italic.woff2") format("woff2");
}

body {
  font-family: "Medeo Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  font-size: .9em;
  line-height: var(--ids__density);
  letter-spacing: .3px;

  @media (width < 768px) {
    font-size: 1em;
  }
}

:root {
  --ids__density: 1.33;

  @media (width < 768px) {
      --ids__density: 1.36;
  }
}

i {
  font-style: italic;
  font-weight: 200;
}


/* Fluid typography: отдельные диапазоны для телефона и десктопа. */
html {
  --mobile-font-size-min: 16;
  --mobile-font-size-max: 32;
  --desktop-font-size-min: 10.5;
  --desktop-font-size-max: 25;
  --mobile-viewport-min: 320;
  --mobile-desktop-breakpoint: 768;
  --desktop-viewport-max: 1500;

  font-size: calc(var(--mobile-font-size-min) * 1px);

  @media screen and (min-width: 320px) {
    font-size: calc(var(--mobile-font-size-min) * 1px + (var(--mobile-font-size-max) - var(--mobile-font-size-min)) * ((100vw - var(--mobile-viewport-min) * 1px) / (var(--mobile-desktop-breakpoint) - var(--mobile-viewport-min))));
  }

  @media screen and (min-width: 768px) {
    font-size: calc(var(--desktop-font-size-min) * 1px + (var(--desktop-font-size-max) - var(--desktop-font-size-min)) * ((100vw - var(--mobile-desktop-breakpoint) * 1px) / (var(--desktop-viewport-max) - var(--mobile-desktop-breakpoint))));
  }

  @media screen and (min-width: 1500px) {
    font-size: calc(var(--desktop-font-size-max) * 1px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/* Палитра — сырые значения цвета, не зависящие от темы.
   Это источник правды для цвета: семантические токены в colors.css
   ссылаются сюда и нигде не используют rgb()-значения напрямую. */

:root {
  --ids__color-gray-100: rgb(238, 240, 242);
  --ids__color-gray-200: rgb(220, 221, 223);
  --ids__color-gray-400: rgb(153, 156, 160);
  --ids__color-gray-500: rgb(115, 120, 125);
  --ids__color-gray-600: rgb(85, 88, 92);
  --ids__color-gray-700: rgb(55, 58, 62);
  --ids__color-gray-800: rgb(32, 33, 36);
  --ids__color-gray-850: rgb(24, 24, 24);
  --ids__color-gray-900: rgb(18, 18, 20);
  --ids__color-gray-950: rgb(5, 5, 5);

  --ids__color-blue-350: rgb(90, 174, 243);
  --ids__color-blue-450: rgb(60, 130, 250);
  --ids__color-blue-500: rgb(0, 100, 240);

  --ids__color-green-350: rgb(97, 253, 115);
  --ids__color-green-450: rgb(40, 215, 40);
  --ids__color-green-500: rgb(0, 200, 0);
  --ids__color-green-600: rgb(30, 170, 60);

  --ids__color-red-450: rgb(255, 70, 95);
  --ids__color-red-500: rgb(253, 47, 75);

  --ids__color-yellow-500: rgb(255, 225, 0);
}

/* Семантические цвета — каждое значение указывает на палитру.
   Именование функциональное: для чего используется, так и называется.
   Здесь настроена постоянная тёмная тема сообщества. */

:root {
  color-scheme: dark;

  --ids__text: var(--ids__color-gray-100);
  --ids__text-caption: var(--ids__color-gray-100);
  --ids__link: var(--ids__color-blue-350);
  --ids__link-another: var(--ids__color-gray-100);
  --ids__hover: var(--ids__color-green-350);
  --ids__accent: var(--ids__color-green-350);
  --ids__code: var(--ids__color-gray-500);
  --ids__mark: var(--ids__color-yellow-500);
  --ids__surface: var(--ids__color-gray-800);
  --ids__background: var(--ids__color-gray-900);

  --ids__border: color-mix(in srgb, var(--ids__text) 20%, transparent);

  --ids__error: var(--ids__color-red-500);
  --ids__success: var(--ids__color-green-600);
}

body {
  color: var(--ids__text);
  background-color: var(--ids__background);
}

/* Именованные шкалы размеров.

   Спейсеры и гэпы — в rem: считаются от корневого (флюидного) фонт-сайза
   и не зависят от фонт-сайза окружения.
   Радиусы — в em: скругление масштабируется вместе с текстом компонента. */

:root {
  --ids__spacer-xs: calc(var(--ids__density) * 0.3rem);
  --ids__spacer-s: calc(var(--ids__density) * 0.7rem);
  --ids__spacer-m: calc(var(--ids__density) * 1.4rem);
  --ids__spacer-l: calc(var(--ids__density) * 2.4rem);
  --ids__spacer-xl: calc(var(--ids__density) * 4rem);

  --ids__gap-s: 0.5rem;
  --ids__gap-m: 1rem;
  --ids__gap-l: 1.5rem;

  --ids__radius-s: 0.2em;
  --ids__radius-m: 0.3em;
  --ids__radius-pill: 9999px;

  /* Радиус сквиркла .ids__rounded. Можно переопределять локально. */
  --ids__radius: 3.5em;

  --ids__border-width-s: 1px;
  --ids__border-width-m: 2px;

  --ids__duration-instant: 0s;
  --ids__duration-fast: 0.1s;
  --ids__duration-base: 0.5s;
  --ids__easing-base: ease;
}
.ids__space {
  height: var(--ids__spacer-s);

  &.XS {
    height: var(--ids__spacer-xs);
  }

  &.S {
    height: var(--ids__spacer-s);
  }

  &.M {
    height: var(--ids__spacer-m);
  }

  &.L {
    height: var(--ids__spacer-l);
  }

  &.XL {
    height: var(--ids__spacer-xl);
  }
}

.ids__wrapper {
  position: relative;
  width: 66%;
  margin: 0 auto 0 8%;

  @media (width < 768px) {
    width: 100%;
    margin: 0;
    padding: 0 calc(var(--ids__density) * 0.6em);
  }

  &.M {
    width: 70%;

    @media (width < 768px) {
      width: 100%;
      padding: 0 calc(var(--ids__density) * 0.6em);
    }
  }

  &.L {
    width: 78%;

    @media (width < 768px) {
      width: 100%;
      padding: 0 calc(var(--ids__density) * 0.6em);
    }
  }

  &.XL {
    width: 90%;
    margin: 0 auto 0 1%;
    padding: 0;

    @media (width < 768px) {
      width: 100%;
      margin: 0;
      padding: 0 calc(var(--ids__density) * 0.6em);
    }
  }

  &.XXL {
    width: 100%;

    @media (width < 768px) {
      padding: 0;
    }
  }

  & .ids__text-width {
    width: 85%;

    @media (width < 768px) {
      width: 100%;
    }
  }
}

.ids__sequence {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: calc(var(--ids__density) * 0.4rem);
  --gap: 0rem;
  gap: var(--gap);

  &.gap-L {
    --gap: var(--ids__gap-l);
    margin-bottom: calc(var(--gap) * 1.5);
  }

  &.gap-M {
    --gap: var(--ids__gap-m);
    margin-bottom: calc(var(--gap) * 1.5);
  }

  &.gap-S {
    --gap: var(--ids__gap-s);
    margin-bottom: calc(var(--gap) * 1.5);
  }

  .ids__sequence-item {
    --columns: 4;
    width: calc((100% - var(--gap) * (var(--columns) - 1)) / var(--columns));

    @media (width < 768px) {
      --columns: 2;
    }
  }

  &.XL {
    .ids__sequence-item {
      --columns: 2;

      @media (width < 768px) {
        --columns: 1;
      }
    }
  }

  &.L {
    .ids__sequence-item {
      --columns: 3;

      @media (width < 768px) {
        --columns: 1;
      }
    }
  }

  &.S {
    .ids__sequence-item {
      --columns: 6;

      @media (width < 768px) {
        --columns: 3;
      }
    }
  }
}

.ids__rounded {
  border-radius: var(--ids__radius);
  corner-shape: squircle;
  overflow: hidden;
}

@supports not (corner-shape: squircle) {
  .ids__rounded {
    border-radius: 0;
    border-radius: initial;
    mask:
      url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="m0,1 c0,-1 0,-1 1,-1 l99,0 l0,100 l-100,0 Z"/></svg>') top left / calc(var(--ids__radius) * 100) no-repeat intersect,
      url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="m0,0 l99,0 c1,0 1,0 1,1 l0,99 l-100,0 l0,-100 Z"/></svg>') top right / calc(var(--ids__radius) * 100) no-repeat intersect,
      url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="m0,0 l100,0 l0,99 c0,1 -0,1 -1,1 l-99,0 Z"/></svg>') bottom right / calc(var(--ids__radius) * 100) no-repeat intersect,
      url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="m0,0 l100,0 l0,100 l-99,0 c-1,0 -1,-0 -1,-1 Z"/></svg>') bottom left / calc(var(--ids__radius) * 100) no-repeat intersect;
  }
}

header {
  padding: 0;
}

footer {
  padding: 0;
}

.ids {
  & a {
    color: var(--ids__link);
    text-decoration: underline;
    will-change: color;
    text-decoration-thickness: var(--ids__border-width-s);
    text-underline-offset: 0.2em;
    text-decoration-skip-ink: none;
    text-decoration-color: color-mix(in srgb, currentColor 20%, transparent);
    transition:
      color var(--ids__duration-base) var(--ids__easing-base),
      text-decoration var(--ids__duration-base) var(--ids__easing-base);

    &:hover {
      color: var(--ids__hover);
      text-decoration-color: color-mix(in srgb, currentColor 20%, transparent);
      transition:
        color var(--ids__duration-instant) var(--ids__easing-base),
        text-decoration var(--ids__duration-instant) var(--ids__easing-base);
    }
  }

  .ids__promo-link {
    display: flex;

    & a {
      display: inline-block;
      padding: 0.45em 0.6em 0.5em;
      border: var(--ids__border-width-s) solid color-mix(in srgb, var(--ids__text) 50%, transparent);
      border-right: 0;

      &:hover {
        background-color: color-mix(in srgb, var(--ids__hover) 10%, transparent);
      }

      &:first-child {
        border-radius: var(--ids__radius-m) 0 0 var(--ids__radius-m);
        padding-left: 1em;
      }

      &:last-child {
        border-radius: 0 var(--ids__radius-m) var(--ids__radius-m) 0;
        padding-right: 1em;
        border-right: var(--ids__border-width-s) solid color-mix(in srgb, var(--ids__text) 50%, transparent);
      }

      &.active {
        color: var(--ids__text);
        background-color: color-mix(in srgb, var(--ids__text) 5%, transparent);
        -webkit-text-decoration: none;
        text-decoration: none;
        cursor: default;
      }

      &.active::after {
        content: " ↓";
      }
    }
  }

  & p {
    margin-top: 0;
    margin-bottom: calc(var(--ids__density) * 0.4em);

    &.loud {
      font-size: 2em;
      line-height: 1.2;
    }

    &.huge {
      font-size: 6em;
      line-height: 1;

      @media (max-width: 767px) {
        &.huge {
          font-size: 3.2em;
        }
      }

      @media (max-width: 549.98px) {
        &.huge {
          font-size: 2.8em;
        }
      }
    }
  }

  & h1,
  & h2,
  & h3,
  & h4,
  & h5,
  & h6 {
    margin: 0;
    font-weight: 600;
  }

  & h1 {
    font-size: 3.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: calc(var(--ids__density) / 1.3);
    margin-bottom: 0.4em;

    @media (width < 768px) {
      font-size: 2.6em;
    }

    &.S {
      font-size: 2.4em;
      font-weight: 600;
      line-height: 1;
    }
    &.XS {
      font-size: 1.5em;
      font-weight: 600;
    }
  }

  & h2 {
    font-size: 2.4em;
    font-weight: 650;
    line-height: calc(var(--ids__density) / 1.3);
    margin-bottom: 0.5em;

    &.XS {
      font-size: 1.5em;
      font-weight: 600;
    }
  }

  & h3 {
    font-size: 1.5em;
    line-height: calc(var(--ids__density) / 1.1);
    margin-bottom: 0.6em;
  }

  & h4 {
    font-size: 1.1em;
    line-height: var(--ids__density);
    margin-bottom: 0.5em;
  }

  & h5 {
    font-size: 1em;
    line-height: var(--ids__density);
    margin-bottom: 0.5em;
  }

  & h6 {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: var(--ids__density);
    margin-bottom: 0.5em;
  }

  & strong,
  & b {
    font-weight: 800;
  }

  & mark {
    color: var(--ids__color-gray-950);
    background-color: var(--ids__mark);
  }

  & ul,
  & ol {
    margin: 0 0 calc(var(--ids__density) * 0.75em) 0;
    padding: 0;

    & li {
      position: relative;
      margin-bottom: calc(var(--ids__density) * 0.5em);
    }
  }

  & ul {
    & li {
      list-style-type: none;
      padding-left: calc(var(--ids__density) * 0.75em);

      &:before {
        position: absolute;
        left: 0;
        content: "⋅ ";
      }
    }
  }

  & ol {
    & li {
      list-style: decimal inside none;
    }
  }

  & blockquote {
    font-size: 1.4em;
    line-height: var(--ids__density);
    margin: 0;
    padding-left: calc(var(--ids__density) * 0.75em);
    margin-bottom: calc(var(--ids__density) * 1em);
  }

  & aside {
    margin: 0;
    margin-bottom: calc(var(--ids__density) * 0.5em);
    background: var(--ids__surface);
    padding-top: calc(var(--ids__density) * 0.4em);
    padding-right: calc(var(--ids__density) * 1.5em);
    padding-bottom: calc(var(--ids__density) * 0.4em);
    padding-left: calc(var(--ids__density) * 0.5em);
    border-radius: var(--ids__radius-s);

    @media (width < 768px) {
      padding-right: calc(var(--ids__density) * 0.75em);
    }
  }

  & code {
    font-size: 0.9em;
    font-family: "Medeo Sans";
    letter-spacing: 0.02em;
    font-weight: 450;
    padding: 0.1em 0.25em;
    border-radius: var(--ids__radius-s);
    color: var(--ids__code);
    border: var(--ids__border-width-s) solid color-mix(in srgb, var(--ids__code) 10%, transparent);
    background: color-mix(in srgb, var(--ids__code) 10%, transparent);
  }

  & figure {
    margin: 0 0 calc(var(--ids__density) * 0.5em) 0;

    &.XXS,
    &.ids__figure__XXS {
      width: 25%;
    }
    &.XS,
    &.ids__figure__XS {
      width: 50%;
    }
    &.S,
    &.ids__figure__S {
      width: 75%;
    }

    & figcaption {
      margin-top: calc(var(--ids__density) * 0.25em);
      font-size: 0.8em;
      line-height: var(--ids__density);
      color: var(--ids__text-caption);
    }
  }

  & details {
    padding: 0.5em;
    cursor: pointer;
    border-radius: var(--ids__radius);

    & summary {
      padding-bottom: var(--ids__micro-padding);
    }
  }

  & table {
    border-spacing: 0;
    background-color: inherit;

    @media (max-width: 767px) {
      font-size: 0.7em;
    }

    thead {
      background-color: inherit;
    }

    tr {
      background-color: inherit;

      & th {
        position: sticky;
        top: 0px;
        text-align: left;
        border-bottom: var(--ids__border-width-m) solid var(--ids__text);
        padding-bottom: 0.3em;
        background-color: inherit;

        @media (max-width: 767px) {
          padding-top: 0.8em;
        }
      }

      & td {
        padding: 0.8em 0.5em 1em 0;
        border-bottom: var(--ids__border-width-s) solid color-mix(in srgb, var(--ids__text) 50%, transparent);
        vertical-align: top;
      }

      &:last-child {
        & td {
          border-bottom: none;
        }
      }
    }
  }

  & hr {
    border-top-color: var(--ids__border);
    border-bottom: 0;
  }
}

html {
  /* --mobile-font-size-max: 16;
  --desktop-font-size-min: 16; */
  /* Ширина страницы не меняется при исчезновении полосы прокрутки. */
  scrollbar-gutter: stable;
}

/* На больших экранах врапперы сохраняют пропорции и положение слева. */
body {
  max-width: 1500px;
  margin-inline: 0 auto;
}

/* HTML width/height сохраняют пропорции до загрузки картинки.
   При изменении ширины контейнера высота должна пересчитываться. */
.ids img {
  height: auto;
}

/* Фокус после навигации нужен для клавиатуры, но не для рамки вокруг main. */
#content:focus {
  outline: none;
}

@media (width < 768px) {
  .ids figure.XS,
  .ids figure.XXS {
    width: 100%;
  }
}

.ids__wrapper.site-nav-wrapper {
  width: 97%;
  margin: 0 auto;
  padding: 0;
}

/* Works both on direct opening and when navigation swaps the calendar into the page. */
body:has([data-calendar]) [data-community-intro] {
  display: none;
}

.site-nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--ids__gap-s) var(--ids__gap-m);
  font-weight: 400;
}

.site-nav-chat {
  margin-inline-start: auto;
}

.site-nav-chat-short {
  display: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ids__text);
  text-decoration: none;
}

.site-header .community-description {
  margin: 0;
  font-weight: 400;
}

.community-description strong {
  font-weight: 700;
}

/* Время прорисовки каждого рисунка. Меньше число — быстрее. */
.site-header {
  --heart-l-time: .9s;
  --heart-s-time: .2s;
  --heart-m-time: .5s;
  --figma-time: .5s;
  --brow-left-time: .12s;
  --brow-right-time: .12s;
  --eye-left-time: .12s;
  --eye-right-time: .12s;
  --moustache-time: .12s;
  --beard-time: .12s;
  --bracket-left-time: .5s;
  --php-time: .5s;
  --bracket-right-time: .5s;
  --crossout-time: .5s;
}

.header-heart-large-svg {
  --draw-time: var(--heart-l-time);
}

.header-heart-small-svg {
  --draw-time: var(--heart-s-time);
}

.header-heart-medium-svg {
  --draw-time: var(--heart-m-time);
}

.header-figma-svg {
  --draw-time: var(--figma-time);
}

.header-brow-left-svg {
  --draw-time: var(--brow-left-time);
}

.header-brow-right-svg {
  --draw-time: var(--brow-right-time);
}

.header-eye-left-svg {
  --draw-time: var(--eye-left-time);
}

.header-eye-right-svg {
  --draw-time: var(--eye-right-time);
}

.header-moustache-svg {
  --draw-time: var(--moustache-time);
}

.header-beard-svg {
  --draw-time: var(--beard-time);
}

.header-bracket-left-svg {
  --draw-time: var(--bracket-left-time);
}

.header-php-svg {
  --draw-time: var(--php-time);
}

.header-bracket-right-svg {
  --draw-time: var(--bracket-right-time);
}

.header-crossout-svg {
  --draw-time: var(--crossout-time);
}

.header-doodle {
  --header-doodle-fade-duration: .6s;
  --header-doodle-draw-duration: .5s;
  --header-doodle-hold-duration: .8s;
  --header-doodle-color: #ff506a;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.header-doodle::before {
  content: '';
  position: absolute;
  inset: -10px;
}

.header-doodle-svg {
  position: absolute;
  height: auto;
  overflow: visible;
  color: var(--header-doodle-color);
  pointer-events: none;
  opacity: 0;
}

.header-heart-medium-svg {
  width: 1em;
  bottom: calc(100% - .35em);
  left: 5%;
  transform: translateX(-50%);
}

.header-heart-large-svg {
  width: 1.8em;
  bottom: calc(100% - .4em);
  left: 62%;
  transform: translateX(-50%);
}

.header-heart-small-svg {
  width: .85em;
  bottom: calc(100% + .35em);
  left: 76%;
  bottom: 150%;
}

.header-figma-svg {
  width: 1.2em;
  top: -.25em;
  left: -.05em;
}

.header-face-anchor {
  position: relative;
  display: inline-block;
}

.header-brow-left-svg,
.header-brow-right-svg {
  width: .65em;
  bottom: calc(100% - .45em);
}

.header-brow-left-svg {
  left: 0;
}

.header-brow-right-svg {
  left: 48%;
}

.header-eye-left-svg,
.header-eye-right-svg {
  width: .55em;
  top: 35%;
}

.header-eye-left-svg {
  left: 2%;
}

.header-eye-right-svg {
  left: 42%;
}

.header-moustache-svg {
  width: .55em;
  top: 89%;
  left: 40%;
  transform: translateX(-50%);
}

.header-beard-svg {
  width: 1.7em;
  top: 78%;
  left: 40%;
  transform: translateX(-50%);
}

.header-bracket-left-svg,
.header-bracket-right-svg {
  width: .85em;
  top: 50%;
  transform: translateY(-50%);
}

.header-bracket-left-svg {
  left: -.05em;
}

.header-bracket-right-svg {
  right: -.05em;
}

.header-php-svg {
  width: 3.5em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.header-crossout-svg {
  width: calc(100% + .5em);
  top: 50%;
  left: -.25em;
  transform: translateY(-50%);
}

.header-doodle-svg path[stroke] {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.community-details {
  color: var(--ids__color-gray-600);
}

.community-description>p {
  display: inline;
  margin: 0;
}

.community-description>.ids__space {
  display: none;
}

@media (width < 768px) {

  .ids__wrapper.site-nav-wrapper {
    width: 100%;
    margin: 0;
    padding: 0 calc(var(--ids__density) * 0.6em);
  }

  .site-nav-chat-full,
  .community-separator {
    display: none;
  }

  .site-nav-chat-short {
    display: inline;
  }

  .community-description>p,
  .community-description>.ids__space {
    display: block;
  }

  .community-description br {
    display: none;
  }
}


/* .site-header .community-description {
  margin: 0;
  font-weight: 300;
  font-size: 1em;
} */

@property --hero-corner-radius {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

.home-hero > a {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  color: var(--ids__link-another);
}

.home-hero > a > span {
  font-weight: 200;
}

.home-hero img {
  pointer-events: none;
  user-select: none;
}

.home-hero .ids__rounded {
  --hero-corner-radius: var(--hero-radius);
  --ids__radius: var(--hero-corner-radius);
  transition: --hero-corner-radius var(--ids__duration-base) var(--ids__easing-base);
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}
.home-hero {
  --hero-radius: var(--ids__radius);
  --hero-hover-radius: 4.5em;
  --hero-geometry-time: .45s;
  --hero-writing-line-time: .25s;
  --hero-hold-time: .1s;
  --hero-erase-time: .3s;
  --hero-line-width: 9;
}


.hero-art {
  position: relative;
}

.hero-art-geometry {
  background-color: #41cc00;
}

.hero-art-writing {
  background-color: #263d7c;
}

.hero-art [data-hero-drawing] {
  position: absolute;
  height: auto;
  pointer-events: none;
}

.hero-geometry-svg {
  inset: 0;
  width: 100%;
  stroke: var(--ids__background);
  stroke-width: var(--hero-line-width);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-writing-line {
  left: 6%;
  overflow: visible;
}

.hero-writing-line-1 { top: 7%; width: 70%; }
.hero-writing-line-2 { top: 28%; width: 90%; }
.hero-writing-line-3 { top: 51%; width: 72%; }
.hero-writing-line-4 { top: 74%; width: 82%; }

.hero-art path {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.25;
  visibility: hidden;
}

@media (hover: hover) {
  .home-hero:hover .ids__rounded {
    --hero-corner-radius: var(--hero-hover-radius);
    transition-duration: var(--ids__duration-fast);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .ids__rounded {
    transition: none;
  }
}

.community-members {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 3.7em));
  gap: .3em;
}

.community-members > * {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--ids__radius-pill);
  background-color: var(--ids__surface);
  object-fit: cover;
}

.calendar {
  --calendar-overlap: 1em;
  --calendar-muted: color-mix(in srgb, var(--ids__text) 60%, transparent);
  --calendar-border: color-mix(in srgb, var(--ids__text) 10%, transparent);
  width: 100%;
  min-width: 0;
}

.calendar-controls,
.calendar-members {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7em;
}

.calendar-controls {
  column-gap: .35em; /* «Отмечается» → поле ввода. */
  row-gap: 1em; /* Строка ввода → имена при переносе. */
}

.calendar-members {
  --calendar-member-gap: .7em;
  gap: var(--calendar-member-gap);
}

.calendar-member {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ids__text);
  font-weight: inherit;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
  cursor: pointer;
  transition: color var(--ids__duration-base) var(--ids__easing-base);
}

.calendar-member::before {
  content: '';
  position: absolute;
  /* Each name owns half the gap to its neighbours, including the row gap. */
  inset: calc(var(--calendar-member-gap) * -.5);
}

.calendar-member[aria-pressed="true"],
.calendar-current {
  color: var(--calendar-current);
}

.calendar-member:not([aria-pressed="true"]):hover,
.calendar-member:not([aria-pressed="true"]):focus-visible {
  color: var(--ids__hover);
  transition-duration: var(--ids__duration-instant);
}

.calendar-member-form {
  margin: 0;
  max-width: 100%;
}

.calendar .calendar-error {
  color: var(--ids__error);
}

.calendar-name {
  /* Длина поля «Вписать своё имя». */
  width: 8.8em;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-bottom: var(--ids__border-width-s) solid var(--calendar-muted);
  border-radius: 0;
  background: none;
  color: var(--ids__text);
  opacity: 1;
}

.calendar-name::placeholder {
  color: var(--calendar-muted);
  opacity: 1;
}

.calendar-name:focus,
.calendar-name:focus-visible {
  outline: none;
  box-shadow: none;
}

.calendar-scroll {
  padding-block: var(--ids__border-width-m);
}

.calendar-grid {
  display: grid;
  gap: var(--ids__gap-s);
}

.calendar-weekdays,
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  color: var(--calendar-muted);
  font-style: italic;
  font-weight: 200;
}

.calendar-weekdays > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.calendar-week {
  isolation: isolate;
}

.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  width: calc(100% + var(--calendar-overlap));
  min-width: 0;
  min-height: 8em;
  padding: 0.7em;
  border: var(--ids__border-width-s) solid var(--calendar-border);
  border-radius: var(--ids__radius-m);
  background: var(--ids__background);
  color: var(--ids__text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--ids__duration-base) var(--ids__easing-base);
}

.calendar-day:last-child {
  width: 100%;
}

.calendar-day:not(:disabled):hover,
.calendar-day:not(:disabled):focus-visible {
  z-index: 1;
  background: var(--ids__surface);
  transition-duration: var(--ids__duration-instant);
}

.calendar-day:disabled {
  cursor: default;
}

.calendar-day.is-closed > .calendar-date,
.calendar-day.is-closed > .calendar-attendance {
  opacity: .15;
}

.calendar-date {
  font-weight: 600;
}

.calendar-attendance {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.calendar-date,
.calendar-attendance {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.calendar-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (width >= 768px) {
  .calendar-members {
    margin-inline-start: .6em; /* Дополнительный отступ от поля ввода до имён. */
  }
}

@media (width < 768px) {
  .calendar-scroll {
    /* Компенсируем боковые поля враппера только у области прокрутки. */
    margin-inline: calc(var(--ids__density) * -0.6em);
    padding-inline: calc(var(--ids__density) * 0.6em);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .calendar-grid {
    min-width: 48em;
  }
}

.inline-person {
  --inline-person-avatar-size: 1.25em;
  display: inline;
  position: relative;
  padding-inline-start: calc(var(--inline-person-avatar-size) + 0.2em);
  margin-inline-start: 0.2em;
  white-space: nowrap;
}

.ids .inline-person .inline-person-avatar {
  display: block;
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--inline-person-avatar-size);
  height: var(--inline-person-avatar-size);
  border-radius: var(--ids__radius-pill);
  background: var(--ids__surface);
  object-fit: cover;
}

