/* precise — «Точний»: the direction's own type, rules and looks, on the body's class. Colours only through var(--*):
   the direction's colour sets drive them. */

.direction-precise {
  --section-pad: clamp(4.5rem, 9.7vw, 8.75rem);
  --head-gap: clamp(2.5rem, 3.9vw, 3.5rem);
  --pill: 4px;
  --radius: 4px;
  --radius-small: 4px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* The type: a light grotesque, large and close-set; the words that matter in its heavier weight. */
.direction-precise :is(h1, h2) { font-weight: 300; letter-spacing: -.035em; }
.direction-precise main h1 { font-size: clamp(2.7rem, 5.3vw, 4.75rem); line-height: 1.04; }
.direction-precise main h2 { font-size: clamp(2.1rem, 3.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; }
.direction-precise main h3 { font-size: clamp(1.2rem, 1.5vw, 1.375rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.direction-precise :is(h1, h2) em { font-style: normal; font-weight: 500; }

/* The kickers and the small labels: monospaced capitals. */
.direction-precise .eyebrow { font-family: var(--mono); font-size: .8rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* The buttons: low, nearly square; the second a hairline frame. */
.direction-precise .btn { border-radius: 4px; font-weight: 500; box-shadow: none; }
.direction-precise .btn:hover { transform: none; box-shadow: none; }
.direction-precise main .btn { min-height: 3rem; padding-inline: 1.4rem; font-size: .94rem; }
.direction-precise main .btn-ghost { border: 1px solid var(--line); background: none; color: var(--ink); }

/* The section's heading: the kicker in a column of its own on the left, the heading beside it. */
@media (min-width: 900px) {
  .direction-precise main :not(.story-copy) > .section-head > div:first-child { display: grid; grid-template-columns: 18rem minmax(0, 1fr); column-gap: 4rem; align-items: baseline; }
  .direction-precise main :not(.story-copy) > .section-head > div:first-child > .eyebrow { grid-row: 1 / span 3; margin: 0; }
  .direction-precise main :not(.story-copy) > .section-head > div:first-child > :not(.eyebrow) { grid-column: 2; }
}

/* The first screen: the photo in a hairline frame, the caption under it in the labels' type. */
.direction-precise .hero-photo { border-radius: 0; box-shadow: 0 0 0 1px var(--line); }
.direction-precise .hero-caption { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* The figures: a band between two hairlines, four cells divided by hairlines, the figures light and large. */
.direction-precise .stats--row .hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0;
                                              border-block: 1px solid var(--line); }
.direction-precise .stats--row .hero-stats > div { padding: 2.25rem 2rem 2.25rem 0; }
.direction-precise .stats--row .hero-stats > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.direction-precise .hero-stats dd { font-size: clamp(2.8rem, 4.4vw, 4rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.direction-precise .hero-stats dt { margin-top: .75rem; font-size: .94rem; color: var(--muted); }
@media (max-width: 760px) {
  .direction-precise .stats--row .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direction-precise .stats--row .hero-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .direction-precise .stats--row .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* About: the words light and large beside the photo in its hairline frame. */
.direction-precise .story-text p { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 300; line-height: 1.5; }
.direction-precise .story-media img { border-radius: 0; box-shadow: 0 0 0 1px var(--line); }

/* The offer: cells of a grid ruled by hairlines, no gaps; the name and the price in the heavier weight. */
.direction-precise :is(.products--ruled, .services--ruled) .card__title,
.direction-precise .svc-card h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.direction-precise .price-line .price { font-size: 1.375rem; font-weight: 500; }
.direction-precise .card__media img { border-radius: 0; }

/* Reasons and steps under hairlines: the numbers in the labels' type, 01, 02… */
.direction-precise .feature-index { font-family: var(--mono); font-size: .8rem; font-weight: 400; letter-spacing: .04em; color: var(--muted); }
.direction-precise .feature-index::before { content: counter(feature, decimal-leading-zero); }
.direction-precise :is(.features--ruled, .steps--ruled) .feature-card { border-top-width: 1px; }
.direction-precise .features--ruled .feature-card { border-top-color: var(--ink); }
.direction-precise .feature-card p { color: var(--muted); }

/* The team: no cards; the portraits in black and white, the name in the heavier weight. */
.direction-precise :is(.person, .person.is-text) { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.direction-precise .person__photo img { border-radius: 0; filter: grayscale(1); }
.direction-precise .person__name { font-weight: 500; font-size: 1.06rem; }
.direction-precise .person__role { color: var(--muted); font-size: .9rem; }

/* The reviews: cells of a grid ruled by hairlines, the words light, the name in the labels' type. */
.direction-precise .quotes-grid { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.direction-precise .quote-card { border: 0; border-radius: 0; box-shadow: none; background: var(--bg); padding: clamp(1.5rem, 2.5vw, 2.25rem);
                                 min-height: 17rem; display: flex; flex-direction: column; }
.direction-precise .quote-card blockquote { font-family: var(--font-body); font-size: 1.19rem; font-weight: 300; line-height: 1.5; }
.direction-precise .quote-card blockquote::before, .direction-precise .quote-card blockquote::after { color: inherit; }
.direction-precise .quote-card figcaption { margin-top: auto; padding-top: 1.5rem; font-weight: 500; color: var(--ink); }
.direction-precise .quote-avatar { display: none; }

/* The call to action: one light line under a rule of the ink, the button at its end. */
.direction-precise .cta--poster .cta-inner { border-top: 1px solid var(--ink); padding-top: clamp(2.5rem, 4.4vw, 4.5rem); }
.direction-precise .cta--poster .cta-inner h2 { font-size: clamp(2.1rem, 3.6vw, 3.25rem); line-height: 1.1; max-width: 26ch; }

/* The header: a hairline under it; the name in the heavier weight after a small square of the accent. */
.direction-precise .hdr { border-bottom: 1px solid var(--line); }
.direction-precise .brand__word { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em;
                                  color: var(--ink); white-space: nowrap; }
.direction-precise .brand__word::before { content: ''; flex: none; width: .6rem; height: .6rem; background: var(--accent); }
.direction-precise .brand__word.is-long { font-size: 1.06rem; }

/* The footer: columns over a hairline, the titles in the labels' type. */
.direction-precise .ftr { border-top: 1px solid var(--line); }
.direction-precise .ftr-title { font-family: var(--mono); font-size: .8rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }

/* The two first actions side by side with a little air between them. */
.direction-precise .hero-actions { gap: .75rem; }

/* The team five or six in a row on a wide screen; the portraits square-cornered. */
.direction-precise .team .team-grid { grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
.direction-precise .team .person__photo { border-radius: 0; aspect-ratio: 4 / 5; }

/* The quotes in the language's own marks. */
.direction-precise .quote-card blockquote::before { content: '«'; margin: 0; }
.direction-precise .quote-card blockquote::after { content: '»'; margin: 0; }
