/* ============================================
   KZ indoor playground B2B — design tokens
   Reference layout: enterprise hero + cards
   ============================================ */
:root {
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5c6b7f;
  --color-primary: #0c4a6e;
  --color-primary-hover: #075985;
  --color-accent: #d4a012;
  --color-accent-soft: #fef8e8;
  --color-border: #e2e8f0;
  --color-success: #0d9488;
  --font-sans: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Outfit", "DM Sans", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1180px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ----- Top bar (phone) ----- */
.top-bar {
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  text-align: center;
}
.top-bar a {
  color: #fff;
  font-weight: 600;
}
.top-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  align-items: center;
}
/* Телефон | WhatsApp | Email — ішкі бөліктердің арасы */
.top-bar__extras {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 36px;
}
.top-bar__segment {
  line-height: 1.45;
}
@media (max-width: 520px) {
  .top-bar__inner {
    gap: 12px 24px;
    flex-direction: column;
  }
  .top-bar__extras {
    flex-direction: column;
    gap: 10px 0;
  }
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  min-height: var(--header-h);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  color: var(--color-primary);
}
.logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), #0369a1);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-desktop a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.nav-desktop a:hover {
  background: var(--color-bg);
  text-decoration: none;
}
.nav-desktop a.is-active {
  color: var(--color-primary);
  background: rgba(12, 74, 110, 0.08);
}

/* Баға сұрау — басқа мәзір сілтемелерімен бір стиль (сары түсті батырма емес) */
.nav-desktop a.nav-cta {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
  }
  .nav-desktop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 16px 20px 24px;
    box-shadow: var(--shadow-md);
    align-items: stretch;
  }
  .site-header.is-open .nav-desktop {
    display: flex;
  }
}

/* ----- Hero / Banner ----- */
.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  background: linear-gradient(120deg, #0c4a6e 0%, #164e63 45%, #0f766e 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 20px 64px;
}
.hero__eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 640px;
}
.hero__lead {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 0 28px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--color-accent);
  color: #1a1204;
}
.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(212, 160, 18, 0.35);
  text-decoration: none;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}
.btn--outline {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.is-active {
  background: var(--color-accent);
  width: 28px;
  border-radius: 5px;
}

/* ----- Sections ----- */
.section {
  padding: 64px 20px;
}
.section--alt {
  background: var(--color-surface);
}
.section__head {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  text-align: center;
}
.section__head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px;
  color: var(--color-text);
}
.section__head p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.section__head .en {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ----- Product / news cards ----- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
/* Клиенттік жобалар: 4 бағана (12 элемент = 3 қатар) */
.grid-cards--cases {
  grid-template-columns: repeat(4, 1fr);
}
/* Басты бет жаңалықтар: төрт тең баған, карточка биіктігі созылады */
.grid-cards--news {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
@media (max-width: 1100px) {
  .grid-cards--cases {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-cards--news {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .grid-cards--cases {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-cards--news {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .grid-cards--cases {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
  position: relative;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__media span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}
.card__body {
  padding: 20px;
}
.card__body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.card__title-link {
  color: inherit;
  text-decoration: none;
}
.card__title-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.card__body p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}
/* Product list: title + category + «more» only; equal-height footers */
.card--product {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card--product .card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 8px;
}
.card--product .card__body h3 {
  margin: 0;
  line-height: 1.35;
}
.card--product .card__footer {
  margin-top: auto;
  padding: 0 18px 16px;
}
.card--product .card__link {
  display: inline-block;
}
.card__footer {
  padding: 0 20px 20px;
}
.card__link {
  font-weight: 600;
  font-size: 14px;
}

.news-list-stack {
  display: grid;
  gap: 20px;
}
.news-list-page .pagination {
  margin-top: 28px;
  justify-content: center;
}
/* Жаңалық карточкасы: сурет + тең биіктік + төменгі сілтеме бір қатарда */
.card--news {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.card--news .card__media--news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card--news .card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 18px 10px;
}
.card--news .card__body h3 {
  margin: 0 0 8px;
  line-height: 1.35;
  font-size: 1.05rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}
.meta--news {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 6px !important;
}
.card__footer--news {
  margin-top: auto;
  padding: 0 18px 16px;
}
.card__footer--news .card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.news-card__excerpt {
  font-size: 14px;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}
.grid-cards--news .news-card__excerpt {
  -webkit-line-clamp: 3;
}
.news-list-stack .card--news .card__body h3 {
  -webkit-line-clamp: 3;
  min-height: 0;
}
/* Басты бет өнім карточкасы: қысқа сипаттама, біркелкі биіктік */
.card--product .featured-product__excerpt {
  margin-top: 8px;
  -webkit-line-clamp: 3;
  min-height: 0;
}
.card--product .featured-case__excerpt {
  margin-top: 8px;
  -webkit-line-clamp: 3;
  min-height: 0;
}

/* ----- Features (advantages) ----- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  padding: 28px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Басты бет — артықшылықтар: фон, тақырып, премиум карточкалар */
.section--advantages {
  position: relative;
  background: linear-gradient(180deg, #eef2f7 0%, #f6f8fb 38%, #fbfcfe 100%);
  overflow: hidden;
}
.section--advantages::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(12, 74, 110, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.section--advantages .section__head {
  position: relative;
  margin-bottom: 48px;
}
.section--advantages .section__head h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section--advantages .section__head > p:not(.en) {
  max-width: 38em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-size: 1.05rem;
}

.features--showcase {
  position: relative;
  gap: 26px 28px;
  grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
}
.features--showcase .feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 228px;
  padding: 30px 28px 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, #ffffff 0%, #fafbfd 55%, #f8fafc 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 6px rgba(15, 23, 42, 0.03),
    0 16px 40px rgba(15, 23, 42, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}
.features--showcase .feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    #0e7490 42%,
    var(--color-accent) 100%
  );
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.features--showcase .feature:hover {
  transform: translateY(-6px);
  border-color: rgba(12, 74, 110, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 16px rgba(12, 74, 110, 0.08),
    0 24px 48px rgba(15, 23, 42, 0.12);
}
.features--showcase .feature__icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin-bottom: 20px;
  font-size: 26px;
  line-height: 1;
  color: #92400e;
  background: linear-gradient(155deg, #fffbeb 0%, #fef3c7 40%, #fde68a 100%);
  border: 1px solid rgba(252, 211, 77, 0.45);
  box-shadow:
    0 8px 20px rgba(180, 83, 9, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}
.features--showcase .feature__icon .feature__glyph {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}
.features--showcase .feature:hover .feature__icon {
  color: #78350f;
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow:
    0 10px 24px rgba(180, 83, 9, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.features--showcase .feature h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.32;
  color: var(--color-text);
}
.features--showcase .feature p {
  flex: 1;
  margin: 0;
  width: 100%;
  max-width: 22em;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .features--showcase .feature {
    transition: none;
  }
  .features--showcase .feature:hover {
    transform: none;
  }
}

/* ----- Mini inquiry (home) ----- */
.inquiry-strip {
  background: linear-gradient(135deg, #0c4a6e, #134e4a);
  color: #fff;
  padding: 48px 20px;
  border-radius: 0;
}
.inquiry-strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) {
  .inquiry-strip__inner {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }
}
.inquiry-strip h2 {
  font-family: var(--font-heading);
  margin: 0 0 12px;
  font-size: 1.5rem;
}
.inquiry-strip > .inquiry-strip__inner > div > p {
  margin: 0;
  opacity: 0.9;
  font-size: 15px;
}

.form-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 600px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
label.field span.hint {
  font-weight: 400;
  opacity: 0.75;
  font-size: 12px;
}
.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-family: inherit;
  font-size: 15px;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  border-color: transparent;
}

.form--light label.field {
  color: var(--color-text);
}
.form--light .field input,
.form--light .field select,
.form--light .field textarea {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.toast-success {
  display: none;
  padding: 14px 18px;
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid var(--color-success);
  border-radius: 10px;
  color: #ccfbf1;
  font-size: 14px;
  margin-top: 12px;
}
.toast-success.is-visible {
  display: block;
}
.form--light .toast-success {
  color: var(--color-text);
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--color-success);
}

/* Қате хабарламасы: ашық фонда оқылатын қара-қызыл мәтін (бұрынғы #fee2e2 елеусіз болатын) */
.toast-success.toast--error {
  background: #fef2f2;
  border-color: #dc2626;
  color: #7f1d1d;
}
.form--light .toast-success.toast--error {
  background: #fef2f2;
  border-color: #dc2626;
  color: #7f1d1d;
}

/* ----- Page header (inner pages) ----- */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, #0c4a6e, #134e4a);
  color: #fff;
  min-height: clamp(220px, 34vw, 340px);
  padding: clamp(44px, 7vw, 84px) 20px clamp(36px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
  display: grid;
  align-items: center;
}
.page-hero--banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 67, 0.18);
  pointer-events: none;
}
.page-hero > * {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.page-hero p {
  margin: 0 auto;
  max-width: 720px;
  opacity: 0.9;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.65;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
@media (max-width: 768px) {
  .page-hero {
    min-height: 180px;
    padding: 34px 16px 28px;
  }
}

/* ----- Filters (products) ----- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-text);
}
.chip:hover,
.chip.is-active {
  border-color: var(--color-primary);
  background: rgba(12, 74, 110, 0.08);
  color: var(--color-primary);
}

.pagination {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
}
.page-btn.is-active {
  border-color: var(--color-primary);
  background: rgba(12, 74, 110, 0.08);
  color: var(--color-primary);
}
.page-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ----- Detail layout ----- */
.detail-layout {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
}
/* Product detail: 与页头同宽，无卡片边框 */
.detail-layout.detail-layout--product-page {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}
.detail-layout--product-page .detail-main-column {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  box-sizing: border-box;
}
.section--detail-product {
  padding-top: 48px;
  padding-bottom: 64px;
  padding-left: 0;
  padding-right: 0;
}
.section--detail-product .container.detail-layout--product-page {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.section--detail-product .detail-intro,
.section--detail-product .detail-content,
.section--detail-product .detail-pager {
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.section--detail-product .detail-intro {
  margin-bottom: 28px;
}
.section--detail-product .detail-pager {
  background: transparent;
}
/* Тек өнім сипаттама беті: ағымдағы қадам (тізім бетін өзгертпей) */
.page-product-detail .breadcrumb span {
  color: var(--color-text);
  font-weight: 600;
}
.section--detail-product .detail-intro--center.detail-intro--product-page {
  padding-left: 0;
  padding-right: 0;
}
.detail-gallery {
  display: grid;
  gap: 12px;
}
.detail-intro {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: linear-gradient(145deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow-sm);
}
.detail-intro__eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.detail-intro h1 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
}
.detail-intro__lead {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 760px;
}
.detail-intro__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.detail-intro--center {
  text-align: center;
  padding: 24px 20px 28px;
}
.detail-intro--center .detail-intro__lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
}
.detail-intro--center .detail-intro__actions {
  justify-content: center;
}
.detail-content--center {
  text-align: center;
  padding: 22px 20px 26px;
}
.detail-content--center .detail-summary {
  text-align: center;
}
.detail-content--center .detail-summary p,
.detail-content--center .detail-summary li,
.detail-content--center .detail-summary h1,
.detail-content--center .detail-summary h2,
.detail-content--center .detail-summary h3,
.detail-content--center .detail-summary div {
  text-align: center !important;
}
.detail-content--center .detail-summary [class*="ql-align"] {
  text-align: center !important;
}
.detail-content--center .detail-summary img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.detail-content--product {
  text-align: left;
  padding: 22px 0 26px;
  min-width: 0;
  max-width: 100%;
}
[data-article-detail-root],
[data-case-detail-root] {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
[data-article-detail-root] .detail-content--product,
[data-case-detail-root] .detail-content--product {
  width: 100%;
  min-width: 0;
}
/* Толық мәтін: редактордағы nowrap / inline-block үзінділерін жою, контейнер шетінде оралу */
.detail-content--product .detail-summary {
  display: block;
  text-align: left;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
/* редактор inline style: white-space: nowrap — барлық элементке normal, содан кейін pre қайта орнату */
.detail-content--product .detail-summary * {
  white-space: normal !important;
}
.detail-content--product .detail-summary pre,
.detail-content--product .detail-summary pre * {
  white-space: pre-wrap !important;
}
.detail-content--product .detail-summary p,
.detail-content--product .detail-summary h1,
.detail-content--product .detail-summary h2,
.detail-content--product .detail-summary h3,
.detail-content--product .detail-summary h4 {
  text-align: left;
  display: block !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
/* Тік ұрпақтағы абзац контейнерлері (UEditor <div> абзац) */
.detail-content--product .detail-summary > div {
  display: block !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
}
.detail-content--product .detail-summary li {
  text-align: left;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
}
.detail-content--product .detail-summary [class*="ql-align"] {
  text-align: inherit;
}
.detail-content--product .detail-summary img,
.detail-content--product .detail-summary video,
.detail-content--product .detail-summary iframe {
  display: block;
  margin-left: 0;
  margin-right: auto;
  max-width: 100% !important;
  height: auto !important;
}
.detail-content--product .detail-summary table {
  max-width: 100%;
  width: 100%;
  table-layout: fixed;
  word-wrap: normal;
  border-collapse: collapse;
  box-sizing: border-box;
}
.detail-content--product .detail-summary table td,
.detail-content--product .detail-summary table th {
  text-align: left;
  word-break: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.detail-content--product .detail-summary pre {
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: normal;
  max-width: 100%;
}
table.params.params--product-specs th,
table.params.params--product-specs td {
  text-align: center;
  vertical-align: middle;
}
.section--detail-product table.params.params--product-specs th,
.section--detail-product table.params.params--product-specs td {
  text-align: left;
}
table.params.params--product-specs th {
  width: 40%;
}
.detail-pager--center {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.detail-pager--center .btn {
  width: auto;
  min-width: min(200px, 100%);
}
.detail-pager--product {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}
.detail-pager--product .btn {
  width: auto;
  min-width: min(200px, 100%);
}

/* Клиенттік жоба мәліметі: алдыңғы | басты бет | келесі — бір қатар */
.case-detail-nav {
  margin-top: 28px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
}
.case-detail-nav__link {
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 10px;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.case-detail-nav__side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  text-align: left;
  font-size: clamp(12px, 2.6vw, 15px);
  word-break: break-word;
  min-height: 52px;
}
.case-detail-nav__side:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}
.case-detail-nav__home {
  flex: 0 0 auto;
  min-height: 52px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 18px;
  padding-right: 18px;
  white-space: nowrap;
}

.detail-gallery__main {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  font-size: 14px;
}
.detail-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.detail-thumbs button {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  background: #e2e8f0;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.detail-thumbs button.is-active {
  border-color: var(--color-primary);
}
.detail-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-top: 28px;
}
.detail-content {
  margin-top: 16px;
}
.detail-content h2:first-child {
  margin-top: 0;
}
.detail-content p,
.detail-content li {
  color: var(--color-text-muted);
}
.detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 10px 0;
}
.detail-muted {
  color: var(--color-text-muted);
  font-style: italic;
}
.detail-venue-block {
  margin-top: 8px;
  margin-bottom: 4px;
}
.detail-venue-block p {
  margin: 0;
}
.detail-intro__lead {
  white-space: pre-wrap;
}
.detail-spec-cell {
  white-space: pre-wrap;
}
.detail-pager:not(.detail-pager--center):not(.detail-pager--product) {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.detail-pager:not(.detail-pager--center):not(.detail-pager--product) .btn {
  width: 100%;
}
@media (max-width: 820px) {
  .detail-pager:not(.detail-pager--center):not(.detail-pager--product) {
    grid-template-columns: 1fr;
  }
}
.detail-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.detail-sidebar__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
}
.detail-sidebar__meta {
  margin: 0 0 16px;
}
.detail-sidebar__text {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.detail-sidebar .btn {
  width: 100%;
  margin-top: 8px;
}

table.params {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}
table.params th,
table.params td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
table.params th {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 38%;
}

/* ----- News list ----- */
.meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-card {
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.contact-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.contact-card a {
  font-weight: 600;
  font-size: 1.1rem;
  word-break: break-all;
}

/* ----- Certs row (legacy placeholder; index uses design-gallery) ----- */
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.cert-placeholder {
  width: 120px;
  height: 160px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 8px;
}

/* ----- Басты бет: дизайн және детальдар галереясы ----- */
.section--home-design {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 50%, #f8fafc 100%);
}
/* Тақырып пен галерея бір .container ішінде — жаңалықтар/өнім секцияларымен сол жиектер */
.section--home-design .home-design__stack {
  width: 100%;
  box-sizing: border-box;
}
.section--home-design .section__head--home-design {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.design-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .design-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 20px;
  }
}
.design-gallery__item {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.design-gallery__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: var(--color-surface);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 28px rgba(15, 23, 42, 0.08);
  aspect-ratio: 4 / 3;
  position: relative;
}
.design-gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  transform-origin: center center;
}
.design-gallery__item:hover .design-gallery__frame img {
  transform: scale(1.04);
}
.design-gallery__caption {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-text-muted);
  text-align: center;
  padding: 0 4px;
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .design-gallery__frame img {
    transition: none;
  }
  .design-gallery__item:hover .design-gallery__frame img {
    transform: none;
  }
}

/* ----- Футер: WeChat QR (оң жақ баған, мәтіні қазақша) ----- */
.site-footer__col--wechat {
  margin-top: 8px;
}
.site-footer__wechat {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.site-footer__wechat-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}
.site-footer__wechat-card {
  display: inline-block;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
.site-footer__wechat-card img {
  display: block;
  width: 132px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.site-footer__wechat-caption {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 200px;
}

/* ----- Footer ----- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 20px 24px;
  font-size: 14px;
}
.site-footer a {
  color: #e2e8f0;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(148px, max-content);
    gap: 28px 36px;
  }
  .site-footer__col--wechat {
    margin-top: 0;
    justify-self: end;
    text-align: right;
  }
  .site-footer__col--wechat .site-footer__wechat-caption {
    margin-left: auto;
    margin-right: 0;
  }
}
@media (max-width: 767px) {
  .site-footer__col--wechat {
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
  }
  .site-footer__col--wechat .site-footer__wechat-caption {
    margin-left: auto;
    margin-right: auto;
    max-width: 260px;
  }
}
.site-footer h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  margin: 0 0 16px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 10px;
}
.site-footer__bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  font-size: 13px;
}

.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  font-size: 18px;
  z-index: 50;
  opacity: 0.9;
}
.back-top:hover {
  opacity: 1;
}

/* ----- Product detail: top hero banner (image from /api/public/site homeBanners, same as list page) ----- */
.product-detail-hero {
  position: relative;
  width: 100%;
  min-height: min(40vh, 360px);
  max-height: 440px;
  overflow: hidden;
  background: #0f172a;
}
.product-detail-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Fallback until JS applies list-page banner */
  background-image: linear-gradient(120deg, rgba(7, 24, 67, 0.78), rgba(12, 48, 122, 0.52)),
    url("../images/product-detail-hero.svg");
}
.product-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.08) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ----- Breadcrumb ----- */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.breadcrumb a {
  color: var(--color-text-muted);
}

/* ----- About page (enterprise sections) ----- */
.page-about .about-block-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--color-primary);
  margin: 0 0 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-about .about-intro {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .page-about .about-intro {
    grid-template-columns: 1fr 1.08fr;
    gap: 48px;
  }
}

.page-about .about-env-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.page-about .about-env-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.page-about .about-line-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-primary);
  display: grid;
  place-items: center;
}

.page-about .about-env-item__title {
  display: block;
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.page-about .about-env-item__sub {
  font-size: 13px;
  color: var(--color-text-muted);
}

.page-about .about-intro__copy p {
  margin: 0 0 14px;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 15px;
}

.page-about .about-intro__copy p:last-child {
  margin-bottom: 0;
}

.page-about .about-intro__photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.page-about .about-intro__photo img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.page-about .about-section-title {
  font-family: var(--font-heading);
  text-align: center;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  color: var(--color-primary);
  font-weight: 700;
  margin: 0 auto 36px;
  max-width: 920px;
  line-height: 1.35;
}

.page-about .about-section-lead {
  margin: 28px 0 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 820px;
}

.page-about .about-section-lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-about .about-section-lead--block {
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
  text-align: left;
}

.page-about .about-section-lead--block p {
  margin: 0 0 1em;
}

.page-about .about-section-lead--block p:last-child {
  margin-bottom: 0;
}

.page-about .about-pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  text-align: center;
}

@media (max-width: 960px) {
  .page-about .about-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .page-about .about-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-about .about-pillar {
  padding: 18px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.page-about .about-pillar__icon {
  display: flex;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.page-about .about-pillar__kk {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.page-about .about-pillar__en {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.page-about .about-skills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .page-about .about-skills {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.page-about .about-skill {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.page-about .about-skill__icon {
  flex-shrink: 0;
  color: var(--color-primary);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(12, 74, 110, 0.07);
}

.page-about .about-skill__text {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.page-about .about-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .page-about .about-trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.page-about .about-trio__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.page-about .about-trio__item img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  display: block;
}

.page-about .about-certs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .page-about .about-certs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-about .about-certs:not(.about-certs--photos) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.page-about .about-certs--photos {
  grid-template-columns: 1fr;
  max-width: var(--max-w);
}

@media (min-width: 640px) {
  .page-about .about-certs--photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.page-about .about-cert--photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.page-about .about-cert--photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.page-about .about-cert {
  text-align: center;
}

.page-about .about-cert__frame {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 200px;
  margin: 0 auto 10px;
  border-radius: 8px;
  background: linear-gradient(165deg, #f8fafc 0%, #e2e8f0 55%, #cbd5e1 100%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.page-about .about-cert__label {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.35;
}
