/* ==========================================================================
   Base: токены, сброс, типографика, общие компоненты
   ========================================================================== */

:root {
  /* Цвета */
  --c-navy: #071d49;
  --c-navy-deep: #0a2558;
  --c-blue: #1677ff;
  --c-blue-hover: #0f63de;
  --c-orange: #f26a1f;
  --c-text: #071d49;
  --c-muted: #5b6b86;
  --c-line: #e3e9f3;
  --c-field-line: #d3dced;
  --c-soft: #edf3fd;
  --c-soft-2: #f5f8fd;
  --c-white: #fff;
  --c-up: #16a34a;
  --c-down: #e5484d;

  /* Геометрия */
  --container: 80rem;
  --gutter: 1.5rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --shadow-card: 0 0.0625rem 0.125rem rgba(7, 29, 73, .04), 0 0.25rem 0.875rem rgba(7, 29, 73, .06);

  /* Типографика */
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: Manrope, Inter, "Segoe UI", system-ui, sans-serif;

  /* Ритм секций */
  --section-gap: clamp(1.75rem, 3.4vw, 3rem);
}

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

/* Корневой размер фиксированный; на ноутбуках (1000–1440px) вёрстка чуть мельче */
html {
  height: 100%;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

@media (min-width: 1000px) and (max-width: 1440px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 1000px) and (max-width: 1240px) {
  html {
    font-size: 14px;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 0.125rem solid var(--c-blue);
  outline-offset: 0.125rem;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  margin: -0.0625rem;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  background: var(--c-navy);
  color: #fff;
  border-radius: var(--radius);
  transition: top .2s;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Контейнер */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Иконки: SVG-маски, цвет берётся из currentColor */
:root {
  --ic-arrow: url("../icons/arrow.svg");
  --ic-chevron: url("../icons/chevron.svg");
  --ic-bars: url("../icons/bars.svg");
  --ic-briefcase: url("../icons/briefcase.svg");
  --ic-users: url("../icons/users.svg");
  --ic-doc: url("../icons/doc.svg");
  --ic-chart: url("../icons/chart.svg");
  --ic-user: url("../icons/user.svg");
  --ic-bank: url("../icons/bank.svg");
  --ic-calendar: url("../icons/calendar.svg");
  --ic-megaphone: url("../icons/megaphone.svg");
  --ic-search: url("../icons/search.svg");
  --ic-mail: url("../icons/mail.svg");
  --ic-phone: url("../icons/phone.svg");
  --ic-pin: url("../icons/pin.svg");
  --ic-clock: url("../icons/clock.svg");
  --ic-globe: url("../icons/globe.svg");
}

.ic::before,
.link-arrow a::after,
.link-more a::after,
.btn .wp-block-button__link::after,
.card::after,
.tool::after,
.biz__card::after,
.invest-link::after,
.row::after {
  content: "";
  display: block;
  flex: none;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}

.link-arrow a::after,
.link-more a::after,
.btn .wp-block-button__link::after,
.card::after,
.tool::after,
.biz__card::after,
.invest-link::after {
  --ic: var(--ic-arrow);
}

.row::after { --ic: var(--ic-chevron); }
.ic-bars { --ic: var(--ic-bars); }
.ic-briefcase { --ic: var(--ic-briefcase); }
.ic-users { --ic: var(--ic-users); }
.ic-doc { --ic: var(--ic-doc); }
.ic-chart { --ic: var(--ic-chart); }
.ic-user { --ic: var(--ic-user); }
.ic-bank { --ic: var(--ic-bank); }
.ic-calendar { --ic: var(--ic-calendar); }
.ic-megaphone { --ic: var(--ic-megaphone); }
.ic-search { --ic: var(--ic-search); }
.ic-mail { --ic: var(--ic-mail); }
.ic-phone { --ic: var(--ic-phone); }
.ic-pin { --ic: var(--ic-pin); }
.ic-clock { --ic: var(--ic-clock); }
.ic-globe { --ic: var(--ic-globe); }

/* Кнопки-ссылки (вёрстка без редактора) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 0.0625rem solid transparent;
  border-radius: var(--radius);
  transition: background-color .2s, border-color .2s, color .2s;
}

.button .icon {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  transition: transform .2s;
}

.button:hover .icon {
  transform: translateX(0.1875rem);
}

.button--primary {
  background: var(--c-blue);
  color: #fff;
}

.button--primary:hover {
  background: var(--c-blue-hover);
}

.button--outline {
  background: #fff;
  border-color: rgba(22, 119, 255, .45);
  color: var(--c-blue);
}

.button--outline:hover {
  border-color: var(--c-blue);
  background: var(--c-soft);
}

.button--lg {
  min-height: 3.5rem;
  padding-inline: 1.75rem;
  font-size: 1rem;
  border-radius: 0.625rem;
}

.button--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Типографика */
.h2 {
  font-size: clamp(1.375rem, 2.3vw, 1.875rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}

.h3 {
  font-size: clamp(1.1875rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}

.label {
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-orange);
}

/* Ссылки-«стрелки» (абзацы со ссылкой внутри) */
.link-arrow a,
.link-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--c-blue);
  transition: color .2s, gap .2s;
}

.link-arrow a {
  font-size: 1rem;
}

.link-more a {
  font-size: 0.875rem;
  white-space: nowrap;
}

.link-arrow a::after,
.link-more a::after {
  font-size: 1.125rem;
}

.link-arrow a:hover,
.link-more a:hover {
  color: var(--c-blue-hover);
  gap: 0.75rem;
}

/* Кнопки (блок «Кнопка» с классами btn btn--*) */
.btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 0.0625rem solid transparent;
  border-radius: var(--radius);
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

.btn .wp-block-button__link::after {
  font-size: 1.125rem;
}

.btn.wp-block-button__width-100 .wp-block-button__link {
  width: 100%;
}

.btn--primary .wp-block-button__link {
  background: var(--c-blue);
  color: #fff;
}

.btn--primary .wp-block-button__link:hover {
  background: var(--c-blue-hover);
}

.btn--outline .wp-block-button__link {
  background: #fff;
  border-color: var(--c-navy);
  color: var(--c-navy);
}

.btn--outline .wp-block-button__link:hover {
  background: var(--c-navy);
  color: #fff;
}

.btn--outline-light .wp-block-button__link {
  background: transparent;
  border-color: rgba(255, 255, 255, .75);
  color: #fff;
}

.btn--outline-light .wp-block-button__link:hover {
  background: #fff;
  color: var(--c-navy);
}

/* Общие секции */
.section {
  padding-block: var(--section-gap) 0;
}

.section--flush {
  padding-block-start: clamp(1.25rem, 2.2vw, 1.75rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head--tight {
  margin-bottom: 0.875rem;
}

/* Плитка с иконкой */
.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.625rem;
  color: var(--c-navy);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

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

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