/* Страница «Умная каска» (smart-helmet.html) */

.helmet-page-main {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
}

.helmet-page-head {
  width: min(1120px, 100%);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.helmet-page-head__crumb {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
}

.helmet-page-head__crumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.helmet-page-head__crumb a:hover {
  color: var(--accent-blue);
}

.helmet-page-head__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.helmet-page-head__lead {
  margin: 0.75rem 0 0;
  max-width: 48rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.helmet-prose {
  width: min(1120px, 100%);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.helmet-prose p {
  margin: 0 0 1rem;
}

.helmet-prose p:last-child {
  margin-bottom: 0;
}

.helmet-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.helmet-platform-link {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(59, 130, 246, 0.55);
  text-underline-offset: 0.18em;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease,
    background-color 0.2s ease;
}

@media (hover: hover) {
  .helmet-platform-link:hover {
    color: #93c5fd;
    text-decoration-color: rgba(147, 197, 253, 0.9);
  }
}

.helmet-platform-link:active {
  color: #93c5fd;
  background-color: rgba(59, 130, 246, 0.14);
  border-radius: 3px;
}

.helmet-platform-link:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.helmet-prose__figure {
  margin: 1.75rem auto;
  max-width: min(820px, 100%);
  text-align: center;
}

.helmet-prose__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
  .helmet-prose__figure {
    margin: 1.35rem auto;
  }
}

.helmet-video-block {
  width: min(1120px, 100%);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.helmet-video-kicker {
  display: block;
  margin-bottom: 0.75rem;
}

.helmet-video-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1018;
  box-shadow: var(--shadow-card);
}

.helmet-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.helmet-video-caption {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.helmet-features {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.helmet-features__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.helmet-features__lead {
  margin: 0 0 2rem;
  max-width: 42rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.helmet-row {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(0.5rem, 1vw, 0.75rem);
  align-items: center;
  margin-bottom: clamp(1.35rem, 2.5vw, 2rem);
  padding: clamp(1.15rem, 2.2vw, 1.65rem);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(
    155deg,
    rgba(22, 34, 54, 0.92) 0%,
    rgba(12, 20, 34, 0.96) 48%,
    rgba(8, 14, 26, 0.98) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 -2px 12px rgba(0, 0, 0, 0.35) inset,
    0 8px 24px rgba(0, 0, 0, 0.38),
    0 18px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.helmet-row.helmet-row--reverse {
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.4fr);
}

.helmet-row:last-child {
  margin-bottom: 0;
}

.helmet-row--reverse .helmet-row__media {
  order: 2;
}

.helmet-row--reverse .helmet-row__body {
  order: 1;
}

@media (max-width: 860px) {
  .helmet-row,
  .helmet-row.helmet-row--reverse {
    padding: 1.1rem 1rem;
    gap: 0.75rem;
  }

  .helmet-row,
  .helmet-row--reverse {
    grid-template-columns: 1fr;
  }

  .helmet-row--reverse .helmet-row__media,
  .helmet-row--reverse .helmet-row__body {
    order: unset;
  }
}

.helmet-row__media {
  width: 50%;
  max-width: 50%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 16, 28, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 4px 14px rgba(0, 0, 0, 0.35);
}

/* В одну линию с заголовком секции: картинка к левому краю контента, в обратных рядах — к правому */
.helmet-row:not(.helmet-row--reverse) .helmet-row__media {
  justify-self: start;
}

.helmet-row--reverse .helmet-row__media {
  justify-self: end;
}

.helmet-row__body {
  min-width: 0;
  justify-self: stretch;
  width: 100%;
}

@media (max-width: 860px) {
  .helmet-row:not(.helmet-row--reverse) .helmet-row__media,
  .helmet-row--reverse .helmet-row__media {
    justify-self: center;
  }
}

.helmet-row__media img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: contain;
}

.helmet-row__body h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.2rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

.helmet-row__body p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.68;
  font-size: 1.0625rem;
}

.helmet-row__body ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.68;
  font-size: 1.0625rem;
}

.helmet-row__body li {
  margin-bottom: 0.55rem;
}

.helmet-row__body li:last-child {
  margin-bottom: 0;
}

/* Digital Twins: первый ряд — изображение на полную ширину колонки сетки (базовые 50% на .helmet-row__media давали ~половину колонки) */
.helmet-row--dt-wide-media .helmet-row__media {
  width: 100%;
  max-width: 100%;
}

/* Строительство: слайды презентации — колонка изображения наравне с текстом */
.page-construction .helmet-row,
.page-construction .helmet-row.helmet-row--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.65rem);
  align-items: center;
}

.page-construction .helmet-row__media {
  width: 100%;
  max-width: 100%;
}

.page-construction .helmet-row__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.page-construction .construction-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  min-height: 100%;
}

.page-construction .construction-logos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 440px;
}

.page-construction .construction-logos__grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-construction .construction-logos__grid img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 3.25rem;
  height: auto;
  object-fit: contain;
}

.page-construction .construction-logos__grid li:last-child img {
  max-height: 3.75rem;
}

.helmet-files-section {
  width: min(1120px, 100%);
  margin: clamp(3rem, 6vw, 4rem) auto 0;
  padding: 0 1.5rem;
}

.helmet-files-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--card) 0%, var(--card-elevated) 100%);
  box-shadow: var(--shadow-card);
}

.helmet-files-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.helmet-files-card > p {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.helmet-files-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.helmet-files-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.helmet-files-list a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.helmet-files-list a::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233b82f6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.9;
}

.helmet-contact-section {
  width: min(1120px, 100%);
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: 0 1.5rem;
}

.helmet-contact-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(16, 27, 45, 0.55);
}

.helmet-contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.helmet-contact-card address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.helmet-contact-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.helmet-contact-card li {
  margin-bottom: 0.35rem;
}

.helmet-contact-card a {
  color: var(--accent-blue);
  text-decoration: none;
}

.helmet-contact-card a:hover {
  text-decoration: underline;
}

.helmet-contact-card .helmet-org {
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--text-primary);
}

.helmet-cta-bottom {
  width: min(1120px, 100%);
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
}

.helmet-cta-bottom .btn {
  margin-top: 0.5rem;
}

/* Страница «Платформа аналитики событий» (video-analytics.html) */
.helmet-va-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1.0625rem;
}

.helmet-va-list li {
  margin-bottom: 0.65rem;
}

.helmet-va-list li:last-child {
  margin-bottom: 0;
}

.helmet-va-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Страница проекта (project1/) */
.project-layout {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.project-layout .helmet-page-head {
  width: auto;
  margin: 0 0 2rem;
  padding: 0;
}

.project-client-logo {
  margin: 0 0 1rem;
}

.project-client-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.75rem;
}

.project-client-logos .project-client-logo__img {
  display: block;
  height: 3rem;
  width: auto;
  max-width: 9.5rem;
  max-height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
}

.project-client-logos .project-client-logo__img--samruk {
  height: 7.5rem;
  max-height: 7.5rem;
  max-width: 23.75rem;
}

.project-client-logo__img {
  display: block;
  width: auto;
  height: 4rem;
  max-width: min(440px, 100%);
}

.project-client-logo--esc {
  margin: 0 0 1rem;
  padding: 0;
  text-align: left;
  line-height: 0;
}

.project-client-logo .project-client-logo__img--esc {
  display: block;
  height: 3.5rem;
  width: auto;
  max-width: 13rem;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

.project-layout .article-prose {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-layout .article-prose p {
  margin: 0 0 1.25rem;
}

.project-layout .article-prose p:last-of-type {
  margin-bottom: 1.5rem;
}

.project-layout .article-source {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.project-layout .article-source__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.project-layout .article-source p {
  margin: 0;
}

.project-layout .article-source a {
  color: var(--accent-blue);
  font-weight: 500;
  word-break: break-word;
}

.project-layout .article-source a:hover {
  text-decoration: underline;
}

.project-layout .article-source__profile {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}

.project-cover {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-high);
}

.project-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.project-layout .project-media {
  margin: 0 0 2rem;
}

.project-layout .project-media .helmet-video-wrap {
  border-radius: var(--radius-lg);
}

.project-layout .project-media__caption {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
