
:root {
  --ids__text-RGB: 44, 44, 44;

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

  --ids__pndlnk-black-RGB: var(--ids__text-RGB);
  --ids__pndlnk-red-RGB: var(--ids__hover-RGB);
  --ids__pndlnk-dark-gray-RGB: 77, 77, 77;
  --ids__pndlnk-red-tinted-RGB: var(--ids__accent-RGB);
  --ids__pndlnk-light-gray-RGB: var(--ids__surface-RGB);
  --ids__pndlnk-gold-RGB: 223, 146, 39;
  --ids__pndlnk-gold-tinted-RGB: 227, 169, 65;
}

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: "Newton";
  --mono: "CoFoSansSemi-Mono";
  --hand: "CoFoHand";

  --smaller: 0.8em;
}

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

/* Density */

:root {
  --ids__density: 1.22;
  --page-padding: calc(var(--ids__density) * 0.4em);

  @media (width >= 768px) {
    --page-padding: 1em;
  }
}

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: 13;
  --desktop-font-size-max: 23.5;

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

  &.XS {
    height: calc(var(--ids__density) * 0.3em);
  }

  &.S {
    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);
  }

  &.centered {
    margin: 0 auto;
  }

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

  &.full-width {
    width: 100%;
    margin: 0;
    max-width: none;
    padding: 0 var(--page-padding);
  }

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

      &.with-sidenote--illustration {
        & .sidenote {
          @media (width > 767px) {
            margin-top: -1em;
          }
        }
      }

      & .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;
          margin-bottom: 1em;
        }
      }
    }
  }
}

.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;

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

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

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

    &.accent {
      font-family: var(--mono);
      font-size: 3.9em;
      line-height: 0.9;
      letter-spacing: -0.04em;
      color: rgb(var(--ids__accent-RGB));

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

    &.L {
      font-size: 4em;

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

    &.S {
      font-size: 2.8em;
      font-weight: 700;
      line-height: 1;
      margin-bottom: 0.3em;
      margin-left: 0;

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

    &.XL {
      font-size: 6.5em;

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

  & h2 {
    font-size: 2.8em;

    line-height: 1;
    margin-bottom: 0.3em;

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

    &.S {
      font-size: 1.65em;
      font-weight: 700;
      line-height: 1.1;
      margin-bottom: 0.35em;

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

  & h3 {
    font-size: 1.15em;
    line-height: 1.08;

    margin-bottom: 0.4em;
  }

  & h4 {
    font-size: 1.05em;

    line-height: 1.2;
    margin-bottom: 0.4em;
  }

  & h5 {
    font-size: 1.08em;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5em;
  }

  & h6 {
    font-size: 0.75em;
    font-family: var(--mono);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: var(--ids__density);
    margin-bottom: 0.5em;
    opacity: 0.7;
  }

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

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

  & ul.tag-list {
    display: grid;
    grid-template-columns: 35fr 65fr;
    gap: 0.45em 1.15em;
    font-family: var(--mono);
    font-size: var(--smaller);
    font-weight: 700;

    & li {
      padding: 0.2em 0 0;
      border: none;
      border-top: 0.6em solid rgb(var(--ids__accent-RGB));

      &:first-child {
        grid-column: 1 / -1;
      }

      &:before {
        content: none;
      }
    }
  }

  & 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: 400;
    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;
        vertical-align: top;
        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;
    border: none;
    cursor: pointer;
    transition: background-color 0.5s ease;

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

    &.compact {
      padding: 0.05em 0.5em;
    }
  }
}

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 var(--page-padding);

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

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

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

    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5em;
    width: 100%;

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

    & .logo {
      display: block;
      width: 15.3em;
      margin-bottom: -0.1em;
      align-self: flex-end;
      color: rgba(var(--ids__text-RGB), 1);

      a {
        color: inherit;
        text-decoration: none;
        transition: color 0.5s ease;

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

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

    & .nav-spacer {
      flex: 1;
    }
  }
}

a.lets-talk-button,
button.lets-talk-button {
  font-family: var(--mono);
  background: none;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.1em 0.6em 0.05em;
  border: 2px solid black;

  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.5s ease,
    color 0.5s ease;

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

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

.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-hero-logo {
    width: 100%;
    padding-top: 0.3em;
    padding-bottom: 1em;
    margin-bottom: 2em;
    opacity: 0.1;
    color: rgba(var(--ids__text-RGB), 1);

    & svg {
      width: 100%;
      height: auto;
      display: block;
    }
  }

  & .footer-grid {
    font-size: var(--smaller);
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 12em 3em;
    padding-right: 10em;
    padding-bottom: 0em;

    @media (width < 768px) {
      grid-template-columns: 1fr 1fr;
      gap: 2em 0.5em;
      padding-right: 0;
    }
  }

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

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

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

  & .footer-year {
    & p {
      font-size: var(--smaller);
      opacity: 0.7;
    }
  }

  & .footer-address {
    grid-column: 2 / -1;

    @media (width < 768px) {
      grid-column: 1 / -1;
    }

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

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

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

.contact-form-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(var(--ids__text-RGB), 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.2s ease;

  &[hidden] {
    display: none;
  }

  &.is-visible {
    opacity: 1;
  }
}

.contact-form-popover {
  position: relative;
  width: 28em;
  max-width: 100%;
  min-height: 100dvh;
  background-color: rgba(var(--ids__background-RGB), 1);
  padding: 2em 1.5em 2em;
  overflow-y: auto;
  transform: translateX(2em);
  transition: transform 0.2s ease;

  .is-visible & {
    transform: translateX(0);
  }

  @media (width < 768px) {
    width: 100%;
    min-height: auto;
    max-height: 92dvh;
    margin-top: auto;
    transform: translateY(2em);

    .is-visible & {
      transform: translateY(0);
    }
  }
}

.contact-form-close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1em;
  color: rgba(var(--ids__text-RGB), 0.5);
  padding: 0.25em;
  line-height: 1;

  &:hover {
    color: rgba(var(--ids__text-RGB), 1);
  }
}

.contact-form-popover .contact-form-title {
  margin: 0 0 0.15em;
  font-family: var(--mono);
  font-size: 2.3em;
}

.ids .contact-form-subtitle {
  margin: 0.75em 0 1em;
}

.contact-form-description {
  margin: 0 0 1.5em;
  font-size: 0.9em;
}

.contact-form-form {
  margin-top: 1.5em;

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

    /* &:last-of-type {
      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.2);
      transition: background-color 0s ease;
    }

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

    & label {
      flex-shrink: 0;
      padding: 1em 0.6em 0.2em 0;
      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: 1em 0.6em 0.23em 0;
      font-size: 1em;
      font-family: var(--mono);
      border: none;
      background-color: transparent;
      color: rgba(var(--ids__text-RGB), 1);
      outline: none;

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

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

  & .contact-form-extra {
    &[hidden] {
      display: none;
    }
  }

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

  & .submit-btn-wrap {
    overflow: hidden;
    flex-shrink: 0;
    transition: width 0.25s ease 0.25s;

    &.is-hiding {
      width: 0 !important;

      & .contact-form-submit {
        transform: translateX(-110%);
        transition: transform 0.25s ease;
      }
    }
  }

  & .contact-form-submit {
    font-family: var(--mono);
    font-size: 1em;
    display: block;
    padding: 0.5em 1.5em;
    background-color: rgb(var(--ids__accent-RGB));
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.5s ease;

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

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

  & .form-status {
    display: none;
    font-size: 0.9em;
    line-height: 1.2;
    font-family: var(--mono);

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

    &.status-success {
      display: block;
      color: rgba(var(--ids__text-RGB), 1);
      opacity: 0;
      transform: translateX(1em);
      animation: cf-slide-in 0.4s ease 0.35s forwards;
    }

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

@keyframes cf-slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.contact-form-open {
  overflow: hidden;
}

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

  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: 500;
    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__ink-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__ink-RGB), 1);

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

/* Мини-режим */
.dkcp-component--mini {
  font-size: 0.4em;
  margin: 8em 0 0 0;

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

  & .dkcp-block {
    & .dkcp-title {
      font-size: 0.9em;
      font-weight: 400;
      opacity: 0.5;

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

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

  & p {
    padding-right: 1em;

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, 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));
  }
}

.intuition-collab {
  display: inline-block;
  padding: 0.5em 1em;
  font-family: var(--mono);
  font-size: 0.6em;
  border: 1px dashed rgba(var(--ids__text-RGB), 0.5);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.title-grid {
  --title-grid-cell-size: 5.5em;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.5em;

  @media (width < 768px) {
    --title-grid-cell-size: 4.2em;

    /* Принудительный перенос строки после 5-го элемента через псевдоэлемент */
    &::after {
      content: "";
      width: 100%;
      order: 6;
      height: 0;
      flex-basis: 100%;
    }
  }

  & .title-grid-cell {
    height: var(--title-grid-cell-size);
    border: 1px solid rgba(var(--ids__text-RGB), 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 0.1em;

    &:not(.title-grid-cell-empty) {
      width: var(--title-grid-cell-size);
    }

    &.title-grid-cell-empty {
      width: calc(var(--title-grid-cell-size) / 2);
    }

    & span {
      font-family: var(--mono);
      font-weight: 500;
      font-size: 3.5em;
      padding-left: 0.1em;
      line-height: 1;

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

    /* Desktop: убрать border-left у всех, затем установить первому контейнеру */
    /* h1 - nth-child(1), поэтому первый title-grid-cell - nth-child(2) */
    border-left: none;

    &:nth-child(2) {
      border-left: 1px solid rgba(var(--ids__text-RGB), 0.5);
    }

    @media (width < 768px) {
      border-left: none;

      /* Правильный порядок для мобилы: Б А З А [пустой] [пустой-последний] Д К Ц П */
      /* h1 - nth-child(1), поэтому title-grid-cell начинаются с nth-child(2) */
      &:nth-child(2) {
        order: 1;
        border-left: 1px solid rgba(var(--ids__text-RGB), 0.5);
      }

      &:nth-child(3) {
        order: 2;
      }

      &:nth-child(4) {
        order: 3;
      }

      &:nth-child(5) {
        order: 4;
      }

      &:nth-child(6) {
        order: 5;
      }

      &:nth-child(7) {
        order: 8;
        border-top: none;
      }

      &:nth-child(8) {
        order: 9;
        border-top: none;
      }

      &:nth-child(9) {
        order: 10;
        border-top: none;
      }

      &:nth-child(10) {
        order: 11;
        border-top: none;
      }

      /* Второй пустой контейнер перескакивает в начало второй строки */
      &.title-grid-cell-empty-last {
        order: 7;
        border-left: 1px solid rgba(var(--ids__text-RGB), 0.5);
        border-top: none;
      }
    }
  }
}

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  /* margin: 1em 0; */
}

.logo-wall-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1em;
  /* border: 1px solid rgba(var(--ids__text-RGB), 0.3);
  border-right: none;
  border-bottom: none; */

  & img {
    height: 1.2em;
    width: auto;
    object-fit: contain;
    display: block;
  }

  & .logo-wall-label {
    font-family: var(--mono);
    font-size: 0.85em;
    line-height: 1.2;
    margin: 0;
    text-align: center;
  }
}

.dkcp-splash-container {
  position: absolute;
  right: -14em;
  top: -10em;
  width: 85%;
  aspect-ratio: 1/1;
  pointer-events: none;

  overflow: hidden;

  @media (width < 768px) {
    position: relative;
    margin: -5em 0 -3em 0;
    width: 100%;
    top: 0;
    right: 0;
  }

  & .illustration-container {
    position: absolute;
    top: 0;
    left: 3em;
    width: 100%;
    height: 100%;

    @media (width < 768px) {
      top: -10%;
      left: -10%;
      width: 120%;
      height: 120%;
    }

    &.illustration-container-back {
      z-index: -1; /* под заголовком */
    }

    &.illustration-container-front {
      z-index: 1; /* над заголовком */
    }
  }
}

.dkcp-author-card {
  display: flex;
  gap: 0.5em;
  align-items: flex-start;
  max-width: 45em;
}

.dkcp-author-portrait img {
  width: 6.25em;
  height: 6.25em;
  object-fit: cover;
}

.dkcp-author-content {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.dkcp-author-description {
  margin: 0;
  font-size: 1em;
  line-height: 1.4;
}

.dkcp-author-quote {
  margin: 0;
  font-size: 0.9375em;
  line-height: 1.5;
}

.event img {
  display: block;
  margin-bottom: 0.875em;
}

.divider {
  border-bottom: 1px solid rgba(var(--ids__text-RGB), 0.2);
  margin: 0.5em 0;
}

/* Таблица в стиле блока методологии: плашка, моно, тонкие линейки */

.ids {
  .promo-table-container {
    background: rgba(var(--ids__surface-RGB), 0.3);
    padding: 1em;
    font-family: var(--mono);
    font-size: 0.75em;

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

    & > h2 {
      font-size: 2em;
    }

    & .promo-table-footer {
      line-height: 1.4;
    }
  }

  .ids__wrapper.L .promo-table-container {
    padding-right: 15%;
    @media (width < 768px) {
      padding-right: 1em;
    }
  }

  .promo-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;

    & thead th {
      text-align: left;
      border-bottom: 1px solid rgba(var(--ids__text-RGB), 0.2);
      padding: 0.5em 1em 0.5em 0;

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

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

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

  /* Каталог проектов (главная) */

  .project-catalog-panel {
    background: color-mix(in srgb, rgb(var(--ids__surface-RGB)) 30%, white 70%);
    padding: 1em;
    line-height: 1.35;
  }

  .project-catalog-filter {
    margin-bottom: 0;
    min-height: 17rem;
    display: flex;
    flex-direction: column;
  }

  .project-catalog-filter__row {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 0.75em 2em;
    margin-bottom: 3em;
    padding-top: 0.15em;
    padding-bottom: 0.35em;
    font-family: var(--mono);
    font-size: 0.75em;
    line-height: 1.4;
    background: color-mix(in srgb, rgb(var(--ids__surface-RGB)) 30%, white 70%);
  }

  .project-catalog-intro {
    margin: 0;
    font-family: var(--mono);
    font-size: 0.75em;
    line-height: 1.4;
  }

  .project-catalog-filter__sentence {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25em 0.35em;
  }

  .project-catalog-filter__field {
    display: inline-flex;
    margin: 0;
    align-items: baseline;
  }

  .project-catalog-filter__checkbox {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;

    & input[type="checkbox"] {
      appearance: none;
      width: 1em;
      height: 1em;
      margin: 0;
      border: 2px solid rgba(var(--ids__text-RGB), 1);
      border-radius: 0;
      background-color: transparent;
      background-repeat: no-repeat;
      background-position: center;
      background-size: 0.7em 0.7em;
      cursor: pointer;
      flex-shrink: 0;
      align-self: baseline;
      vertical-align: baseline;
      position: relative;
      top: 2px;
      transition: background-color 0.28s ease;

      &:checked {
        background-color: rgba(var(--ids__text-RGB), 0.06);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath stroke='%23111' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.25' d='M2.5 6l2.5 2.5 5-5'/%3E%3C/svg%3E");
      }

      &:focus-visible {
        outline: none;
      }
    }
  }

  /* Шеврон (modulate header): M2 4.5l4 4 4-4; select и ::after в одной grid-ячейке */
  .project-catalog-filter__select-wrap {
    display: inline-grid;
    grid-template-columns: minmax(0, max-content);
    align-items: center;
    justify-items: stretch;
    vertical-align: baseline;
    max-width: 100%;
    padding: 0.1em 0.2em 0.1em 0.3em;
    border: 2px solid rgba(var(--ids__text-RGB), 1);
    border-radius: 0;
    background-color: transparent;
    transition: background-color 0.28s ease;

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

  .project-catalog-filter__select-wrap:hover {
    transition-duration: 0s;
    background-color: rgba(var(--ids__text-RGB), 0.06);
  }

  .project-catalog-filter__select-wrap::after {
    content: "";
    grid-area: 1 / 1;
    width: 0.85em;
    height: 0.85em;
    margin-right: 0.12em;
    justify-self: end;
    align-self: center;
    pointer-events: none;
    background-color: rgb(var(--ids__text-RGB));
    opacity: 0.85;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.25' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.25' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
  }

  .project-catalog-filter__select {
    grid-area: 1 / 1;
    font: inherit;
    font-size: 1em;
    line-height: 1.4;
    min-width: max-content;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 1.05em 0 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    background-image: none;
    color: rgb(var(--ids__text-RGB));
    appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
    box-shadow: none;

    &:focus,
    &:focus-visible {
      outline: none;
      box-shadow: none;
    }
  }

  .project-catalog-filter__status {
    margin: 0 0 0 auto;
    flex-shrink: 0;
    font-size: 0.65em;
    line-height: 1.4;
    color: rgba(var(--ids__text-RGB), 0.55);
    text-align: right;
    white-space: nowrap;
  }

  .project-catalog-empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    text-align: center;
    padding: 2em 1em 3.5em;
    font-family: var(--mono);

    &[hidden] {
      display: none;
    }
  }

  .project-catalog-empty__text {
    margin: 0;
    font-size: 0.75em;
    line-height: 1.4;
    color: rgba(var(--ids__text-RGB), 0.75);
  }

  .project-catalog-show-all {
    display: block;
    width: 100%;
    margin-top: 1.5em;
    padding: 0.5em 0.6em;
    border: 1px solid rgba(var(--ids__text-RGB), 0.3);
    border-radius: 0;
    background: none;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    color: inherit;
    transition:
      border-color 0.5s ease,
      color 0.5s ease;

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

    &[hidden] {
      display: none;
    }
  }

  .project-card.is-hidden {
    display: none;
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5em;
    list-style: none;
    margin: 0;
    padding: 0;

    @media (width < 1100px) {
      grid-template-columns: repeat(3, 1fr);
    }

    @media (width < 720px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (width < 420px) {
      grid-template-columns: 1fr;
    }

    & > li {
      padding-left: 0;
      margin-bottom: 0;

      &::before {
        content: none;
      }
    }
  }

  .project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    border-radius: 0;
    overflow: hidden;
    background: rgba(var(--ids__surface-RGB), 0.45);
    font-family: var(--mono);
    font-size: 1em;

    & .project-card__link {
      color: inherit;
      text-decoration: none;

      &:hover {
        color: inherit;
        text-decoration: none;
      }
    }

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

      .project-card__tag {
        color: rgb(var(--ids__hover-RGB));
        transition-duration: 0s;
      }

      .project-card__cover,
      .project-card__cover--tinted {
        background: rgba(var(--ids__hover-RGB), 0.08);
        transition-duration: 0s;
      }
    }
  }

  .project-card__cover {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65em;
    background: rgba(var(--ids__text-RGB), 0.015);
    transition: background 0.28s ease;
  }

  .project-card__cover--tinted {
    background: rgb(var(--ids__surface-RGB));

    transition: background 0.28s ease;
  }

  .project-card__cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .project-card__logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .project-card__logo svg,
  .project-card__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(68%, 10em);
    max-height: min(34%, 4.25em);
    object-fit: contain;
    margin-inline: auto;
  }

  .project-card__logo--large svg,
  .project-card__logo--large img {
    transform: scale(1.2);
    transform-origin: center center;
  }

  .project-card__logo--small svg,
  .project-card__logo--small img {
    transform: scale(0.85);
    transform-origin: center center;
  }

  .project-card__logo--compact svg,
  .project-card__logo--compact img {
    max-width: min(58%, 8em);
    max-height: min(28%, 3.25em);
  }

  .project-card__logo--wide svg,
  .project-card__logo--wide img {
    max-width: min(78%, 12em);
  }

  .project-card__logo--mono {
    color: rgb(var(--ids__text-RGB));

    & svg [fill]:not([fill="none"]) {
      fill: currentColor;
    }

    & svg [stroke]:not([stroke="none"]) {
      stroke: currentColor;
    }
  }

  .project-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 0.2em 0.2em 0.8em 0.2em;
    gap: 0.3em;
    min-height: 0;
  }

  .project-card__title {
    margin: 0;
    width: 100%;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    padding-right: 0.5em;
    color: rgb(var(--ids__text-RGB));
    text-decoration: underline;
    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.28s ease,
      text-decoration-color 0.28s ease;
    overflow-wrap: break-word;
  }

  .project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
  }

  .project-card__tag {
    display: inline-block;
    font-size: 0.6em;
    line-height: 1.25;
    color: rgba(var(--ids__text-RGB), 0.92);
    text-decoration: none;
    transition: color 0.28s ease;
  }

  /* Переключатель вида таблицы (задачи / продукты) */

  .promo-switchers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
  }

  .promo-switcher {
    display: flex;
    flex-wrap: wrap;
    border: 2px solid rgba(var(--ids__text-RGB), 1);
    width: fit-content;
  }

  .promo-switcher__item {
    appearance: none;
    background: none;
    font: inherit;
    cursor: pointer;
    padding: 0.2em 0.5em 0.2em;
    border: none;
    border-right: 1px solid rgba(var(--ids__text-RGB), 0.25);
    color: rgb(var(--ids__text-RGB));
    transition: color 0.5s ease;

    &:last-child {
      border-right: none;
    }

    &:hover:not(.is-active) {
      color: rgb(var(--ids__accent-RGB));
      transition: color 0s;
    }

    &.is-active {
      background: rgba(var(--ids__text-RGB), 0.06);
    }
  }

  /* Аккордеон promo-rows */

  .promo-rows-header {
    display: flex;
    margin: 0.75em 0;
  }

  .promo-rows-header__label {
    width: 50%;

    font-weight: 700;
  }

  .promo-rows {
    margin-top: 0;
  }

  .promo-row {
    display: flex;
    border-top: 1px solid rgba(var(--ids__text-RGB), 0.2);

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

    &.is-open {
      border-top: 2px solid rgba(var(--ids__text-RGB), 1);
    }
  }

  .promo-row__situation,
  .promo-row__products {
    width: 50%;
    padding: 0.4em 0 0.9em 0;

    .is-open & {
      padding-bottom: 1.6em;
    }
  }

  .promo-row__situation {
    padding-right: 2em;
  }

  .promo-row__situation-main {
    line-height: 1.3em;

    .is-open & {
      font-weight: 700;
    }
  }

  .promo-row__situation-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    min-height: 0;

    .is-open & {
      grid-template-rows: 1fr;
    }
  }

  .promo-row__situation-detail-body {
    overflow: hidden;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.25s ease 0s;
    padding-top: 0.5em;

    .is-open & {
      opacity: 1;
      transition: opacity 0.3s ease 0.15s;
    }
  }

  .promo-row__situation-detail-inner {
    line-height: 1.3em;
  }

  .promo-row__roles {
    margin-top: 0.65em;
    padding-top: 0.5em;
    border-top: 1px solid rgba(var(--ids__text-RGB), 0.12);
    font-size: 0.88em;
    line-height: 1.35;
    color: rgba(var(--ids__text-RGB), 0.62);
  }

  .promo-row__products-summary {
    opacity: 1;
    transition: opacity 0.2s ease;
    line-height: 1.3em;

    .is-open & {
      opacity: 0;
      pointer-events: none;
      position: absolute;
    }
  }

  .promo-row__products-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;

    .is-open & {
      grid-template-rows: 1fr;
    }
  }

  .promo-row__products-detail-inner {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.25s ease 0s;

    .is-open & {
      opacity: 1;
      transition: opacity 0.3s ease 0.15s;
    }
  }

  .promo-row__product-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    padding: 0.35em 0 0.6em;
    border-top: 1px solid rgba(var(--ids__text-RGB), 0.1);

    &:first-child {
      border-top: none;
      padding-top: 0;
    }
  }

  .promo-row__condition {
    min-width: 0;
    line-height: 1.3em;
  }

  .promo-row__product-link {
    min-width: 0;

    .is-open & {
      font-weight: 700;
    }

    color: rgb(var(--ids__link-RGB));
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-color: rgba(var(--ids__link-RGB), 0.2);
    line-height: 1.3em;
    transition:
      color 0.5s ease,
      text-decoration-color 0.5s ease;

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

    .promo-row__products-detail & {
      display: flex;
      align-items: flex-start;
      gap: 0.4em;
      text-decoration: none;

      & span {
        min-width: 0;
        flex: 1;
        overflow-wrap: break-word;
      }
    }
  }

  .promo-row__product-icon {
    flex-shrink: 0;
    width: 2.8em;
    height: 2.8em;
    border-radius: 0.25em;
    overflow: hidden;
    background: rgb(var(--ids__text-RGB));
    transition: background 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    .promo-row__product-link:hover & {
      background: rgb(var(--ids__hover-RGB));
      transition: background 0s;
    }
  }

  .promo-row__product-icon-svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .promo-row__product-description {
    margin-top: 0.65em;
    line-height: 1.3em;
    color: rgba(var(--ids__text-RGB), 0.62);
  }

  .promo-row__task-item {
    padding: 0.35em 0 0.6em;
    border-top: 1px solid rgba(var(--ids__text-RGB), 0.1);
    line-height: 1.3em;

    &:first-child {
      border-top: none;
      padding-top: 0;
    }
  }

  [data-promo-content="tasks"] {
    @media (width < 768px) {
      & .promo-row__situation {
        width: 40%;
      }
      & .promo-row__products {
        width: 60%;
      }

      & .promo-rows-header__label:first-child {
        width: 40%;
      }
      & .promo-rows-header__label:last-child {
        width: 60%;
      }

      & .promo-row__product-item {
        grid-template-columns: 2fr 1fr;
      }

      & .promo-row__products-detail .promo-row__product-link {
        flex-direction: column;
        gap: 0.3em;
      }

      & .promo-row__situation-main,
      & .promo-row__condition {
        overflow-wrap: break-word;
        word-break: break-word;
      }
    }
  }

  [data-promo-content="products"] {
    & .is-open .promo-row__situation-main {
      opacity: 0;
      pointer-events: none;
      position: absolute;
    }

    & .promo-row__situation-detail-inner .promo-row__product-link {
      display: flex;
      align-items: flex-start;
      gap: 0.4em;
      text-decoration: none;

      & span {
        min-width: 0;
        flex: 1;
        overflow-wrap: break-word;
      }
    }
  }
}

.pndlnk-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5em;
  margin-top: 1em;

  @media (width < 768px) {
    font-size: 0.7em;
    grid-template-columns: 1fr 1fr;

    .pndlnk-promo-column {
      &:nth-child(3) {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;

        .pndlnk-promo-link {
          flex: 0 0 calc((100% - 0.5em) / 2);
          min-width: 0;
        }
      }
    }
  }

  .pndlnk-promo-column {
    display: flex;
    flex-direction: column;
    gap: 0.5em;

    .pndlnk-promo-link {
      display: block;
      text-decoration: none;
      color: inherit;

      &:hover {
        text-decoration: none;
      }

      & aside {
        background: none;
        border: 1px solid rgba(var(--ids__text-RGB), 0.2);
        margin-bottom: 0;
        transition: border-color 0.5s ease;

        & h6 {
          & span {
            font-size: 0.8em;
          }
        }

        & h3 {
          margin-top: 0;
          margin-bottom: 0.4em;
          color: rgb(var(--ids__link-RGB));
          text-decoration: underline;
          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-color 0.5s ease;

          & span {
            font-size: 0.8em;
          }
        }
      }

      &:hover aside {
        border-color: rgba(var(--ids__hover-RGB), 0.4);
        transition: border-color 0s ease;

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

      &.dark {
        & aside {
          background: rgb(45, 47, 48);
          border-color: transparent;
          color: rgba(240, 240, 240, 1);

          & h6 {
            color: rgba(240, 240, 240, 1);
          }

          & h3 {
            color: rgba(240, 240, 240, 1);
            text-decoration-color: rgba(240, 240, 240, 0.2);
          }

          & p {
            color: rgba(240, 240, 240, 1);
          }
        }

        &:hover aside {
          background: rgb(245, 65, 55);
          transition: background-color 0s ease;
        }

        &:not(:hover) aside {
          transition: background-color 0.5s ease;
        }
      }
    }
  }
}

.methodology-wrapper {
  background: rgba(var(--ids__surface-RGB), 0.3);
  padding: calc(var(--ids__density) * 1em);

  & h3 {
    text-align: center;
    font-family: var(--mono);
    opacity: 0.5;
  }
}

.methodology-section-logo--small {
  display: flex;
  justify-content: center;
  width: 7em;
  margin: 0 auto;
  opacity: 0.2;
  color: rgba(var(--ids__text-RGB), 1);

  svg {
    width: 100%;
    height: auto;
  }
}

.methodology-section-caption {
  font-family: var(--mono);
  font-size: 0.55em;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  margin: 1.5em 0;
  opacity: 0.4;
}

.methodology-section {
  --methodology-gap: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--methodology-gap);
  margin-bottom: calc(var(--methodology-gap) * 1.5);

  @media (width < 768px) {
    --methodology-gap: 0.4rem;
  }

  & aside {
    font-size: 0.75em;
    font-family: var(--mono);
    background: none;
    border: 1px solid rgba(var(--ids__text-RGB), 0.2);
    padding: 0.31em 0.92em 0.31em 0.43em;

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

  &:not(.methodology-section--center) .methodology-column {
    width: calc((100% - 3 * var(--methodology-gap)) / 4);
  }

  &.methodology-section--center {
    .methodology-column-side {
      width: calc((100% - 3 * var(--methodology-gap)) / 4);
    }

    .methodology-column-center {
      width: calc((100% - var(--methodology-gap)) / 2);

      /* Обёртка для картинки с паддингами */
      .methodology-image-wrapper {
        padding: 0em 2em 1em 2em;

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

      /* Обёртка для "Нарративное конструирование" - выравнивание по центру */
      .methodology-item-wrapper {
        display: flex;
        justify-content: center;

        aside {
          width: calc((100% - 2 * var(--methodology-gap)) / 4);
        }
      }
    }
  }

  @media (width < 768px) {
    &:not(.methodology-section--center) {
      .methodology-column {
        width: calc((100% - var(--methodology-gap)) / 2);
      }
    }

    &.methodology-section--center {
      flex-direction: column;

      .methodology-column-center {
        width: 100%;

        .methodology-item-wrapper aside {
          width: calc((100% - var(--methodology-gap)) / 2);
        }
      }

      & .methodology-column-side {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: var(--methodology-gap);
        width: 100%;

        & aside {
          width: calc((100% - var(--methodology-gap)) / 2);
        }
      }
    }
  }
}

.ids {
  .ksc-program-table {
    background: rgba(var(--ids__surface-RGB), 0.3);
    padding: 1em;
    font-family: var(--mono);
    font-size: 0.75em;

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

    & em {
      font-family: var(--serif);
      font-style: italic;
    }
  }

  .ksc-program-switchers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
  }

  .ksc-program-switcher {
    display: flex;
    flex-wrap: wrap;
    border: 2px solid rgba(var(--ids__text-RGB), 1);
    width: fit-content;
  }

  .ksc-program-switcher__item {
    appearance: none;
    background: none;
    font: inherit;
    cursor: pointer;
    padding: 0.3em 0.6em 0.2em;
    border: none;
    border-right: 1px solid rgba(var(--ids__text-RGB), 0.25);
    color: rgb(var(--ids__text-RGB));
    transition: color 0.5s ease;

    &:last-child {
      border-right: none;
    }

    &:hover:not(.is-active) {
      color: rgb(var(--ids__accent-RGB));
      transition: color 0s;
    }

    &.is-active {
      background: rgba(var(--ids__text-RGB), 0.06);
    }
  }

  .ksc-program-rows-header {
    display: flex;
    margin: 0.75em 0;
  }

  .ksc-program-rows-header__label {
    width: 50%;
    font-weight: 700;
  }

  .ksc-program-rows {
    margin-top: 0;
  }

  .ksc-program-row {
    display: flex;
    border-top: 1px solid rgba(var(--ids__text-RGB), 0.2);

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

    &.is-open {
      border-top: 2px solid rgba(var(--ids__text-RGB), 1);
    }
  }

  .ksc-program-rows[data-ksc-program-table-content="products"]
    .ksc-program-row {
    cursor: pointer;

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

    &:hover .ksc-program-row__link {
      color: rgb(var(--ids__accent-RGB));
    }
  }

  .ksc-program-row__situation,
  .ksc-program-row__products {
    width: 50%;
    padding: 0.4em 0 0.9em 0;

    .is-open & {
      padding-bottom: 1.6em;
    }
  }

  .ksc-program-row__situation {
    padding-right: 2em;
  }

  .ksc-program-row__situation-main {
    line-height: 1.3em;

    .is-open & {
      font-weight: 700;
    }
  }

  .ksc-program-row__situation-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    min-height: 0;

    .is-open & {
      grid-template-rows: 1fr;
    }
  }

  .ksc-program-row__situation-detail-body {
    overflow: hidden;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.25s ease 0s;
    padding-top: 0.5em;

    .is-open & {
      opacity: 1;
      transition: opacity 0.3s ease 0.15s;
    }
  }

  .ksc-program-row__situation-detail-inner {
    line-height: 1.3em;
  }

  .ksc-program-row__roles {
    margin-top: 0.65em;
    padding-top: 0.5em;
    border-top: 1px solid rgba(var(--ids__text-RGB), 0.12);
    font-size: 0.88em;
    line-height: 1.35;
    color: rgba(var(--ids__text-RGB), 0.62);
  }

  .ksc-program-row__summary {
    opacity: 1;
    transition: opacity 0.2s ease;
    line-height: 1.3em;

    .is-open & {
      opacity: 0;
      pointer-events: none;
      position: absolute;
    }
  }

  .ksc-program-row--inline-detail .ksc-program-row__summary {
    opacity: 1;
    pointer-events: auto;
    position: static;
  }

  .ksc-program-row__products-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;

    .is-open & {
      grid-template-rows: 1fr;
    }
  }

  .ksc-program-row__products-detail-inner {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.25s ease 0s;

    .is-open & {
      opacity: 1;
      transition: opacity 0.3s ease 0.15s;
    }
  }

  .ksc-program-row__product-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    padding: 0.35em 0 0.6em;
    border-top: 1px solid rgba(var(--ids__text-RGB), 0.1);

    &:first-child {
      border-top: none;
      padding-top: 0;
    }
  }

  .ksc-program-row__condition {
    min-width: 0;
    line-height: 1.3em;
  }

  .ksc-program-row__link {
    min-width: 0;

    .is-open & {
      font-weight: 700;
    }

    color: rgb(var(--ids__link-RGB));
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-color: rgba(var(--ids__link-RGB), 0.2);
    line-height: 1.3em;
    transition:
      color 0.5s ease,
      text-decoration-color 0.5s ease;

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

    .ksc-program-row__products-detail & {
      display: flex;
      align-items: flex-start;
      gap: 0.4em;
      text-decoration: none;

      & span {
        min-width: 0;
        flex: 1;
        overflow-wrap: break-word;
      }
    }
  }

  .ksc-program-row__icon {
    flex-shrink: 0;
    width: 2.8em;
    height: 2.8em;
    border-radius: 0.25em;
    overflow: hidden;
    background: rgb(var(--ids__text-RGB));
    transition: background 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    .ksc-program-row__link:hover & {
      background: rgb(var(--ids__hover-RGB));
      transition: background 0s;
    }
  }

  .ksc-program-row__task-item {
    padding: 0.35em 0 0.6em;
    line-height: 1.3em;

    &:first-child {
      padding-top: 0;
    }
  }

  .ksc-program-row__task-checklist {
    margin: 0.3em 0 0;
    padding: 0;
    list-style: none;
  }

  .ksc-program-row__task-checklist li {
    margin: 0;
    padding: 0;
  }

  .ksc-program-row__task-checklist li::before {
    content: "— ";
    color: inherit;
  }

  .ksc-program-row--textual .ksc-program-row__task-item {
    border-top: none;
    padding-top: 0;
  }

  .ksc-program-rows[data-ksc-program-table-content="products"] {
    & .ksc-program-row__situation {
      display: flex;
      flex-direction: column;
      gap: 0.45em;
    }

    & .ksc-program-row__situation::before {
      content: "";
      width: 3.2em;
      height: 2.1em;
      background: url("/assets/ksc-open/dkcp-slide8.svg") center / contain
        no-repeat;
      flex-shrink: 0;
    }

    & .is-open .ksc-program-row__products-detail {
      margin-top: 0.8em;
      padding-top: 0.8em;
      border-top: 1px solid rgba(var(--ids__text-RGB), 0.22);
    }

    & .ksc-program-row__summary {
      font-family: var(--serif);
      font-style: italic;
    }

    & .is-open .ksc-program-row__summary {
      opacity: 1;
      pointer-events: auto;
      position: static;
    }

    & .ksc-program-row__task-item--practice,
    & .ksc-program-row__task-item--practice p,
    & .ksc-program-row__task-item--practice li {
      color: rgb(64, 116, 255);
      font-family: var(--serif);
      font-style: italic;
    }

    & .ksc-program-row__task-item p strong {
      color: rgb(var(--ids__text-RGB));
      font-family: var(--mono);
      font-style: normal;
    }

    & .is-open .ksc-program-row__situation-main {
      opacity: 0;
      pointer-events: none;
      position: absolute;
    }

    & .ksc-program-row__situation-detail-inner .ksc-program-row__link {
      display: flex;
      align-items: flex-start;
      gap: 0.4em;
      text-decoration: none;

      & span {
        min-width: 0;
        flex: 1;
        overflow-wrap: break-word;
      }
    }
  }
}

/* Кнопки внизу кейса — в одну строку (2 колонки XL) */
.ids .case-page:not(.article) .case-page__actions-row .ids__sequence-item {
  display: flex;
  align-items: flex-start;
}

/* Хедер проекта: ссылка, логотип, теги */
.ids .case-page:not(.article) .case-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2em;
  font-family: var(--mono);
  font-size: var(--smaller);
}

.ids .case-page:not(.article) .case-page__header .case-page__brand-logo {
  margin-top: 0;
  line-height: 0;
  flex-shrink: 0;
  align-self: flex-start;
}

.ids .case-page:not(.article) .case-page__header .case-page__tags {
  margin: 0;
}

.ids .case-page:not(.article) .case-page__header .case-page__brand-logo svg {
  display: block;
  width: auto;
  height: 1.35em;
  max-width: 7.5em;
}

.ids .case-page:not(.article) .case-page__header .case-page__brand-logo img {
  display: block;
  width: auto;
  height: 1.75em;
  max-width: 9em;
}

.ids
  .case-page:not(.article)
  .case-page__header
  .case-page__brand-logo--dodo
  svg {
  height: 1.35em;
  max-width: 11em;
}

/* Теги кейса */
.ids .case-page:not(.article) .case-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ids .case-page:not(.article) .case-page__tag {
  display: inline-block;
  padding: 0.1em 0.2em;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.25;
  color: rgba(var(--ids__text-RGB), 0.92);
  background: rgba(var(--ids__surface-RGB), 0.55);
}

/* Без глобальных ⋅ у ul li между тегами */
.ids .case-page:not(.article) .case-page__tags > li {
  padding-left: 0;
}

.ids .case-page:not(.article) .case-page__tags > li::before {
  content: none;
}

/* Короткие проекты: заголовки секций в колонках */
.ids .case-page:not(.article) h2.project-bento {
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.35em;
  border-bottom: 2px solid rgb(var(--ids__text-RGB));
}

/* Длинные проекты: заголовки секций */
.ids .case-page.case-standard:not(.article) .ids__text-width h2.S {
  margin-top: calc(var(--ids__density) * 1.4em);
}

/* Две колонки: слева контекст / запрос / результат, справа процесс */
.ids .case-page:not(.article) .case-page__body-columns {
  align-items: flex-start;
}

/* Вертикальный стек секций внутри колонки (каждый h2.project-bento — sequence-item) */
.ids .case-page:not(.article) .case-page__sections-stack {
  width: 100%;
}

.ids .case-page:not(.article) .case-page__sections-stack .ids__sequence-item {
  --columns: 1;
  width: 100%;
}

.ids
  .case-page:not(.article)
  .case-page__sections-stack
  .ids__sequence-item
  > :first-child {
  margin-top: 0;
}

/* Плашка-ярлык перед повторяющимся заголовком «Контекст» (второй блок исследования и т. п.) */
.ids .case-page:not(.article) .case-standard__section-kicker {
  display: inline-block;
  margin: 1em 0 0.4em;
  padding: 0.12em 0.35em;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.35;
  font-weight: 400;
  color: rgba(var(--ids__text-RGB), 0.5);
  text-transform: lowercase;
  border: 1px solid rgba(var(--ids__text-RGB), 0.22);
  background: transparent;
}

/*
 * Оформление как у case-standard для всех кейсов с .case-page.
 */
.ids .case-page:not(.article) .case-standard__label {
  display: inline-block;
  margin-bottom: 0.45em;
  padding: 0.12em 0.35em;
  font-family: var(--mono);
  font-size: 0.62em;
  line-height: 1.2;
  text-transform: lowercase;
  border: 1px solid rgba(var(--ids__text-RGB), 0.22);
  background: transparent;
}

/* Плашка без принудительного lowercase (год, бренд) */
.ids .case-page:not(.article) .case-standard__badge {
  display: inline-block;
  padding: 0.12em 0.35em;
  font-family: var(--mono);
  font-size: 0.62em;
  line-height: 1.2;
  border: 1px solid rgba(var(--ids__text-RGB), 0.22);
  background: transparent;
}

.ids .case-page:not(.article) .case-standard__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  align-items: center;
  margin-bottom: 0.5em;
}

.ids .case-page:not(.article) .case-standard__badges .case-standard__badge {
  margin-bottom: 0;
}

/* Одна плашка с обводкой (год + бренд под заголовком) */
.ids .case-page:not(.article) .case-standard__badges--outlined {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65em;
  margin-top: 0.35em;
  margin-bottom: 0.85em;
  padding: 0.4em 0.55em;
  border: 1px solid rgba(var(--ids__text-RGB), 0.35);
  background: transparent;
  max-width: 100%;
  box-sizing: border-box;
}

.ids
  .case-page:not(.article)
  .case-standard__badges--outlined
  .case-standard__badge {
  border: none;
  padding: 0;
}

.ids .case-page:not(.article) .case-standard__meta,
.ids .case-page:not(.article) .ids__text-width p.loud.mono {
  margin-top: -0.1em;
  margin-bottom: 0.9em;
  color: rgba(var(--ids__text-RGB), 0.55);
  font-style: italic;
}

.ids .case-page:not(.article) figure {
  margin-top: calc(var(--ids__density) * 1.1em);
}

.ids .case-page:not(.article) .case-standard__figure-images {
  display: grid;
  gap: 0.6em;
}

.ids .case-page:not(.article) .case-standard__figure-images.is-1 {
  grid-template-columns: 1fr;
}

.ids .case-page:not(.article) .case-standard__figure-images.is-2,
.ids .case-page:not(.article) .case-standard__figure-images.is-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ids .case-page:not(.article) .case-standard__figure-images.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ids .case-page:not(.article) .case-standard__figure-images.is-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ids .case-page:not(.article) .case-standard__figure-images img {
  display: block;
  width: 100%;
  height: auto;
}

.ids .case-page:not(.article) figure figcaption {
  margin-bottom: calc(var(--ids__density) * 0.9em);
}

.ids .case-page:not(.article) blockquote {
  font-style: italic;
}

.ids .case-page:not(.article) .case-standard__review-portrait {
  width: 4em;
  height: 4em;
  background: rgba(var(--ids__text-RGB), 0.22);
}

.ids .case-page:not(.article) .review-author {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5em;
}

.ids .case-page:not(.article) .review-name {
  width: 70%;
  font-size: 0.8rem;
}

@media (width < 768px) {
  .ids .case-page:not(.article) .case-standard__figure-images {
    grid-template-columns: 1fr;
  }
}

.lessons-gantt {
  position: relative;
  width: 100%;
  margin: 1em 0;

  /* CSS переменные для длительностей (в минутах) */
  --lesson-1-duration: 55;
  --lesson-2-duration: 75;
  --lesson-3-duration: 35;
  --lesson-4-duration: 42;
  --lesson-5-duration: 59;
  --total-duration: calc(
    var(--lesson-1-duration) + var(--lesson-2-duration) +
      var(--lesson-3-duration) + var(--lesson-4-duration) +
      var(--lesson-5-duration)
  );

  /* Высота бара */
  --gantt-bar-height: 2.5em;

  /* Расчет позиций и ширин */
  --lesson-1-width: calc(
    var(--lesson-1-duration) / var(--total-duration) * 100%
  );
  --lesson-1-left: 0%;

  --lesson-2-width: calc(
    var(--lesson-2-duration) / var(--total-duration) * 100%
  );
  --lesson-2-left: calc(
    var(--lesson-1-duration) / var(--total-duration) * 100%
  );

  --lesson-3-width: calc(
    var(--lesson-3-duration) / var(--total-duration) * 100%
  );
  --lesson-3-left: calc(
    (var(--lesson-1-duration) + var(--lesson-2-duration)) /
      var(--total-duration) * 100%
  );

  --lesson-4-width: calc(
    var(--lesson-4-duration) / var(--total-duration) * 100%
  );
  --lesson-4-left: calc(
    (
        var(--lesson-1-duration) + var(--lesson-2-duration) +
          var(--lesson-3-duration)
      ) /
      var(--total-duration) * 100%
  );

  --lesson-5-width: calc(
    var(--lesson-5-duration) / var(--total-duration) * 100%
  );
  --lesson-5-left: calc(
    (
        var(--lesson-1-duration) + var(--lesson-2-duration) +
          var(--lesson-3-duration) + var(--lesson-4-duration)
      ) /
      var(--total-duration) * 100%
  );
}

.gantt-timeline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.1em;
  font-family: var(--mono);
  font-size: 0.7em;
  color: rgba(var(--ids__text-RGB), 0.8);
}

.gantt-bars {
  position: relative;
  width: 100%;
}

.gantt-bar-row {
  display: block;
  position: relative;
  min-height: var(--gantt-bar-height);
  border-top: 1px solid rgba(var(--ids__text-RGB), 0.2);

  &:first-child {
    border-top-color: rgba(var(--ids__text-RGB), 0.5);
  }
  &:last-child {
    border-bottom: 1px solid rgba(var(--ids__text-RGB), 0.2);
  }
}

.gantt-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--gantt-bar-height);
  background-color: rgba(var(--ids__surface-RGB), 1);
  border-radius: 0;
  overflow: hidden;

  &[data-lesson="1"] {
    left: var(--lesson-1-left);
    width: var(--lesson-1-width);
  }

  &[data-lesson="2"] {
    left: var(--lesson-2-left);
    width: var(--lesson-2-width);
  }

  &[data-lesson="3"] {
    left: var(--lesson-3-left);
    width: var(--lesson-3-width);
  }

  &[data-lesson="4"] {
    left: var(--lesson-4-left);
    width: var(--lesson-4-width);
  }

  &[data-lesson="5"] {
    left: var(--lesson-5-left);
    width: var(--lesson-5-width);
  }

  & .gantt-bar-content {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 100%;
  }

  & .gantt-preview-speaker-1,
  & .gantt-preview-speaker-2 {
    height: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: 0 0;
    flex-shrink: 0;
  }

  & .gantt-preview-slide {
    height: 100%;
    aspect-ratio: 43 / 30;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: 0 0;
    flex-shrink: 0;
  }
}

.gantt-hover-indicator {
  position: absolute;
  top: 0;
  width: 1px;
  /* Высота: от верха timeline до низа последнего бара */
  height: calc(100%);
  background-color: rgb(var(--ids__hover-RGB));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
  /* left управляется через JavaScript, без CSS transition */
  z-index: 10;
}

.gantt-hover-time {
  position: absolute;
  top: 0.1em;
  left: 0.1em;
  font-family: var(--mono);
  font-size: 0.7em;
  color: rgb(var(--ids__hover-RGB));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
  white-space: nowrap;
  height: 1em;
  display: flex;
  align-items: center;
}

.gantt-bar-info {
  margin-top: var(--gantt-bar-height);
  height: 0.8em;
  background-color: rgba(var(--ids__text-RGB), 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;

  &[data-lesson="1"] {
    margin-left: var(--lesson-1-left);
    width: var(--lesson-1-width);
  }

  &[data-lesson="2"] {
    margin-left: var(--lesson-2-left);
    width: var(--lesson-2-width);
  }

  &[data-lesson="3"] {
    margin-left: var(--lesson-3-left);
    width: var(--lesson-3-width);
  }

  &[data-lesson="4"] {
    margin-left: var(--lesson-4-left);
    width: var(--lesson-4-width);
  }

  &[data-lesson="5"] {
    margin-left: var(--lesson-5-left);
    width: var(--lesson-5-width);
  }
}

.gantt-bar-label {
  display: flex;
  justify-content: space-between;

  width: 100%;

  color: rgb(var(--ids__inverted-text-RGB));
  font-size: 0.6em;
  font-family: var(--mono);
  padding: 0 0.1em;

  &.gantt-bar-label-compact {
    @media (width < 768px) {
      .gantt-bar-number-text {
        display: none;
      }
    }
  }
}

.gantt-bar-description {
  width: 25em;
  font-size: 0.8em;
  line-height: 1.1;
  padding: 0.2em 0 0.5em;

  &[data-lesson="1"] {
    margin-left: var(--lesson-1-left);
    width: 40em;
  }

  &[data-lesson="2"] {
    margin-left: var(--lesson-2-left);
    width: 39em;
  }

  &[data-lesson="3"] {
    margin-left: var(--lesson-3-left);
    width: 22em;
  }

  &[data-lesson="4"] {
    margin-left: var(--lesson-4-left);
    width: 20em;
  }

  &[data-lesson="5"] {
    margin-left: var(--lesson-5-left);
    width: 20em;
  }

  @media (width < 768px) {
    max-width: 15em;
    font-size: 0.8em;

    &[data-lesson="1"] {
      width: calc(100% - var(--lesson-1-left));
      max-width: 20em;
    }

    &[data-lesson="2"] {
      width: calc(100% - var(--lesson-2-left));
      max-width: 20em;
    }

    &[data-lesson="3"] {
      width: calc(100% - var(--lesson-3-left));
      max-width: 15em;
    }

    &[data-lesson="4"] {
      margin-left: auto;
      margin-right: calc(100% - var(--lesson-4-left) - var(--lesson-4-width));
      width: auto;
      max-width: 15em;
      text-align: right;
    }

    &[data-lesson="5"] {
      margin-left: auto;
      margin-right: calc(100% - var(--lesson-5-left) - var(--lesson-5-width));
      width: auto;
      max-width: 20em;
      text-align: right;
    }
  }
}

.ids {
  .promo-table-container:has(.copy-table) {
    @media (width < 768px) {
      font-size: 0.88em;
      padding: 1.15em;
    }
  }

  .copy-table {
    &.promo-table tbody td {
      padding-top: 0.85em;
      padding-bottom: 0.95em;

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

    & tbody td:last-child {
      position: relative;
      padding-right: 2.6em;

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

    & .copy-table__cell {
      cursor: pointer;
      transition: background-color 0.5s ease;

      &:hover:not(:has(a:hover)) {
        background-color: rgba(var(--ids__surface-RGB), 0.28);
        transition: background-color 0s;
      }

      &.is-copied {
        background-color: rgba(var(--ids__surface-RGB), 0.28);
      }
    }

    & .copy-table__icon {
      position: absolute;
      top: 0.7em;
      right: 0.7em;
      z-index: 1;
      width: 1.4em;
      height: 1.4em;
      color: rgba(var(--ids__text-RGB), 0.55);
      line-height: 0;
      transition: color 0.5s ease;

      @media (width < 768px) {
        top: 0.85em;
        right: 0.85em;
        width: 1.65em;
        height: 1.65em;
      }

      & .copy-icon {
        display: block;
        width: 100%;
        height: 100%;

        & svg {
          display: block;
          width: 100%;
          height: 100%;
        }
      }
    }

    & .copy-table__cell:hover:not(:has(a:hover)) .copy-table__icon {
      color: rgba(var(--ids__text-RGB), 0.75);
      transition: color 0s;
    }

    & .copy-table__icon:hover,
    & .copy-table__cell:hover:not(:has(a:hover)) .copy-table__icon:hover {
      color: rgb(var(--ids__hover-RGB));
      transition: color 0s;
    }

    & .copy-table__cell.is-copied .copy-table__icon {
      color: rgb(var(--ids__text-RGB));
    }

    & .copy-table__value {
      display: block;
    }

    & .copy-table__cell.is-copying .copy-table__value {
      opacity: 0;
      transition: opacity 0s;
    }

    & .copy-table__cell.is-copying.is-copying-animate-in .copy-table__value {
      opacity: 1;
      transition: opacity 0.48s ease-in;
    }

    & .copy-table__flash {
      position: absolute;
      z-index: 2;
      inset: 0;
      padding-top: 0.85em;
      padding-bottom: 0.95em;
      padding-right: 2.6em;
      pointer-events: none;
      display: flex;
      align-items: flex-start;

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

    & .copy-table__flash-text {
      display: inline-block;
      font-family: inherit;
      font-size: inherit;
      line-height: inherit;
      color: rgb(var(--ids__text-RGB));
      transform-origin: center center;
      animation: copy-table-copy-flash 0.48s ease-in-out forwards;
    }

    @media (hover: hover) and (pointer: fine) {
      & .copy-table__icon {
        opacity: 0;
        pointer-events: auto;
      }

      & .copy-table__cell:hover:not(:has(a:hover)) .copy-table__icon {
        opacity: 0.65;
      }

      & .copy-table__icon:hover {
        opacity: 1;
      }
    }

    @media (hover: none), (width < 768px) {
      & .copy-table__icon {
        opacity: 0.65;
        pointer-events: auto;
      }
    }
  }
}

@keyframes copy-table-copy-flash {
  from {
    transform: scale(1);
    opacity: 1;
  }

  to {
    transform: scale(1.12);
    opacity: 0;
  }
}

.ids {
  .copy-field {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    max-width: 100%;
    font-size: 0.9em;
    font-family: var(--mono);
    letter-spacing: 0.02em;
    font-weight: 400;
    line-height: 1.35;
    margin: 0 0.2em;
    padding: 0.12em 1.55em 0.12em 0.22em;
    border-radius: 0.2em;
    color: rgba(var(--ids__code-RGB), 1);
    background: rgba(var(--ids__code-RGB), 0.1);
    cursor: pointer;
    transition: background-color 0.5s ease;

    &:hover:not(:has(a:hover)) {
      background-color: rgba(var(--ids__code-RGB), 0.16);
      transition: background-color 0s;
    }

    &.is-copied {
      background-color: rgba(var(--ids__code-RGB), 0.16);
    }

    & .copy-field__value {
      display: inline;
    }

    & .copy-field__icon {
      position: absolute;
      top: 50%;
      right: 0.28em;
      z-index: 1;
      width: 0.82em;
      height: 0.82em;
      color: rgba(var(--ids__text-RGB), 0.55);
      line-height: 0;
      transform: translateY(-50%);
      transition: color 0.5s ease;

      & .copy-icon {
        display: block;
        width: 100%;
        height: 100%;

        & svg {
          display: block;
          width: 100%;
          height: 100%;
        }
      }
    }

    &:hover:not(:has(a:hover)) .copy-field__icon {
      color: rgba(var(--ids__text-RGB), 0.75);
      transition: color 0s;
    }

    & .copy-field__icon:hover,
    &:hover:not(:has(a:hover)) .copy-field__icon:hover {
      color: rgb(var(--ids__hover-RGB));
      transition: color 0s;
    }

    &.is-copied .copy-field__icon {
      color: rgb(var(--ids__text-RGB));
    }

    &.is-copying .copy-field__value {
      opacity: 0;
      transition: opacity 0s;
    }

    &.is-copying.is-copying-animate-in .copy-field__value {
      opacity: 1;
      transition: opacity 0.48s ease-in;
    }

    & .copy-field__flash {
      position: absolute;
      z-index: 2;
      inset: 0;
      padding: 0.12em 1.55em 0.12em 0.22em;
      pointer-events: none;
      display: flex;
      align-items: center;
    }

    & .copy-field__flash-text {
      display: inline-block;
      font-family: inherit;
      font-size: inherit;
      letter-spacing: inherit;
      line-height: inherit;
      color: inherit;
      transform-origin: center center;
      animation: copy-field-copy-flash 0.48s ease-in-out forwards;
    }
  }
}

@keyframes copy-field-copy-flash {
  from {
    transform: scale(1);
    opacity: 1;
  }

  to {
    transform: scale(1.12);
    opacity: 0;
  }
}

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

.ksc-open-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;

  & > img {
    width: 100%;
    height: auto;
    display: block;
  }

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

.review-author {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5em;

  & .review-author-portrait img {
    width: 4em;
    height: 4em;
    object-fit: cover;
  }
  & .review-name {
    width: 70%;
    font-size: 0.8rem;
  }
}

.logo-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.7em;
  margin-bottom: 0.5em;

  @media (width < 768px) {
    gap: 1.2em;
  }

  & .logo {
    font-size: 1.5;
    font-family: var(--mono);
    font-weight: 500;

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

  &.L {
    @media (width < 768px) {
      gap: 1.5em;
    }

    & .logo {
      font-size: 1.7em;
      line-height: 0.6;
      letter-spacing: -0.02em;

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

.contour.ksc-course-requests-panel {
  margin-top: calc(var(--ids__density) * 1.25em);
  margin-bottom: calc(var(--ids__density) * 0.5em);
  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;
  background: transparent;

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

.ksc-course-requests {
  margin-top: 0;
  margin-bottom: 0;
}

.ksc-course-requests__actions {
  margin-top: 0.65em;
  margin-bottom: 0;
}

.ksc-course-requests__next {
  font: inherit;
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 500;
  padding: 0.35em 0.75em 0.3em;
  color: rgb(var(--ids__text-RGB));
  background: rgba(var(--ids__surface-RGB), 1);
  border: 2px solid rgba(var(--ids__text-RGB), 0.35);
  border-radius: 0.2em;
  cursor: pointer;
}

.ksc-course-requests__next:hover {
  border-color: rgba(var(--ids__link-RGB), 0.6);
  color: rgb(var(--ids__link-RGB));
}

.ksc-course-requests__counter {
  font-family: var(--mono);
  font-size: 0.75em;
  opacity: 0.65;
  margin-bottom: 0.35em;
}

.ksc-course-requests__quote {
  font-size: 1.2em;
  line-height: var(--ids__density);
  margin-bottom: 0;
}

.outcomes {
  --outcomes-gap: 1.25em;
  --outcomes-surface: rgba(var(--ids__surface-RGB), 0.5);

  & .outcomes__grid {
    display: flex;
    align-items: stretch;
    gap: var(--outcomes-gap);

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

  & .outcomes__card {
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  & .outcomes__card--model {
    flex: 2;
    min-width: 0;
  }

  & .outcomes__side-stack {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--outcomes-gap);

    @media (width < 768px) {
      flex-direction: row;
    }
  }

  & .outcomes__side-stack .outcomes__card {
    flex: 1;
    min-width: 0;
    min-height: 0;
  }

  & .outcomes__card-body {
    background: var(--outcomes-surface);
    position: relative;
    overflow: hidden;
  }

  & .outcomes__card--model .outcomes__card-body {
    aspect-ratio: 5 / 4;
    padding: 0.7em;

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

  & .outcomes__card--narratives .outcomes__card-body,
  & .outcomes__card--team .outcomes__card-body {
    flex: 1;
    min-height: 0;
  }

  & .outcomes__card--narratives .outcomes__card-body {
    background: transparent;
    container-type: size;
  }

  @media (width < 768px) {
    & .outcomes__card--narratives .outcomes__card-body {
      aspect-ratio: 3 / 2;
    }

    & .outcomes__card--team .outcomes__card-body {
      aspect-ratio: 1 / 1;
    }
  }

  & .outcomes__caption {
    margin-top: 0.8em;
    font-family: var(--mono);
    font-size: 1em;
    font-weight: 700;
    line-height: 1.2;
    opacity: 1;
  }
}

.outcomes__model {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1em;

  @media (width < 768px) {
    gap: 0.6em;
  }

  & .outcomes__top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 0.7em;
    row-gap: 0.6em;

    @media (width < 768px) {
      grid-template-columns: repeat(2, 1fr);
      column-gap: 0.5em;
    }
  }

  & .outcomes__bottom {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    column-gap: 0.8em;
    align-items: stretch;

    @media (width < 768px) {
      grid-template-columns: 1fr 2fr 1fr;
      column-gap: 0.4em;
    }
  }

  & .outcomes__side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.9em;
  }

  & .outcomes__point {
    font-family: var(--mono);
    font-size: 0.7em;
    line-height: 1.3;
    background: none;
    border: 1px solid rgba(var(--ids__text-RGB), 0.2);
    border-radius: 0.2em;
    padding: 0.35em 0.55em;

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

  & .outcomes__center {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  & .outcomes__center .dkcp-component {
    font-size: 0.42em;
    margin: 3em 0 0;
    width: 100%;

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

.outcomes__illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  color: rgba(var(--ids__text-RGB), 1);
}

.outcomes__pages {
  /*
    Pages stack along an ascending diagonal. Flex + negative margins,
    высчитаны по формуле, чтобы композиция:
      — занимала всю ширину контейнера (задняя прижата к левому краю,
        передняя — к правому),
      — не обрезалась сверху (высота + два вертикальных шага = 100%).

    Параметры (в % от контейнера):
      --page-height — высота страницы
      --v-step      — вертикальный шаг между страницами

    Ширина страницы выводится из aspect-ratio 220/300:
      page-width  = page-height × 220/300 (в cqh)

    Отрицательный margin-left подбирается так, чтобы ширина стопки
    всех трёх страниц (3·page-width + 2·margin-left) равнялась 100cqw:
      margin-left = (100cqw − 3·page-width) / 2
  */
  --page-height: 90;
  --v-step: 5;

  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.outcomes__page {
  flex-shrink: 0;
  height: calc(var(--page-height) * 1cqh);
  aspect-ratio: 220 / 300;
  position: relative;

  & .outcomes__page-svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  & .outcomes__page-sheet {
    fill: rgba(var(--ids__background-RGB), 1);
    stroke: rgba(var(--ids__text-RGB), 0.85);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
  }

  & .outcomes__wire-block {
    fill: rgba(var(--ids__text-RGB), 0.75);
  }

  & .outcomes__wire-line {
    fill: rgba(var(--ids__text-RGB), 0.3);
  }

  & .outcomes__wire-image {
    fill: rgba(var(--ids__text-RGB), 0.1);
  }

  & .outcomes__wire-card {
    fill: none;
    stroke: rgba(var(--ids__text-RGB), 0.45);
    stroke-width: 0.8;
    vector-effect: non-scaling-stroke;
  }

  & .outcomes__wire-card--accent {
    fill: rgba(var(--ids__accent-RGB), 0.08);
    stroke: rgba(var(--ids__accent-RGB), 0.7);
  }

  & .outcomes__wire-icon {
    fill: rgba(var(--ids__text-RGB), 0.18);
  }

  & .outcomes__wire-block--cta {
    fill: rgba(var(--ids__accent-RGB), 0.9);
  }
}

.outcomes__page--back {
  & .outcomes__page-sheet {
    stroke: rgba(var(--ids__text-RGB), 0.45);
  }

  & .outcomes__wire-block,
  & .outcomes__wire-line,
  & .outcomes__wire-image,
  & .outcomes__wire-icon,
  & .outcomes__wire-card {
    opacity: 0.55;
  }

  & .outcomes__wire-block--cta {
    opacity: 0.7;
  }
}

.outcomes__page--middle {
  /* margin-left = (100cqw − 3·page-width) / 2 */
  margin-left: calc((100cqw - var(--page-height) * 220 / 300 * 3 * 1cqh) / 2);
  margin-bottom: calc(var(--v-step) * 1cqh);

  & .outcomes__page-sheet {
    stroke: rgba(var(--ids__text-RGB), 0.65);
  }

  & .outcomes__wire-block,
  & .outcomes__wire-line,
  & .outcomes__wire-image,
  & .outcomes__wire-icon,
  & .outcomes__wire-card {
    opacity: 0.72;
  }

  & .outcomes__wire-block--cta {
    opacity: 0.85;
  }
}

.outcomes__page--front {
  margin-left: calc((100cqw - var(--page-height) * 220 / 300 * 3 * 1cqh) / 2);
  margin-bottom: calc(var(--v-step) * 2 * 1cqh);
}

.outcomes__illustration--team {
  object-fit: cover;
  object-position: center bottom;
}

.ksc-narrative-plate {
  & h3 {
    text-align: left;
    opacity: 1;
    margin-bottom: 0;
  }

  & h6 {
    font-family: var(--mono);
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: normal;
    opacity: 0.4;
    margin: 2em 0 0.5em;
  }
}

.ksc-narrative-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
  gap: calc(var(--ids__density) * 2em);

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

.ksc-narrative-main {
  & p {
    font-family: var(--mono);
    font-size: 0.85em;
  }
}

.ksc-narrative-aside {
  font-family: var(--mono);
  font-size: 0.85em;

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

.ksc-narrative-client-logo {
  filter: grayscale(1);
  opacity: 0.7;
  margin-bottom: 1em;

  svg {
    height: 2em;
    width: auto;
    display: block;
  }
}

.home-page-top-spacer {
  height: 12vh;

  @media (width < 768px) {
    height: 5vh;
  }
}

.home-hero-wrapper {
  height: 70vh;
  max-height: 23em;

  @media (width < 768px) {
    height: auto;
    max-height: none;
  }
}

.home-hero {
  height: 95vh;
  max-height: 35em;
  padding: 1em 0;

  display: flex;
  flex-direction: column;

  & .ids__wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}

.home-hero__title {
  width: 100%;
  max-width: 1200px;
}

/* Главная: две колонки 40% / 60% (с учётом gap), на мобиле — столбик */
.home-hero .home-hero-columns {
  margin-top: auto;
  max-width: 1680px;
}

.home-hero .tag-list {
  margin-bottom: 0;
}

.home-hero-columns {
  display: grid;
  grid-template-columns: minmax(0, 4.5fr) minmax(0, 7fr);
  gap: 1.4em;
  align-items: start;

  @media (width < 768px) {
    width: 90%;
    grid-template-columns: minmax(0, 1fr);
    row-gap: calc(1.1em / 3);
  }
}

.home-hero-columns__col {
  min-width: 0;
}

.home-hero-columns__col--list {
  padding-top: 0.6em;

  @media (width < 768px) {
    padding-top: 0.4em;
  }
}

.home-hero.ids ul.tag-list li:first-child {
  transition: border-color 0.5s ease;

  &:has(a:hover) {
    border-top-color: rgb(var(--ids__hover-RGB));
    transition: border-color 0s ease;
  }

  & a {
    display: block;
    text-decoration: none;
  }
}

.home-hero-columns .tag-list {
  @media (width < 768px) {
    font-size: 1em;

    & li {
      border-top: 0.4em solid rgb(var(--ids__accent-RGB));
    }
  }
}

.home-hero-columns .logo-wall {
  margin-top: 0;
  margin-bottom: 0.45em;
  row-gap: 0.3em;
  column-gap: 1.2em;

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

.home-hero-columns .logo-wall-item {
  padding: 0.32em 0;
  color: rgba(var(--ids__text-RGB), 0.8);
}

.home-hero-columns .logo-wall-item img {
  height: 1.05em;

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

.home-hero-columns .logo-wall-item svg {
  height: 1.05em;
  width: auto;
  display: block;

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

body.logo-viewbox-debug .home-hero-columns .logo-wall-item svg {
  background-color: #fff9b8;
}

.home-hero-columns
  .logo-wall-item
  svg
  [fill]:not([fill="none"]):not([fill="white"]) {
  fill: currentColor;
}

.home-hero-columns .logo-wall-item svg [stroke]:not([stroke="none"]) {
  stroke: currentColor;
}

.home-hero-columns .logo-wall-item .logo-wall-label {
  font-size: 0.8em;
}

.why-ponedelnik {
  transform: rotate(-1deg);

  @media (width < 768px) {
    transform: none;
  }

  & .why-ponedelnik-photo {
    margin: 0 0 0.6em;

    & img {
      display: block;
      width: 100%;
      height: auto;
    }
  }

  & h2 {
    padding-bottom: 0.2em;
    margin-bottom: 0.2em;
    border-bottom: 2px solid rgb(var(--ids__text-RGB));
  }

  & .why-ponedelnik-rule {
    border: none;
    border-top: 1px solid rgb(var(--ids__text-RGB));
    margin: 0.4em 0 0;
  }

  & .why-ponedelnik-grid {
    display: grid;
    grid-template-columns: 10fr 12fr 28fr;
    column-gap: 0.67em;
    row-gap: 0.33em;
    align-items: stretch;
    font-size: 0.82em;

    & > div:first-child {
      font-weight: 700;
      border-right: 2px solid rgb(var(--ids__text-RGB));
      padding-right: 0.67em;
    }

    & > div.serif {
      font-family: var(--serif);
      border-right: 1px solid rgb(var(--ids__text-RGB));
      padding-right: 0.67em;
    }

    @media (width < 768px) {
      grid-template-columns: 1fr 1fr;
      font-size: 1em;

      & > div:first-child {
        border-right: 1px solid rgb(var(--ids__text-RGB));
        padding-right: 0.67em;
      }

      & > div.serif {
        border-right: none;
        padding-right: 0;
      }

      & > div:last-child {
        grid-column: span 2;
        border-top: 1px solid rgb(var(--ids__text-RGB));
        padding-top: 0.67em;
        margin-top: 0.2em;
      }
    }
  }
}

.author-portrait--placeholder {
  aspect-ratio: 1;
  background-color: rgba(var(--ids__surface-RGB), 1);
}

.draft-placeholder {
  padding: 1.5em;
  border: 1px dashed rgba(var(--ids__text-RGB), 0.3);
  background-color: rgba(var(--ids__surface-RGB), 0.3);
  font-family: var(--mono);
  font-size: var(--smaller);
}

.unisender-form {
  max-width: 28em;
}

.unisender-form-field {
  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;

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

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

    & b {
      font-weight: normal;
      color: rgba(var(--ids__accent-RGB), 1);
    }
  }

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

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

.unisender-form-submit {
  margin-top: 1em;
}

.logo-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;

  & .logo-download {
    width: 100%;

    &.M {
      width: calc(50% - 0.5em);
    }

    .download-plate {
      position: relative;
      width: 100%;

      .download-plate-container {
        position: relative;
        padding: 1.5em 1.5em 2em 1.5em;
        top: 0;
        box-sizing: border-box;
        background-color: rgba(var(--ids__surface-RGB), 1);

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

      .download-caption {
        opacity: 0;
        position: absolute;
        bottom: 0.5em;
        left: 0;
        width: 100%;
        text-align: center;
        color: rgba(var(--ids__text-RGB), 0.4);
        font-size: 0.8em;
        font-family: var(--mono);
        transition: opacity 0.5s ease;
      }

      &.hover {
        cursor: pointer;

        .download-plate-container {
          top: -0.2em;
        }

        .download-caption {
          opacity: 1;
          transition: opacity 0.2s ease;
        }
      }

      &:not(.hover) .download-plate-container {
        transition: top 0.1s ease;
      }

      .download-menu {
        position: relative;
        text-align: center;
        width: 100%;

        .download-menu-plate {
          display: inline-block;
          position: absolute;
          top: -1.5em;
          z-index: 1;
          width: 18em;
          margin-left: -9em;
          font-size: 0.9em;
          line-height: 1.3;
          text-align: left;
          padding: 0.5em 0.8em 0.2em 0.8em;
          box-sizing: border-box;
          border-radius: 0.5em;
          background-color: rgba(var(--ids__background-RGB), 1);
          box-shadow: 0 1em 2em 0 rgba(var(--ids__surface-RGB), 1);
          opacity: 0;
          transition:
            top 0.2s ease,
            opacity 0.2s ease;
          pointer-events: none;

          @media (width < 768px) {
            width: 27em;
            margin-left: -13.5em;
            font-size: 0.85em;
            line-height: 1.3;
          }

          p {
            width: 90%;
          }

          .logo-download-links {
            .logo-download-link {
              width: 100%;

              a {
                padding-bottom: 0.3em;
                color: rgba(var(--ids__text-RGB), 1);
                font-family: var(--mono);
                display: block;

                &:hover {
                  color: rgba(var(--ids__hover-RGB), 1);
                }
              }

              &:last-child {
                a {
                  border-bottom: 0;
                }
              }
            }
          }
        }

        &.visible {
          .download-menu-plate {
            top: -1.7em;
            pointer-events: auto;
            opacity: 1;
          }
        }
      }
    }
  }
}

.style-page {
  & h2 {
    margin-bottom: 0.45em;
  }
}

.ids__navbar {
  display: flex;
  flex-wrap: wrap;
  border: 2px solid rgba(var(--ids__text-RGB), 1);
  font-family: var(--mono);
  font-size: 0.75em;
  width: fit-content;

  ul {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  ul li {
    margin-bottom: 0;
    padding: 0;
    padding-left: 0;
    position: static;

    &::before {
      content: "";
    }

    a {
      display: block;
      padding: 0.3em 0.6em 0.2em;
      text-decoration: none;
      color: rgba(var(--ids__text-RGB), 1);
      border-right: 1px solid rgba(var(--ids__text-RGB), 0.25);
      transition: color 0.5s ease;

      &:hover {
        color: rgba(var(--ids__hover-RGB), 1);
        transition-duration: 0s;
      }
    }

    &:last-child a {
      border-right: none;
    }

    &.current > a {
      color: rgba(var(--ids__background-RGB), 1);
      background-color: rgba(var(--ids__text-RGB), 1);
      transition: none;
    }
  }
}

.ids__nav-item {
  display: block;
}

.style-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;

  & .logo-download,
  & .logo-download.M {
    width: 100%;
  }
}

.style-logo-item {
  &.style-logo-item--full {
    grid-column: 1 / -1;
  }
}

.style-logo-left-col {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.style-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;

  @media (width < 900px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.guide-color-plate {
  position: relative;
  min-height: 6.4em;
  padding: 0.45em 0.5em;
  line-height: 1.2;

  & > * {
    margin-bottom: 0.25em;
  }

  & .guide-color-plate__name {
    margin: 0;
    font-size: 0.65em;
    line-height: 1.15;
  }

  & .guide-color-plate__value {
    margin-top: auto;
  }
}

.guide-color-plate__value {
  display: inline-block;
  font: inherit;
  font-family: var(--mono);
  font-size: 0.62em;
  color: inherit;
  opacity: 0.7;
  background: none;
  border: 1px solid rgba(var(--ids__text-RGB), 0.3);
  padding: 0.15em 0.35em;
  border-radius: 0.2em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    opacity 0.3s ease;

  &:hover {
    opacity: 1;
    border-color: rgba(var(--ids__text-RGB), 1);
    transition-duration: 0s;
  }
}

@keyframes guide-color-copy-flash {
  from {
    transform: scale(1);
    opacity: 1;
  }

  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

.guide-color-plate__flash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: guide-color-copy-flash 0.4s ease-out forwards;
}

.style-font-sample {
  font-size: 1em;
  background-color: rgba(var(--ids__surface-RGB), 0.35);
  padding: 0.9em;
  height: 100%;
  box-sizing: border-box;

  & > *:last-child {
    margin-bottom: 0;
  }

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

.style-font-sample--mono {
  font-family: var(--mono);

  & aside {
    font-size: 0.85em;
    background: none;
    border: 1px solid rgba(var(--ids__text-RGB), 0.2);
    padding: 0.35em 0.8em 0.35em 0.45em;
    margin-top: 0.5em;
  }
}

.style-font-sample--serif {
  font-family: var(--serif);
}

.style-font-sample--hand {
  & .style-font-sample-hand-lead {
    font-family: var(--gothic);
    line-height: 1.3;
    color: rgba(var(--ids__text-RGB), 1);
    margin-bottom: 0.25em;
  }

  & .style-font-sample-hand-note {
    font-family: var(--hand);
    color: rgba(var(--ids__ink-RGB), 1);
    line-height: 1.3;
  }
}

.guide-color-plate--dark {
  color: rgba(var(--ids__inverted-text-RGB), 1);

  & .guide-color-plate__value {
    border-color: rgba(var(--ids__inverted-text-RGB), 0.35);

    &:hover {
      border-color: rgba(var(--ids__inverted-text-RGB), 1);
    }
  }
}

.style-typography-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.style-typography-item {
  background-color: rgba(var(--ids__surface-RGB), 0.4);
  padding: 0.9em;
  border-radius: 0.3em;

  & p:last-child,
  & ul:last-child {
    margin-bottom: 0;
  }

  & h1 {
    font-size: 3em;
    margin-bottom: 0.15em;
  }

  & h2 {
    font-size: 2.2em;
    margin-bottom: 0.15em;
  }

  & .promo-link {
    margin-bottom: 0;
  }
}

.style-product-icons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5em;
  margin-top: 2em;

  @media (width < 700px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.style-product-icon-item {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.style-product-icon-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.75em;
  overflow: hidden;
  background: rgb(var(--ids__text-RGB));

  & .promo-row__product-icon-svg {
    width: 100%;
    height: 100%;
    display: block;
  }
}

.style-product-icon-label {
  font-size: 0.8em;
  line-height: 1.35;
  color: rgba(var(--ids__text-RGB), 0.7);
}
