/* ===== form toast notification ===== */
.form-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-black);
  color: var(--c-white);
  padding: 16px 28px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.form-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.form-toast--error {
  background: #c0392b;
}

/* ===== hero ===== */
.hero {
  height: 100vh;
  background-color: var(--c-black);
  background-image: url('../images/main_bg.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  color: var(--c-white);
}

.hero__container {
  position: relative;
  z-index: 1;
  height: 100vh;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--c-black-rgb), var(--opacity-subtle));
}

.hero__content h1 {
  color: var(--c-white);
  font-size: var(--type-display-size);
  font-weight: var(--type-display-weight);
  line-height: var(--type-display-line);
  letter-spacing: var(--type-display-spacing);
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
}

.hero__subtitle {
  margin-top: var(--space-sm);
  color: var(--c-white);
}

.hero__content {
  width: var(--content-width-md);
  margin-top: auto;
  text-align: left;
}

/* ===== link-btn component ===== */
.hero__link,
.about__link,
.system__link {
  display: inline-block;
  position: relative;
  margin-top: var(--space-md);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-spacing);
  text-decoration: none;
  padding-bottom: var(--stack-2xs);
}

.hero__link::after,
.about__link::after,
.system__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--border-hairline);
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
}

.hero__link {
  color: var(--c-white);
}

/* ===== section-label ===== */
.section-label {
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-spacing);
  color: var(--c-black);
}

/* ===== about ===== */
.about {
  background: var(--c-smoke);
  min-height: 100vh;
  overflow: hidden;
}

.about__container {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about__main {
  display: flex;
  gap: var(--cluster-xl);
  align-items: flex-start;
  width: 100%;
  padding-top: var(--stack-xs);
  border-top: var(--border-hairline) solid var(--c-black);
}

.about__brand {
  width: var(--content-width-lg);
  margin: 0;
  font-size: var(--type-title-size);
  font-weight: var(--type-title-weight);
  line-height: var(--type-title-line);
  letter-spacing: var(--type-title-spacing);
  text-transform: none;
}

.about__content {
  width: var(--content-width-md);
}

.about__headline {
  margin: 0;
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-spacing);
}

.about__text {
  margin-top: var(--stack-md);
}

.about__text p {
  margin: 0;
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-spacing);
}

.about__text p + p {
  margin-top: var(--stack-sm);
}

.about__link {
  line-height: var(--lh-150);
}

.about__gallery {
  display: flex;
  gap: var(--cluster-xl);
  align-items: flex-end;
  width: 100%;
}

.about__thumbs {
  width: var(--content-width-lg);
  display: grid;
  grid-template-columns: var(--gallery-thumb-columns);
  justify-content: space-between;
  gap: 0;
  align-self: flex-end;
}

.about__thumb {
  position: relative;
  width: var(--thumb-width);
  height: var(--thumb-height);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.42;
  filter: grayscale(100%) brightness(0.92);
  overflow: visible;
  transition: transform var(--motion-duration-fast) var(--motion-ease-soft), opacity var(--motion-duration-ui-slow) var(--motion-ease-soft), filter 320ms var(--motion-ease-soft);
}

.about__thumb img {
  width: 100%;
  height: var(--thumb-height);
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}

.about__thumb:hover {
  opacity: 0.78;
  filter: grayscale(0) brightness(1);
}

.about__thumb:hover::after {
  content: none;
}

.about__thumb--active,
.about__thumb.is-active,
.about__thumb[aria-current="true"],
.about__thumb[aria-pressed="true"] {
  transform: translateY(-12px);
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

.about__thumb--active::after,
.about__thumb.is-active::after,
.about__thumb[aria-current="true"]::after,
.about__thumb[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: var(--border-hairline);
  background: var(--c-black);
}

.about__preview {
  position: relative;
  width: var(--content-width-md);
  height: var(--preview-height);
  overflow: hidden;
  border-radius: var(--radius-md);
}

.about__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== header ===== */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    color: var(--c-black);
    background: transparent;
    border-bottom: var(--border-hairline) solid transparent;
    transition: transform var(--motion-duration-panel) cubic-bezier(0.22, 1, 0.36, 1), background var(--motion-duration-surface) ease, backdrop-filter var(--motion-duration-surface) ease, border-color var(--motion-duration-surface) ease;
  }

  .header--light {
    color: var(--c-white);
  }

  .header--dark {
    color: var(--c-black);
  }
  
  .header.is-hidden {
    transform: translateY(-100%);
  }
  
  .menu-nav-bar {
    padding-top: var(--section-space);
  }

  .menu-nav-bar__stroke {
    border-top: var(--border-hairline) solid currentColor;
    padding-top: var(--stack-xs);
  }

  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: var(--stack-lg);
  }
  
  .brand-logo {
    width: var(--logo-width);
    height: auto;
  }
  
  .header__nav, .menu-nav-bar__desktop {
    display: flex;
    align-items: center;
    gap: var(--cluster-md);
  }

  .header__nav a, .menu-nav-bar__desktop a {
    font-size: var(--type-label-size);
    font-weight: var(--type-label-weight);
    line-height: var(--type-label-line);
    letter-spacing: var(--type-label-spacing);
    color: currentColor;
  }

  .header__nav a[aria-current="page"],
  .menu-nav-bar__desktop a[aria-current="page"],
  .header__mobile-links a[aria-current="page"] {
    opacity: 0.4;
    pointer-events: none;
  }

  /* ===== бургер ===== */
  .header__burger, .menu-nav-bar__burger {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1210;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: var(--icon-button-size);
    height: var(--icon-button-size);
    color: inherit;
  }

  .header__burger-line {
    position: absolute;
    left: 10px;
    width: var(--burger-line-width);
    height: var(--burger-line-height);
    background: currentColor;
    transform-origin: center;
    top: 50%;
    margin-top: -1px;
    transform: translateY(0);
    transition: top var(--motion-duration-ui-base) cubic-bezier(0.2, 0, 0.38, 0.9), transform var(--motion-duration-ui-base) cubic-bezier(0.2, 0, 0.38, 0.9), opacity var(--motion-duration-ui-fast) ease;
  }

  .header__burger-line--top {
    transform: translateY(-8px);
  }

  .header__burger-line--middle {
    transform: translateY(0);
  }

  .header__burger-line--bottom {
    transform: translateY(8px);
  }

  .header.menu-open .header__burger-line--top {
    transform: translateY(0) rotate(45deg);
  }

  .header.menu-open .header__burger-line--middle {
    opacity: 0;
    transform: translateY(0);
  }

  .header.menu-open .header__burger-line--bottom {
    transform: translateY(0) rotate(-45deg);
  }
  
  /* ===== мобильное меню ===== */
.header__mobile-menu, .menu-nav-bar__mobile {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1100;
    flex-direction: column;
    align-items: stretch;
    padding: var(--cluster-2xl) var(--container-gutter-mobile) 48px;
    background: var(--c-overlay-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: opacity var(--motion-duration-ui-slow) ease, visibility var(--motion-duration-ui-slow) ease;
  }

  .header--light .header__mobile-menu,
  .header--light .menu-nav-bar__mobile {
    color: var(--c-white);
  }

  .header--light .header__mobile-links a,
  .header--light .header__mobile-links a:link,
  .header--light .header__mobile-links a:visited,
  .header--light .header__mobile-links a:hover,
  .header--light .header__mobile-links a:active {
    color: var(--c-white);
  }

  .header--dark .header__mobile-menu,
  .header--dark .menu-nav-bar__mobile {
    color: var(--c-black);
  }

  .header--dark .header__mobile-links a,
  .header--dark .header__mobile-links a:link,
  .header--dark .header__mobile-links a:visited,
  .header--dark .header__mobile-links a:hover,
  .header--dark .header__mobile-links a:active {
    color: var(--c-black);
  }

  .header__mobile-links {
    display: flex;
    flex-direction: column;
    gap: var(--stack-lg-plus);
    width: 100%;
  }

  .header__mobile-links a {
    display: block;
    width: 100%;
    padding-bottom: var(--stack-sm);
    font-size: var(--type-body-size);
    font-weight: var(--type-body-weight);
    line-height: var(--type-body-line);
    letter-spacing: var(--type-body-spacing);
    text-transform: none;
    color: currentColor;
    border-bottom: var(--border-hairline) solid currentColor;
  }

  .header__mobile-menu.open, .menu-nav-bar__mobile.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* when mobile menu is open, force light (white) color for burger and links over dark overlay */
  .header.menu-open {
    color: var(--c-white);
  }

  .header.menu-open .header__mobile-menu,
  .header.menu-open .menu-nav-bar__mobile {
    color: var(--c-white);
  }

  .header.menu-open .header__mobile-links a,
  .header.menu-open .header__mobile-links a:link,
  .header.menu-open .header__mobile-links a:visited,
  .header.menu-open .header__mobile-links a:hover,
  .header.menu-open .header__mobile-links a:active {
    color: var(--c-white);
  }
  
/* ===== systems ===== */
.systems {
  background: var(--c-white);
  overflow: hidden;
}

.systems__inner {
  width: 100%;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.systems__contents {
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
}

.systems__bar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  position: sticky;
  top: var(--system-bar-top);
  background: transparent;
  z-index: 10;
  pointer-events: none;
}

.systems__bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--border-hairline);
  background: var(--c-black);
  transition: width 320ms var(--motion-ease-out);
}

.systems__bar.is-condensed::before {
  width: var(--systems-condensed-width);
}

.systems__bar .section-label {
  display: block;
  margin-top: var(--stack-xs);
}

.systems__list {
  grid-column: 2;
  grid-row: 1;
  padding-top: var(--stack-3xs-plus);
  display: flex;
  flex-direction: column;
  gap: var(--stack-xl);
  pointer-events: auto;
}

.system {
  padding: 0;
}

.system__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--text-gap-inline);
  margin-bottom: var(--space-sm);
}

.system__name {
  font-size: var(--type-title-size);
  font-weight: var(--type-title-weight);
  line-height: var(--type-title-line);
  letter-spacing: var(--type-title-spacing);
  color: var(--c-black);
  margin: 0;
}

.system__designer {
  font-size: var(--type-title-size);
  font-weight: var(--type-title-weight);
  line-height: var(--type-title-line);
  letter-spacing: var(--type-title-spacing);
  color: var(--c-gray);
  font-style: normal;
  margin: 0;
}

.system__desc {
  margin-bottom: var(--stack-lg);
}

.system__desc p {
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-spacing);
  color: var(--c-black);
}

.system__desc p + p {
  margin-top: var(--space-xs);
}


.system__photos {
  display: grid;
  gap: var(--space-2xs);
}

.system__photos--3 {
  grid-template-columns: 460fr 212fr 212fr;
  height: var(--system-gallery-height);
}

.system__photos--3 .system__photo {
  aspect-ratio: unset;
}


.system__photo {
  background: var(--c-smoke);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.system__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.system__photo::after {
  content: 'Смотреть';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-family: var(--ff-manrope);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.system__photo:hover::after {
  opacity: 1;
}

.system__photo:hover img {
  transform: scale(1.04);
}

/* ===== service ===== */
.service {
  background: var(--c-smoke);
  min-height: 100vh;
}

.service__inner {
  width: 100%;
  min-height: 100vh;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
}

.service__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.service__header {
  width: 100%;
  border-top: var(--border-hairline) solid var(--c-black);
  padding-top: var(--stack-xs);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--stack-xs);
  margin-bottom: var(--space-lg);
}

.service__subtitle {
  max-width: var(--content-width-sm);
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-spacing);
  color: var(--c-black);
}

.service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--grid-gap-md);
  row-gap: var(--grid-gap-lg);
  align-content: start;
}

.service__item {
  display: flex;
  flex-direction: column;
  gap: var(--cluster-sm);
  border-top: var(--border-hairline) solid var(--c-black);
  padding-top: var(--space-2xs);
}

.service__name {
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-spacing);
  color: var(--c-black);
}

.service__desc {
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-spacing);
  color: var(--c-black);
}

/* ===== contact-cta ===== */
.contact-cta {
  background: var(--c-smoke);
  margin-top: var(--space-lg);
  flex: 0 0 auto;
}

.contact-cta__outer {
  width: 100%;
}

.contact-cta__inner {
  width: 100%;
  border-top: var(--border-hairline) solid var(--c-black);
  padding-top: var(--stack-xs);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap-sm);
  align-items: start;
}

.contact-cta__col {
  min-width: 0;
}

.contact-cta__headline {
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-spacing);
}


.contact-cta__text p {
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-spacing);
  color: var(--c-black);
}

.contact-cta__form-label {
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-spacing);
  color: var(--c-gray);
  margin-bottom: var(--space-sm);
  display: block;
}

.contact-cta__form {
  display: flex;
  align-items: center;
  border-bottom: var(--border-hairline) solid var(--c-gray);
  padding-bottom: var(--space-2xs);
  gap: var(--space-sm);
}

.contact-cta__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--ff-manrope);
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-spacing);
  color: var(--c-gray);
}

.contact-cta__input::placeholder {
  color: var(--c-gray);
}

.contact-cta__submit {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-manrope);
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-spacing);
  color: var(--c-gray);
  white-space: nowrap;
  padding: 0;
  transition: opacity var(--motion-duration-ui-fast) var(--motion-ease-soft);
}

.contact-cta__submit:hover {
  opacity: 0.5;
}

.contact-cta__privacy {
  margin-top: var(--space-sm);
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  color: var(--c-gray);
}

/* ===== footer ===== */
.footer {
  background: var(--c-gray);
  color: var(--c-smoke);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-space) var(--container-gutter);
}

.footer__logo,
.header__logo,
.menu-nav-bar__logo {
  display: inline-flex;
  align-items: center;
}

.footer__main {
  padding-top: var(--stack-xs);
  padding-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: var(--border-hairline) solid var(--c-smoke);
}

.footer__cols {
  display: flex;
  gap: var(--cluster-lg);
  align-items: flex-start;
}

.footer__address,
.footer__contacts,
.footer__legal,
.footer__copy {
  display: flex;
  flex-direction: column;
  gap: var(--stack-xs);
  font-style: normal;
}

/* Copyright uses <p> elements — spacing comes from t-label p+p token (8px).
   Remove flex gap to avoid double-spacing (flex gap + p+p margin). */
.footer__copy {
  gap: 0;
}

.footer__address p,
.footer__copy p {
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-spacing);
  color: var(--c-smoke);
}

.footer__contacts a,
.footer__legal a {
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-spacing);
  color: var(--c-smoke);
  transition: opacity var(--motion-duration-ui-fast) var(--motion-ease-soft);
}

.footer__contacts a:hover,
.footer__legal a:hover {
  opacity: 0.75;
}

/* ===== адаптив ===== */
  @media (max-width: 768px) {
    .hero {
      background-image: url('../images/main_mobile_bg.webp');
    }

    .header__burger-line {
      background: currentColor;
    }

    .menu-nav-bar {
      padding-top: var(--section-space-mobile);
    }

    .menu-nav-bar__stroke {
      padding-top: var(--stack-xs);
    }

    .hero__container {
      padding-top: var(--section-space-mobile);
      padding-bottom: var(--section-space-mobile);
    }

  .hero__content {
    width: 100%;
    max-width: var(--content-width-md);
  }

    .about {
      min-height: auto;
    }

    .about__container {
      min-height: 100vh;
      padding-top: var(--section-space-mobile);
      padding-bottom: var(--section-space-mobile);
    }

    .about__main {
      flex-direction: column;
      gap: var(--stack-lg);
    }

    .about__brand,
    .about__content,
    .about__gallery,
    .about__thumbs,
    .about__preview {
      width: 100%;
    }

    .about__gallery {
      flex-direction: column-reverse;
      align-items: stretch;
      gap: var(--stack-lg);
      margin-top: var(--stack-xl);
    }

    .about__thumbs {
      grid-template-columns: var(--gallery-thumb-columns);
      overflow-x: auto;
      justify-content: flex-start;
      gap: var(--stack-xs-plus);
      padding-top: var(--cluster-sm);
      padding-bottom: var(--stack-sm-minus);
    }

    .about__preview {
      height: var(--preview-height-mobile);
    }

    /* systems */
    .systems__inner {
      padding-top: var(--section-space-mobile);
      padding-bottom: var(--section-space-mobile);
    }

    .systems__contents {
      grid-template-columns: 1fr;
      row-gap: var(--stack-xl);
      border-top: var(--border-hairline) solid var(--c-black);
      padding-top: var(--stack-xs);
    }

    .systems__inner.reveal,
    .systems__inner.reveal.is-visible {
      opacity: 1;
      transform: none;
      transition: none;
    }

    .systems__bar {
      grid-column: 1;
      grid-row: auto;
      grid-template-columns: 1fr;
      position: static;
    }

    .systems__bar::before {
      content: none;
    }

    .systems__bar.is-condensed::before {
      width: 100%;
    }

    .systems__list {
      grid-column: 1;
      grid-row: auto;
      padding-top: 0;
      min-width: 0;
    }

    .system {
      min-width: 0;
    }

    .system__photos--3 {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      height: auto;
      padding-bottom: var(--space-2xs);
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
    }

    .system__photos--3 .system__photo {
      flex: 0 0 min(78vw, 320px);
      aspect-ratio: 4 / 3;
      scroll-snap-align: start;
    }

    .system__photos--4 {
      grid-template-columns: 1fr 1fr;
      height: auto;
    }

    .system__photos--4 .system__photo {
      aspect-ratio: 4 / 3;
    }

    /* service */
    .service__inner {
      padding-top: var(--section-space-mobile);
      padding-bottom: var(--section-space-mobile);
      min-height: auto;
      gap: var(--space-xl);
    }

    .service {
      min-height: auto;
    }

    .service__header {
      max-width: 100%;
      gap: var(--stack-2xs);
      margin-bottom: var(--stack-xl);
    }

    .service__grid {
      grid-template-columns: 1fr;
      column-gap: 0;
      row-gap: var(--grid-gap-md);
    }

    /* contact-cta */
    .contact-cta {
      margin-top: var(--stack-xl);
    }

    .contact-cta__inner {
      grid-template-columns: 1fr;
    }

    /* footer */
    .footer__inner {
      padding: var(--section-space-mobile) var(--container-gutter-mobile);
    }

    .footer__main {
      flex-direction: column;
      gap: var(--space-md);
    }

    .footer__cols {
      flex-direction: column;
      flex-wrap: nowrap;
      gap: var(--stack-lg);
      width: 100%;
    }

    .header__nav, .menu-nav-bar__desktop {
      display: none;
    }

    .header__burger, .menu-nav-bar__burger {
      display: flex;
      width: var(--icon-button-size);
      height: var(--icon-button-size);
    }
  }

/* ===== about page ===== */
.about-hero,
.about-content,
.contacts-page,
.collection-hero,
.collection-content {
  width: 100%;
}

.about-hero__inner {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.about-hero__title {
  margin-top: var(--space-sm);
}

.about-content__inner {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.about-content__title {
  margin: 0;
  max-width: var(--content-width-md);
}

.about-content__text {
  margin-top: var(--stack-md);
  max-width: var(--content-width-md);
}

.about-content__text p + p {
  margin-top: var(--stack-sm);
}

/* ===== about page longform ===== */
.about-page {
  width: 100%;
}

.about-page__inner {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-page__section {
  display: grid;
  grid-template-columns: 598px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-top: var(--border-hairline) solid var(--c-black);
  padding-top: var(--stack-xs);
}

.about-page__section--fixed-cols {
  grid-template-columns: 598px 598px;
}

.about-page__section--process {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-page__section--process .about-page__content-col {
  width: 100%;
  display: block;
}

.about-page__heading-col,
.about-page__content-col {
  min-width: 0;
}

.about-page__content-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-page__content-col--full {
  gap: 0;
}

.about-page__eyebrow,
.about-page__section-title,
.about-page__headline {
  margin: 0;
}

.about-page__copy {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
  max-width: var(--content-width-md);
}

.about-page__copy p,
.about-page__studio-meta p {
  margin: 0;
}

.about-page__link {
  margin-top: 0;
  width: fit-content;
}

.about-page__hero-media,
.about-page__mosaic-item,
.about-page__studio-media,
.about-page__process-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.about-page__hero-media {
  height: 620px;
}

.about-page__hero-media img,
.about-page__mosaic-item img,
.about-page__studio-media img,
.about-page__process-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page__mosaic {
  display: grid;
  grid-template-columns: 598px 297px 297px;
  gap: 4px;
}

.about-page__mosaic-item {
  height: 392px;
}

.about-page__section--studio {
  grid-template-columns: 297px minmax(0, 1fr);
}

.about-page__studio-layout {
  display: grid;
  grid-template-columns: 297px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.about-page__studio-media {
  height: 260px;
}

.about-page__studio-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-page__studio-meta {
  display: flex;
  flex-direction: column;
  gap: var(--stack-2xs);
  color: var(--c-black);
}

.about-page__studio-meta a {
  color: inherit;
}

.about-page__process-grid {
  display: grid;
  grid-template-columns: repeat(4, 297px);
  justify-content: space-between;
  gap: 4px;
  width: 100%;
}

.about-page__process-card {
  display: flex;
  flex-direction: column;
  gap: var(--stack-xs);
  width: 297px;
}

.about-page__process-media {
  position: relative;
  height: 260px;
  width: 297px;
}

.about-page__process-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--c-black-rgb), 0.3) 0%, rgba(var(--c-black-rgb), 0.06) 38%, rgba(var(--c-black-rgb), 0.02) 100%);
}

.about-page__process-index {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: 1;
  color: var(--c-white);
}

.about-page__process-text {
  margin: 0;
  max-width: 297px;
}

.about-page__process-lead {
  display: block;
  margin-bottom: 10px;
}

/* ===== contacts page ===== */
.contacts-page,
.contacts-page__intro,
.contacts-page__form-col {
  width: 100%;
}

.contacts-page__inner {
  border-top: none;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.contacts-page__lead,
.contacts-page__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--grid-gap-md);
  align-items: start;
  border-top: var(--border-hairline) solid var(--c-black);
  padding-top: var(--stack-xs);
}

.contacts-page__details {
  margin-top: var(--space-md);
}

.contacts-page__eyebrow {
  display: block;
  margin-bottom: var(--space-sm);
}

.contacts-page__title {
  margin: 0;
}

.contacts-page__subtitle {
  margin-top: var(--space-2xs);
  max-width: 380px;
}

.contacts-page__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contacts-page__input {
  width: 100%;
  border: none;
  border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.25);
  background: transparent;
  padding: 0 0 var(--stack-xs);
  outline: none;
  font-family: var(--ff-manrope);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-spacing);
  color: var(--c-black);
}

.contacts-page__input + .contacts-page__input {
  margin-top: var(--stack-xs);
}

.contacts-page__input::placeholder {
  color: var(--c-gray);
  opacity: 1;
}

.contacts-page__input:not(:placeholder-shown):invalid {
  border-bottom-color: #c0392b;
  color: #c0392b;
}
.contacts-page__input:not(:placeholder-shown):invalid::placeholder {
  color: #c0392b;
}
.contact-cta__input:not(:placeholder-shown):invalid {
  border-bottom-color: #c0392b;
}

.contacts-page__submit {
  margin-top: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  border: none;
  background: transparent;
  cursor: pointer;
}

.contacts-page__privacy {
  margin-top: var(--space-xs);
  max-width: 367px;
  color: var(--c-gray);
}

.contacts-page__media {
  width: 121px;
  aspect-ratio: 121 / 168;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--c-white);
}

.contacts-page__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contacts-page__info {
  width: 100%;
}

.contacts-page__info-group + .contacts-page__info-group {
  margin-top: var(--space-sm);
}

.contacts-page__info-label {
  color: var(--c-gray);
  margin-bottom: var(--space-2xs);
}

.contacts-page__info-text,
.contacts-page__info-text a {
  color: var(--c-black);
}

.contacts-page__info-text a {
  text-decoration: underline;
  text-decoration-thickness: var(--border-hairline);
  text-underline-offset: 0.15em;
}

.contacts-page__messengers {
  display: flex;
  gap: 24px;
  margin-top: var(--space-2xs);
}

.contacts-page__messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--c-gray);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contacts-page__messenger-link:hover {
  color: var(--c-black);
}

.collection-hero__inner {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.collection-hero__title {
  margin-top: var(--space-sm);
}

.collection-content__inner {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.collection-content__title {
  margin: 0;
  max-width: var(--content-width-md);
}

.collection-content__text {
  margin-top: var(--stack-md);
  max-width: var(--content-width-md);
}

/* ===== collection page (catalog) ===== */
.collection-page__inner {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  display: flex;
  flex-direction: column;
  gap: var(--stack-lg);
}

.collection-page__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 600px;
  gap: var(--space-sm);
  align-items: start;
  padding-top: var(--stack-xs);
  border-top: var(--border-hairline) solid var(--c-black);
}

.collection-page__header-title {
  margin: 0;
}

.collection-page__header-text {
  margin: 0;
}

.collection-page__header-text p + p {
  margin-top: var(--space-xs);
}

.collection-page__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--stack-lg);
}

/* full-width hero image */
.collection-page__img-hero {
  overflow: hidden;
  border-radius: var(--radius-sm);
  height: 680px;
}

.collection-page__img-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* rich block: small image + text side by side, justified apart */
.collection-page__rich-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.collection-page__rich-img {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  width: 168px;
  height: 168px;
}

.collection-page__rich-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-page__rich-text {
  margin: 0;
  max-width: var(--content-width-lg);
}

/* image grids */
.collection-page__img-grid {
  display: grid;
  gap: 4px;
}

.collection-page__img-grid--3-left {
  grid-template-columns: 2fr 1fr 1fr;
}

.collection-page__img-grid--3-right {
  grid-template-columns: 1fr 1fr 2fr;
}

.collection-page__img-grid--text-img {
  grid-template-columns: 1fr minmax(0, 1fr);
  align-items: start;
  gap: var(--space-xs);
}

.collection-page__img-cell {
  overflow: hidden;
  border-radius: var(--radius-sm);
  height: 392px;
}

.collection-page__img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-page__text-cell {
  display: flex;
  flex-direction: column;
  gap: var(--stack-sm);
}

.collection-page__text-cell-title {
  margin: 0;
}

.collection-page__text-cell-body {
  margin: 0;
}


@media (max-width: 768px) {
  .collection-page__inner {
    padding-top: var(--section-space-mobile);
    padding-bottom: var(--section-space-mobile);
    gap: var(--space-sm);
  }

  .collection-page__header {
    grid-template-columns: 1fr;
    gap: var(--stack-xl);
  }

  .collection-page__img-hero {
    height: auto;
    aspect-ratio: 342 / 225;
  }

  .collection-page__rich-block {
    flex-direction: column;
    gap: var(--stack-lg);
  }

  .collection-page__rich-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .collection-page__img-grid--3-left,
  .collection-page__img-grid--3-right,
  .collection-page__img-grid--text-img {
    grid-template-columns: 1fr;
  }

  .collection-page__img-cell {
    height: auto;
    aspect-ratio: 342 / 225;
  }
}

@media (max-width: 768px) {
  .about-page__inner,
  .about-hero__inner,
  .about-content__inner,
  .collection-hero__inner,
  .collection-content__inner {
    padding-top: var(--section-space-mobile);
    padding-bottom: var(--section-space-mobile);
  }

  .about-page__inner {
    gap: 56px;
  }

  .about-page__section {
    grid-template-columns: 1fr;
    gap: var(--stack-xl);
  }

  .about-page__copy {
    max-width: none;
  }

  .about-page__hero-media,
  .about-page__mosaic-item,
  .about-page__studio-media,
  .about-page__process-media {
    height: auto;
    aspect-ratio: 342 / 225;
  }

  .about-page__mosaic,
  .about-page__process-grid,
  .about-page__studio-layout {
    grid-template-columns: 1fr;
  }

  .about-page__mosaic,
  .about-page__process-grid {
    gap: var(--space-md);
  }

  .about-page__process-card,
  .about-page__process-media {
    width: 100%;
  }

  .about-page__process-text {
    max-width: none;
  }

  .contacts-page__inner {
    padding-top: var(--section-space-mobile);
    padding-bottom: var(--section-space-mobile);
  }

  .contacts-page__lead,
  .contacts-page__details {
    grid-template-columns: 1fr;
    row-gap: var(--stack-xl);
  }

  .contacts-page__details {
    margin-top: var(--space-lg);
  }

  .contacts-page__subtitle,
  .contacts-page__privacy {
    max-width: none;
  }

  .contacts-page__media {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .contacts-page__input,
  .contact-cta__input {
    font-size: max(16px, 1rem);
    min-height: 44px;
  }

}



/* ===== design system page ===== */
.design-system-page {
  background-color: var(--c-white);
}

/* ---- sticky top nav ---- */
.ds-topnav {
  position: relative;
  z-index: 1;
  background: var(--c-white);
  border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.1);
}

.ds-topnav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  height: 44px;
}

.ds-topnav__link {
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  text-transform: uppercase;
  color: rgba(var(--c-black-rgb), 0.38);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--motion-duration-ui-fast) ease;
  white-space: nowrap;
}

.ds-topnav__link:hover {
  color: var(--c-black);
}

/* ---- main content ---- */
.ds-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter) var(--space-lg);
}

/* ---- hero ---- */
.ds-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: end;
  padding: 40px 0 36px;
  border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.08);
  margin-bottom: 40px;
}

.ds-hero__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-hero__eyebrow {
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  text-transform: uppercase;
  color: var(--c-gray);
  margin: 0;
}

.ds-hero__title {
  font-family: var(--ff-manrope);
  font-size: var(--type-display-size);
  font-weight: var(--type-display-weight);
  line-height: var(--type-display-line);
  letter-spacing: var(--type-display-spacing);
  text-transform: uppercase;
  color: var(--c-black);
  margin: 0;
}

.ds-hero__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 4px;
}

.ds-hero__lead {
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-spacing);
  color: rgba(var(--c-black-rgb), 0.5);
  max-width: 42ch;
  margin: 0;
}

.ds-hero__version {
  font-family: var(--ff-manrope);
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  color: rgba(var(--c-black-rgb), 0.3);
  margin: 0;
}

/* ---- section ---- */
.ds-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.08);
  scroll-margin-top: 110px;
}

.ds-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.ds-section__head {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: baseline;
  gap: 0;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.08);
}

.ds-section__num {
  font-family: var(--ff-manrope);
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  color: rgba(var(--c-black-rgb), 0.28);
  padding-top: 8px;
}

.ds-section__title {
  font-family: var(--ff-manrope);
  font-size: var(--type-display-size);
  font-weight: var(--type-display-weight);
  line-height: var(--type-display-line);
  letter-spacing: var(--type-display-spacing);
  text-transform: uppercase;
  color: var(--c-black);
  margin: 0;
}

/* ---- sub-section ---- */
.ds-subsection {
  margin-bottom: 28px;
}

.ds-subsection__title {
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  text-transform: uppercase;
  color: var(--c-gray);
  margin: 0 0 12px;
}

/* ---- grids ---- */
.ds-grid {
  display: grid;
  gap: 1px;
  background: rgba(var(--c-black-rgb), 0.1);
  border: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.1);
}

.ds-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ds-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ds-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- card ---- */
.ds-card {
  background: var(--c-white);
  padding: 28px;
}

.ds-card__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.07);
}

/* ---- component preview ---- */
.ds-preview {
  border: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.1);
  margin-bottom: 2px;
  overflow: hidden;
  background: var(--c-white);
}

.ds-preview__meta {
  padding: 18px 28px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.07);
  background: rgba(var(--c-black-rgb), 0.015);
}

.ds-preview__canvas {
  padding: 32px 28px;
  background: rgba(var(--c-black-rgb), 0.025);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.ds-preview__canvas--dark {
  background: var(--c-black);
}

.ds-preview__canvas--header {
  display: block;
  padding: 0;
  min-height: auto;
  background: var(--c-smoke);
}

.ds-preview__canvas--dark.ds-preview__canvas--header {
  background: var(--c-black);
}

.ds-preview__canvas--footer {
  display: block;
  padding: 0;
  min-height: auto;
}

.ds-preview__canvas--split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 0;
  gap: 0;
  min-height: 160px;
}

.ds-preview__canvas-cell {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: rgba(var(--c-black-rgb), 0.025);
}

.ds-preview__canvas-cell--dark {
  background: var(--c-black);
}

/* header demo */
.ds-header-demo {
  position: static !important;
  top: auto !important;
  width: 100%;
}

.ds-header-demo .menu-nav-bar__stroke {
  border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.1);
}

.ds-header-demo--light .header__inner { color: var(--c-white); }
.ds-header-demo--light .header__nav a { color: var(--c-white); }
.ds-header-demo--light .brand-logo { fill: var(--c-white); }
.ds-header-demo--light .header__burger-line { background: var(--c-white); }
.ds-header-demo--dark .header__inner { color: var(--c-black); }
.ds-header-demo--dark .header__nav a { color: var(--c-black); }
.ds-header-demo--dark .brand-logo { fill: var(--c-black); }
.ds-header-demo--dark .header__burger-line { background: var(--c-black); }

/* footer demo */
.ds-footer-demo .footer__inner {
  padding: var(--space-md);
  max-width: none;
}

/* state labels */
.ds-preview__states {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.07);
}

.ds-state-label {
  font-size: var(--fs-10);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-02);
  color: rgba(var(--c-black-rgb), 0.35);
  text-align: center;
  padding: 10px 0;
  background: var(--c-white);
}

.ds-state-label--on-dark {
  border-right: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.07);
}

.ds-state-label--sm {
  font-size: var(--fs-10);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-02);
  color: rgba(var(--c-black-rgb), 0.3);
}

.ds-preview__canvas-cell--dark .ds-state-label--sm {
  color: rgba(245, 242, 239, 0.35);
}

/* ---- atoms ---- */
.ds-kicker {
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  text-transform: uppercase;
  color: var(--c-gray);
  white-space: nowrap;
}

.ds-code {
  font-family: var(--ff-manrope);
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  background: rgba(var(--c-black-rgb), 0.06);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--c-black);
  display: inline;
}

.ds-muted {
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  line-height: var(--type-label-line);
  letter-spacing: var(--type-label-spacing);
  color: rgba(var(--c-black-rgb), 0.4);
}

/* ---- token list ---- */
.ds-token-list {
  display: flex;
  flex-direction: column;
}

.ds-token-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.06);
}

.ds-token-row:last-child { border-bottom: none; }

/* ---- color grid ---- */
.ds-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(var(--c-black-rgb), 0.1);
  border: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.1);
  margin-bottom: 28px;
}

.ds-color {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
}

.ds-color__swatch {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
}

.ds-color__info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ---- typography showcase ---- */
.ds-type-showcase {
  display: flex;
  flex-direction: column;
  border: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.08);
}

.ds-type-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.06);
}

.ds-type-row:last-child { border-bottom: none; }

.ds-type-meta {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.06);
  justify-content: center;
  background: rgba(var(--c-black-rgb), 0.015);
}

.ds-type-sample {
  margin: 0;
  padding: 20px 32px;
  display: flex;
  align-items: center;
}

/* ---- directory list ---- */
.ds-dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ds-dir-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.06);
}

.ds-dir-list li:last-child { border-bottom: none; }

/* ---- container diagram ---- */
.ds-container-diagram {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ds-container-diagram__outer {
  display: flex;
  align-items: center;
  height: 80px;
  border: var(--border-hairline) dashed rgba(var(--c-black-rgb), 0.2);
}

.ds-container-diagram__label {
  font-family: var(--ff-manrope);
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  color: var(--c-gray);
  text-align: center;
  flex: 0 0 90px;
  padding: 0 8px;
}

.ds-container-diagram__inner {
  flex: 1;
  height: 100%;
  background: rgba(var(--c-black-rgb), 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: var(--border-hairline) dashed rgba(var(--c-black-rgb), 0.14);
  border-right: var(--border-hairline) dashed rgba(var(--c-black-rgb), 0.14);
}

.ds-container-diagram__center {
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  color: rgba(var(--c-black-rgb), 0.35);
  letter-spacing: var(--type-caption-spacing);
}

.ds-container-diagram__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(var(--c-black-rgb), 0.1);
  border: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.1);
}

.ds-container-diagram__spec {
  background: var(--c-white);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ds-container-diagram__spec-label {
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  text-transform: uppercase;
  color: var(--c-gray);
}

.ds-container-diagram__spec-value {
  font-family: var(--ff-manrope);
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  color: var(--c-black);
}

/* ---- demo wrappers ---- */
.ds-service-grid-demo { width: 100%; max-width: 280px; }
.ds-cta-demo { width: min(100%, 440px); }
.ds-system-demo { width: 100%; max-width: 720px; }

/* ---- text blocks ---- */
.ds-text-blocks {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(var(--c-black-rgb), 0.08);
  border: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.08);
  margin-bottom: 28px;
}

.ds-text-block {
  background: var(--c-white);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}

.ds-text-block__label {
  font-family: var(--ff-manrope);
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  color: var(--c-gray);
  padding-top: 3px;
  white-space: nowrap;
}

/* ---- image sizes ---- */
.ds-img-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.ds-img-grid .ds-img-placeholder {
  max-height: 160px;
}

.ds-img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.ds-img-placeholder {
  background: rgba(var(--c-black-rgb), 0.04);
  border: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.ds-img-placeholder__dim {
  font-family: var(--ff-manrope);
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  color: rgba(var(--c-black-rgb), 0.35);
}

.ds-img-placeholder__name {
  font-size: var(--type-caption-size);
  font-weight: var(--type-caption-weight);
  line-height: var(--type-caption-line);
  letter-spacing: var(--type-caption-spacing);
  color: rgba(var(--c-black-rgb), 0.28);
  text-transform: uppercase;
}

/* ---- organism demos ---- */
.ds-hero-demo {
  background: var(--c-black);
  padding: 32px 40px;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

.ds-hero-demo .hero__content {
  width: auto;
  margin-top: 0;
}

.ds-about-demo {
  background: var(--c-smoke);
  padding: 28px 32px;
}

.ds-about-demo .about__main {
  gap: 40px;
}

.ds-about-demo .about__brand {
  width: auto;
  min-width: 180px;
}

.ds-about-demo .about__content {
  width: auto;
}

.ds-about-demo .about__gallery {
  gap: 24px;
  margin-top: 32px;
}

.ds-about-demo .about__thumbs {
  width: auto;
  grid-template-columns: repeat(3, var(--thumb-width));
}

.ds-about-demo .about__preview img {
  max-height: 200px;
  object-fit: cover;
}

.ds-systems-demo {
  padding: 0 40px 40px;
}

.ds-systems-demo .systems__bar {
  position: static;
}

/* ---- responsive ---- */
@media (max-width: 768px) {
  .ds-topnav__inner {
    padding: 0 var(--container-gutter-mobile);
    gap: 24px;
    overflow-x: auto;
  }

  .ds-main {
    padding: 0 var(--container-gutter-mobile) var(--space-lg);
  }

  .ds-hero {
    grid-template-columns: 1fr;
    padding: 28px 0 32px;
  }

  .ds-section__head {
    grid-template-columns: 32px 1fr;
  }

  .ds-grid--2,
  .ds-grid--3,
  .ds-grid--4 {
    grid-template-columns: 1fr;
  }

  .ds-color-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ds-type-row {
    grid-template-columns: 1fr;
  }

  .ds-type-meta {
    border-right: none;
    border-bottom: var(--border-hairline) solid rgba(var(--c-black-rgb), 0.06);
    padding: 14px 16px;
  }

  .ds-type-sample {
    padding: 14px 16px;
  }

  .ds-preview__canvas--split {
    grid-template-columns: 1fr;
  }

  .ds-hero__title { font-size: 2.75rem; }
  .ds-section__title { font-size: 1.75rem; }
}

/* ===== lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
  cursor: default;
}
.lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox__close:hover { color: #fff; }
.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  transition: background 0.2s;
}
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.22); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
[data-lightbox] { cursor: zoom-in; }
}

/* ===== focus-visible (accessibility) ===== */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--c-black);
  outline-offset: 3px;
  border-radius: 2px;
}
.about__thumb:focus-visible {
  outline: 2px solid var(--c-black);
  outline-offset: 4px;
}
.contact-cta__submit:focus-visible,
.contacts-page__submit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
/* arrow animates on focus too */
.hero__link:focus-visible .link-arrow,
.about__link:focus-visible .link-arrow,
.system__link:focus-visible .link-arrow,
.contacts-page__submit:focus-visible .link-arrow {
  transform: translateX(4px);
}
.hero__link:focus-visible::after,
.about__link:focus-visible::after {
  transform: scaleX(0);
}

/* ===== breadcrumb ===== */
.collection-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--stack-lg);
  flex-wrap: wrap;
}
.collection-breadcrumb__link {
  color: rgba(var(--c-black-rgb), 0.45);
  text-decoration: none;
  transition: color var(--motion-duration-ui-fast) ease;
}
.collection-breadcrumb__link:hover {
  color: var(--c-black);
}
.collection-breadcrumb__sep {
  color: rgba(var(--c-black-rgb), 0.25);
  font-size: 11px;
}
.collection-breadcrumb__current {
  color: var(--c-black);
}
