/* Лаборатория ТРИЗ — Stitch design system */

:root {
  --graphite: #17212b;
  --triz-blue: #173a5e;
  --blue: #246b9e;
  --triz-orange: #e86f2d;
  --triz-orange-hover: #d56123;
  --bg: #f4f7f9;
  --surface: #f7f9ff;
  --white: #ffffff;
  --muted: #647381;
  --primary: #020912;
  --primary-container: #17212b;
  --on-primary: #ffffff;
  --on-primary-container: #7e8995;
  --on-surface: #0e1d29;
  --on-surface-variant: #44474b;
  --on-secondary-container: #3a5a7f;
  --secondary: #416086;
  --outline: #74777c;
  --outline-variant: #c4c6cb;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --ok: #0f6b4c;
  --ok-container: #e6f6ef;

  --font: Manrope, "Segoe UI", sans-serif;
  --max-width: 1280px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --margin-desktop: 64px;
  --section: clamp(64px, 9vw, 112px);
  --header-h: 80px;
  --radius: 0.125rem;
  --radius-lg: 0.25rem;
  --shadow: 0 4px 20px rgba(23, 33, 43, 0.04);
  --shadow-hover: 0 12px 32px rgba(23, 33, 43, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--triz-orange);
  color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  user-select: none;
}

.container {
  width: min(100% - (var(--margin-mobile) * 2), var(--max-width));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - (var(--margin-desktop) * 2), var(--max-width));
  }
}

.label-caps {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.caption {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.display {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.headline {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.headline-sm {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.body-lg {
  font-size: 20px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

.body-md {
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

.lead {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

.eyebrow {
  color: var(--triz-blue);
  margin: 0 0 1rem;
}

.measure {
  max-width: 42rem;
}

.triz-grid {
  background-image:
    linear-gradient(to right, rgba(23, 58, 94, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 58, 94, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s;
}

.btn:hover {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.btn--sm {
  min-height: 42px;
  padding: 0.65rem 1.25rem;
}

.btn--accent {
  background: var(--triz-orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 111, 45, 0.22);
}

.btn--accent:hover {
  background: var(--triz-orange-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--triz-blue);
  border-color: var(--triz-blue);
}

.btn--ghost:hover {
  background: var(--triz-blue);
  color: #fff;
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover {
  background: #fff;
  color: var(--graphite);
}

.btn--full {
  width: 100%;
}

.experience-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.experience-cta .btn:last-child {
  margin-left: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 249, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 198, 203, 0.3);
  box-shadow: 0 1px 2px rgba(23, 33, 43, 0.04);
  transition: height 0.3s, box-shadow 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.brand__name {
  font-size: clamp(1.05rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.15;
}

.brand__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  white-space: nowrap;
}

.nav-desktop {
  display: none;
  gap: 1.35rem;
}

.nav-desktop a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--on-secondary-container);
  border-bottom-color: var(--on-secondary-container);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions .btn {
  display: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--primary);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 40;
  background: var(--surface);
  padding: 1.5rem var(--margin-mobile) 2rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow: auto;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.7rem 0;
  color: var(--on-surface);
}

.nav-mobile .btn {
  margin-top: 1.5rem;
  font-size: 12px;
}

@media (min-width: 1100px) {
  .nav-desktop {
    display: flex;
  }

  .header-actions .btn {
    display: inline-flex;
  }

  .menu-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
  border-bottom: 1px solid rgba(196, 198, 203, 0.3);
  overflow: hidden;
}

.hero__shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.hero__guides {
  display: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  color: var(--triz-orange);
}

.hero__kicker-line {
  width: 2rem;
  height: 1px;
  background: var(--triz-orange);
}

.hero__quote {
  margin: 1.5rem 0 1.25rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--triz-blue);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--triz-blue);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__note {
  margin: 1rem 0 0;
}

.trust {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(196, 198, 203, 0.5);
}

.trust span {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
}

.trust .material-symbols-outlined {
  color: var(--triz-blue);
  font-size: 22px;
}

.hero__photo {
  display: none;
}

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

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 9, 18, 0.1);
  pointer-events: none;
}

.analysis-frame {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  background: var(--white);
  border: 1px solid rgba(196, 198, 203, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.analysis-frame__stage {
  position: relative;
  flex: 1;
  min-height: 280px;
  overflow: hidden;
  background:
    linear-gradient(var(--outline-variant) 1px, transparent 1px),
    linear-gradient(90deg, var(--outline-variant) 1px, transparent 1px);
  background-size: 24px 24px;
}

.analysis-frame__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  opacity: 0.88;
  filter: grayscale(0.35);
  mix-blend-mode: multiply;
}

.analysis-frame__title {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  margin: 0;
  max-width: 22rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.94);
  border-left: 3px solid var(--triz-blue);
  color: var(--triz-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  box-shadow: 0 4px 16px rgba(23, 58, 94, 0.12);
}

.analysis-frame__link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.analysis-node {
  position: absolute;
  z-index: 2;
  width: 8rem;
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.5rem;
  box-shadow: 0 4px 12px rgba(23, 58, 94, 0.08);
}

.analysis-node--blue {
  top: 32%;
  left: 14%;
  border: 1px solid var(--triz-blue);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.analysis-node--blue .caption {
  color: var(--triz-blue);
  font-weight: 700;
}

.analysis-node--orange {
  top: 56%;
  right: 8%;
  width: 11.5rem;
  min-height: 4.4rem;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--triz-orange);
  background: rgba(255, 248, 243, 0.96);
  box-shadow: 0 8px 20px rgba(232, 111, 45, 0.22);
}

.caption--accent {
  color: var(--triz-orange);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 959px) {
  .analysis-frame__title {
    font-size: 0.68rem;
    max-width: 15rem;
    top: 0.7rem;
    left: 0.7rem;
    right: 0.7rem;
    padding: 0.45rem 0.55rem;
  }

  .analysis-node {
    width: 6.5rem;
    min-height: 3rem;
  }

  .analysis-node--orange {
    width: 8.2rem;
    min-height: 3.5rem;
    right: 6%;
    padding: 0.4rem 0.45rem;
  }

  .caption--accent {
    font-size: 0.78rem;
  }
}

@media (min-width: 960px) {
  .hero__guides {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(to right, rgba(23, 58, 94, 0.12) 1px, transparent 1px) 10% 0 / 1px 100% no-repeat,
      linear-gradient(to right, rgba(23, 58, 94, 0.12) 1px, transparent 1px) 50% 0 / 1px 100% no-repeat,
      linear-gradient(to right, rgba(23, 58, 94, 0.12) 1px, transparent 1px) 90% 0 / 1px 100% no-repeat;
  }

  .hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--gutter);
    min-height: calc(90vh - var(--header-h));
  }

  .analysis-frame {
    min-height: 420px;
    transform: translate(8px, 8px);
  }

  .analysis-frame__stage {
    min-height: 420px;
  }

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

@media (max-width: 959px) {
  .brand__tag {
    display: none;
  }
}

/* Sections */
.section {
  padding: var(--section) 0;
  border-bottom: 1px solid rgba(196, 198, 203, 0.3);
}

.section:last-of-type {
  border-bottom: 0;
}

.section--dark {
  background: var(--graphite);
  color: #fff;
  border-bottom: 0;
}

.section--blue {
  background: var(--triz-blue);
  color: #fff;
  border-bottom: 0;
}

.section--dark .headline,
.section--blue .headline,
.section--dark .headline-sm,
.section--blue .headline-sm {
  color: #fff;
}

.section--dark .body-lg,
.section--blue .body-lg,
.section--dark .body-md,
.section--blue .body-md {
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head .headline + .body-lg,
.section-head .headline + .lead {
  margin-top: 1rem;
}

.accent-line {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 2rem 0 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--triz-orange);
}

.section--dark .accent-line,
.section--blue .accent-line {
  color: #fff;
}

/* Cards */
.cards {
  display: grid;
  gap: var(--gutter);
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(196, 198, 203, 0.3);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card .material-symbols-outlined {
  color: var(--secondary);
  font-size: 28px;
  margin-bottom: 0.85rem;
}

.card .body-md {
  margin: 0.55rem 0 0;
}

.card--ref {
  padding-top: 1.75rem;
}

.card__ref {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--on-primary-container);
}

@media (min-width: 700px) {
  .cards--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

/* TRIZ flow */
.flow {
  display: grid;
  gap: 0.5rem;
  margin: 2.5rem 0 1.5rem;
}

.flow__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid rgba(196, 198, 203, 0.3);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
}

.flow__n {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--triz-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.flow__arrow {
  display: none;
}

@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    gap: 0.6rem;
  }

  .flow__item {
    flex-direction: column;
    text-align: center;
    padding: 1.15rem 0.75rem;
  }
}

/* Timeline */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: var(--white);
  border: 1px solid rgba(196, 198, 203, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.step__n {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--graphite);
  color: #fff;
  font-weight: 700;
}

.step .body-md {
  margin: 0.4rem 0 0;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }

  .step {
    grid-template-columns: 1fr;
  }
}

/* Experts */
.experts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 900px) {
  .experts {
    grid-template-columns: 1fr 1fr;
  }
}

.expert {
  background: var(--white);
  border: 1px solid rgba(196, 198, 203, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.expert__media {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  background: var(--bg);
}

.expert__media--end {
  justify-content: flex-end;
}

.expert__photo {
  width: calc((min(100vw, var(--max-width)) - (2 * var(--margin-mobile))) / 4);
  aspect-ratio: 1 / 1;
  height: auto;
  flex: 0 0 auto;
  background: #e1f0ff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.5rem;
  color: var(--triz-blue);
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 600;
}

@media (max-width: 899px) {
  .expert__photo {
    width: 50vw;
  }
}

@media (min-width: 900px) {
  .expert__photo {
    width: calc((min(100vw, var(--max-width)) - (2 * var(--margin-desktop))) / 4);
    font-size: 0.85rem;
    padding: 0.75rem;
  }
}

.expert__photo:has(img) {
  padding: 0;
}

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

.expert__body {
  padding: 1.5rem 1.35rem 1.75rem;
}

.expert__role {
  color: var(--triz-orange);
  margin: 0.65rem 0 1rem;
}

.expert__facts {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.expert__facts li {
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  padding-left: 1rem;
  position: relative;
}

.expert__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--triz-orange);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--triz-blue);
  background: #ecf4ff;
  border: 1px solid rgba(23, 58, 94, 0.12);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
}

.expert__lab {
  margin: 1.1rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border-left: 2px solid var(--triz-blue);
  font-size: 0.95rem;
}

.accordion-panel {
  display: none;
  margin-top: 1.1rem;
  padding: 1.1rem 1rem 0.25rem;
  border-top: 1px solid rgba(196, 198, 203, 0.4);
  background: #f0f4f8;
}

.accordion-panel.is-open {
  display: block;
}

.accordion-panel h4 {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.95rem;
}

.accordion-panel ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--on-surface-variant);
}

.accordion-panel a {
  color: var(--triz-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.duo {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  background: #102538;
  color: #fff;
  padding: 1.75rem 1.35rem;
  border-radius: var(--radius-lg);
}

.duo h3 {
  margin: 0 0 0.75rem;
}

.duo ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

.duo__center {
  text-align: center;
  padding: 1rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.duo__center strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .duo {
    grid-template-columns: 1fr 0.9fr 1fr;
    align-items: center;
    padding: 2.25rem;
  }

  .duo__center {
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 1.25rem;
  }
}

/* Projects */
.projects {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  background: var(--white);
  border: 1px solid rgba(196, 198, 203, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

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

.project-card .label-caps {
  color: var(--triz-orange);
  margin-bottom: 0.65rem;
}

.project-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--on-surface-variant);
}

/* Results */
.results {
  display: grid;
  gap: 0.75rem;
}

.result-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-lg);
}

@media (min-width: 800px) {
  .results {
    grid-template-columns: 1fr 1fr;
  }
}

/* Why */
.why-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.why-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  list-style: none;
}

.why-list {
  padding: 0;
  margin-left: 0;
}

.why-list .material-symbols-outlined {
  color: var(--triz-orange);
}

/* CTA band */
.cta-band {
  text-align: left;
}

.cta-band .headline {
  max-width: 22ch;
}

.cta-band .btn {
  margin-top: 1.75rem;
}

/* Form */
.contact {
  display: grid;
  gap: 2.5rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid rgba(196, 198, 203, 0.3);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form .caption {
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(196, 198, 203, 0.5);
  border-radius: var(--radius-lg);
  padding: 0.8rem 0.95rem;
  outline: none;
  min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--outline);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--triz-blue);
  box-shadow: 0 0 0 3px rgba(23, 58, 94, 0.12);
}

.contact-form input:invalid:not(:placeholder-shown):not(:focus),
.contact-form textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: var(--error);
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 700px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.form-consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.65rem !important;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  line-height: 1.45;
}

.form-consent input {
  width: auto;
  min-height: 0;
  margin-top: 0.25rem;
  accent-color: var(--triz-blue);
}

.form-consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-notice {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
}

.form-notice--ok {
  background: var(--ok-container);
  color: var(--ok);
}

.form-notice--err {
  background: var(--error-container);
  color: var(--on-error-container);
}

.contact-form.is-sending {
  opacity: 0.85;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: var(--on-primary);
  padding: 3rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(126, 137, 149, 0.25);
}

.site-footer__brand {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer__lead {
  max-width: 22rem;
  margin: 1rem 0 1.25rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-primary-container);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--on-primary-container);
}

.site-footer__col h4 {
  color: #fff;
  margin: 0 0 0.15rem;
}

.site-footer__col a:hover {
  color: #fff;
}

.site-footer__meta,
.site-footer__contacts,
.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: var(--on-primary-container);
}

.site-footer__copy {
  margin: 0;
  color: var(--on-primary-container);
  font-size: 12px;
}

.site-footer__extra {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  color: var(--on-primary-container);
}

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
    border-top: 1px solid rgba(126, 137, 149, 0.2);
    padding-top: 3rem;
    border-bottom: 0;
  }
}

/* Inner pages */
.page-hero {
  padding: 3rem 0 var(--section);
}

.legal-page {
  max-width: 42rem;
}

.legal-page__body {
  margin-top: 1.5rem;
}

.legal-page__body p,
.legal-page__body li {
  color: var(--on-surface-variant);
}

.articles {
  display: grid;
  gap: var(--gutter);
}

.article-card {
  background: var(--white);
  border: 1px solid rgba(196, 198, 203, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-card__body {
  padding: 1.5rem 1.35rem 1.75rem;
}

.article-card__body h2 {
  margin: 0.45rem 0 0.85rem;
}

.article-card__body h2 a:hover {
  color: var(--triz-blue);
}

.articles-pager {
  margin-top: 2rem;
}

.articles-pager ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.articles-pager a,
.articles-pager span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--triz-blue);
  border-radius: var(--radius-lg);
  color: var(--triz-blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.articles-pager .current {
  background: var(--triz-blue);
  color: #fff;
}

.article-layout {
  max-width: 46rem;
}

.article-layout__back {
  margin: 0 0 1.25rem;
}

.article-layout__back a {
  color: var(--triz-blue);
  font-weight: 700;
}

.article-layout__hero {
  margin: 1.5rem 0 1.75rem;
}

.article-layout__hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.article-layout__body {
  margin-top: 1.25rem;
}

.article-layout__body p,
.article-layout__body li {
  color: var(--on-surface-variant);
}

.article-layout__body h2,
.article-layout__body h3 {
  color: var(--on-surface);
  margin: 1.75rem 0 0.75rem;
}

.article-layout__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.25rem 0;
}

.article-layout__back .btn {
  margin-right: 0.75rem;
  margin-top: 0.5rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__dot { animation: none; }
  .btn:hover { transform: none; }
}

body {
  padding-top: var(--header-h);
}

.hero {
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 2.5rem);
}
