/* Бюро Титова — visual system 2026 (локальные шрифты/картинки) */
:root {
  --ink: #0c1218;
  --ink-soft: #182230;
  --slate: #2a3848;
  --mist: #d7dde6;
  --paper: #f3f5f8;
  --paper-deep: #e6ebf2;
  --brass: #b8955a;
  --brass-bright: #d4b57a;
  --signal: #3d7a6a;
  --danger: #8b3a3a;
  --text: #15202b;
  --text-muted: #5a6a7a;
  --line: rgba(21, 32, 43, 0.12);
  --glow: rgba(184, 149, 90, 0.28);
  --radius: 2px;
  --font-display: "Literata", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --shadow-soft: 0 24px 60px rgba(12, 18, 24, 0.18);
  --max: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.5rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(184, 149, 90, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(61, 122, 106, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brass);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(243, 245, 248, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--slate);
  position: relative;
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), transparent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: #f7f3ea !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(12, 18, 24, 0.18);
}

.nav-cta:hover {
  background: var(--slate);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.55rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  color: #f4f1ea;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(12, 18, 24, 0.82) 12%, rgba(12, 18, 24, 0.45) 55%, rgba(12, 18, 24, 0.7) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 8rem) var(--gutter) clamp(3rem, 8vh, 5rem);
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  font-weight: 550;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
  text-wrap: balance;
}

.hero-lead {
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(244, 241, 234, 0.88);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brass-bright), var(--brass));
  color: var(--ink);
  box-shadow: 0 12px 36px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(244, 241, 234, 0.45);
  color: #f4f1ea;
  background: rgba(12, 18, 24, 0.25);
}

.btn-ghost:hover {
  border-color: #f4f1ea;
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #f7f3ea;
}

.btn-dark:hover {
  background: var(--slate);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--ink);
  color: #f7f3ea;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 40rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
}

.lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.service-tile,
.article-card,
.stat-panel,
.faq-item,
.contact-panel {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.service-tile {
  position: relative;
  padding: 1.5rem 0 0.5rem;
  transition: transform 0.35s ease;
}

.service-tile:hover {
  transform: translateY(-4px);
}

.service-tile .index {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: rgba(184, 149, 90, 0.55);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.service-tile p,
.article-card p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.25s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.band {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #f4f1ea;
  position: relative;
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 149, 90, 0.22), transparent 65%);
  pointer-events: none;
}

.band .section {
  position: relative;
}

.band .lede,
.band p {
  color: rgba(244, 241, 234, 0.78);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stat-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #f4f1ea, var(--brass-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) var(--gutter) 2rem;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero p {
  max-width: 40rem;
  color: var(--text-muted);
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.prose li + li {
  margin-top: 0.45rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1rem 0 2rem;
}

.article-list {
  display: grid;
  gap: 2rem;
}

.article-card h3 a {
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: 0.5rem;
}

.faq-item details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--brass);
  font-size: 1.3rem;
}

.faq-item details[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--text-muted);
  margin: 0.85rem 0 0;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(184, 149, 90, 0.45);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.45);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.footer-inner h3 {
  font-size: 1.1rem;
}

.footer-inner ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.footer-inner li + li {
  margin-top: 0.4rem;
}

.footer-inner a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.pill {
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.media-frame {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(12, 18, 24, 0.15), rgba(12, 18, 24, 0.55)),
    url("../img/cta.jpg") center/cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.media-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  color: #f4f1ea;
  font-size: 0.9rem;
}

.split-list {
  display: grid;
  gap: 1rem;
}

.split-list article {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.toc {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toc a {
  text-decoration: none;
  color: var(--text-muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb span[aria-hidden="true"] {
  opacity: 0.5;
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 149, 90, 0.14), transparent 65%);
  transform: translate(-50%, -50%);
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

@media (max-width: 900px) {
  .grid-3,
  .stats,
  .footer-inner,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem var(--gutter) 1.25rem;
    background: rgba(243, 245, 248, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }
}
