/* Типография «Формат» — основная таблица стилей.
   Префикс классов: fm-. Шрифты — системные, без внешних подключений. */

:root {
  --fm-ink: #17181c;
  --fm-ink-2: #34373f;
  --fm-muted: #5a5f69;
  --fm-paper: #faf8f3;
  --fm-paper-2: #f2ede2;
  --fm-paper-3: #e9e2d3;
  --fm-line: #ddd5c5;
  --fm-line-2: #b9ae98;
  --fm-field: #8a8275;
  --fm-cyan: #00a3e0;
  --fm-cyan-ink: #006a8e;
  --fm-cyan-soft: #e2f4fb;
  --fm-magenta: #d1007a;
  --fm-magenta-ink: #a8005f;
  --fm-magenta-soft: #fbe6f1;
  --fm-yellow: #ffd400;
  --fm-yellow-soft: #fff6c7;
  --fm-ok: #1b7a45;
  --fm-err: #b3261e;
  --fm-radius: 6px;
  --fm-radius-lg: 12px;
  --fm-shadow: 0 1px 2px rgba(23, 24, 28, .06), 0 10px 26px -14px rgba(23, 24, 28, .22);
  --fm-font: system-ui, -apple-system, "Segoe UI", Roboto, "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --fm-font-serif: "PT Serif", Georgia, "Noto Serif", Cambria, "Times New Roman", serif;
  --fm-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "PT Mono", "Liberation Mono", monospace;
  --fm-container: 1200px;
  --fm-gutter: 16px;
  --fm-cmyk: linear-gradient(90deg, var(--fm-cyan) 0 25%, var(--fm-magenta) 25% 50%, var(--fm-yellow) 50% 75%, var(--fm-ink) 75% 100%);
  color-scheme: light;
}

@media (min-width: 600px) {
  :root { --fm-gutter: 24px; }
}

/* ---------- База ---------- */

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--fm-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fm-ink);
  background-color: var(--fm-paper);
  overflow-wrap: break-word;
}

@media (min-width: 900px) {
  body { font-size: 1.0625rem; }
}

main { flex: 1 0 auto; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--fm-font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; }

a {
  color: var(--fm-cyan-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

a:hover { color: var(--fm-magenta); }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--fm-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--fm-yellow);
  border-radius: 3px;
}

strong, b { font-weight: 700; }

small { font-size: .85em; }

hr {
  border: 0;
  height: 1px;
  background: var(--fm-line);
  margin: 32px 0;
}

abbr[title] { text-decoration: underline dotted; cursor: help; }

code, kbd {
  font-family: var(--fm-font-mono);
  font-size: .88em;
  background: var(--fm-paper-2);
  border: 1px solid var(--fm-line);
  border-radius: 4px;
  padding: .05em .35em;
}

::selection { background: var(--fm-yellow); color: var(--fm-ink); }

.fm-icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.fm-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.fm-skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  background: var(--fm-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.fm-skip:focus, .fm-skip:focus-visible { top: 8px; color: #fff; }

.fm-colorbar { height: 5px; background: var(--fm-cmyk); }

/* ---------- Верхняя строка ---------- */

.fm-topbar {
  background: var(--fm-ink);
  color: #e8e4dc;
  font-size: .8125rem;
}

.fm-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.fm-topbar__info {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 18px;
}

.fm-topbar__info span { display: inline-flex; align-items: center; gap: 6px; }

.fm-topbar .fm-icon { width: 15px; height: 15px; color: var(--fm-yellow); }

.fm-topbar a { color: #fff; text-decoration: none; }

.fm-topbar a:hover { color: var(--fm-yellow); text-decoration: underline; }

.fm-topbar__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

@media (max-width: 899px) {
  .fm-topbar__links, .fm-topbar__hours { display: none !important; }
}

@media (max-width: 519px) {
  .fm-topbar { display: none; }
}

/* ---------- Шапка ---------- */

.fm-header {
  position: relative;
  z-index: 30;
  background: rgba(250, 248, 243, .97);
  border-bottom: 1px solid var(--fm-line);
}

.fm-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
}

.fm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--fm-ink);
  text-decoration: none;
  border-radius: 6px;
}

.fm-logo:hover { color: var(--fm-ink); }

.fm-logo__mark { width: 42px; height: 42px; flex: none; }

.fm-logo__text { display: flex; flex-direction: column; line-height: 1; }

.fm-logo__name {
  font-family: var(--fm-font-serif);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -.01em;
}

.fm-logo__sub {
  margin-top: 5px;
  font-family: var(--fm-font-mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-nav { display: none; }

.fm-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.fm-nav__item { position: relative; }

.fm-nav__link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 10px 9px;
  border-radius: 4px;
  color: var(--fm-ink);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.fm-nav__link:hover { color: var(--fm-magenta); }

.fm-nav__link.is-active,
.fm-nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--fm-magenta); border-radius: 0; }

.fm-nav__chev { width: 14px; height: 14px; transition: transform .15s; }

.fm-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -8px;
  min-width: 270px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--fm-line);
  border-top: 3px solid var(--fm-magenta);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--fm-shadow);
}

.fm-nav__item:hover > .fm-nav__sub,
.fm-nav__item:focus-within > .fm-nav__sub { display: block; }

.fm-nav__item:hover .fm-nav__chev,
.fm-nav__item:focus-within .fm-nav__chev { transform: rotate(180deg); }

.fm-nav__sublink {
  display: block;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--fm-ink);
  text-decoration: none;
  font-size: .95rem;
}

.fm-nav__sublink:hover { background: var(--fm-paper-2); color: var(--fm-magenta); }

.fm-nav__sublink[aria-current="page"] { background: var(--fm-paper-2); font-weight: 700; }

.fm-header .fm-header__cta { display: none; }

@media (min-width: 520px) {
  .fm-header .fm-header__cta { display: inline-flex; }
}

/* мобильное меню на details/summary — работает без JS */

.fm-mnav > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--fm-ink);
  border-radius: var(--fm-radius);
  font-weight: 700;
  user-select: none;
  -webkit-user-select: none;
}

.fm-mnav > summary::-webkit-details-marker { display: none; }

.fm-mnav > summary .fm-icon { width: 20px; height: 20px; }

.fm-mnav__close { display: none; }

.fm-mnav[open] > summary { background: var(--fm-ink); color: #fff; }

.fm-mnav[open] .fm-mnav__open { display: none; }

.fm-mnav[open] .fm-mnav__close { display: inline-block; }

.fm-mnav__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 8px var(--fm-gutter) 24px;
  background: var(--fm-paper);
  border-bottom: 1px solid var(--fm-line);
  box-shadow: 0 22px 30px -20px rgba(0, 0, 0, .4);
}

.fm-mnav__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.fm-mnav__list > li { border-bottom: 1px solid var(--fm-line); }

.fm-mnav__list a {
  display: block;
  padding: 12px 4px;
  color: var(--fm-ink);
  font-weight: 700;
  text-decoration: none;
}

.fm-mnav__list a[aria-current="page"] { color: var(--fm-magenta); }

.fm-mnav__sub {
  list-style: none;
  margin: 0 0 12px;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--fm-cyan);
}

.fm-mnav__sub a { padding: 7px 4px; font-weight: 400; }

.fm-mnav__extra {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.fm-mnav__extra a { color: var(--fm-ink-2); }

.fm-mnav__contact { margin: 16px 0 0; font-size: .9rem; color: var(--fm-muted); }

@media (min-width: 1200px) {
  .fm-nav { display: block; }
  .fm-mnav { display: none; }
}

/* ---------- Кнопки ---------- */

.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: var(--fm-radius);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}

.fm-btn:active { transform: translateY(1px); }

.fm-btn .fm-icon { width: 18px; height: 18px; }

.fm-btn--primary { background: var(--fm-magenta); color: #fff; }

.fm-btn--primary:hover { background: var(--fm-magenta-ink); color: #fff; }

.fm-btn--ink { background: var(--fm-ink); color: #fff; }

.fm-btn--ink:hover { background: #000; color: var(--fm-yellow); }

.fm-btn--ghost { background: transparent; color: var(--fm-ink); border-color: var(--fm-ink); }

.fm-btn--ghost:hover { background: var(--fm-ink); color: #fff; }

.fm-btn--light { background: #fff; color: var(--fm-ink); border-color: #fff; }

.fm-btn--light:hover { background: var(--fm-yellow); border-color: var(--fm-yellow); color: var(--fm-ink); }

.fm-btn--small { min-height: 38px; padding: 6px 14px; font-size: .875rem; }

.fm-btn--block { display: flex; width: 100%; }

.fm-btn[disabled] { opacity: .6; cursor: progress; }

.fm-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}

.fm-link-arrow .fm-icon { width: 18px; height: 18px; transition: transform .15s; }

.fm-link-arrow:hover .fm-icon { transform: translateX(3px); }

/* ---------- Секции и заголовки ---------- */

.fm-section { padding: 56px 0; }

.fm-section--tight { padding: 40px 0; }

.fm-section--tint { background: var(--fm-paper-2); border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }

.fm-section--ink { background: var(--fm-ink); color: #ece8e0; }

.fm-section--ink a { color: #fff; }

.fm-section--ink a:hover { color: var(--fm-yellow); }

.fm-section--ink .fm-eyebrow { color: #c9c4ba; }

.fm-section--ink .fm-eyebrow::before,
.fm-banner .fm-eyebrow::before {
  background: linear-gradient(90deg, var(--fm-cyan) 0 25%, var(--fm-magenta) 25% 50%, var(--fm-yellow) 50% 75%, #fff 75% 100%);
}

@media (min-width: 900px) {
  .fm-section { padding: 84px 0; }
  .fm-section--tight { padding: 56px 0; }
}

.fm-section__head { max-width: 780px; margin-bottom: 32px; }

.fm-section__head > :last-child { margin-bottom: 0; }

.fm-section__head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}

.fm-section__head--row > div { max-width: 760px; }

.fm-section__head--row h2 { margin-bottom: .3em; }

.fm-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--fm-font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 9px;
  background: var(--fm-cmyk);
}

.fm-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--fm-ink-2);
  max-width: 68ch;
}

@media (min-width: 900px) {
  .fm-lead { font-size: 1.25rem; }
}

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

.fm-small { font-size: .875rem; }

.fm-center { text-align: center; }

.fm-mt-0 { margin-top: 0; }

.fm-mb-0 { margin-bottom: 0; }

.fm-hl {
  background: linear-gradient(transparent 60%, var(--fm-yellow) 60% 93%, transparent 93%);
  color: inherit;
  padding: 0 .06em;
}

/* ---------- Шапка внутренней страницы ---------- */

.fm-pagehead {
  position: relative;
  overflow: hidden;
  padding: 26px 0 40px;
  background: var(--fm-paper-2);
  border-bottom: 1px solid var(--fm-line);
}

.fm-pagehead::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -50px;
  width: 280px;
  height: 280px;
  background: url("/assets/img/reg-mark.svg") no-repeat center / contain;
  opacity: .14;
  pointer-events: none;
}

.fm-pagehead .fm-container { position: relative; z-index: 1; }

.fm-pagehead h1 { max-width: 920px; margin-bottom: .35em; }

.fm-pagehead .fm-lead { margin-bottom: 0; }

.fm-pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 0;
  font-size: .9rem;
  color: var(--fm-muted);
}

@media (min-width: 900px) {
  .fm-pagehead { padding: 32px 0 56px; }
}

.fm-crumbs ol {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: .875rem;
}

.fm-crumbs li { display: flex; align-items: center; color: var(--fm-muted); }

.fm-crumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--fm-line-2);
}

.fm-crumbs a { color: var(--fm-ink-2); }

.fm-crumbs a:hover { color: var(--fm-magenta); }

/* ---------- Первый экран главной ---------- */

.fm-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 56px;
}

.fm-hero__grid { display: grid; gap: 32px; align-items: center; }

.fm-hero__title { font-size: clamp(2.05rem, 1.3rem + 3.1vw, 3.55rem); margin-bottom: .4em; }

.fm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }

.fm-hero__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fm-hero__facts li { display: flex; align-items: flex-start; gap: 10px; }

.fm-hero__facts .fm-icon { color: var(--fm-ok); width: 22px; height: 22px; margin-top: 1px; }

.fm-hero__art { position: relative; }

.fm-hero__art img { width: 100%; }

.fm-halftone {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--fm-cyan) 0 1.7px, transparent 2.2px);
  background-size: 13px 13px;
  opacity: .32;
  -webkit-mask-image: linear-gradient(225deg, #000 0%, transparent 65%);
  mask-image: linear-gradient(225deg, #000 0%, transparent 65%);
}

.fm-hero .fm-halftone { top: 0; right: 0; width: 55%; height: 75%; }



/* ---------- Сетки и карточки ---------- */

.fm-grid { display: grid; gap: 28px; }

@media (min-width: 640px) {
  .fm-grid--2, .fm-grid--3, .fm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .fm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.fm-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius);
  padding: 24px;
  box-shadow: var(--fm-shadow);
}

.fm-card > :last-child { margin-bottom: 0; }

.fm-card h3 { margin-bottom: .45em; }

.fm-card--flat { box-shadow: none; }

.fm-card--accent-c { border-top: 4px solid var(--fm-cyan); }
.fm-card--accent-m { border-top: 4px solid var(--fm-magenta); }
.fm-card--accent-y { border-top: 4px solid var(--fm-yellow); }
.fm-card--accent-k { border-top: 4px solid var(--fm-ink); }

/* метки обреза по углам */
.fm-crop { position: relative; }

.fm-crop::before {
  content: "";
  position: absolute;
  inset: -14px;
  pointer-events: none;
  --c: var(--fm-line-2);
  background:
    linear-gradient(var(--c), var(--c)) 0 14px / 9px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 14px 0 / 1px 9px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 14px / 9px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) calc(100% - 14px) 0 / 1px 9px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 calc(100% - 14px) / 9px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 14px 100% / 1px 9px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% calc(100% - 14px) / 9px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) calc(100% - 14px) 100% / 1px 9px no-repeat;
}

.fm-service {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fm-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 10px;
  color: var(--fm-ink);
  background: var(--fm-paper-2);
  box-shadow: inset 0 0 0 1px var(--fm-line);
}

.fm-service__icon .fm-icon { width: 28px; height: 28px; }

.fm-service--c .fm-service__icon { background: var(--fm-cyan-soft); color: var(--fm-cyan-ink); }
.fm-service--m .fm-service__icon { background: var(--fm-magenta-soft); color: var(--fm-magenta-ink); }
.fm-service--y .fm-service__icon { background: var(--fm-yellow-soft); color: #6b5a00; }

.fm-service__title a { color: var(--fm-ink); text-decoration: none; }

.fm-service__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.fm-service__title a:hover { color: var(--fm-magenta); }

.fm-service p { color: var(--fm-ink-2); }

.fm-service__foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--fm-line-2);
  font-size: .9rem;
}

.fm-service__price { font-weight: 700; }

.fm-service__foot .fm-icon { width: 20px; height: 20px; color: var(--fm-magenta); }

/* ---------- Шаги ---------- */

.fm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

@media (min-width: 700px) {
  .fm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .fm-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.fm-steps__item {
  position: relative;
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius);
}

.fm-steps__item p { margin: 0; color: var(--fm-ink-2); font-size: .95rem; }

.fm-steps__item h3 { font-size: 1.1rem; }

.fm-steps__num {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--fm-font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  background: var(--fm-ink);
}

.fm-steps__item:nth-child(5n+1) .fm-steps__num { background: var(--fm-cyan-ink); }
.fm-steps__item:nth-child(5n+2) .fm-steps__num { background: var(--fm-magenta); }
.fm-steps__item:nth-child(5n+3) .fm-steps__num { background: var(--fm-yellow); color: var(--fm-ink); }
.fm-steps__item:nth-child(5n+4) .fm-steps__num { background: var(--fm-ink); }
.fm-steps__item:nth-child(5n+5) .fm-steps__num { background: var(--fm-ok); }

/* ---------- Цифры производства ---------- */

.fm-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

@media (min-width: 900px) {
  .fm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fm-stat {
  padding: 22px 18px 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.fm-stat dt {
  font-family: var(--fm-font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  line-height: 1.05;
  color: #fff;
}

.fm-stat dd {
  margin: 8px 0 0;
  color: #cfcac0;
  font-size: .95rem;
  max-width: 30ch;
}

.fm-stat__swatch {
  display: block;
  width: 26px;
  height: 6px;
  margin-bottom: 14px;
  background: var(--fm-cyan);
}

.fm-stat:nth-child(6n+2) .fm-stat__swatch { background: var(--fm-magenta); }
.fm-stat:nth-child(6n+3) .fm-stat__swatch { background: var(--fm-yellow); }
.fm-stat:nth-child(6n+4) .fm-stat__swatch { background: #fff; }
.fm-stat:nth-child(6n+5) .fm-stat__swatch { background: linear-gradient(90deg, var(--fm-cyan) 50%, var(--fm-magenta) 50%); }
.fm-stat:nth-child(6n+6) .fm-stat__swatch { background: linear-gradient(90deg, var(--fm-yellow) 50%, #fff 50%); }

/* ---------- Таблицы ---------- */

.fm-table-wrap {
  margin: 0 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius);
}

.fm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.fm-table--wide { min-width: 560px; }

.fm-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 10px;
  font-weight: 700;
  font-family: var(--fm-font-serif);
  font-size: 1.05rem;
}

.fm-table th, .fm-table td {
  padding: 10px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--fm-line);
}

.fm-table thead th {
  background: var(--fm-paper-2);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--fm-ink-2);
}

.fm-table tbody th { font-weight: 600; }

.fm-table tbody tr:hover { background: #fcfbf8; }

.fm-table .fm-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fm-table-note { margin: -12px 0 24px; font-size: .875rem; color: var(--fm-muted); }

/* ---------- Формы ---------- */

.fm-formcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius-lg);
  padding: 24px;
  box-shadow: var(--fm-shadow);
}

.fm-formcard::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: -1px;
  height: 4px;
  background: var(--fm-cmyk);
}

@media (min-width: 700px) {
  .fm-formcard { padding: 32px; }
  .fm-formcard::before { left: 32px; right: 32px; }
}

.fm-formcard h2, .fm-formcard h3 { margin-top: 4px; }

.fm-form { display: grid; gap: 18px; }

.fm-form__row { display: grid; gap: 18px; }

@media (min-width: 640px) {
  .fm-form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fm-field { display: grid; gap: 6px; align-content: start; }

.fm-field > label, .fm-label { font-weight: 600; font-size: .95rem; }

.fm-req { color: var(--fm-magenta-ink); }

.fm-input, .fm-select, .fm-textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--fm-ink);
  background: #fff;
  border: 1.5px solid var(--fm-field);
  border-radius: var(--fm-radius);
  appearance: none;
  -webkit-appearance: none;
}

.fm-select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--fm-ink) 50%), linear-gradient(135deg, var(--fm-ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.fm-textarea { min-height: 130px; resize: vertical; line-height: 1.5; }

.fm-input:hover, .fm-select:hover, .fm-textarea:hover { border-color: var(--fm-ink-2); }

.fm-input:focus-visible, .fm-select:focus-visible, .fm-textarea:focus-visible,
.fm-input:focus, .fm-select:focus, .fm-textarea:focus {
  border-color: var(--fm-ink);
  outline: 3px solid var(--fm-yellow);
  outline-offset: 0;
  box-shadow: none;
}

.fm-input[aria-invalid="true"] { border-color: var(--fm-err); }

.fm-hint { margin: 0; font-size: .85rem; color: var(--fm-muted); }

.fm-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: .9rem;
  line-height: 1.45;
}

.fm-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--fm-magenta);
}

.fm-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.fm-form__actions .fm-hint { flex: 1 1 220px; }

/* ловушка для роботов: поле скрыто от людей */
.fm-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- Сообщения ---------- */

.fm-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 8px;
}

.fm-alert p { margin: 0; }

.fm-alert .fm-icon { width: 22px; height: 22px; margin-top: 1px; }

.fm-alert--error { background: #fdecea; border-color: #e5a29b; color: #7a1712; }

.fm-alert--info { background: var(--fm-cyan-soft); border-color: #9fd3ea; color: #0a4458; }

.fm-alert--ok { background: #e7f5ec; border-color: #9fd1b2; color: #124d2c; }

.fm-note {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-left: 4px solid var(--fm-yellow);
  border-radius: 0 6px 6px 0;
  background: var(--fm-yellow-soft);
}

.fm-note > :last-child { margin-bottom: 0; }

.fm-note--c { border-left-color: var(--fm-cyan); background: var(--fm-cyan-soft); }

.fm-note--m { border-left-color: var(--fm-magenta); background: var(--fm-magenta-soft); }

/* ---------- Текстовые страницы ---------- */

.fm-prose { max-width: 780px; }

.fm-prose h2 { margin-top: 1.9em; scroll-margin-top: 16px; }

.fm-prose h2:first-child { margin-top: 0; }

.fm-prose h3 { margin-top: 1.6em; scroll-margin-top: 16px; }

.fm-prose ul, .fm-prose ol { padding-left: 1.35em; }

.fm-prose li { margin: .35em 0; }

.fm-prose li::marker { color: var(--fm-magenta); }

.fm-prose .fm-table-wrap { margin-top: 8px; }

.fm-prose blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--fm-cyan);
  color: var(--fm-ink-2);
}

.fm-layout { display: grid; gap: 40px; }



.fm-aside-box {
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius);
  padding: 20px;
  margin-bottom: 20px;
}

.fm-aside-box > :last-child { margin-bottom: 0; }

.fm-aside-box h2 {
  font-family: var(--fm-font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fm-muted);
  margin-bottom: 12px;
}

.fm-aside-links { list-style: none; margin: 0; padding: 0; }

.fm-aside-links li + li { border-top: 1px solid var(--fm-line); }

.fm-aside-links a {
  display: block;
  padding: 9px 0;
  color: var(--fm-ink);
  text-decoration: none;
}

.fm-aside-links a:hover { color: var(--fm-magenta); }

.fm-aside-links a[aria-current="page"] { font-weight: 700; color: var(--fm-magenta-ink); }

.fm-toc ol { margin: 0; padding-left: 1.3em; }

.fm-toc li { margin: .3em 0; }

.fm-toc a { color: var(--fm-ink-2); }

.fm-toc a:hover { color: var(--fm-magenta); }

.fm-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 20px;
  margin: 0 0 1.2em;
}

.fm-specs dt { font-weight: 700; }

.fm-specs dd { margin: 0 0 10px; color: var(--fm-ink-2); }

@media (min-width: 640px) {
  .fm-specs { grid-template-columns: minmax(150px, 230px) 1fr; }
  .fm-specs dt, .fm-specs dd { padding: 9px 0; border-top: 1px solid var(--fm-line); margin: 0; }
}

.fm-checklist { list-style: none; padding: 0 !important; }

.fm-checklist li {
  position: relative;
  padding-left: 32px;
  margin: .55em 0;
}

.fm-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--fm-ok) url("/assets/img/check.svg") no-repeat center / 14px 14px;
}

.fm-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fm-chips a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--fm-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--fm-ink);
  font-size: .92rem;
  text-decoration: none;
}

.fm-chips a:hover { border-color: var(--fm-magenta); color: var(--fm-magenta); }

.fm-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--fm-line);
  border-radius: 3px;
  background: var(--fm-paper-2);
  color: var(--fm-ink-2);
  font-family: var(--fm-font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fm-tag--c { background: var(--fm-cyan-soft); border-color: #a6dbef; }
.fm-tag--m { background: var(--fm-magenta-soft); border-color: #efb5d4; }
.fm-tag--y { background: var(--fm-yellow-soft); border-color: #f0dc7a; }

/* ---------- Иллюстрации и раскладка «текст + картинка» ---------- */

.fm-split { display: grid; gap: 32px; align-items: center; }



.fm-figure { margin: 0; }

.fm-figure img {
  width: 100%;
  border-radius: var(--fm-radius-lg);
  border: 1px solid var(--fm-line);
  background: #fff;
}

.fm-figure figcaption { margin-top: 10px; font-size: .875rem; color: var(--fm-muted); }

/* ---------- Продукция ---------- */

.fm-product {
  display: grid;
  gap: 24px;
  padding: 44px 0;
  border-top: 1px solid var(--fm-line);
  scroll-margin-top: 16px;
}

.fm-product:first-of-type { border-top: 0; padding-top: 8px; }

.fm-product__art img {
  width: 100%;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius-lg);
  background: #fff;
}

.fm-product__body > :last-child { margin-bottom: 0; }

.fm-product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }



/* ---------- Портфолио ---------- */

.fm-works {
  display: grid;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) { .fm-works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fm-works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fm-work {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: 8px;
  box-shadow: var(--fm-shadow);
}

.fm-work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--fm-line);
}

.fm-work figcaption { padding: 16px 18px 20px; }

.fm-work__title {
  display: block;
  margin: 8px 0 10px;
  font-family: var(--fm-font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}

.fm-work__specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  margin: 0;
  font-size: .875rem;
}

.fm-work__specs dt { color: var(--fm-muted); }

.fm-work__specs dd { margin: 0; }

.fm-work__text { margin: 10px 0 0; font-size: .92rem; color: var(--fm-ink-2); }

/* ---------- Новости ---------- */

.fm-newsgrid {
  display: grid;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 700px) { .fm-newsgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fm-newsgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fm-newscard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}

.fm-newscard:hover { border-color: var(--fm-line-2); box-shadow: var(--fm-shadow); }

.fm-newscard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--fm-font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--fm-muted);
}

.fm-newscard__title { font-size: 1.22rem; margin: 12px 0 10px; }

.fm-newscard__title a { color: var(--fm-ink); text-decoration: none; }

.fm-newscard__title a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }

.fm-newscard__title a:hover { color: var(--fm-magenta); }

.fm-newscard p { margin: 0; color: var(--fm-ink-2); font-size: .95rem; }

.fm-newscard__more {
  margin-top: auto !important;
  padding-top: 14px;
  font-weight: 700;
  color: var(--fm-cyan-ink) !important;
}

.fm-article { max-width: 780px; }

.fm-article__lead { font-size: 1.2rem; color: var(--fm-ink-2); }

.fm-article__nav {
  display: grid;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--fm-line);
}

@media (min-width: 700px) { .fm-article__nav { grid-template-columns: 1fr 1fr; } }

.fm-article__nav a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: 8px;
  color: var(--fm-ink);
  text-decoration: none;
}

.fm-article__nav a:hover { border-color: var(--fm-magenta); }

.fm-article__nav span {
  display: block;
  font-family: var(--fm-font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fm-muted);
  margin-bottom: 4px;
}

.fm-article__nav .fm-article__next { text-align: right; }

/* ---------- Вопросы и ответы ---------- */

.fm-faq { border-top: 1px solid var(--fm-line); margin-bottom: 32px; }

.fm-faq__item { border-bottom: 1px solid var(--fm-line); }

.fm-faq__q {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 48px 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}

.fm-faq__q::-webkit-details-marker { display: none; }

.fm-faq__q::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border: 2px solid var(--fm-magenta);
  border-radius: 50%;
  background:
    linear-gradient(var(--fm-magenta), var(--fm-magenta)) center / 12px 2px no-repeat,
    linear-gradient(var(--fm-magenta), var(--fm-magenta)) center / 2px 12px no-repeat;
  transition: transform .2s;
}

.fm-faq__item[open] > .fm-faq__q::after { transform: rotate(45deg); }

.fm-faq__q:hover { color: var(--fm-magenta-ink); }

.fm-faq__a { padding: 0 0 20px; max-width: 74ch; color: var(--fm-ink-2); }

.fm-faq__a > :last-child { margin-bottom: 0; }

.fm-faq-group { margin-bottom: 40px; scroll-margin-top: 16px; }

/* ---------- Калькулятор ---------- */

.fm-calc {
  display: grid;
  gap: 24px;
  padding: 22px;
  background: #fff;
  border: 2px solid var(--fm-ink);
  border-radius: var(--fm-radius-lg);
  box-shadow: 8px 8px 0 var(--fm-yellow);
}

@media (min-width: 900px) {
  .fm-calc { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding: 32px; gap: 36px; }
}

.fm-calc__controls { display: grid; gap: 18px; }

.fm-calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.fm-calc legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .95rem; }

.fm-seg { display: flex; flex-wrap: wrap; gap: 8px; }

.fm-seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.fm-seg label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--fm-field);
  border-radius: var(--fm-radius);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.fm-seg label:hover { border-color: var(--fm-ink); }

.fm-seg input:checked + label { background: var(--fm-ink); border-color: var(--fm-ink); color: #fff; }

.fm-seg input:focus-visible + label {
  outline: 3px solid var(--fm-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--fm-yellow);
}

.fm-calc__result {
  align-self: start;
  padding: 22px;
  border-radius: 10px;
  background: var(--fm-paper-2);
  border: 1px dashed var(--fm-line-2);
}

.fm-calc__label {
  margin: 0 0 6px;
  font-family: var(--fm-font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fm-muted);
}

.fm-calc__price {
  margin: 0 0 10px;
  font-family: var(--fm-font-serif);
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
}

.fm-calc__line { margin: 0 0 6px; font-size: .95rem; }

.fm-calc__note { margin: 14px 0 18px; font-size: .85rem; color: var(--fm-muted); }

.fm-calc-picked {
  margin: 0 0 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--fm-yellow-soft);
  font-size: .95rem;
}

/* ---------- Таймлайн ---------- */

.fm-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-timeline::before {
  content: "";
  position: absolute;
  left: 58px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: repeating-linear-gradient(var(--fm-line-2) 0 6px, transparent 6px 12px);
}

.fm-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 34px;
  padding: 0 0 26px;
}

.fm-timeline li::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fm-magenta);
  box-shadow: 0 0 0 4px var(--fm-paper);
}

.fm-timeline li:nth-child(4n+2)::before { background: var(--fm-cyan); }
.fm-timeline li:nth-child(4n+3)::before { background: var(--fm-yellow); }
.fm-timeline li:nth-child(4n+4)::before { background: var(--fm-ink); }

.fm-timeline__year { font-family: var(--fm-font-mono); font-weight: 700; padding-top: 1px; }

.fm-timeline h3 { font-size: 1.08rem; margin-bottom: .3em; }

.fm-timeline p { margin: 0; color: var(--fm-ink-2); }

/* ---------- Вакансии ---------- */

.fm-job { margin-bottom: 28px; }

.fm-job h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.8rem); }

.fm-job__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }

.fm-job__salary { font-family: var(--fm-font-serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }

.fm-job h3 { margin: 1.2em 0 .4em; font-size: 1.05rem; font-family: var(--fm-font); }

.fm-job ul { padding-left: 1.3em; }

.fm-job li::marker { color: var(--fm-magenta); }

/* ---------- Личный кабинет ---------- */

.fm-auth { display: grid; gap: 36px; align-items: start; }



.fm-authcard {
  padding: 26px;
  background: #fff;
  border: 2px solid var(--fm-ink);
  border-radius: var(--fm-radius-lg);
  box-shadow: 8px 8px 0 var(--fm-cyan);
}

@media (min-width: 600px) { .fm-authcard { padding: 32px; } }

.fm-authcard h2 { font-size: 1.5rem; }

.fm-pass { position: relative; }

.fm-pass .fm-input { padding-right: 104px; }

.fm-pass__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  background: var(--fm-paper-2);
  color: var(--fm-ink);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}

.fm-pass__toggle:hover { background: var(--fm-paper-3); }

.fm-auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: .92rem; }

.fm-features { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }

.fm-features li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }

.fm-features__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--fm-paper-2);
  box-shadow: inset 0 0 0 1px var(--fm-line);
}

.fm-features__icon .fm-icon { width: 22px; height: 22px; }

.fm-features strong { display: block; }

/* ---------- Спасибо и 404 ---------- */

.fm-done { max-width: 720px; padding: 24px 0; }

.fm-done__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--fm-ok);
  color: #fff;
  box-shadow: 6px 6px 0 var(--fm-yellow);
}

.fm-done__icon .fm-icon { width: 40px; height: 40px; }

.fm-404__code {
  margin: 0 0 8px;
  font-family: var(--fm-font-serif);
  font-size: clamp(6rem, 3.5rem + 11vw, 11rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--fm-ink);
  text-shadow: -6px 0 rgba(0, 163, 224, .7), 6px 2px rgba(209, 0, 122, .65), 2px 7px rgba(255, 212, 0, .85);
}

.fm-linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.fm-linklist a { font-weight: 600; }

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

.fm-contacts { display: grid; gap: 18px; list-style: none; margin: 0 0 24px; padding: 0; }

.fm-contacts li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.fm-contacts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fm-ink);
  color: #fff;
}

.fm-contacts__icon .fm-icon { width: 22px; height: 22px; }

.fm-contacts strong { display: block; }

.fm-contacts a { font-weight: 700; font-size: 1.05rem; word-break: break-all; }

.fm-hours { width: 100%; border-collapse: collapse; }

.fm-hours th, .fm-hours td { padding: 8px 0; border-bottom: 1px solid var(--fm-line); text-align: left; vertical-align: top; }

.fm-hours th { font-weight: 600; padding-right: 16px; white-space: nowrap; }

/* ---------- Карта сайта ---------- */

.fm-sitemap { columns: 1; column-gap: 40px; }

@media (min-width: 700px) { .fm-sitemap { columns: 2; } }
@media (min-width: 1000px) { .fm-sitemap { columns: 3; } }

.fm-sitemap section { break-inside: avoid; margin-bottom: 28px; }

.fm-sitemap h2 { font-size: 1.2rem; }

.fm-sitemap ul { padding-left: 1.2em; margin: 0; }

.fm-sitemap li { margin: .3em 0; }

/* ---------- Призыв к действию ---------- */

.fm-cta { display: grid; gap: 32px; align-items: start; }



.fm-cta__points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }

.fm-cta__points li { display: flex; gap: 10px; align-items: flex-start; }

.fm-cta__points .fm-icon { color: var(--fm-magenta); width: 22px; height: 22px; margin-top: 1px; }

.fm-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border-radius: var(--fm-radius-lg);
  background: var(--fm-ink);
  color: #ece8e0;
}

.fm-banner h2 { color: #fff; margin-bottom: .3em; }

.fm-banner p { margin: 0; }

.fm-banner .fm-halftone { right: 0; top: 0; width: 50%; height: 100%; opacity: .25; background-image: radial-gradient(circle, var(--fm-magenta) 0 1.7px, transparent 2.2px); }

.fm-banner > * { position: relative; }

@media (min-width: 800px) {
  .fm-banner { grid-template-columns: 1fr auto; padding: 36px 40px; }
}

/* ---------- Подвал ---------- */

.fm-footer {
  margin-top: auto;
  background: #1c1e23;
  color: #d6d2c9;
  font-size: .95rem;
}

.fm-footer a { color: #fff; text-decoration: none; }

.fm-footer a:hover { color: var(--fm-yellow); text-decoration: underline; }

.fm-strip {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  height: 12px;
}

.fm-strip span:nth-child(16n+1) { background: #00a3e0; }
.fm-strip span:nth-child(16n+2) { background: #d1007a; }
.fm-strip span:nth-child(16n+3) { background: #ffd400; }
.fm-strip span:nth-child(16n+4) { background: #17181c; }
.fm-strip span:nth-child(16n+5) { background: #80d1ef; }
.fm-strip span:nth-child(16n+6) { background: #e880bc; }
.fm-strip span:nth-child(16n+7) { background: #ffe980; }
.fm-strip span:nth-child(16n+8) { background: #8b8c8e; }
.fm-strip span:nth-child(16n+9) { background: #2e3192; }
.fm-strip span:nth-child(16n+10) { background: #e4002b; }
.fm-strip span:nth-child(16n+11) { background: #00a650; }
.fm-strip span:nth-child(16n+12) { background: #c5c6c8; }
.fm-strip span:nth-child(16n+13) { background: #00a3e0; }
.fm-strip span:nth-child(16n+14) { background: #d1007a; }
.fm-strip span:nth-child(16n+15) { background: #ffd400; }
.fm-strip span:nth-child(16n+16) { background: #3c3d41; }

.fm-footer__grid {
  display: grid;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 36px;
}

@media (min-width: 700px) {
  .fm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .fm-footer__grid { grid-template-columns: 1.35fr 1fr 1fr .85fr 1.3fr; gap: 36px; }
}

.fm-footer__brand .fm-logo { color: #fff; margin-bottom: 16px; }

.fm-footer__brand .fm-logo__sub { color: #b4afa5; }

.fm-footer__brand p { color: #c3beb4; max-width: 36ch; }

.fm-footer__title {
  margin: 0 0 14px;
  font-family: var(--fm-font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a9a49a;
}

.fm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.fm-footer__mail li { display: grid; gap: 0; }

.fm-footer__mail span { font-size: .82rem; color: #a9a49a; }

.fm-footer__hours { margin: 16px 0 0; font-size: .9rem; color: #c3beb4; }

.fm-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: #b9b4aa;
}

.fm-footer__bottom p { margin: 0; }

.fm-footer__legal { display: flex !important; flex-wrap: wrap; gap: 6px 18px !important; }

.fm-footer__legal a { color: #d6d2c9; }

/* ---------- Уведомление о cookie ---------- */

.fm-cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--fm-ink);
  color: #f1eee8;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}

.fm-cookie p { flex: 1 1 260px; margin: 0; font-size: .9rem; }

.fm-cookie a { color: #fff; }

.fm-cookie a:hover { color: var(--fm-yellow); }

/* ---------- Дополнительные модификаторы ---------- */

#main:focus, #main:focus-visible { outline: none; box-shadow: none; }

ul.fm-grid { list-style: none; margin: 0; padding: 0; }

.fm-svc-card { height: 100%; display: flex; flex-direction: column; }

.fm-svc-card img { margin-bottom: 18px; border: 1px solid var(--fm-line); border-radius: var(--fm-radius); background: #fff; }

.fm-svc-card__title { font-size: 1.35rem; }

.fm-svc-card__title a { color: var(--fm-ink); text-decoration: none; }

.fm-svc-card__title a:hover { color: var(--fm-magenta); }

.fm-svc-card__more { margin: auto 0 0; padding-top: 8px; }

.fm-figure--svc { margin-bottom: 32px; }

.fm-figure--svc img { max-width: 560px; }

.fm-stats-more { margin: 28px 0 0; }

.fm-banner--spaced { margin-top: 40px; }

.fm-section--flush-top { padding-top: 0; }

.fm-pagehead__nav { margin-top: 22px; }

.fm-mt-24 { margin-top: 24px; }

.fm-split--top { align-items: start; }



.fm-diagram {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: var(--fm-radius-lg);
}

.fm-linklist .fm-icon { width: 18px; height: 18px; margin-right: 6px; }

.fm-done ul { padding-left: 1.3em; }

.fm-done li { margin: .4em 0; }

.fm-done li::marker { color: var(--fm-magenta); }

/* колонки сеток не растягиваются широкими таблицами и длинными строками */
.fm-layout, .fm-split, .fm-cta, .fm-auth, .fm-hero__grid, .fm-product { grid-template-columns: minmax(0, 1fr); }

.fm-layout > *, .fm-split > *, .fm-cta > *, .fm-auth > *, .fm-hero__grid > *, .fm-product > *,
.fm-grid > *, .fm-works > *, .fm-newsgrid > *, .fm-steps > * { min-width: 0; }

code { overflow-wrap: anywhere; }

@media (min-width: 1000px) {
  .fm-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .fm-layout--left { grid-template-columns: 280px minmax(0, 1fr); }
  .fm-layout__aside { position: sticky; top: 20px; align-self: start; }
}

@media (min-width: 900px) {
  .fm-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .fm-split--wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}

@media (min-width: 960px) {
  .fm-cta { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
}

@media (min-width: 900px) {
  .fm-auth { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 64px; }
}

@media (min-width: 900px) {
  .fm-hero { padding: 64px 0 84px; }
  .fm-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; }
}

@media (min-width: 900px) {
  .fm-product { grid-template-columns: 320px minmax(0, 1fr); gap: 44px; }
  .fm-product__art { position: sticky; top: 20px; align-self: start; }
}

@media (min-width: 900px) {
  .fm-split--faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
}

/* ---------- Движение и печать ---------- */

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

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .fm-topbar, .fm-header__cta, .fm-nav, .fm-mnav, .fm-footer__grid, .fm-cookie, .fm-skip,
  .fm-formcard, .fm-calc, .fm-hero__actions, .fm-strip, .fm-pagehead::after { display: none !important; }
  .fm-header, .fm-pagehead, .fm-section--tint, .fm-section--ink, .fm-footer { background: #fff !important; color: #000 !important; border: 0; }
  .fm-section { padding: 16pt 0; }
  a { color: #000; }
  .fm-prose a[href^="/"]::after { content: " (tipografiya-format.ru" attr(href) ")"; font-size: 9pt; }
}
