/* volart. studio — volart.space
   Цвета и шрифт — по брендбуку: фон #14171C, акцент #E2571F только на точке
   знака и на выделениях, весь текст — JetBrains Mono, знак — Helvetica/Arial. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #14171C;
  --surface: #1B1F26;
  --line: #2A3039;
  --text: #E8ECEF;
  --muted: #8A939D;
  --sub: #7D868F;
  --accent: #E2571F;
  --divider: #3A414C;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --logo: Helvetica, Arial, "Liberation Sans", sans-serif;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { color: var(--text); text-decoration-color: var(--text); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::selection { background: var(--divider); color: var(--text); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Верхняя навигация: «О нас» справа. На главной лежит поверх первого экрана */

.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  height: 72px;
}
.topnav_over { position: absolute; top: 0; left: 0; right: 0; z-index: 1; }
.topnav-home { margin-right: auto; text-decoration: none; }
.topnav-home .wm { height: 26px; }
.topnav-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.topnav-link:hover { color: var(--text); }
.topnav-link[aria-current="page"] { color: var(--text); border-bottom-color: var(--muted); }

/* Первый экран */

.hero {
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}

.mark { line-height: 0; margin-bottom: 40px; }
.mark svg { width: 280px; max-width: 100%; height: auto; overflow: visible; }
.mark-word { font-family: var(--logo); fill: #FFFFFF; }
.mark-word .dot { fill: var(--accent); }
.mark-sub { font-family: var(--logo); fill: var(--sub); }

.lead {
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  /* Ширина по контейнеру: при 34em строка рвалась на «автоматизация /
     и продвижение», хотя справа оставалась половина экрана пустой. */
  max-width: 100%;
  text-wrap: pretty;   /* не оставляет одно слово на последней строке */
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
}
.btn:hover { background: var(--accent); color: var(--bg); filter: brightness(1.1); }

.tags {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.09em;
}

/* Разделы */

.section { padding: 88px 0; border-bottom: 1px solid var(--line); }

h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  margin-bottom: 40px;
}

.kicker {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
}

h3 { font-size: 17px; line-height: 1.4; margin-bottom: 10px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}

.item p, .steps p { color: var(--text); }

.about {
  margin-top: 56px;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}
.about > p:first-child { max-width: 46em;
}

/* Страница «О нас» */

.page { border-bottom: 0; padding-top: 48px; }
.page-title { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.3; margin-bottom: 32px; }
.page .about { margin-top: 0; margin-bottom: 64px; }
.page .subhead { margin-top: 0; }

.props { display: grid; gap: 14px; max-width: 52em; }
.props div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; }
.props dt { color: var(--muted); }
.props dd { margin: 0; }

.page-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; }

.page-cta { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.page-back { color: var(--muted); text-decoration: none; }
.page-back:hover { color: var(--text); }

/* Как работаем */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps h3::before {
  content: counter(step) ".";
  color: var(--accent);
  margin-right: 10px;
}

/* Тарифы */

/* Подзаголовок с фирменной чертой — как «КУДА ПЛАТИТЬ» в документах */
.subhead {
  margin: -16px 0 32px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text);
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}


.tariffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tariff {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px 36px;
  scroll-margin-top: 24px;
}
.tariff:target { border-color: var(--muted); }

.tariff h4 { font-size: 17px; line-height: 1.4; margin: 0; }
.tariff-price { font-size: 20px; font-weight: 700; line-height: 1.4; margin-top: 8px; }

.tariff-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--divider);
  display: grid;
  gap: 18px;
  line-height: 1.8;
}
.tariff-list li { position: relative; padding-left: 20px; }
.tariff-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* Отзывы */

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.quote blockquote p::before { content: "«"; }
.quote blockquote p::after { content: "»"; }
.quote figcaption { display: flex; flex-direction: column; line-height: 1.5; font-size: 14px; }
.quote figcaption span { color: var(--muted); }

/* Контакты */

.contacts-lead { margin-bottom: 28px; max-width: 40em; }

.info { margin-top: 48px; display: grid; gap: 14px; }
.info div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; }
.info dt { color: var(--muted); }
.info dd { overflow-wrap: anywhere; }

/* Подвал */

.footer { padding: 32px 0 40px; color: var(--muted); font-size: 13px; }
.footer .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
/* Знак «volart.» из знак/ — тот же SVG, что на первом экране, без подписи */
.wm { display: inline-block; height: 20px; width: auto; vertical-align: -4px; overflow: visible; }

/* Узкий экран: три тарифа в ряд уже не помещаются без тесноты */

@media (max-width: 1040px) {
  .tariffs { grid-template-columns: 1fr; }
}

/* Телефон */

@media (max-width: 720px) {
  body { font-size: 14px; }
  .hero { min-height: auto; padding: 56px 0 56px; }
  .mark { margin-bottom: 32px; }
  .mark svg { width: 220px; }
  .lead { margin-bottom: 28px; }
  .lead br { display: none; }
  .btn { display: block; text-align: center; }
  .section { padding: 64px 0; }
  h2 { margin-bottom: 28px; }
  .grid, .steps { grid-template-columns: 1fr; gap: 32px; }
  .about { margin-top: 40px; padding-left: 18px; }
  .topnav .wrap { height: 60px; }
  .page { padding-top: 32px; }
  .page .about { margin-bottom: 48px; }
  .props div { grid-template-columns: 1fr; gap: 0; }
  .page-links { flex-direction: column; }
  .page-cta { flex-direction: column; align-items: stretch; }
  .page-back { text-align: center; }
  .tariffs { grid-template-columns: 1fr; gap: 16px; }
  .subhead { margin-top: -8px; }
  .tariff { padding: 26px 22px 28px; }
  .quote { padding: 22px; }
  .info div { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
