:root {
  --ids__text-RGB: 35, 37, 38;

  --ids__link-RGB: 44, 44, 44;
  --ids__hover-RGB: 245, 65, 55;
  --ids__accent-RGB: 255, 105, 105;
  --ids__pen-RGB: 0, 65, 205;
  --ids__mark-RGB: 230, 228, 228;
  --ids__surface-RGB: 230, 228, 228;
  --ids__background-RGB: 255, 255, 255;
  --ids__inverted-text-RGB: 255, 255, 255;
}

body {
  color: rgba(var(--ids__text-RGB), 1);
  background-color: rgba(var(--ids__background-RGB), 1);
}

.dark-theme {
  --ids__text-RGB: 240, 240, 240;
  --ids__link-RGB: 240, 240, 240;
  --ids__hover-RGB: 245, 65, 55;
  --ids__accent-RGB: 255, 105, 105;
  --ids__mark-RGB: 255, 200, 29;
  --ids__surface-RGB: 45, 47, 48;
  --ids__background-RGB: 35, 37, 38;

  color: rgba(var(--ids__text-RGB), 1);
  background-color: rgba(var(--ids__background-RGB), 1);
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

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

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type='button']:-moz-focusring,
[type='reset']:-moz-focusring,
[type='submit']:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/**
 * IDS additional resets
 */

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

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

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

* {
  box-sizing: border-box;
}

/* Fonts */

@font-face {
  font-family: "CoFoGothic";
  font-style: normal;
  font-display: swap;
  src: url("fonts/CoFoGothic-VF-Trial.ttf") format("truetype");
}

@font-face {
  font-family: "CoFoSansSemi-Mono";
  font-style: normal;
  font-display: swap;
  src: url("fonts/CoFoSansSemi-Mono-VF-Trial.ttf") format("truetype");
}

@font-face {
  font-family: "CoFoHand";
  font-style: normal;
  font-display: swap;
  src: url("fonts/CoFoHand-Regular-Trial.otf") format("opentype");
}

/* @font-face {
  font-family: "Robert";
  font-style: normal;
  font-display: swap;
  src: url("fonts/Robert/CoFoRobert-Book-Trial.otf") format("opentype");
}

@font-face {
  font-family: "Robert";
  font-style: italic;
  font-display: swap;
  src: url("fonts/Robert/CoFoRobert-BookItalic-Trial.otf") format("opentype");
} */

@font-face {
  font-family: "Newton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("fonts/Newton/Newton_Book.woff2") format("woff2"),
    url("fonts/Newton/Newton_Book.woff") format("woff"),
    url("fonts/Newton/Newton_Book.ttf") format("truetype");
}

@font-face {
  font-family: "Newton";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src:
    url("fonts/Newton/Newton_Italic.woff2") format("woff2"),
    url("fonts/Newton/Newton_Italic.woff") format("woff"),
    url("fonts/Newton/Newton_Italic.ttf") format("truetype");
}

@font-face {
  font-family: "Newton";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url("fonts/Newton/Newton_Bold.woff2") format("woff2"),
    url("fonts/Newton/Newton_Bold.woff") format("woff"),
    url("fonts/Newton/Newton_Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Newton";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src:
    url("fonts/Newton/Newton_Bold Italic.woff2") format("woff2"),
    url("fonts/Newton/Newton_Bold Italic.woff") format("woff"),
    url("fonts/Newton/Newton_Bold Italic.ttf") format("truetype");
}

@font-face {
  font-family: "Newton";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src:
    url("fonts/Newton/Newton_Extra Bold.woff2") format("woff2"),
    url("fonts/Newton/Newton_Extra Bold.woff") format("woff"),
    url("fonts/Newton/Newton_Extra Bold.ttf") format("truetype");
}

:root {
  --gothic: "CoFoGothic";
  --serif: "Robert";
  --mono: "CoFoSansSemi-Mono";
  --hand: "CoFoHand";

  --smaller: 0.8em;
}

body {
  font-family: var(--gothic);
  -webkit-font-smoothing: antialiased;
  font-weight: 350;
}

/* Density */

:root {
  --ids__density: 1.22;
}

body {
  font-size: 1em;
  line-height: var(--ids__density);
}

html {
  /* Font-size calculation using variables */

  --mobile-font-size-min: 14;
  --mobile-font-size-max: 32;

  --desktop-font-size-min: 12;
  --desktop-font-size-max: 24;

  --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);
  }
}

/* Smooth scroll for anchored links */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.desktop-only {
  @media (width < 768px) {
    display: none;
  }
}

.mobile-only {
  @media (width > 767px) {
    display: none;
  }
}

.ids__space {
  height: calc(var(--ids__density) * 0.7em);

  &.S {
    height: calc(var(--ids__density) * 0.7em);
  }

  &.M {
    height: calc(var(--ids__density) * 1.4em);
  }

  &.L {
    height: calc(var(--ids__density) * 2.4em);
  }

  &.XL {
    height: calc(var(--ids__density) * 4em);
  }

  &.top-screen-space {
    &.M {
      height: 4vh;
    }

    &.L {
      height: 12vh;
    }
  }
}

.ids__wrapper {
  position: relative;
  width: 68%;
  margin: 0 auto 0 8%;
  max-width: 1020px;

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

  &.L {
    width: 84%;
    margin: 0 8%;
    max-width: 1260px;

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

  &.XL {
    width: 100%;
    margin: 0 auto;
    /* padding: 0 calc(var(--ids__density) * 0.75em); */

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

  &.XXL {
    width: 100%;

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

  & .ids__text-width {
    width: 80%;
    max-width: 816px;

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


    & .with-sidenote {
      position: relative;

      & .sidenote {
        font-size: 0.7em;
        width: 90%;
        margin-bottom: 2em;

        @media (width > 767px) {
          position: absolute;
          top: 0;
          width: 45%;
          left: 110%;

          font-size: 0.7em;
        }
      }


    }
  }
}

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

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

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

  &.gap-S {
    --gap: 0.5em;
    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: 2;
      }
    }
  }

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

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

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

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

  &.mobile-XL {
    .ids__sequence-item {
      @media (width < 768px) {
        --columns: 1;
      }
    }
  }
}
.ids {
  & a {
    color: rgb(var(--ids__link-RGB));
    text-decoration: underline;
    will-change: color;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-skip-ink: none;
    text-decoration-color: rgba(var(--ids__link-RGB), 0.2);
    transition: color 0.5s ease, text-decoration 0.5s ease;

    &:hover {
      color: rgb(var(--ids__hover-RGB));
      text-decoration-color: rgba(var(--ids__hover-RGB), 0.2);
      transition: color 0s ease, text-decoration 0s ease;
    }
  }

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

    &.loud {
      font-size: 1.5em;
      line-height: 1.15;
      font-weight: 350;

      & em {
        font-size: 1.02em;
      }

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

      &.serif {
        font-size: 1.44em;
        line-height: 1.2;

      }

      &.mono {
        font-size: 1.35em;
        line-height: 1.25;

        & em {
          font-size: 1.05em;
        }
      }



    }

    &.caption {
      font-size: 0.8em;
    }

  }

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

  & h1 {
    font-size: 4em;
    font-weight: 500;
    line-height: calc(var(--ids__density) / 1.3);
    margin-bottom: 0.2em;
    margin-left: -0.04em;


    &.L {
      font-size: 4em;


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

    &.XL {
      font-size: 6.5em;

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

  & h2 {
    font-size: 3.2em;
    font-weight: 550;
    line-height: 1;
    margin-bottom: 0.3em;

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


  }

  & h3 {
    font-size: 1.15em;
    line-height: 1.08;
    font-weight: 550;
    margin-bottom: 0.4em;

    
  }

  & h4 {
    font-size: 1.05em;
    font-weight: 550;
    line-height: 1.2;
    margin-bottom: 0.4em;
  }

  & h5 {
    font-size: 1.08em;
    font-weight: 450;
    line-height: 1.2;
    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: 600;
  }

  & mark {
    color: inherit;
    
    background-color: rgb(var(--ids__mark-RGB));
  }

  & 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;
    }
  }

  & ul.inline-block {
    margin-top: 1em;

    & li {

      display: inline-block;
      padding: 0.3em 0.5em 0.2em;
      border: 2px solid rgba(var(--ids__text-RGB), 1);
      border-right: none;
      border-bottom: none;

      &:before {
        content: none;
      }
    }

    &.S {

      font-size: 0.8em;
      
    }

  }

  & em {
    font-family: var(--serif);
    font-size: 1.05em;
    line-height: 1;

  }

  & 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: rgb(var(--ids__surface-RGB));
    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: 0.2em;

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

  & code {
    font-size: 0.9em;
    font-family: var(--mono);
    letter-spacing: 0.02em;
    font-weight: 450;
    padding: 0.1em 0.25em;
    border-radius: 0.2em;
    color: rgba(var(--ids__code-RGB), 1);
    border: 1px solid rgba(var(--ids__code-RGB), 0.1);
    background: rgba(var(--ids__code-RGB), 0.1);
  }

  & 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);
      opacity: 0.7;
    }
  }

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

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

  & table {
    border-spacing: 0;

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

    tr {
      & th {
        text-align: left;
        border-bottom: 2px solid rgba(var(--ids__text-RGB), 1);
        padding-bottom: 0.3em;

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

      & td {
        padding: 0.8em 0.5em 1em 0;
        border-bottom: 1px solid rgba(var(--ids__text-RGB), 0.5);
        vertical-align: top;


      }

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

  & hr {
    border-top-color: rgba(var(--ids__text-RGB), 0.2);
    border-bottom: 0;
  }

  & .promo-link {
    font-family: var(--mono);
    display: inline-block;
    padding: 0.5em 1em;
    background-color: rgb(var(--ids__accent-RGB));
    text-decoration: none;
    color: white;
    border-radius: 0.25em;
    transition: background-color 0.5s ease;

    &:hover {
      background-color: rgb(var(--ids__hover-RGB));
      transition: background-color 0s;
      color: white;
    }
  }


}
ids-gallery,
.ids__gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5em;


    figure {
        flex: 0 0 5em;

        &:focus-within:has(a:focus-visible) {
            outline: 2px solid rgb(var(--ids__link-RGB));
            outline-offset: 2px;
        }

        a:hover,
        a:focus-visible {
            opacity: 0.9;
        }

        img {
            object-fit: contain;
            max-height: 100%;
            max-width: 100%;
        }
    }
}
/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */

.pswp {
  --pswp-bg: #000;
  --pswp-placeholder-bg: #222;
  

  --pswp-root-z-index: 100000;
  
  --pswp-preloader-color: rgba(79, 79, 79, 0.4);
  --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
  
  /* defined via js:
  --pswp-transition-duration: 333ms; */
  
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #4f4f4f;
  --pswp-icon-stroke-color: #4f4f4f;
  --pswp-icon-stroke-width: 2px;

  --pswp-error-text-color: var(--pswp-icon-color);
}


/*
	Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/

.pswp {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: var(--pswp-root-z-index);
	display: none;
	touch-action: none;
	outline: 0;
	opacity: 0.003;
	contain: layout style size;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevents focus outline on the root element,
  (it may be focused initially) */
.pswp:focus {
  outline: 0;
}

.pswp * {
  box-sizing: border-box;
}

.pswp img {
  max-width: none;
}

.pswp--open {
	display: block;
}

.pswp,
.pswp__bg {
	transform: translateZ(0);
	will-change: opacity;
}

.pswp__bg {
  opacity: 0.005;
	background: var(--pswp-bg);
}

.pswp,
.pswp__scroll-wrap {
	overflow: hidden;
}

.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.pswp__img,
.pswp__zoom-wrap {
	width: auto;
	height: auto;
}

.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
	cursor: move;
	cursor: -webkit-grab;
	cursor: -moz-grab;
	cursor: grab;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
	cursor: -webkit-zoom-out;
	cursor: -moz-zoom-out;
	cursor: zoom-out;
}


/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.pswp__item {
	/* z-index for fade transition */
	z-index: 1;
	overflow: hidden;
}

.pswp__hidden {
	display: none !important;
}

/* Allow to click through pswp__content element, but not its children */
.pswp__content {
  pointer-events: none;
}
.pswp__content > * {
  pointer-events: auto;
}


/*

  PhotoSwipe UI

*/

/*
	Error message appears when image is not loaded
	(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
  display: grid;
}
.pswp__error-msg {
	margin: auto;
	font-size: 1em;
	line-height: 1;
	color: var(--pswp-error-text-color);
}

/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
 */
.pswp .pswp__hide-on-close {
	opacity: 0.005;
	will-change: opacity;
	transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
	z-index: 10; /* always overlap slide content */
	pointer-events: none; /* hidden elements should not be clickable */
}

/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
	opacity: 1;
	pointer-events: auto;
}

/* <button> styles, including css reset */
.pswp__button {
	position: relative;
	display: block;
	width: 50px;
	height: 60px;
	padding: 0;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	background: none;
	border: 0;
	box-shadow: none;
	opacity: 0.85;
	-webkit-appearance: none;
	-webkit-touch-callout: none;
}

.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
  transition: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.pswp__button:disabled {
  opacity: 0.3;
  cursor: auto;
}

.pswp__icn {
  fill: var(--pswp-icon-color);
  color: var(--pswp-icon-color-secondary);
}

.pswp__icn {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  pointer-events: none;
}

.pswp__icn-shadow {
  stroke: var(--pswp-icon-stroke-color);
  stroke-width: var(--pswp-icon-stroke-width);
  fill: none;
}

.pswp__icn:focus {
	outline: 0;
}

/*
	div element that matches size of large image,
	large image loads on top of it,
	used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
	background: var(--pswp-placeholder-bg);
}

.pswp__top-bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 60px;
	display: flex;
  flex-direction: row;
  justify-content: flex-end;
	z-index: 10;

	/* allow events to pass through top bar itself */
	pointer-events: none !important;
}
.pswp__top-bar > * {
  pointer-events: auto;
  /* this makes transition significantly more smooth,
     even though inner elements are not animated */
  will-change: opacity;
}


/*

  Close button

*/
.pswp__button--close {
  margin-right: 6px;
}


/*

  Arrow buttons

*/
.pswp__button--arrow {
  position: absolute;
  top: 0;
  width: 75px;
  height: 100px;
  top: 50%;
  margin-top: -50px;
}

.pswp__button--arrow:disabled {
  display: none;
  cursor: default;
}

.pswp__button--arrow .pswp__icn {
  top: 50%;
  margin-top: -30px;
  width: 60px;
  height: 60px;
  background: none;
  border-radius: 0;
}

.pswp--one-slide .pswp__button--arrow {
  display: none;
}

/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
  visibility: hidden;
}

/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
  visibility: visible;
}

.pswp__button--arrow--prev {
  right: auto;
  left: 0px;
}

.pswp__button--arrow--next {
  right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
  left: auto;
  right: 14px;
  /* flip horizontally */
  transform: scale(-1, 1);
}

/*

  Zoom button

*/
.pswp__button--zoom {
  display: none;
}

.pswp--zoom-allowed .pswp__button--zoom {
  display: block;
}

/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
  display: none;
}


/*

  Loading indicator

*/
.pswp__preloader {
  position: relative;
  overflow: hidden;
  width: 50px;
  height: 60px;
  margin-right: auto;
}

.pswp__preloader .pswp__icn {
  opacity: 0;
  transition: opacity 0.2s linear;
  animation: pswp-clockwise 600ms linear infinite;
}

.pswp__preloader--active .pswp__icn {
  opacity: 0.85;
}

@keyframes pswp-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*

  "1 of 10" counter

*/
.pswp__counter {
  height: 30px;
  margin-top: 15px;
  margin-inline-start: 20px;
  font-size: 14px;
  line-height: 30px;
  color: var(--pswp-icon-color);
  text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
  opacity: 0.85;
}

.pswp--one-slide .pswp__counter {
  display: none;
}


.header {
  padding: 0.5em 1em;

  display: flex;
  justify-content: space-between;

  @media (width < 768px) {
    padding: 0.5em calc(var(--ids__density) * 0.4em);
    flex-wrap: wrap;
  }

  & .nav {
    font-family: var(--mono);
    font-size: 0.92em;

    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.5em;

    @media (width < 768px) {
      width: 100%;
      margin-bottom: 0.5em;
      font-size: var(--smaller);

    }

    & .logo {
      display: block;
      width: 15.3em;
      margin-bottom: -0.17em;

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

      }


    }

  }
}
.footer {
  padding: 0.5em 1em;
  margin-top: 7em;
  font-family: var(--mono);
  background-color: rgba(var(--ids__surface-RGB), 0.4);

  @media (width < 768px) {
    flex-wrap: wrap;
    padding: 0.5em calc(var(--ids__density) * 0.4em);
  }

  & .footer-logo {
    width: 20em;
    margin-top: 0.25em;

  }

  & .footer-logo-caption {
    margin-top: -0.2em;
    margin-bottom: 2em;
  }

  & .footer-columns {
    font-size: var(--smaller);
    display: flex;
    gap: 0.5em 3em;

    @media (width < 768px) {
      flex-wrap: wrap;
      gap: 0.5em;
    }

    &:nth-child(1) {
      @media (width < 768px) {
        width: 100%;
      }
    }
  }


  & .footer-nav-item {
    margin-bottom: 0.5em;
  }

  & .footer-group {
    margin-bottom: 1.2em;

    @media (width < 768px) {
      margin-bottom: 1.5em;
    }
  }

  & .footer-nav {
    & .footer-column {
      &:nth-child(2n) {
        @media (width < 768px) {
          width: 35%;
        }
      }
    }
  }


  & .footer-footer {
    margin-top: 3em;

    /* display: flex; */
    /* gap: 1em; */

    & .footer-column:first-child {
      width: 20em;
    }

    & .footer-column {
      & p {

        font-size: var(--smaller);
        opacity: 0.7;
      }
    }

    /* @media (width < 768px) {
      flex-direction: column;
    } */

  }

  & .corner-arrow {
    display: inline-block;
    width: 0.75em;

    & svg {
      .cls-1 {
        fill: rgba(var(--ids__text-RGB), 1);
        stroke-width: 0px;
      }
    }
  }
}
.article {
  --padding: 2.5em;

  & .article-title {
    position: relative;
    margin: 0 calc(var(--padding) * -1);
    padding: var(--padding) 4em 1em var(--padding);
    
    min-height: 21em;
    max-height: 24em;
    background-color: rgba(var(--ids__surface-RGB), 1);
    overflow: hidden;

    @media (width < 768px) {
      margin: 0;
      --padding: 1em;
      padding-right: 1em;
      min-height: auto;
      max-height: none;
      height: auto;
    }

    & mark {
      background-color: transparent;
      text-decoration: underline;
      text-underline-offset: 0.1em;
      text-decoration-thickness: 0.3em;
      text-decoration-skip-ink: none;
      text-decoration-color: rgba(var(--ids__accent-RGB), 1);
    }
  }

  & .article-title-columns {  
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1em;
    justify-content: space-between;
    height: 10em;

    @media (width < 768px) {
      flex-direction: column;
      height: auto;
    }

    & .article-title-column {
      &:nth-child(1) {
        width: 65%;
        @media (width < 768px) {
          width: 100%;
        }
        
      }

      &:nth-child(2) {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        width: 20%;

        &.desktop-only {
          @media (width < 768px) {
          display: none;
          }
        }
        
      }

    }

  }



  & .article-title-nav {
    display: flex;
    flex-wrap: wrap;
    font-family: var(--mono);
    margin: 0 calc(var(--padding) * -1) 1em;
    gap: 1em;

    @media (width < 768px) {
      margin: 0;
      --padding: 1em;
    }

    & .title-nav-item {

      --nav-padding-top: 0.7em;
      --nav-padding-bottom: 0.75em;

      font-size: 0.8em;

      transition: padding 0s ease;

      &.accent {
        & .promo-link {
          display: inline-block;
          border-radius: 0;
          padding: var(--nav-padding-top) calc(var(--padding) * 1.25) var(--nav-padding-bottom);
          transition: padding 0s ease;

        }
      }

      &:not(.accent) {
        padding: var(--nav-padding-top) 0em var(--nav-padding-bottom);
      }
    }
  }

  & .sticky {
    position: sticky;
    top: 0px;
    z-index: 2;
    height: 3em;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    &.stuck {
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 0;




      & .article-title-nav {

        width: 100%;
        margin: 0 0 1em 0;

        & .title-nav-item {
          --nav-padding-top: 0.5em;
          --nav-padding-bottom: 0.55em;
          transition: padding 0.5s ease;

          &.accent {
            & .promo-link {
              transition: padding 0.5s ease;
            }


          }
        }
      }

    }
  }


  & .mono {
    font-family: var(--mono);
    font-size: 0.92em;
    line-height: 1.25;

    & em {
      font-size: 1.05em;
    }
  }

  & .serif {
    font-family: var(--serif);
    line-height: 1.2;
    /* font-size: 0.96em; */

    & em {
      font-size: 1em;
    }
  }

  & .hand {
    font-family: var(--hand);
  }

  & .section {
    margin: 3em 0;
  }

  & .tile {
    border: 1px solid rgba(var(--ids__text-RGB), 0.3);
    border-right: none;
    border-bottom: none;
    padding: 0.5em;
  }

  & .course-session {
    display: flex;
    gap: 1em;
    margin-bottom: 1em;
    border-top: 1px solid rgba(var(--ids__text-RGB), 0.3);
    padding-top: 0.5em;

    & .session-number {
      width: 3.5em;

      & p {
        font-size: 0.8em;

      }
    }

    & .session-preview {
      display: flex;
      justify-content: center;
      align-items: center;

      width: 8em;
      height: 4.5em;
      background-color: rgba(var(--ids__text-RGB), 0.3);
      border-radius: 1em;
      corner-shape: squircle;

      & .in-progress {
        font-size: 0.8em;
        opacity: 0.5;
      }



    }

    & .session-description {
      width: 20em;
    }
  }

  & .ksc-title {
    background-color: rgba(var(--ids__surface-RGB), 1);
    /* border: 2px solid rgba(var(--ids__text-RGB), 1); */

    padding-right: 1em;

    & aside {
      font-size: 0.8em;
    }

    /* border-bottom: 0; */
  }

  & .form-container {
    margin-top: 1em;
    transition: border-color 0.3s ease;
  }

  & .application-form {
    & .form-field {
      position: relative;
      display: flex;
      align-items: baseline;
      border-bottom: 1px solid rgba(var(--ids__text-RGB), 0.1);
      background-color: rgba(var(--ids__surface-RGB), 1);
      cursor: text;
      transition: background-color 0.5s ease;

      &:has(+ .form-submit-wrapper) {
        border-bottom: none;
      }

      &.form-field-error {
        background-color: rgba(var(--ids__accent-RGB), 0.3);
      }

      &:hover:not(:focus-within):not(.form-field-error) {
        background-color: rgba(var(--ids__surface-RGB), 0.8);
        transition: background-color 0s ease;
      }

      & label {
        flex-shrink: 0;
        padding: 0.5em 0.67em;
        font-size: 1em;
        font-weight: normal;
        font-family: var(--mono);
        color: rgba(var(--ids__text-RGB), 0.6);
        pointer-events: none;
        white-space: nowrap;
      }

      & input {
        flex: 1;
        width: 100%;
        padding: 0.5em 0.67em 0.6em 0.67em;
        padding-left: 0;
        font-size: 1em;
        font-family: var(--mono);
        border: none;
        background-color: transparent;
        color: rgba(var(--ids__text-RGB), 1);
        outline: none;

        &:focus {
          outline: none;
        }

        &:disabled {
          opacity: 0.6;
          cursor: not-allowed;
        }

        &::placeholder {
          color: rgba(var(--ids__text-RGB), 0.4);
        }

        &:-webkit-autofill,
        &:-webkit-autofill:hover,
        &:-webkit-autofill:focus {
          -webkit-box-shadow: 0 0 0 1000px rgba(var(--ids__surface-RGB), 1) inset;
          -webkit-text-fill-color: rgba(var(--ids__text-RGB), 1);
          transition: background-color 5000s ease-in-out 0s;
        }
      }

      &:has(input:-webkit-autofill) {
        background-color: rgba(var(--ids__surface-RGB), 1);
      }

      &:focus-within {
        background-color: rgba(var(--ids__surface-RGB), 0.5);
      }
    }

    & .form-submit-wrapper {
      display: flex;
      align-items: baseline;
      gap: 1em;
      margin-top: 0;
      flex-wrap: nowrap;
    }

    & .form-submit {
      margin-top: 0;
      cursor: pointer;
      font-size: 1em;
      padding: 0.5em 0.7em;
      border-radius: 0;
      border: none;
      flex-shrink: 0;

      &:disabled {
        opacity: 0.6;
        cursor: not-allowed;
      }
    }

    & .form-status {
      margin-top: 0;
      padding: 0;
      border-radius: 0;
      display: none;
      font-size: 0.9em;
      line-height: 1.2;
      font-family: var(--mono);

      &.status-sending {
        display: block;
        color: rgba(var(--ids__text-RGB), 0.8);
      }

      &.status-success {
        display: block;
        color: rgba(var(--ids__text-RGB), 1);
      }

      &.status-error {
        display: block;
        color: rgba(var(--ids__accent-RGB), 1);
      }
    }
  }

  & .form-container.status-sending {
    & .promo-link.form-submit {
      pointer-events: none !important;
      animation: form-submit-pulse 1.5s ease-in-out infinite !important;
      
      &:hover {
        background-color: rgba(var(--ids__accent-RGB), 0.8) !important;
        transition: none !important;
      }
    }
  }
}

@keyframes form-submit-pulse {
  0%, 100% {
    background-color: rgba(var(--ids__accent-RGB), 0.8);
  }
  50% {
    background-color: rgba(var(--ids__accent-RGB), 0.5);
  }
}
.term {
  font-family: var(--serif);
  text-align: justify;
  hyphens: auto;

  & strong {
    text-transform: lowercase;
    font-family: var(--gothic);
    font-weight: 700;
    position: relative;
    /* left: -0.5em;
    margin-right: -0.5em; */

    &:not(.secondary) {
      color: rgba(var(--ids__accent-RGB), 1);
    }
  }

  & .links {
    font-size: 0.8em;
    font-family: var(--gothic);
  }
}
.illustration-container {
  width: 100%;
  aspect-ratio: 1/1;
}

.illustration-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.dkcp-component {
  --gap: 0.3em;
  width: 100%;
  margin: 8em 0 4em;

  @media (width < 768px) {
    margin: 4em 0 2em;
    --gap: 0.15em;
  }

  & .dkcp-top {
    position: relative;
    height: 1.625em;
    background-color: rgba(var(--ids__surface-RGB), 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(var(--gap) * 2);

    @media (width < 768px) {
      height: 1.25em;
    }

    &:before {
      content: "";
      position: absolute;
      top: -5em;
      left: 0;

      width: 100%;
      height: 5.01em;
      background-color: rgba(var(--ids__surface-RGB), 1);

      clip-path: polygon(0 100%, 50% 0, 100% 100%);
      z-index: -1;

      @media (width < 768px) {
        top: -2.5em;
        height: 2.51em;
      }
    }

    & .dkcp-block {
      width: 100%;
      margin-top: -6em;
      background-color: transparent;
      text-align: center;

      @media (width < 768px) {
        margin-top: -2.5em;
      }
    }
  }

  & .dkcp-facade {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    margin-bottom: calc(var(--gap) * 2);

    & .dkcp-row {
      width: 100%;
      display: flex;
      gap: var(--gap);
      margin: 0 auto;
      padding: 0 calc(var(--gap) * 2);

      &.columns {
        & .dkcp-block {
          width: calc((100% - 4 * var(--gap)) / 5);
          min-height: 16em;

          @media (width < 768px) {
            min-height: 8em;
          }
        }
      }

      &.bottom-row {
        & .dkcp-block {
          width: calc((100% - 1 * var(--gap)) / 2);
          min-height: 3em;

          @media (width < 768px) {
            min-height: 2em;
          }
        }
      }
    }
  }

  & .dkcp-bottom {
    width: 100%;
    min-height: 3em;
  }
}

.dkcp-block {
  padding: 0.3em;
  background-color: rgba(var(--ids__surface-RGB), 1);

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

  & .dkcp-digit {
    font-size: 0.6em;
    opacity: 0.5;

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

  & .dkcp-title {
    font-size: 1.2em;
    font-family: var(--mono);
    letter-spacing: -0.01em;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.5em;

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

  & .dkcp-definition {
    font-size: 0.8em;
    line-height: 1.1;

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

    & p {
      margin-bottom: 0.3em;
    }
  }

  & .dkcp-hint {
    font-family: var(--hand);
    color: rgba(var(--ids__pen-RGB), 1);
  }
}

/* Драфт-режим */
.dkcp-component--draft {
  margin: 4em 0 2em;

  & .dkcp-top {
    background-color: transparent;
    border-left: 2px solid rgba(var(--ids__text-RGB), 1);
    filter: drop-shadow(0px -2px 0px rgba(var(--ids__text-RGB), 1));
    height: 1em;

    @media (width < 768px) {
      border-left: 1px solid rgba(var(--ids__text-RGB), 1);
      filter: drop-shadow(0px -1px 0px rgba(var(--ids__text-RGB), 1));
    }

    &:before {
      background-color: rgba(var(--ids__background-RGB), 1);
      clip-path: polygon(0 100%, 0 95%, 50% 0, 100% 95%, 100% 100%);
      border-bottom: none;
      top: -3.33em;
      height: 3.5em;
    }

    & .dkcp-block {
      border: none;
      margin-top: -3.3em;
    }
  }

  & .dkcp-facade {
    & .dkcp-row {
      &.columns {
        & .dkcp-block {
          min-height: 10em;

          @media (width < 768px) {
            min-height: 8em;
          }
        }
      }

      &.bottom-row {
        & .dkcp-block {
          min-height: 2em;

          @media (width < 768px) {
            min-height: 1.5em;
          }
        }
      }
    }
  }

  & .dkcp-bottom {
    min-height: 2em;
  }

  & .dkcp-block {
    background-color: transparent;
    border: 2px solid rgba(var(--ids__text-RGB), 1);
    border-right: none;
    border-bottom: none;

    @media (width < 768px) {
      border: 1px solid rgba(var(--ids__text-RGB), 1);
      border-right: none;
      border-bottom: none;
    }

    & .dkcp-digit {
      font-size: 0.6em;
      font-family: var(--mono);
      opacity: 1;

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

    & .dkcp-title {
      font-size: 0.8em;
      font-family: var(--mono);
      letter-spacing: 0em;
      font-weight: 500;
      /*line-height: 1;*/
      /*margin-bottom: 0.3em;*/

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

    & .dkcp-definition {
      font-family: var(--hand);
      color: rgba(var(--ids__pen-RGB), 1);

      @media (width < 768px) {
        /*font-size: 0.5em;*/
      }
    }
  }
}
.intro {
  & span {
    display: inline;
    animation: wordfocus infinite ease-in;
  }
}

.intro span:nth-child(1) {
  animation-duration: 7.2s;
  animation-delay: 0.1s;
}

.intro span:nth-child(2) {
  animation-duration: 7.2s;
  animation-delay: 0.1s;
}

.intro span:nth-child(3) {
  animation-duration: 8.1s;
  animation-delay: 0.7s;
}

.intro span:nth-child(4) {
  animation-duration: 6.8s;
  animation-delay: 1.2s;
}

.intro span:nth-child(5) {
  animation-duration: 7.7s;
  animation-delay: 0.3s;
}

.intro span:nth-child(6) {
  animation-duration: 8s;
  animation-delay: 1.8s;
}

.intro span:nth-child(7) {
  animation-duration: 9.3s;
  animation-delay: 0.9s;
}

.intro span:nth-child(8) {
  animation-duration: 7.6s;
  animation-delay: 2.1s;
}

.intro span:nth-child(9) {
  animation-duration: 8.5s;
  animation-delay: 0.4s;
}

.intro span:nth-child(10) {
  animation-duration: 9.9s;
  animation-delay: 1.5s;
}

.intro span:nth-child(11) {
  animation-duration: 7.9s;
  animation-delay: 0.8s;
}

.intro span:nth-child(12) {
  animation-duration: 8.3s;
  animation-delay: 2.3s;
}

.intro span:nth-child(13) {
  animation-duration: 9s;
  animation-delay: 0.6s;
}

.intro span:nth-child(14) {
  animation-duration: 7.7s;
  animation-delay: 1.7s;
}

.intro span:nth-child(15) {
  animation-duration: 8.6s;
  animation-delay: 0.2s;
}

.intro span:nth-child(16) {
  animation-duration: 7.6s;
  animation-delay: 0.2s;
}

.intro span:nth-child(17) {
  animation-duration: 9.6s;
  animation-delay: 0.2s;
}

@keyframes wordfocus {

  0%,
  100% {
    filter: blur(0px);
    transform: scale(1);
  }

  50% {
    filter: blur(0.1em);
    opacity: 0.7;
  }
}

.author {
  margin-bottom: 1em;
  
  & .author-portrait {
    position: relative;
    margin-bottom: 0.3em;

    & .author-name {
      font-size: 1.05em;
      font-weight: 550;
      position: absolute;
      left: 0;
      bottom: 0;
      padding: 0.1em 0.3em 0.1em 0em;

      background-color: rgba(var(--ids__text-RGB), 1);
      color: rgba(var(--ids__inverted-text-RGB), 1);
    }
  }

  & p {
    padding-right: 1em;

    
    &.author-description {
      font-size: var(--smaller);
    }

    &.author-quote {
      
    }
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(7, auto);
  gap: calc(var(--ids__density) * 0.3em) 0;

  @media (width < 768px) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows:
      repeat(8, auto) calc(var(--ids__density) * 2.4em) repeat(8, auto);
  }
}

.pricing-grid-item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / -1;

  & h4 {
    margin: 0;
    padding: 0em 1em 0em calc(var(--ids__density) * 0.5em);
  }

  & .pricing-feature {
    margin: 0;
    border-top: 1px solid rgba(var(--ids__text-RGB), 0.2);
    padding: 0.3em 1em 0em calc(var(--ids__density) * 0.5em);

    &:empty {
      visibility: hidden;
    }
  }

  & p {
    margin: 0;

    &.caption {
      opacity: 0.5;
      margin: 0.5em 0 1em;
    }
  }

  & .promo-link {
    display: block;
    margin-top: 1em;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
    border-radius: 0;

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

  @media (width < 768px) {
    &:nth-child(1) {
      grid-column: 1;
      grid-row: 1 / 8;
    }

    &:nth-child(2) {
      grid-column: 2;
      grid-row: 1 / 8;
    }

    &:nth-child(3) {
      grid-column: 1 / -1;
      grid-row: 9 / -1;
      grid-template-rows: repeat(7, auto);
      gap: 0;
      padding-top: calc(var(--ids__density) * 1em);
      padding-bottom: 0;
    }
  }
}

.ids {
  & aside {
    &.pricing-section {
      margin-bottom: 0;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }
  }
}

.pricing-grid-wrapper {
  background-color: rgb(var(--ids__surface-RGB));
  border-bottom-left-radius: 0.2em;
  border-bottom-right-radius: 0.2em;
}

.promo-link.second {
  background-color: rgb(245, 90, 90);

  &:hover {
    background-color: rgb(var(--ids__hover-RGB));
  }
}

.promo-link.third {
  background-color: rgb(var(--ids__link-RGB));

  &:hover {
    background-color: rgb(var(--ids__hover-RGB));
  }
}
.article-title-illustration {
  position: absolute;
  top: -1em;
  width: 40%;
  min-width: 40%;
  aspect-ratio: 1/1;
  right: -1em;
  
  @media (width < 768px) {
    width: 80%;
    top: auto;
    bottom: -3em;      
  }
}

.contour {
  border: 1px solid rgba(var(--ids__text-RGB), 0.2);
}


.problem-summary {
  width: 100%;
  position: sticky;
  display: flex;
  justify-content: flex-end;
  top: 3em;
  background-color: gray;
  height: 0;
  z-index: 1;

  @media (width < 768px) {
    
  }
  
  
  & .problem-summary-container {
    position: absolute;
    left: 103%;
    width: 25%;
    color: rgba(var(--ids__accent-RGB), 1);    
    --ids__link-RGB: var(--ids__accent-RGB);
    /* background-color: yellow; */
    display: flex;
    flex-direction: column;
    align-content: center;
    text-align: center;
    font-family: var(--mono);
    font-weight: 500;
    transition: transform 0.5s ease;
    
    

    @media (width < 768px) {
      left: 67%;
      width: 30%;
      font-size: 0.8em;
      background-color: rgba(var(--ids__background-RGB), 1);
      border: 1px solid rgba(var(--ids__accent-RGB), 0.3);  
      padding: 0.5em 0.4em 0.2em;
      border-radius: 0.5em;  

    }

    

    &.is-sleeping {
      opacity: 0;
      transform: translateX(1em);
      transition: transform 0s ease;
    }

    & .initial-text {
      display: block;
    }

    & .hint-text {
      display: block;
    }

    & .arrow {
      display: block;
    }

    & .progress {
      display: none;
    }

    & .result-1,
    & .result-2,
    & .result-3 {
      display: none;
    }

    &.has-selection {
      & .hint-text {
        display: none;
      }

      & .arrow {
        display: none;
      }

      & .progress {
        display: block;
      }
    }

    &.show-result {
      & .initial-text,
      & .hint-text,
      & .arrow,
      & .progress {
        display: none;
      }

      & .result-1,
      & .result-2,
      & .result-3 {
        display: block;
      }
    }
  }
}

.intro {
  @media (width < 768px) {
    width: 70%;
  }
}

/* Радиогруппа культуры */
.culture-radio-group {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.7em;  
  margin-bottom: calc(var(--ids__density) * 0.6em);
  --gap: 1em;
  gap: var(--gap);

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

.culture-radio-option {
  --columns: 3;
  width: calc((100% - var(--gap) * (var(--columns) - 1)) / var(--columns));
  position: relative;
  cursor: pointer;
  display: block;

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

    &:nth-child(3) {
      width: 100%;
    }
  }

  &::before {
    content: '';
    position: absolute;
    top: -0.3em;
    left: -0.3em;
    right: -0.3em;
    bottom: -0.3em;
    border: 1px solid rgba(var(--ids__text-RGB), 0.1);
    border-radius: 0.6em 0.6em 0.6em 0.9em;
    pointer-events: none;
    transition: border-color 0.5s ease;
  }

  &:has(.culture-radio-input:checked)::before,
  &.is-checked::before {
    border-color: rgba(var(--ids__text-RGB), 0.4);
    transition: border-color 0s ease;
  }

  &:not(:has(.culture-radio-input:checked)):not(.is-checked):hover::before {
    border-color: rgba(var(--ids__hover-RGB), 0.3);
    transition: border-color 0s ease;
  }

  &:has(.culture-radio-input:checked),

  &.is-checked {
    & .culture-radio-content {
      color: rgba(var(--ids__text-RGB), 1);
      transition: color 0s ease;      
    }

    & .culture-radio-indicator {
      border-color: rgba(var(--ids__text-RGB), 1);
      border-width: 2px;
      transition: border-color 0s ease;
    }

    & .culture-radio-dot {
      background-color: rgba(var(--ids__text-RGB), 1);
      transition: background-color 0s ease;
    }

    & .culture-radio-label {
      opacity: 1;
      color: rgba(var(--ids__text-RGB), 1);
      transition: opacity 0s ease, color 0s ease;
    }
  }

  &:not(:has(.culture-radio-input:checked)):not(.is-checked):hover {
    & .culture-radio-indicator {
      border-color: rgb(var(--ids__hover-RGB));
      transition: border-color 0s ease;
    }

    & .culture-radio-label {
      opacity: 1;
      color: rgb(var(--ids__hover-RGB));
      transition: opacity 0s ease, color 0s ease;
    }

    & .culture-radio-content {
      color: rgb(var(--ids__hover-RGB));
      transition: color 0s ease;
    }
  }

  & .culture-radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  & .culture-radio-content {
    transition: color 0.5s ease;

    & .width-90 {
      width: 90%;
      @media (width < 768px) {
        width: 100%;
      }
    }
    & .width-80 {
      width: 80%;
      @media (width < 768px) {
        width: 100%;
      }
    }

    
  }

  & .culture-radio-footer {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.5em;
  }

  & .culture-radio-indicator {
    width: 1.2em;
    height: 1.2em;
    border: 1px solid rgba(var(--ids__text-RGB), 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.5s ease;
  }

  & .culture-radio-dot {
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background-color: rgba(var(--ids__text-RGB), 0);
    transition: background-color 0.5s ease;
  }

  & .culture-radio-label {
    font-size: 0.8em;
    font-family: var(--mono);
    opacity: 0;
    transition: opacity 0.5s ease, color 0.5s ease;
    pointer-events: none;
  }
}


table.ksc-open-schedule {

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

  & h3 {
    font-size: 1.7em;
    margin-bottom: 0.3em;

    @media (width < 768px) {
      font-size: 1.5em;
    }
  }
  & h4 {
    font-size: 1em;
    margin-bottom: 0.4em;
    
  }

  & p {
    margin-bottom: 0.4em;
  }

  ul {
    li {
      margin-bottom: 0.4em;
    }
  }

  & tr {
    & td {
      padding: 0.4em 0 0.15em;

      &:first-child {
        width: 15%;

        @media (width < 768px) {
          padding-right: 1em;
        }

        & p {          
          display: inline-block;
          font-size: 0.7em;
          font-family: var(--mono);
          border: 1px solid rgba(var(--ids__text-RGB), 0.2);
          padding: 0.2em 0.5em 0.15em;
          border-radius: 0.3em;

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

          
        }
      }
      &:last-child {
        width: 70%;
      }
    }
  }
}


.shedule-summary {


  & ul {
    & li {

      margin-bottom: 0.4em;
    }  
  }
}


.deliverables {
  display: flex;
  flex-wrap: wrap;
  --gap: 0.5em;
  --columns: 4;
  gap: var(--gap);
  margin-bottom: 1em;

  & .deliverables-item {
    width: calc((100% - var(--gap) * (var(--columns) - 1)) / var(--columns));
    @media (width < 768px) {
      --columns: 1;
    }

    &.accent {
      --columns: 2;

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

    & aside {
      height: 100%;
    }
  }
}

.application-columns {
  display: flex;
  flex-wrap: wrap;
  --gap: 1em;
  gap: var(--gap);

  & .application-column {

    &:first-child {
      width: calc(60% - (var(--gap) / 2));
      @media (width < 768px) {
        width: 100%;
      }
    }

    &:last-child {
      width: calc(40% - (var(--gap) / 2));
      @media (width < 768px) {
        width: 100%;
      }
    }


  }
}
