/* РТ-Маркировка — общие стили для маркетингового сайта */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F7F5;
  --bg-card: #FAFAF8;
  --bg-dark: #0B1220;
  --bg-dark-soft: #131C30;
  --border: #E8E5DF;
  --border-strong: #D9D5CB;
  --text: #0B0E13;
  --text-2: #4A4F5A;
  --text-3: #8A8F99;
  --text-on-dark: #FFFFFF;
  --text-on-dark-2: #A8B0C0;
  --accent: #D7641A;
  --accent-deep: #B14D08;
  --accent-soft: #FBE9D9;
  --serif: "Iowan Old Style", "Apple Garamond", "Baskerville", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: white; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
}
.logo__cube {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}
.logo__name { white-space: nowrap; }
.logo .sub {
  color: var(--text-3);
  font-weight: 600;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  letter-spacing: 0.14em;
  font-size: 11px;
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .logo__name { display: none; }
  .logo .sub {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    font-size: 10px;
  }
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a { color: var(--text-2); transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__links .btn {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: white;
  font-weight: 600;
  transition: background .15s;
}
.nav__links .btn:hover { background: black; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: color .15s;
}
.back-link:hover { color: var(--accent); }

/* ============ Generic ============ */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0 0 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s, background .15s, color .15s, border .15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--text); color: white; }
.btn--primary:hover { background: black; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { border-color: var(--text); }
.btn--link {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 3px;
  display: inline-block;
  transition: color .15s, border-color .15s;
}
.btn--link:hover { color: var(--accent); border-color: var(--accent); }

/* ============ Hero (landing) ============ */
.hero { padding: 28px 0 40px; position: relative; }
.hero__inner { max-width: 1080px; }
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 28px;
}
.hero__pill .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  color: var(--text);
}
.hero h1 .accent { color: var(--accent); }
.hero__lead {
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 760px;
  margin: 0 0 44px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual {
  margin: 80px 0 0;
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #0B1220;
}
.hero__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,18,32,0) 50%, rgba(11,18,32,0.55) 100%);
  pointer-events: none;
}

/* ============ Situations (landing) ============ */
.situations { padding: 100px 0 60px; }
.section-head { max-width: 820px; margin: 0 0 80px; }
.section-head h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0 0 20px;
}
.section-head p {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

.situation {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: stretch;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.situation__left { display: flex; flex-direction: column; }
.situation__thumb {
  height: 280px;
  border-radius: 20px;
  margin: 0 0 36px;
  position: relative;
  overflow: hidden;
  background: #0B1220;
}
.situation__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.situation__pain {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 28px;
}
.situation__pain .pain {
  font-family: var(--serif);
  font-size: clamp(26px, 3.0vw, 38px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 22px;
  font-style: italic;
}
.situation__pain .who {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.situation__pain .who::before {
  content: "—";
  margin-right: 8px;
  color: var(--text-3);
}
.situation__product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 36px 32px;
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.situation__product .product-no {
  position: absolute;
  top: 28px;
  right: 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-3);
}
.situation__product .rd-tag {
  position: absolute;
  top: 24px;
  right: 70px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.situation__product h3 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text);
  max-width: 90%;
}
.situation__product .promise {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 28px;
}
.situation__product .meta {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--border);
}
.situation__product .meta li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text);
  gap: 16px;
}
.situation__product .meta li span {
  color: var(--text-3);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  flex-shrink: 0;
}
.situation__product .meta li b { font-weight: 600; text-align: right; }
.situation__product .cta-row { margin-top: auto; }

.show-more {
  text-align: center;
  padding: 64px 0 24px;
  border-top: 1px solid var(--border);
}
.show-more p {
  color: var(--text-3);
  font-size: 14px;
  margin: 16px 0 0;
}
.more-situations { display: none; }
.more-situations.show { display: block; }

/* ============ Tech section (dark) ============ */
.tech {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 120px 0 130px;
  margin-top: 100px;
}
.tech .section-head h2 { color: var(--text-on-dark); }
.tech .section-head p { color: var(--text-on-dark-2); }
.tech .eyebrow { color: #F2A157; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tech-card {
  padding: 28px 0 0;
  border-top: 2px solid #2A3651;
  transition: border-color .2s;
}
.tech-card:hover { border-top-color: var(--accent); }
.tech-card h4 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.tech-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-on-dark-2);
  margin: 0 0 20px;
}
.tech-card .uses { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-card .uses span {
  display: inline-block;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(215, 100, 26, 0.18);
  color: #F2A157;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 26px;
  font-variant-numeric: tabular-nums;
}

/* ============ CTA + Footer ============ */
.next { padding: 100px 0; text-align: left; }
.next h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.1;
  max-width: 720px;
}
.next p {
  font-size: 18px;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 640px;
}
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
}

/* ============ Product page ============ */
.product-hero {
  padding: 64px 0 0;
}
.product-hero__inner { max-width: 1080px; }
.product-hero__no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.product-hero__no .rd {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-left: 10px;
}
.product-hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.022em;
  margin: 0 0 24px;
  color: var(--text);
}
.product-hero__tagline {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 720px;
  margin: 0 0 40px;
}
.product-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 0 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.product-hero__meta > div {
  padding: 20px 0;
  border-right: 1px solid var(--border);
  padding-right: 24px;
}
.product-hero__meta > div:last-child { border-right: none; }
.product-hero__meta dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-3);
  margin: 0 0 8px;
}
.product-hero__meta dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.product-hero__photo {
  margin: 16px 0 0;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #0B1220;
}
.product-hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Quote block */
.product-quote {
  padding: 80px 0 40px;
}
.product-quote__inner {
  max-width: 860px;
  margin: 0 auto;
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 36px;
}
.product-quote .text {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.28;
  color: var(--text);
  margin: 0 0 16px;
}
.product-quote .who {
  color: var(--text-3);
  font-size: 14.5px;
  font-weight: 600;
  margin: 0;
}
.product-quote .who::before { content: "—"; margin-right: 8px; }

/* Sections */
.product-section { padding: 64px 0; border-top: 1px solid var(--border); }
.product-section__head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  margin-bottom: 0;
}
.product-section__head .label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  padding-top: 8px;
}
.product-section__head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.product-section__body {
  margin-top: 36px;
  margin-left: 328px;
}

.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  line-height: 1.55;
  position: relative;
  padding-left: 28px;
}
.bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.bullets li:last-child { border-bottom: none; }
.bullets li b { font-weight: 700; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 36px;
}
.step {
  padding: 28px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.step .n {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}
.step h4 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.step p {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

.reuse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
}
.reuse-card {
  padding: 28px 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.reuse-card--green {
  background: #F0F7F2;
  border-color: #D7E5DC;
}
.reuse-card--orange {
  background: var(--accent-soft);
  border-color: #F0CFAF;
}
.reuse-card h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--text-2);
}
.reuse-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

.contract-block {
  background: var(--text);
  color: white;
  border-radius: 20px;
  padding: 40px 44px;
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 32px;
  align-items: center;
}
.contract-block dt {
  color: var(--text-on-dark-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.contract-block dd {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.contract-block .btn--primary { background: var(--accent); color: white; }
.contract-block .btn--primary:hover { background: var(--accent-deep); }

.warning-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 36px;
}
.warning-block .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.warning-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.warning-block li {
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}
.warning-block li::before {
  content: "✕";
  color: var(--accent);
  font-weight: 700;
  margin-right: 12px;
}
.warning-block .why {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
  font-size: 15px;
  color: var(--text-2);
  font-style: italic;
}

.next-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.next-product {
  display: block;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color .2s, transform .2s;
}
.next-product:hover { border-color: var(--accent); transform: translateY(-2px); }
.next-product .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin: 0 0 8px;
}
.next-product .name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.next-product .arrow {
  color: var(--accent);
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* ============ Responsive ============ */
@media (max-width: 880px) {
  .situation { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .situation__thumb { height: 220px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 18px; }
  .nav__links a:not(.btn) { display: none; }
  .container { padding: 0 22px; }
  .hero { padding: 64px 0 0; }
  .hero__visual { height: 320px; margin-top: 56px; }
  .tech { margin-top: 60px; padding: 80px 0 90px; }
  .product-hero__photo { height: 280px; }
  .product-hero__meta { grid-template-columns: 1fr; }
  .product-hero__meta > div { border-right: none; border-bottom: 1px solid var(--border); }
  .product-hero__meta > div:last-child { border-bottom: none; }
  .product-section__head { grid-template-columns: 1fr; gap: 16px; }
  .product-section__body { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .reuse-grid { grid-template-columns: 1fr; }
  .contract-block { grid-template-columns: 1fr; gap: 20px; }
  .next-products { grid-template-columns: 1fr; }
}

/* ============ Family accents (per-section colour scoping) ============ */

/* AI keeps the default orange accent set in :root */

body.section--marking {
  --accent: #1E3A5F;          /* graphite blue */
  --accent-deep: #11243F;
  --accent-soft: #E2EAF4;
}

body.section--portal {
  --accent: #0B0E13;          /* neutral charcoal */
  --accent-deep: #000000;
  --accent-soft: #F0F0EE;
}

/* Portal-specific spacing: no CTA / visual under the hero, so kill the
   white gap that the AI landing fills with buttons + photo */
body.section--portal .hero { padding-bottom: 8px; }
body.section--portal .hero__lead { margin-bottom: 0; }
body.section--portal .section-head { margin-bottom: 40px; }
body.section--portal .family-grid { margin-top: 32px; }

/* On the marking landing the product-no badge is longer ("01 · ПРОДУКТ"),
   so reserve room on the right of the h3 to keep it off the badge. */
body.section--marking .situation__product h3 { padding-right: 130px; }
body.section--marking .situation__product .product-no { font-size: 11.5px; letter-spacing: 0.14em; }

/* ============ Portal page: family choice ============ */

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 56px 0 0;
}

.family-card {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.family-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(11,18,32,0.08);
}
.family-card__cover {
  height: 220px;
  margin: -36px -36px 28px;
  background: #0B1220;
  position: relative;
  overflow: hidden;
}
.family-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.family-card__cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,18,32,0) 55%, rgba(11,18,32,0.45) 100%);
}
.family-card .eyebrow {
  color: #D7641A;             /* keep AI orange on AI card by default */
  margin: 0 0 14px;
}
.family-card--marking .eyebrow {
  color: #1E3A5F;             /* marking colour on marking card */
}
.family-card h2 {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.016em;
  line-height: 1.08;
  margin: 0 0 14px;
}
.family-card .proposition {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0 0 18px;
}
.family-card .persona {
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0 0 28px;
}
.family-card .cta {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid currentColor;
  padding-bottom: 4px;
  color: var(--text);
  transition: color .15s, border-color .15s;
}
.family-card--ai .cta:hover { color: #D7641A; border-color: #D7641A; }
.family-card--marking .cta:hover { color: #1E3A5F; border-color: #1E3A5F; }

/* ============ Marking landing: nested module chips ============ */

.module-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 0;
}

.module-chip {
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.module-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.module-chip .badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.module-chip h4 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.008em;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--text);
}
.module-chip p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
  margin: 0;
}
.module-chip .arrow {
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

/* ============ Marking landing: service cards ============ */

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.service-card .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.service-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--text);
}
.service-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0 0 18px;
}
.service-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.service-card .meta span b {
  color: var(--text);
  font-weight: 600;
  display: block;
  font-size: 14.5px;
  margin-top: 2px;
}
.service-card .arrow {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

/* ============ Module page: top-of-hero notice ============ */

.module-notice {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 14px 20px;
  border-radius: 8px;
  margin: 0 0 28px;
  font-size: 14.5px;
  color: var(--text-2);
}
.module-notice b { color: var(--text); }
.module-notice a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ============ Responsive overrides for new components ============ */

@media (max-width: 880px) {
  .family-grid { grid-template-columns: 1fr; gap: 22px; }
  .family-card { min-height: auto; padding: 28px 24px 24px; }
  .family-card__cover { height: 180px; margin: -28px -24px 22px; }
  .module-strip { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}
