/* ==========================================================================
   ООО «Аргус-1» — одностраничный сайт
   Палитра снята пипеткой с логотипа (_source/logo).
   ========================================================================== */

/* ---------- Шрифты (локально, без внешних запросов) ---------- */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Переменные ---------- */
:root {
  /* Цвета логотипа */
  --c-green: #029974;        /* верх эмблемы — акценты, иконки, декор */
  --c-green-logo: #4aa48a;   /* надпись «АРГУС» — только декор, не текст */
  --c-slate: #556157;        /* низ эмблемы */
  --c-slate-dark: #414b44;   /* тёмные секции */

  /* Производные для текста и кнопок (контраст WCAG AA на белом) */
  --c-green-strong: #00755a; /* ссылки, кнопки, мелкий зелёный текст */
  --c-green-hover: #005f49;

  --c-ink: #1c211e;          /* основной текст */
  --c-muted: #535f58;        /* второстепенный текст */
  --c-bg: #ffffff;
  --c-bg-soft: #f3f7f5;      /* светлый фон блоков */
  --c-line: #dbe5e0;         /* границы карточек */
  --c-on-dark: #ffffff;
  --c-on-dark-muted: #d5ddd8;

  /* Подсветка неподтверждённых данных.
     Перед публикацией заменить на transparent — подсветка исчезнет везде. */
  --todo-highlight: #ffe45c;

  --gradient-brand: linear-gradient(90deg, var(--c-green) 0%, var(--c-slate) 100%);

  /* Типографика */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(1.75rem, 1.15rem + 2.6vw, 3rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh-tight: 1.18;
  --lh-body: 1.6;

  /* Сетка и отступы */
  --container: 72.5rem;      /* 1160px */
  --gutter: 1.25rem;
  --section-y: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);
  --gap: 1.5rem;
  --radius: 0.875rem;
  --radius-sm: 0.5rem;
  --tap: 2.75rem;            /* 44px — минимальная область нажатия */
  --header-h: 4.5rem;
  --shadow-card: 0 1px 2px rgba(28, 33, 30, 0.04), 0 8px 24px rgba(28, 33, 30, 0.05);
  --transition: 160ms ease;
}

/* ---------- База ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
}

h3,
h4 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
}

.subtitle {
  margin-bottom: 1.5rem;
  font-size: 1.3125rem;
}

.subtitle--spaced {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--c-green-strong);
  text-underline-offset: 0.18em;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-green-hover);
}

:focus-visible {
  outline: 3px solid var(--c-green-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -6rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--c-ink);
  color: var(--c-on-dark);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 0.5rem;
  color: var(--c-on-dark);
}

/* Неподтверждённые данные: цифры и плейсхолдеры */
.todo {
  background: var(--todo-highlight);
  border-radius: 0.2em;
  padding: 0 0.2em;
  color: var(--c-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.todo--block {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--gradient-brand);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
  min-height: var(--header-h);
}

.site-header__logo {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  flex: none;
}

.site-header__logo img {
  width: 160px;
  height: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-toggle .nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

/* Без JS меню — обычный ряд якорных ссылок с переносом */
.site-nav {
  flex: 1 1 100%;
  padding-bottom: 0.25rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.25rem;
  margin-inline: -0.625rem;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.625rem;
  color: var(--c-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.site-nav__list a:hover {
  color: var(--c-green-strong);
}

/* С JS на узких экранах меню прячется под бургер */
@media (max-width: 47.99rem) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    padding-bottom: 0.75rem;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav__list {
    flex-direction: column;
  }

  .js .site-nav__list a {
    min-height: 3rem;
    font-size: 1.0625rem;
    border-top: 1px solid var(--c-line);
    border-radius: 0;
  }
}

@media (min-width: 48rem) {
  .site-nav {
    flex: 0 1 auto;
    padding-bottom: 0;
  }

  .site-nav__list {
    margin-inline: 0 -0.625rem;
  }
}

/* ---------- Кнопка ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  background: var(--c-green-strong);
  color: var(--c-on-dark);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color var(--transition);
}

.button:hover {
  background: var(--c-green-hover);
  color: var(--c-on-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 100%);
}

.hero__inner {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.hero__text {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--c-green-strong);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--gradient-brand);
}

.hero__lead {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.4;
}

.hero__body {
  margin-top: 0.875rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.hero__actions {
  margin-top: 2rem;
}

.hero__media {
  position: relative;
  justify-self: center;
  width: min(100%, 20rem);
}

.hero__media img {
  position: relative;
  width: 100%;
  mix-blend-mode: multiply; /* белый фон фото сливается с фоном секции */
}

.hero__decor {
  position: absolute;
  top: -6%;
  right: -22%;
  width: 78%;
  color: var(--c-green);
  opacity: 0.28;
  pointer-events: none;
}

@media (min-width: 56rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 3rem;
  }

  .hero__media {
    width: min(100%, 26rem);
  }
}

/* ---------- Секции ---------- */
.section {
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--c-bg-soft);
}

.section__head {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.section__intro + .section__intro {
  margin-top: 0.75rem;
}

.section__intro {
  margin-top: 1rem;
  color: var(--c-muted);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

/* ---------- Карточки ---------- */
.cards {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 44rem) {
  .cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  padding: 1.75rem 1.5rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card__num {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--c-green-strong);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.card__num::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 0.625rem;
  background: var(--gradient-brand);
}

.card p {
  margin-top: 0.75rem;
  color: var(--c-muted);
}

/* ---------- Технология ---------- */
.tech {
  display: grid;
  gap: 2rem;
}

.tech__photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.tech__photo img {
  width: auto;
  max-height: 22rem;
}

.tech__photo figcaption,
.screenshot figcaption {
  margin-top: 1rem;
  color: var(--c-muted);
  font-size: var(--fs-small);
  text-align: center;
}

.features {
  display: grid;
  gap: 1.75rem;
  align-content: center;
}

.feature {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 0.75rem;
  color: var(--c-green);
}

.feature__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.feature p {
  margin-top: 0.375rem;
  color: var(--c-muted);
}

@media (min-width: 44rem) {
  .tech {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 2.5rem;
    align-items: stretch;
  }
}

@media (min-width: 56rem) {
  .tech {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 3.5rem;
  }

  .tech__photo img {
    max-height: 30rem;
  }
}

.flow {
  display: grid;
  gap: 0.75rem;
}

.flow__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.3;
}

.flow__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--c-green-strong);
  color: var(--c-on-dark);
  font-size: var(--fs-small);
  font-weight: 700;
}

/* стрелка между шагами: вниз на узких экранах, вправо на широких */
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.875rem;
  bottom: -0.75rem;
  width: 2px;
  height: 0.75rem;
  background: var(--c-green);
}

@media (min-width: 62rem) {
  .flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .flow__step {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .flow__step:not(:last-child)::after {
    left: auto;
    right: -1.25rem;
    top: 50%;
    bottom: auto;
    width: 1.25rem;
    height: 2px;
  }
}

.screenshot {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.screenshot__frame {
  overflow: hidden;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.screenshot__bar {
  display: flex;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-soft);
}

.screenshot__bar span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--c-line);
}

.screenshot__frame img {
  width: 100%;
}

.advantage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: 1.5rem;
  background: var(--c-slate-dark);
  color: var(--c-on-dark);
  border-radius: var(--radius);
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: 1.4;
}

.advantage svg {
  width: 2rem;
  height: 2rem;
  color: #7fd6bd;
}

/* ---------- Применение ---------- */
.tiles {
  display: grid;
  gap: 1rem;
}

@media (min-width: 44rem) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}

.tile__icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--c-green);
}

.tile__text {
  color: var(--c-muted);
}

.tile__title {
  color: var(--c-ink);
  font-weight: 600;
}

/* ---------- О компании ---------- */
.about {
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.about p + p {
  margin-top: 1rem;
}

/* ---------- Реквизиты ---------- */
.requisites {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.5rem 1.5rem;
  max-width: 54rem;
}

.requisites__row {
  display: grid;
  gap: 0.125rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--c-line);
}

.requisites__row:last-child {
  border-bottom: 0;
}

.requisites dt {
  color: var(--c-muted);
  font-size: var(--fs-small);
}

.requisites dd {
  font-weight: 600;
  overflow-wrap: anywhere;
  user-select: text;
}

.requisites__hint {
  font-weight: 400;
  color: var(--c-muted);
}

.requisites dd a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-block: -0.625rem;
}

@media (min-width: 40rem) {
  .requisites__row {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: baseline;
  }

  .requisites dt {
    font-size: 0.9375rem;
  }
}

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--c-slate-dark);
  color: var(--c-on-dark-muted);
  font-size: var(--fs-small);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: var(--tap);
  color: var(--c-on-dark);
  font-weight: 600;
}

.site-footer a svg {
  width: 1rem;
  height: 1rem;
}

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Печать (реквизиты удобно распечатать) ---------- */
@media print {
  .site-header {
    position: static;
  }

  .nav-toggle,
  .site-nav,
  .hero__decor,
  .button {
    display: none !important;
  }
}
