/* ============================================================
   АЙТРИ (i3 Vision) — стили лендинга для IT-аккредитации
   Фирменный стиль: монохром (чёрный/белый/серый), шрифт Manrope.
   Системный фолбэк Arial = брендовый альтернативный шрифт + быстрый FCP.
   ============================================================ */

/* --- Палитра строго по брендбуку «Айтри» (стр. 18) --- */
:root {
  --black: #000000;
  --white: #ffffff;
  --grey-bg: #f3f3f3;     /* Light Grey — фон секций */
  --grey-line: #e8e8e8;   /* Light Grey — границы */
  --grey-mid: #dadada;    /* Light Grey — разделители */
  --muted: #5e5e5e;       /* приглушённый текст на белом */
  --muted-dark: #9a9a9a;  /* приглушённый текст на чёрном */

  --radius: 4px;          /* минимальное скругление, как в брендбуке */
  --container: 1180px;
  --space: clamp(56px, 8vw, 110px);

  /* Брендовый шрифт + альтернативный (Arial из брендбука, стр. 16) */
  --font: "Manrope", Arial, "Helvetica Neue", sans-serif;
}

/* --- Сброс --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--black);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   ШАПКА И НАВИГАЦИЯ
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

/* --- Логотип: знак + словесная часть «АЙТРИ» --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
}

.logo:hover {
  text-decoration: none;
}

.logo__mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.logo__text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--black);
  text-decoration: none;
}

.main-nav__highlight {
  color: var(--black) !important;
  font-weight: 700 !important;
}

/* Бургер */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--black);
}

/* ============================================================
   ГЕРОЙ-БЛОК — чёрный фон, тонкий крупный заголовок (обложка брендбука)
   ============================================================ */
.hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(72px, 11vw, 150px) 0;
}

.hero__badge {
  display: inline-block;
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__title {
  /* Тонкое крупное начертание, как заголовки в брендбуке */
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 28px;
}

.hero__lead {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 400;
  color: #cccccc;
  max-width: 58ch;
  margin-bottom: 40px;
}

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

/* --- Кнопки (только чёрно-белые) --- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

/* На чёрном фоне основная кнопка белая */
.btn--primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn--primary:hover {
  background: transparent;
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: #555555;
}

.btn--ghost:hover {
  border-color: var(--white);
}

/* Вариант кнопки на белом фоне (например, на странице-документе) */
.btn--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--dark:hover {
  background: transparent;
  color: var(--black);
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section {
  padding: var(--space) 0;
}

.section--alt {
  background: var(--grey-bg);
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.section__intro {
  color: var(--muted);
  max-width: 68ch;
  font-size: 18px;
  margin-bottom: 48px;
}

.section__note {
  margin-top: 36px;
  color: var(--muted);
  font-size: 16px;
}

/* --- Карточки услуг --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--grey-line); /* линии-разделители между карточками */
  border: 1px solid var(--grey-line);
}

.card {
  background: var(--white);
  padding: 32px 28px;
}

.card__num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-dark);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.card__title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

/* --- Технологический стек --- */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.stack__group-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--grey-mid);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags li {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
}

.section--alt .tags li {
  background: var(--white);
}

/* --- Тарифы --- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

/* Выделенный тариф — инверсия (чёрный) вместо цветного акцента */
.price-card--featured {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.price-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

.price-card--featured .price-card__title {
  color: var(--muted-dark);
}

.price-card__value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.price-card__list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.price-card__list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
}

.price-card--featured .price-card__list li {
  color: #cccccc;
}

/* Маркер — тонкая линия (без смайликов/галочек) */
.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--black);
}

.price-card--featured .price-card__list li::before {
  background: var(--white);
}

/* --- Примеры стоимости готовых решений --- */
.price-examples {
  margin-top: 56px;
}

.price-examples__title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--black);
}

.price-examples__list {
  list-style: none;
}

.price-examples__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-line);
  font-size: 16px;
}

.price-examples__price {
  font-weight: 700;
  white-space: nowrap;
}

/* --- Информационные блоки (ПО) --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.info-block {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.info-block__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-block p {
  color: var(--muted);
  font-size: 15px;
}

/* ============================================================
   ТУЛТИПЫ ДЛЯ АНГЛИЦИЗМОВ (требование п.2.2 ТЗ)
   ============================================================ */
abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
  font-weight: 600;
}

.tooltip {
  position: relative;
}

.tooltip__bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid #333;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  z-index: 60;
  pointer-events: none;
}

.tooltip__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--black);
}

.tooltip:hover .tooltip__bubble,
.tooltip:focus-within .tooltip__bubble {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   ФУТЕР С РЕКВИЗИТАМИ (чёрный, как разделы-обложки брендбука)
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--muted-dark);
  padding: var(--space) 0 36px;
}

.site-footer a {
  color: #ffffff;
}

.site-footer__title {
  color: var(--white);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 300;
  margin-bottom: 40px;
}

.requisites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
}

.requisites__name {
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.requisites__subtitle {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.requisites__col p {
  margin-bottom: 12px;
  font-size: 15px;
  color: #cfcfcf;
}

.requisites__list {
  display: grid;
  gap: 8px;
}

.requisites__list div {
  display: flex;
  gap: 10px;
}

.requisites__list dt {
  font-weight: 700;
  color: var(--white);
  min-width: 52px;
}

.requisites__list dd {
  color: #cfcfcf;
}

.requisites__okved {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #cfcfcf;
}

.footer-link {
  font-weight: 600;
}

/* Мета-подвал в стиле брендбука: «i3 Vision | ©2026» */
.site-footer__meta {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-dark);
  letter-spacing: 0.04em;
}

/* ============================================================
   СТРАНИЦА-ДОКУМЕНТ (Сведения об ИТ-деятельности)
   ============================================================ */
.doc {
  padding: clamp(48px, 7vw, 88px) 0;
}

.doc__title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.doc__lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 75ch;
  margin-bottom: 48px;
}

.doc__section {
  margin-bottom: 48px;
  max-width: 82ch;
}

.doc__section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
}

.doc__section h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.doc__section p,
.doc__section ul {
  margin-bottom: 12px;
  color: #222;
}

.doc__section ul {
  padding-left: 22px;
}

.doc-table {
  border-collapse: collapse;
  margin: 14px 0;
}

.doc-table th,
.doc-table td {
  border: 1px solid var(--grey-mid);
  padding: 11px 20px;
  text-align: left;
}

.doc-table th {
  background: var(--grey-bg);
  font-weight: 700;
}

.doc__back {
  margin-top: 48px;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
    padding: 8px 24px 16px;
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--grey-line);
    font-size: 16px;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
}

/* Доступность: уважение к настройкам анимаций */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
