/* ===== Новая главная assetov.kz ===== */

@font-face { font-family: "Mont"; src: url("/fonts/Mont-Light.woff2") format("woff2"), url("/fonts/Mont-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Mont"; src: url("/fonts/Mont-Regular.woff2") format("woff2"), url("/fonts/Mont-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mont"; src: url("/fonts/Mont-SemiBold.woff2") format("woff2"), url("/fonts/Mont-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mont"; src: url("/fonts/Mont-Bold.woff2") format("woff2"), url("/fonts/Mont-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mont"; src: url("/fonts/Mont-Heavy.woff2") format("woff2"), url("/fonts/Mont-Heavy.woff") format("woff"); font-weight: 900; font-display: swap; }

:root {
  --navy-900: #06131D;
  --navy-800: #0A2240;
  --navy-700: #0B2B56;
  --navy-600: #164B8E;
  --blue-500: #1F67C6;
  --yellow: #EFD000;
  --yellow-hover: #FFE14D;
  --ink: #06131D;
  --text: #2E3A46;
  --muted: #5B6773;
  --line: #E1E6EC;
  --bg-gray: #F3F6F9;
  --radius: 14px;
  --container: 1050px;
}

.h-page, .h-lightbox {
  font-family: "Mont", "Mont-400", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
:where(.h-page) *, :where(.h-page) *::before, :where(.h-page) *::after { box-sizing: border-box; }
:where(.h-page) img { max-width: 100%; height: auto; display: block; }
:where(.h-page) :is(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(.h-page) :is(h1, h2, h3) { font-family: "Mont", "Mont-700", sans-serif; font-size: inherit; }
:where(.h-page) :is(ul, ol) { list-style: none; }
:where(.h-page) a { color: inherit; }
:where(.h-page, .h-lightbox) button { font: inherit; color: inherit; cursor: pointer; }
:where(.h-page, .h-lightbox) :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
html { scroll-behavior: smooth; }

.h-container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }

/* ----- Кнопки и ссылки ----- */
.h-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.h-btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.h-btn--yellow { background: var(--yellow); color: var(--navy-700); }
.h-btn--yellow:hover { background: var(--yellow-hover); }
.h-btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.h-btn--ghost:hover { border-color: #fff; }

.h-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--navy-600); text-decoration: none;
}
.h-link::after { content: "→"; transition: transform .2s; }
.h-link:hover::after { transform: translateX(4px); }
.h-link--sm { font-size: 15px; margin-top: auto; padding-top: 14px; }

/* ----- Первый экран ----- */
.h-hero {
  position: relative; overflow: hidden;
  padding: 220px 0 72px;
  color: #fff;
  background: var(--navy-900) url("/images/main-page/main-top-bg.jpg") center / cover no-repeat;
}
.h-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.h-hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,19,29,.92) 0%, rgba(6,19,29,.78) 45%, rgba(6,19,29,.45) 100%),
    linear-gradient(0deg, rgba(6,19,29,.85) 0%, rgba(6,19,29,0) 40%);
}
.h-hero__content { position: relative; z-index: 2; }
.h-hero__eyebrow { font-size: 15px; color: rgba(255,255,255,.65); margin-bottom: 24px; }
.h-hero__title {
  max-width: 980px;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em;
}
.h-hero__lead { max-width: 740px; margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); color: rgba(255,255,255,.78); }
.h-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.h-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 88px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.14);
}
.h-stats__item { display: flex; flex-direction: column; gap: 10px; }
.h-stats dd { order: -1; }
.h-stats dd { font-size: clamp(36px, 4vw, 52px); font-weight: 700; line-height: 1; color: var(--yellow); }
.h-stats dt { font-size: 15px; color: rgba(255,255,255,.7); max-width: 280px; }

/* ----- Заказчики ----- */
.h-clients { padding: 64px 0; border-bottom: 1px solid var(--line); }
.h-label {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.h-clients__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.h-clients__item {
  display: flex; align-items: center; justify-content: center;
  height: 96px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.h-clients__item img {
  max-height: 52px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s;
}
.h-clients__item img.is-invert { filter: brightness(0); opacity: .6; }
.h-clients__item:hover img { filter: none; opacity: 1; }
.h-clients__item:hover img.is-invert { filter: brightness(0); opacity: .9; }
.h-clients__text { font-weight: 700; font-size: 19px; color: #5f6b77; letter-spacing: -0.01em; }

/* ----- Секции ----- */
.h-section { padding: 104px 0; }
.h-section--gray { background: var(--bg-gray); }
.h-section--dark { background: var(--navy-700); color: rgba(255,255,255,.82); }
.h-section--dark .h-title, .h-section--dark h3 { color: #fff; }
.h-section--dark .h-section__lead { color: rgba(255,255,255,.72); }

.h-section__head { margin-bottom: 52px; }
.h-section__head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.h-title { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.h-section__lead { max-width: 720px; margin-top: 14px; font-size: 19px; color: var(--muted); }

.h-grid { display: grid; gap: 20px; }
.h-grid--2 { grid-template-columns: repeat(2, 1fr); }
.h-grid--3 { grid-template-columns: repeat(3, 1fr); }
.h-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Направления */
.h-card {
  display: flex; flex-direction: column;
  padding: 34px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.h-card:hover { border-color: #c9d3de; box-shadow: 0 10px 30px rgba(11,43,86,.07); }
.h-card__num { font-size: 14px; font-weight: 700; color: var(--blue-500); }
.h-card__title { margin: 12px 0 12px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.h-card p { font-size: 16px; }
.h-card--accent { background: var(--navy-700); border-color: var(--navy-700); color: rgba(255,255,255,.8); }
.h-card--accent .h-card__num { color: var(--yellow); }
.h-card--accent .h-card__title { color: #fff; }
.h-card--accent .h-link { color: var(--yellow); margin-top: auto; padding-top: 18px; }

/* Проекты */
.h-project {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.h-project__cover {
  display: flex; align-items: center; justify-content: center;
  height: 190px; padding: 32px 48px; background: var(--cover, var(--navy-700));
  border-bottom: 1px solid var(--line);
}
.h-project__cover img { max-height: 84px; max-width: 220px; width: auto; object-fit: contain; }
.h-project__cover img.is-white { filter: brightness(0) invert(1); }
.h-project__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 26px 28px 30px; }
.h-project__meta { font-size: 14px; font-weight: 600; color: var(--muted); }
.h-project__title { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.h-project p { font-size: 16px; }

/* Отрасли */
.h-industry { padding: 28px 26px; border-radius: var(--radius); background: var(--bg-gray); }
.h-industry h3 { font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.h-industry p { font-size: 15px; color: var(--muted); }

/* Технологии */
.h-tech { gap: 20px; }
.h-tech h3 { font-size: 19px; font-weight: 700; }
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.h-chips li {
  padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: #fff; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04);
}

/* Этапы */
.h-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.h-step {
  display: flex; flex-direction: column; gap: 10px;
  padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius);
}
.h-step__num { font-size: 40px; line-height: 1; font-weight: 700; color: var(--line); }
.h-step h3 { font-size: 20px; font-weight: 700; color: var(--ink); }
.h-step p { font-size: 16px; }
.h-step__result { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--muted); }
.h-step__result b { color: var(--ink); font-weight: 700; }

/* Письма */
.h-letters__count { font-size: 15px; font-weight: 600; color: var(--muted); }
.h-letters {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 24px; margin: -4px -4px 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.h-letters::-webkit-scrollbar { display: none; }
.h-letters > li { scroll-snap-align: start; }
.h-carousel__nav { display: flex; gap: 10px; }
.h-carousel__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid #c9d3de; background: #fff; color: var(--navy-700);
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.h-carousel__btn:hover:not(:disabled) { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.h-carousel__btn:disabled { opacity: .35; cursor: default; }
.h-letter {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.h-letter:hover { border-color: #c9d3de; box-shadow: 0 10px 24px rgba(11,43,86,.1); }
.h-letter__scan {
  display: block; height: 320px; overflow: hidden; background: var(--bg-gray);
  border-bottom: 1px solid var(--line); padding: 20px 28px 0;
}
.h-letter__scan img { width: 100%; height: auto; box-shadow: 0 4px 18px rgba(6,19,29,.12); }
.h-letter__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.h-letter__org { font-size: 17px; font-weight: 700; color: var(--ink); }
.h-letter__about { font-size: 15px; line-height: 1.5; color: var(--muted); }
.h-note { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* Лайтбокс */
.h-lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0;
  border: 0; background: rgba(6,19,29,.97); color: #fff;
}
.h-lightbox::backdrop { background: rgba(6,19,29,.6); }
.h-lightbox__inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; height: 100%; padding: 56px 16px 24px; }
.h-lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; }
.h-lightbox__img { max-height: calc(100vh - 140px); width: auto; max-width: min(760px, 100%); background: #fff; }
.h-lightbox__caption { font-size: 15px; color: rgba(255,255,255,.8); text-align: center; max-width: 640px; }
.h-lightbox__close, .h-lightbox__nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff;
}
.h-lightbox__close:hover, .h-lightbox__nav:hover { background: rgba(255,255,255,.16); }
.h-lightbox__close { position: absolute; top: 12px; right: 16px; }
.h-lightbox__nav { flex-shrink: 0; }

/* ----- Иконки ----- */
.h-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 14px;
  background: #fff; color: var(--navy-600); border: 1px solid var(--line);
}
.h-icon svg { width: 26px; height: 26px; stroke-width: 1.75; }
.h-icon--yellow { background: rgba(239,208,0,.12); border-color: rgba(239,208,0,.35); color: var(--yellow); }
.h-icon--solid { width: 60px; height: 60px; border: 0; background: var(--yellow); color: var(--navy-700); }
.h-icon--solid svg { width: 30px; height: 30px; }

.h-industry .h-icon { margin-bottom: 20px; }
.h-industry { transition: background-color .2s; }
.h-industry:hover { background: #E9EEF4; }

.h-tech__group {
  padding: 30px 30px 32px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03);
}
.h-tech__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.h-tech__head h3 { margin: 0; }

/* ----- Почему с нами ----- */
.h-why {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 88% 12%, rgba(31,103,198,.55) 0%, rgba(31,103,198,0) 70%),
    radial-gradient(ellipse 50% 60% at 5% 100%, rgba(22,75,142,.45) 0%, rgba(22,75,142,0) 70%),
    linear-gradient(140deg, #06131D 0%, #0A2240 45%, #0F376C 100%);
}
.h-why__inner { position: relative; display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.h-why__intro { position: sticky; top: 40px; }
.h-why__intro .h-btn { margin-top: 36px; }
.h-why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.h-why__card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px 30px 34px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 40px rgba(3,10,20,.25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .25s, transform .25s;
}
.h-why__card:hover { border-color: rgba(239,208,0,.55); transform: translateY(-3px); }
.h-why__grid { padding-bottom: 48px; }
.h-why__grid li:nth-child(even) { position: relative; top: 48px; }
.h-why__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.h-why__num { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: .08em; }
.h-why__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 22px;
  background: linear-gradient(145deg, rgba(31,103,198,.55) 0%, rgba(11,43,86,.6) 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.h-why__icon svg { width: 58px; height: 58px; }
.h-why__card h3 { font-size: 21px; line-height: 1.3; font-weight: 700; color: #fff; }
.h-why__card p { font-size: 16px; color: rgba(255,255,255,.72); }

/* ----- Адаптив ----- */
@media (max-width: 1024px) {
  .h-grid--3, .h-steps { grid-template-columns: repeat(2, 1fr); }
  .h-letters { grid-auto-columns: calc((100% - 24px) / 2); }
  .h-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .h-clients__grid { grid-template-columns: repeat(4, 1fr); }
  .h-hero { padding-top: 170px; }
  .h-why__inner { grid-template-columns: 1fr; gap: 40px; }
  .h-why__intro { position: static; }
}

@media (max-width: 680px) {
  .h-page { font-size: 16px; }
  .h-container { padding: 0 15px; }
  .h-hero { padding: 130px 0 48px; }
  .h-hero__shade { background: linear-gradient(0deg, rgba(6,19,29,.95) 0%, rgba(6,19,29,.75) 100%); }
  .h-hero__actions .h-btn { width: 100%; }
  .h-stats { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .h-section { padding: 72px 0; }
  .h-section__head { margin-bottom: 36px; }
  .h-section__lead { font-size: 17px; }
  .h-grid--2, .h-grid--3, .h-grid--4, .h-steps, .h-why__grid { grid-template-columns: 1fr; }
  .h-letters { grid-auto-columns: 84%; gap: 14px; }
  .h-carousel__btn { width: 46px; height: 46px; }
  .h-why__grid { padding-bottom: 0; }
  .h-why__grid li:nth-child(even) { top: 0; }
  .h-clients { padding: 48px 0; }
  .h-clients__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .h-clients__item { height: 80px; padding: 12px; }
  .h-clients__item img { max-height: 42px; }
  .h-card, .h-step, .h-tech__group, .h-why__card { padding: 26px 22px; }
  .h-letter__scan { height: 260px; }
  .h-lightbox__nav { position: absolute; bottom: 16px; }
  .h-lightbox__nav--prev { left: calc(50% - 60px); }
  .h-lightbox__nav--next { right: calc(50% - 60px); }
  .h-lightbox__inner { padding: 60px 12px 80px; }
  .h-lightbox__img { max-height: calc(100vh - 200px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h-page *, .h-page *::before, .h-page *::after { transition: none !important; }
}

section[id] { scroll-margin-top: 20px; }

/* Уточнения */
.h-industry .h-icon svg { width: 28px; height: 28px; }
.h-step h3 { line-height: 1.3; }

/* ----- Все письма ----- */
.h-letters__all { margin-top: 12px; }
.h-page--inner .h-section { padding-top: 64px; }
.h-crumbs { display: flex; gap: 10px; margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.h-crumbs a { text-decoration: none; color: var(--navy-600); }
.h-crumbs a:hover { text-decoration: underline; }
.h-letters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) { .h-letters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .h-letters-grid { grid-template-columns: 1fr; }
  .h-page--inner .h-section { padding-top: 40px; }
}
