/* ==========================================================================
   Адамант-проект — новый дизайн (2026)
   style.css — единый файл стилей. Структура:
   01. Переменные и базовые стили      06. Проекты (карточки, фильтр, страница)
   02. Типографика и утилиты           07. Услуги
   03. Кнопки и ссылки                 08. Компания, лицензии, контакты
   04. Шапка и мобильное меню          09. Подвал
   05. Главная (hero, цифры, блоки)    10. Лайтбокс, анимации, адаптив
   ========================================================================== */

/* ---------------------------------------------------------------- 01. База */
:root {
  --ink: #0f1c24;
  --ink-soft: #35464f;
  --muted: #6c7d87;
  --line: rgba(15, 28, 36, .10);
  --line-strong: rgba(15, 28, 36, .18);

  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --bg-dark: #0c1a22;
  --bg-dark-soft: #132833;

  --brand: #2bab6e;
  --brand-600: #1f8f5b;
  --brand-700: #166b44;
  --brand-050: #eef8f3;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-s: 0 2px 10px rgba(13, 26, 34, .06);
  --shadow-m: 0 16px 34px -16px rgba(13, 26, 34, .28);
  --shadow-l: 0 36px 80px -34px rgba(13, 26, 34, .45);

  --container: 1280px;
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-sans: "Geometria", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBMPlexSans", "Geometria", system-ui, sans-serif;
}

@font-face {
  font-family: "Geometria";
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/geometria-400.woff") format("woff");
}
@font-face {
  font-family: "Geometria";
  font-display: swap;
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/geometria-500.woff") format("woff");
}
@font-face {
  font-family: "Geometria";
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/geometria-700.woff") format("woff");
}
@font-face {
  font-family: "IBMPlexSans";
  font-display: swap;
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/IBMPlexSans-600.woff") format("woff");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img,
svg,
iframe { max-width: 100%; }

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}

a:hover { color: var(--brand-600); }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--brand);
  color: #fff;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* -------------------------------------------------- 02. Типографика, сетка */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.container--narrow { max-width: 940px; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4.2rem); }
h2 { font-size: clamp(1.65rem, 1.15rem + 1.9vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.05em; }

.lead {
  font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.muted { color: var(--muted); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Скрыто визуально, но доступно скринридерам и поисковым системам */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.section { padding: clamp(64px, 7vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(44px, 4vw, 72px) 0; }
.section--dark {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .82);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .75); }
.section--dark .eyebrow { color: #6fd7a3; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 3vw, 48px);
}

.section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.section__head h2 { margin-bottom: .25em; }
.section__head p { margin: 0; max-width: 620px; color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.prose { color: var(--ink-soft); }
.prose > :last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 1.05em; padding-left: 1.15em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- 03. Кнопки */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s var(--ease),
              box-shadow .25s var(--ease), color .2s var(--ease);
}

.btn:hover {
  color: var(--btn-fg);
  background: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}

.btn:active { transform: translateY(0); }

.btn svg { flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--light {
  --btn-bg: rgba(255, 255, 255, .12);
  --btn-fg: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9rem; }
.btn--block { width: 100%; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--brand-600);
}
.link-more svg { transition: transform .25s var(--ease); }
.link-more:hover svg { transform: translateX(5px); }

/* --------------------------------------------------- 04. Шапка, меню, ход */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: #fff;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}

.hdr::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  opacity: .12;
}

.hdr--solid,
.hdr.is-stuck {
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 6px 24px -18px rgba(13, 26, 34, .5);
}

.hdr__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.hdr__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-weight: 700;
  letter-spacing: -.01em;
}

.hdr__logo img,
.hdr__logo svg { width: 30px; height: auto; }

.hdr__logo span { font-size: 1.02rem; white-space: nowrap; }

.hdr__logo-mark--light { display: block; }
.hdr__logo-mark--dark { display: none; }
.hdr--solid .hdr__logo-mark--light,
.hdr.is-stuck .hdr__logo-mark--light { display: none; }
.hdr--solid .hdr__logo-mark--dark,
.hdr.is-stuck .hdr__logo-mark--dark { display: block; }

.hdr__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hdr__nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 500;
  opacity: .92;
}

.hdr__nav a:hover { opacity: 1; background: rgba(127, 145, 155, .14); }

.hdr__nav a.is-active { opacity: 1; }

.hdr__nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.hdr__side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hdr__phone {
  font-weight: 500;
  white-space: nowrap;
}

.hdr__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  opacity: .85;
}

.hdr__lang:hover { opacity: 1; background: var(--brand); border-color: var(--brand); color: #fff; }

.hdr__burger {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.hdr__burger span,
.hdr__burger span::before,
.hdr__burger span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.hdr__burger span::before { transform: translateY(-6px); }
.hdr__burger span::after { transform: translateY(4px); }

.hdr-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), #6fd7a3);
  transition: width .1s linear;
}

/* мобильное меню */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 22px 26px 34px;
  background: var(--bg-dark);
  color: #fff;
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
}
.mnav.is-open { transform: translateY(0); }

.mnav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.mnav__logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: #fff; }
.mnav__logo img { width: 30px; }

.mnav__close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
}
.mnav__close:hover { background: #fff; color: var(--ink); }

.mnav__list { display: flex; flex-direction: column; gap: 4px; margin-bottom: auto; }

.mnav__list a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
}
.mnav__list a:hover,
.mnav__list a.is-active { color: #6fd7a3; }

.mnav__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 34px;
  font-size: 1rem;
}
.mnav__foot a { color: #fff; }
.mnav__foot a:hover { color: #6fd7a3; }
.mnav__foot-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* --------------------------------------------------------- 05. Главная */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 6vw, 76px);
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; overflow: hidden; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.5s var(--ease), transform 8s linear;
}

.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__slide.is-active { opacity: 1; transform: scale(1); }

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 20, 27, .82) 0%, rgba(9, 20, 27, .34) 38%, rgba(9, 20, 27, .88) 100%),
    radial-gradient(120% 90% at 12% 88%, rgba(43, 171, 110, .32), transparent 60%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__claim {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  font-size: .84rem;
  letter-spacing: .02em;
}

.hero__claim i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fd7a3;
  box-shadow: 0 0 0 4px rgba(111, 215, 163, .22);
}

.hero h1 {
  max-width: 20ch;
  margin-bottom: 22px;
  color: #fff;
  text-wrap: balance;
}

.hero__text {
  max-width: 56ch;
  margin-bottom: 34px;
  font-size: clamp(1rem, .95rem + .4vw, 1.22rem);
  color: rgba(255, 255, 255, .84);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}

.hero__stat {
  padding: 22px 24px;
  background: rgba(10, 22, 29, .58);
  backdrop-filter: blur(10px);
}

.hero__stat b {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.95rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.hero__stat span { font-size: .88rem; line-height: 1.4; color: rgba(255, 255, 255, .7); }

.hero__dots {
  position: absolute;
  right: 28px;
  bottom: clamp(40px, 6vw, 76px);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero__dots button {
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .32);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.hero__dots button.is-active { background: var(--brand); transform: scaleY(1.6); }

/* цифры */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.stats__item { padding: 34px 26px; background: var(--bg); }
.stats__value {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
}
.stats__value sup { font-size: .45em; top: -.75em; }
.stats__label { font-size: .95rem; color: var(--muted); }
.section--dark .stats,
.stats--dark { background: rgba(255, 255, 255, .1); }
.section--dark .stats__item,
.stats--dark .stats__item { background: var(--bg-dark); }
.section--dark .stats__value,
.stats--dark .stats__value { color: #fff; }
.section--dark .stats__label,
.stats--dark .stats__label { color: rgba(255, 255, 255, .66); }

/* о компании */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-l); }
.about__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-s);
}
.about__badge b { display: block; font-size: 1.35rem; color: var(--brand-600); }

.feature-list { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 38px; color: var(--ink-soft); }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8f5b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* CTA-полоса */
.cta {
  position: relative;
  padding: clamp(40px, 5vw, 68px);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0f2b21 0%, #123a2b 45%, #0c1a22 100%);
  color: #fff;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 171, 110, .5), transparent 65%);
}
.cta__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .3em; color: #fff; }
.cta p { margin: 0; color: rgba(255, 255, 255, .76); max-width: 54ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------ 06. Проекты */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: transparent; }

.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__type {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(12, 26, 34, .72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .01em;
}

.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { margin: 0; font-size: 1.24rem; font-weight: 700; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; font-size: .9rem; color: var(--muted); }
.card__meta b { font-weight: 500; color: var(--ink-soft); }
.card__area { font-family: var(--font-mono); font-size: .86rem; color: var(--brand-600); }

.card__arrow {
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-600);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card__arrow { opacity: 1; transform: translateX(0); }
.card__body { padding-right: 66px; }

/* фильтр */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter__btn {
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .93rem;
  color: var(--ink-soft);
  transition: all .22s var(--ease);
}
.filter__btn:hover { border-color: var(--brand); color: var(--brand-600); }
.filter__btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter__count { font-family: var(--font-mono); font-size: .8rem; opacity: .6; margin-left: 8px; }

.cards-empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* страница проекта */
.phero {
  position: relative;
  padding: calc(var(--header-h) + 46px) 0 clamp(38px, 5vw, 62px);
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.phero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 20, 27, .8), rgba(9, 20, 27, .55) 45%, rgba(9, 20, 27, .95));
}
.phero__inner { position: relative; z-index: 2; }
.phero h1 { color: #fff; margin-bottom: 18px; }
.phero__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.phero__tag {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: .86rem;
  color: rgba(255, 255, 255, .9);
}

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: .88rem; color: rgba(255, 255, 255, .62); }
.breadcrumbs a:hover { color: #6fd7a3; }
.breadcrumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs--light { color: var(--muted); }
.breadcrumbs--light a:hover { color: var(--brand-600); }

.pfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pfacts__item { padding: 26px 28px; background: var(--bg); }
.pfacts__label { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pfacts__value { font-size: 1.12rem; font-weight: 500; }

.pbody { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(32px, 5vw, 76px); align-items: start; }
.pbody__aside { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border-radius: var(--radius); background: var(--bg-soft); }
.pbody__aside h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-mono); color: var(--muted); margin-bottom: 18px; }
.pbody__aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pbody__aside li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.pbody__aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--brand);
  opacity: .85;
}

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery__item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
  box-shadow: var(--shadow-s);
}
.gallery__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9, 20, 27, .45));
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { aspect-ratio: 8 / 3; }

.pnav { display: flex; align-items: stretch; justify-content: space-between; gap: 20px; }
.pnav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 240px;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pnav__link:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-s); }
.pnav__link small { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pnav__link b { font-size: 1.05rem; font-weight: 500; }
.pnav__link--next { text-align: right; align-items: flex-end; }

/* ------------------------------------------------------------- 07. Услуги */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }

.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .25s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.service:hover { border-color: transparent; box-shadow: var(--shadow-m); transform: translateY(-4px); }

.service__num {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--brand-600);
}
.service__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-050);
  color: var(--brand-600);
}
.service__title { margin: 0; font-size: 1.16rem; line-height: 1.3; }
.service__text { margin: 0; color: var(--muted); font-size: .96rem; }

.service details { margin-top: 4px; }
.service summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 500;
  color: var(--brand-600);
  list-style: none;
}
.service summary::-webkit-details-marker { display: none; }
.service summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease);
}
.service details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.service__details { padding-top: 16px; font-size: .95rem; color: var(--ink-soft); }
.service__details p { margin-bottom: .8em; }
.service__details ul { margin: 0 0 0.8em; padding-left: 1.1em; }
.service__details li { margin-bottom: .45em; }
.service__details li::marker { color: var(--brand); }

/* --------------------------------------------------- 08. Компания, контакты */
.depts { display: grid; gap: 14px; }
.dept {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  background: var(--bg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.dept[open] { border-color: rgba(43, 171, 110, .45); box-shadow: var(--shadow-s); }
.dept summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 1.12rem;
  font-weight: 500;
}
.dept summary::-webkit-details-marker { display: none; }
.dept__plus { position: relative; flex: none; width: 24px; height: 24px; }
.dept__plus::before,
.dept__plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: translateY(-50%);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.dept__plus::after { transform: translateY(-50%) rotate(90deg); }
.dept[open] .dept__plus::after { transform: translateY(-50%) rotate(0); opacity: 0; }
.dept__text { margin: 16px 0 0; color: var(--ink-soft); max-width: 90ch; }
.dept summary em { font-style: normal; font-size: .86rem; font-weight: 400; color: var(--muted); }

.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.partners__item {
  display: grid;
  place-items: center;
  min-height: 148px;
  padding: 26px;
  background: var(--bg);
  transition: background-color .25s var(--ease);
}
.partners__item:hover { background: var(--bg-soft); }
.partners__item img {
  max-width: 100%;
  max-height: 66px;
  width: auto;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.partners__item:hover img { filter: none; opacity: 1; }

.licenses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.license {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
}
.license__media {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
.license__media img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.license:hover .license__media img { transform: scale(1.04); }
.license__caption { font-size: .84rem; line-height: 1.45; color: var(--muted); }

.contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.contact-card {
  padding: 26px 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}
.contact-card__label { display: block; margin-bottom: 12px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.contact-card__value a { display: block; }
.contact-card__value a + a { margin-top: 4px; }

.map { margin-top: 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

.staff { display: grid; gap: 22px; }
.staff__group { padding: 28px 30px; border-radius: var(--radius); background: var(--bg-soft); }
.staff__group h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-mono); color: var(--muted); margin-bottom: 20px; }
.staff__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.staff__card { padding: 22px 24px; border-radius: var(--radius-sm); background: var(--bg); box-shadow: var(--shadow-s); }
.staff__name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.staff__post { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.staff__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; }
.staff__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-600); }
.staff__links a:hover { color: var(--brand-700); }

/* ------------------------------------------------------------- 09. Подвал */
.ftr { padding: 64px 0 34px; background: var(--bg-dark); color: rgba(255, 255, 255, .68); font-size: .95rem; }
.ftr a { color: rgba(255, 255, 255, .86); }
.ftr a:hover { color: #6fd7a3; }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ftr__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.1rem; font-weight: 700; color: #fff; }
.ftr__brand img { width: 34px; }
.ftr__title { margin-bottom: 16px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.ftr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: .88rem; color: rgba(255, 255, 255, .5); }
.ftr__bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* --------------------------------------------- 10. Лайтбокс, анимации, media */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 60px 20px 30px;
  background: rgba(7, 16, 21, .94);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1180px, 94vw); max-height: 76vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-l); object-fit: contain; }
.lightbox__caption { color: rgba(255, 255, 255, .78); font-size: .95rem; text-align: center; max-width: 80ch; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  background: rgba(255, 255, 255, .06);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: #fff; color: var(--ink); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: absolute; top: 34px; left: 28px; color: rgba(255, 255, 255, .6); font-family: var(--font-mono); font-size: .85rem; }

/* Появление при скролле. Класс .js ставит инлайн-скрипт в <head>, поэтому
   без JavaScript контент виден полностью (важно для SEO и надёжности). */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: #fff; }

.notice {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(43, 171, 110, .35);
  background: var(--brand-050);
  color: var(--brand-700);
  font-size: .95rem;
}

.page-head { padding: calc(var(--header-h) + 56px) 0 42px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 14px; }
.page-head p { max-width: 70ch; margin: 0; color: var(--ink-soft); }

.reading { max-width: 78ch; }

/* -------------------------------------------------------------- Форма */
.form {
  padding: 30px 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-m);
}

.form__row { margin-bottom: 18px; }

.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: .98rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.form__input::placeholder { color: #9aa8b0; }

.form__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-050);
}

.form__input--area { resize: vertical; min-height: 105px; }

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 20px;
  font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
}

.form__check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.form__note { margin: 12px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }

.form__result { margin-top: 16px; }

.form__input.is-invalid { border-color: #d9534f; box-shadow: 0 0 0 4px rgba(217, 83, 79, .1); }

.form.is-sent { opacity: .95; }

@media (max-width: 720px) {
  .form { padding: 24px 20px; border-radius: var(--radius); }
}

/* ------------------------------------------------------------- адаптив */
@media (max-width: 1180px) {
  .licenses { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ftr__top { grid-template-columns: 1.3fr 1fr 1.2fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .hdr__nav,
  .hdr__phone,
  .hdr__side .btn { display: none; }
  .hdr__burger { display: inline-flex; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards,
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about,
  .pbody { grid-template-columns: 1fr; }
  .pbody__aside { position: static; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--wide { grid-column: span 2; }
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff__cards { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .licenses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfacts { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container,
  .hdr__inner { padding: 0 18px; }
  .section { padding: 54px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .cards,
  .services { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 56px); }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__dots { position: static; margin-top: 26px; justify-content: center; }
  .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item--wide img { aspect-ratio: 4 / 3; }
  .contacts { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .licenses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__top { grid-template-columns: 1fr; gap: 26px; }
  .cta { padding: 30px 22px; }
  .pnav { flex-direction: column; }
  .pnav__link { min-width: 0; }
  .pnav__link--next { text-align: left; align-items: flex-start; }
  .filter { gap: 8px; }
  .filter__btn { padding: 9px 15px; font-size: .88rem; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media print {
  .hdr, .mnav, .to-top, .hdr-progress, .cta__actions, .map { display: none !important; }
  body { color: #000; }
  .hero, .phero { min-height: auto; background: none; color: #000; }
  .hero h1, .phero h1 { color: #000; }
}


