/* Лендинг БРИК: «бумага и чертежи». Цвета и размеры — из макета в Figma (1440 × 2320). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f6f2e9;
  --sheet: #fffcf5;
  --ink: #263036;
  /* Темнее макетного #6e7774: 4,5:1 на всех фонах страницы (WCAG AA). */
  --muted: #626b68;
  --brick: #9d3b2e;
  --brick-dark: #85301f;
  --sage: #638273;
  /* Серо-зелёный для текста; #638273 остаётся для линий пиктограмм. */
  --sage-text: #50705f;
  --blue: #47718e;
  --rule: #c5c3b8;
  --rule-soft: rgba(38, 48, 54, 0.16);
  --head: #ece9df;
  --gutter: 40px;
  --inset: 17px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("img/grain.svg");
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--sheet);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 1360px);
  margin-inline: auto;
}

.accent {
  color: var(--brick);
}

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

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 51px;
  padding: 0 22px;
  border: 1px solid transparent;
  font:
    600 14px/1 Inter,
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.btn--primary {
  background: var(--brick);
  color: var(--sheet);
}
.btn--primary:hover {
  background: var(--brick-dark);
}
.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--sheet);
}
.arrow {
  width: 16px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

.link-line {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
}
.link-line:hover {
  color: var(--brick);
  border-color: var(--brick);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 42px;
  margin-top: 40px;
}

/* Шапка */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(246, 242, 233, 0.94);
  backdrop-filter: blur(6px);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 85px;
  padding-block: 12px;
  padding-inline: var(--inset);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 40px;
  margin-right: 14px;
  border-right: 1px solid var(--rule);
  height: 43px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 52px;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--brick);
}
.topbar__cta {
  margin-left: auto;
  min-width: 244px;
}

/* Секции */
.section {
  padding: 36px 0 64px;
}
.section > .wrap {
  padding-inline: var(--inset);
}
.section + .section {
  padding-top: 0;
}
.section + .section > .wrap {
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}

.eyebrow {
  display: flex;
  align-items: center;
  margin: 0 0 40px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__code {
  flex: 0 0 65px;
  color: var(--brick);
  font-weight: 600;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 40px;
  background: var(--rule);
  max-width: 420px;
}

.h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 2.65vw, 38px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.015em;
}
/* Главный экран */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 714px) minmax(0, 620px);
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  margin: 0 0 30px;
  font-size: clamp(38px, 3.75vw, 54px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 13.5em;
}
.lead {
  margin: 0;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.48;
}
.hero__art {
  position: relative;
  margin: 0;
}
.callout {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  max-width: 180px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}
.callout i {
  flex: 0 0 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brick);
}
/* Точка выноски совпадает с меткой на чертеже: (430, 60) и (40, 240) на листе 620 × 440. */
.callout--node {
  left: calc(69.35% - 14px);
  top: calc(13.64% - 15px);
}
.callout--diff {
  left: calc(6.45% - 14px);
  top: calc(54.55% - 15px);
  max-width: 150px;
}

/* Инструменты */
.tools {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}
.tool {
  display: flex;
  flex-direction: column;
  padding: 0 24px 8px;
  border-left: 1px solid var(--rule);
}
.tool:first-child {
  padding-left: 0;
  border-left: 0;
}
.tool__num {
  font-size: 15px;
  font-weight: 500;
  color: var(--sage-text);
}
.tool__art {
  height: 112px;
  width: auto;
  margin: 40px 0 34px 20px;
  object-fit: contain;
  object-position: left center;
}
.tool h3 {
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.17;
  font-weight: 600;
  max-width: 12em;
}
.tool p {
  margin: 0;
  max-width: 22em;
  font-size: 14px;
  line-height: 1.43;
  color: var(--muted);
}
/* Продукт */
.product {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 838px);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}
.product__text .muted {
  margin: 0 0 34px;
  font-size: 16px;
  line-height: 1.42;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 15px;
}
.ticks li {
  position: relative;
  padding-left: 35px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 15px;
  height: 9px;
  border-left: 2px solid var(--brick);
  border-bottom: 2px solid var(--brick);
  transform: rotate(-45deg);
}
.product__art {
  position: relative;
}
.sheet {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
  height: 78%;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 0 10px 28px rgba(38, 48, 54, 0.08);
}
.sheet__bar {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
}
.sheet__bar i,
.sheet__tools i {
  border: 1px solid var(--rule);
  border-radius: 50%;
}
.sheet__bar i {
  width: 8px;
  height: 8px;
}
.sheet__plan {
  position: absolute;
  right: 54px;
  top: 44px;
  width: 58%;
}
.sheet__plan text {
  font-size: 10px;
  fill: var(--muted);
}
.sheet__tools {
  position: absolute;
  right: 14px;
  top: 52px;
  display: grid;
  gap: 10px;
}
.sheet__tools i {
  width: 18px;
  height: 18px;
}
/* Макет интерфейса */
.app {
  position: relative;
  width: 74%;
  margin-top: 60px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px rgba(38, 48, 54, 0.16);
  font-size: 11px;
}
.app__bar {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 36px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--sheet);
  font-size: 10px;
}
.app__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-size: 13px;
}
.app__user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app__user i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sheet);
  color: var(--ink);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}
.app__body {
  padding: 12px 16px 16px;
}
.app__body p {
  margin: 0;
}
.app__crumbs {
  font-size: 9px;
  color: var(--blue);
}
.app__crumbs u {
  text-underline-offset: 2px;
}
.app__body .app__title {
  margin: 10px 0 12px;
  font-size: 18px;
  font-weight: 700;
}
.app__title small {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.app__tabs {
  display: flex;
  gap: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 10px;
}
.app__tabs b {
  font-weight: 600;
  box-shadow: 0 9px 0 -7px var(--ink);
}
.app__tabs span {
  color: var(--muted);
}
.app__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
}
.app__head b {
  margin-right: auto;
  font-size: 15px;
}
.app__btn {
  padding: 6px 10px;
  border: 1px solid var(--rule);
  font-size: 9px;
  font-weight: 500;
}
.app__btn--primary {
  border-color: var(--brick);
  background: var(--brick);
  color: var(--sheet);
}
.app__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5px;
}
.app__table th {
  padding: 8px 6px;
  background: var(--head);
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}
.app__table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.app__table a {
  display: block;
  color: var(--blue);
  font-weight: 600;
}
.app__table small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}
.st {
  color: var(--muted);
}
.st--warn {
  color: var(--brick);
  font-weight: 500;
}
.st--ok {
  color: var(--sage-text);
  font-weight: 500;
}
/* Для кого */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 168px;
  padding: 24px 28px 24px 24px;
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.card__art {
  justify-self: center;
  max-height: 120px;
  width: auto;
}
.card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
}
.card p {
  margin: 0;
  max-width: 25em;
  font-size: 15px;
  line-height: 1.43;
  color: var(--muted);
}

/* Начать работу */
.access {
  padding-bottom: 0;
}
.access__grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 660px);
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.access h2 {
  font-size: clamp(30px, 2.7vw, 39px);
  margin-bottom: 14px;
}
.access .muted {
  margin: 0;
  max-width: 30em;
  font-size: 16px;
}
.access .actions {
  margin: 34px 0 56px;
  gap: 18px 24px;
}
.access__art {
  margin-bottom: -1px;
  opacity: 0.85;
}

/* Подвал */
.footer__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 55px;
  padding-block: 12px;
  padding-inline: var(--inset);
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
}
.footer__inner b {
  color: var(--ink);
  font-size: 14px;
  width: 100px;
}
.footer__inner a {
  margin-left: auto;
  text-decoration: none;
}
.footer__inner a:hover {
  color: var(--brick);
}
/* Планшеты */
@media (max-width: 1180px) {
  .nav {
    gap: 28px;
  }
  .brand {
    padding-right: 24px;
    margin-right: 0;
  }
  .topbar__cta {
    min-width: 0;
  }
  .hero__grid,
  .product,
  .access__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__art {
    max-width: 620px;
  }
  .product__art {
    max-width: 838px;
  }
  .tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
  .tool:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .access__art {
    justify-self: end;
    max-width: 560px;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .brand {
    border-right: 0;
  }
}

/* Телефоны */
@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --inset: 0px;
  }
  .topbar__inner {
    height: 64px;
  }
  .nav {
    display: none;
  }
  .brand {
    border-right: 0;
    padding-right: 0;
    font-size: 22px;
  }
  .topbar__cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }
  .section {
    padding-bottom: 48px;
  }
  .eyebrow {
    margin-bottom: 28px;
  }
  .eyebrow::after {
    margin-left: 16px;
  }
  .actions .btn {
    width: 100%;
  }
  .callout {
    font-size: 11px;
    max-width: 140px;
  }
  .tools {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
  .tool {
    padding: 0;
    border-left: 0;
  }
  .tool__art {
    margin: 22px 0 22px 8px;
    height: 96px;
  }
  .app {
    width: 100%;
    margin-top: 0;
  }
  .sheet {
    display: none;
  }
  .app__bar span:not(.app__user) {
    display: none;
  }
  .app__table th:nth-child(3),
  .app__table td:nth-child(3) {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card__art {
    justify-self: start;
    max-height: 90px;
  }
  .footer__inner {
    flex-wrap: wrap;
    gap: 6px 20px;
    padding-block: 14px;
  }
  .footer__inner a {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
