/* =========================================================
   denvm.ru — Design tokens & base
   ========================================================= */

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #0a66c2;
  --accent-600: #0959a8;
  --accent-dark: #074b8c;
  --accent-50: #edf4fd;
  --accent-100: #d3e6f9;

  /* Header / footer brand surface */
  --brand: #083d6e;
  --on-brand: #ffffff;
  --on-brand-muted: #b9c7d5;
  --on-brand-accent: #7fc0f7;
  --on-brand-line: rgba(255, 255, 255, 0.14);

  --ink: #0e1116;
  --ink-2: #1b2027;
  --body: #5a6472;
  --muted: #8b95a3;
  --line: #e9ecef;
  --line-2: #f2f4f6;
  --surface: #f7f9fa;
  --surface-2: #fbfcfc;
  --white: #ffffff;

  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --container: 1216px;
  --gutter: 28px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 2px 10px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.1);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.72;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Russian headings easily contain single words wider than a narrow card.
   Hyphenate instead of letting the word overflow its box. */
h1,
h2,
h3,
.section__title,
.service__title,
.project__title,
.post__title,
.fact__label,
.timeline-item__role,
.page-head__title,
.stat__label {
  hyphens: auto;
  -webkit-hyphens: auto;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

blockquote,
figure {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-dark);
}

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

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-100);
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 500;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* --- Section scaffolding ---------------------------------- */

.section {
  padding: 76px 0;
  scroll-margin-top: 90px;
}

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

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

.section--alt {
  background: var(--surface-2);
  border-block: 1px solid var(--line-2);
}

.section--line {
  border-top: 1px solid var(--line);
}

.section__inner {
  display: grid;
  gap: 40px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section__title {
  font-size: 28px;
  font-weight: 600;
}

.section__title--sm {
  font-size: 23px;
}

/* Accent marker under a heading, as in the reference */
.underline {
  position: relative;
  padding-bottom: 16px;
  display: inline-block;
}

.underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.underline--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* --- Reveal on scroll -------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
