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

.design-precise {
  /* a section holds 60 over and under, so two neighbours stand 120 apart as drawn (84 and 64) */
  --section-pad: 3.75rem;
  --head-gap: 3rem;
  --label-col: 13.75rem; /* the kicker's column in a section's head, and the gap after it */
  --label-gap: 2.5rem;
  --pill: 4px;
  --radius: 4px;
  --radius-small: 4px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --body-text: var(--text);
  --accent-text: color-mix(in srgb, var(--accent) 75%, var(--ink)); /* small words in the accent, readable on every set */
  /* the font pair's sizes (the plex pair's; the others below) and the weight of the words that matter */
  --h1: 4.75rem; --h2: 3.25rem; --h3: 1.3125rem; --h-strong: 500; --h-track: -.035em;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.design-precise.fonts-inter     { --h1: 4.875rem; --h2: 3.25rem; --h3: 1.3125rem; --h-strong: 600; --h-track: -.04em; }
.design-precise.fonts-geologica { --h1: 4.5rem; --h2: 3.125rem; --h3: 1.25rem; }
/* a laptop's builder preview or a tablet (760–999): sections 84 apart, the pair's sizes scaled as drawn */
@media (min-width: 760px) and (max-width: 999px) {
  .design-precise { --section-pad: 2.625rem; --head-gap: 2.5rem; --label-col: 9.875rem; --label-gap: 1.25rem; --h1: 3.25rem; --h2: 2.5rem; --h3: 1.125rem; }
  .design-precise.fonts-inter { --h1: 3.3125rem; }
  .design-precise.fonts-geologica { --h1: 3.0625rem; --h2: 2.375rem; }
}
@media (max-width: 759px) {
  .design-precise { --section-pad: 2rem; --head-gap: 2rem; --h1: 2.625rem; --h2: 2rem; --h3: 1.1875rem; font-size: 1rem; }
}

/* The type: a light grotesque, large and close-set; the words that matter in its heavier weight. */
.design-precise :is(h1, h2) { font-weight: 300; letter-spacing: var(--h-track); color: var(--ink); }
.design-precise main h1 { font-size: calc(var(--h1) * .86); line-height: 1.04; } /* an inner page's */
.design-precise main .hero h1 { font-size: var(--h1); }
.design-precise main h2 { font-size: var(--h2); line-height: 1.1; }
.design-precise main h3 { font-size: var(--h3); font-weight: var(--h-strong); letter-spacing: -.01em; line-height: 1.25; }
.design-precise :is(h1, h2) :is(b, strong) { font-weight: var(--h-strong); }
.design-precise :is(h1, h2) em { font-style: normal; font-weight: var(--h-strong); color: var(--accent-text); }

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

/* The buttons: low, nearly square; the second a hairline frame. */
.design-precise .btn { border-radius: 4px; font-weight: 600; box-shadow: none; }
.design-precise .btn:hover { transform: none; box-shadow: none; }
.design-precise main .btn { display: inline-flex; align-items: center; justify-content: center; height: 3rem; padding-block: 0; padding-inline: 1.375rem; font-size: .94rem; }
.design-precise main .btn-ghost { border: 0; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); }

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

/* The first screen: the photo in a hairline frame. */
.design-precise .hero-photo { border-radius: 0; box-shadow: 0 0 0 1px var(--line); }

/* The figures: a band between two hairlines, four cells divided by hairlines, the figures light and large. */
.design-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); }
.design-precise .stats--row .hero-stats > div { padding: 2.5rem 1.5rem 2.5rem 0; }
.design-precise .stats--row .hero-stats > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.design-precise .hero-stats dd { font-family: var(--font-display); font-size: 3.5rem; font-weight: 300; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.design-precise .hero-stats dt { margin-top: .75rem; font-size: .94rem; color: var(--muted); }
@media (max-width: 759px) {
  .design-precise .stats--row .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-precise .stats--row .hero-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .design-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. */
.design-precise .story-text p { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 300; line-height: 1.5; }
.design-precise .story-media :is(img, .placeholder) { 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. */
.design-precise :is(.products--ruled, .services--ruled) .card__title,
.design-precise .svc-card h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.design-precise .price-line .price, .design-precise .svc-card__price .price { font-size: 1.375rem; font-weight: 600; }
.design-precise .card__media img { border-radius: 0; }

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

/* The team: no cards; the portraits in black and white, the name in the heavier weight. */
.design-precise :is(.person, .person.is-text) { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.design-precise .person__photo :is(img, .placeholder) { border-radius: 0; filter: grayscale(1); }
.design-precise .person__name { font-weight: 500; font-size: 1.06rem; }
.design-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. */
.design-precise .quotes-grid { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.design-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; }
.design-precise .quote-card blockquote { font-family: var(--font-body); font-size: 1.19rem; font-weight: 300; line-height: 1.5; }
.design-precise .quote-card blockquote::before, .design-precise .quote-card blockquote::after { color: inherit; }
.design-precise .quote-card figcaption { margin-top: auto; padding-top: 1.5rem; font-weight: 500; color: var(--ink); }
.design-precise .quote-avatar { display: none; }

/* The call to action: one light line under a rule of the ink, the button at its end. */
.design-precise .cta--poster .cta-inner { padding-top: clamp(2.5rem, 4.4vw, 4.5rem);
                                               background: linear-gradient(var(--ink), var(--ink)) 50% 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; } /* the rule over the column only, not its gutters */
.design-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. */
.design-precise .hdr { border-bottom: 1px solid var(--line); }
.design-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; }
.design-precise .brand__word::before { content: ''; flex: none; width: .6rem; height: .6rem; background: var(--accent); }
.design-precise .brand__word.is-long { font-size: 1.06rem; }

/* The footer: columns over a hairline, the titles in the labels' type. */
.design-precise .ftr { border-top: 1px solid var(--line); }
/* The footer's column titles as the design's: ink, weight 500, ordinary case. */
.design-precise .ftr-title { font-family: var(--font-body); font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }

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

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

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

/* The buttons at the design's height exactly (a min-height let the base padding and the line make them 3–5 px taller);
   the header's call as tall as them, the header's row as the design's. */
@media (min-width: 760px) { body.design-precise { --header-row-h: 5rem; } }
.design-precise .hdr-cta { height: 3rem; padding-inline: 1.5rem; font-size: 1rem; }

/* ---- the variants ---------------------------------------------------------------------------------------------- */
/* side, on a phone: the photo first, above the words, 4 : 3.4. */
@media (max-width: 759px) {
  /* the page's own colours back (Kit lays the photo behind the words there, under light words) */
  .design-precise .hero--side.has-photo { --ink: inherit; --body-text: inherit; --muted: inherit; --mark: inherit; --line: inherit; color: var(--body-text); }
  .design-precise .hero--side.has-photo::after { content: none; }
  .design-precise .hero--side.has-photo .hero-inner { padding-block: 0 var(--space); }
  .design-precise .hero--side.has-photo .hero-figure { grid-row: 1; }
  .design-precise .hero--side.has-photo .hero-copy { grid-row: 2; }
  .design-precise .hero--side.has-photo .hero-photo { display: block; position: static; z-index: auto; width: calc(100% + 2 * var(--gutter)); max-width: none;
                                                      margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 3.4; height: auto; }
}
/* utility-bar: the bar on the surface, its words in the body face, the phone in the labels' type. */
.design-precise .hdr-bar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .84rem; }
.design-precise .hdr-bar a[href^="tel:"] { font-family: var(--mono); font-size: .78rem; }
/* headline: the facts as light figures. */
.design-precise .hero--headline .hero-facts dd { font-weight: 300; letter-spacing: -.03em; }

/* ---- the inner pages: cards radius 6, everything else 4, hairlines; times and durations in the labels' type ------ */
.design-precise .crumbs { font-size: .875rem; color: var(--muted); }
.design-precise .chip { border-radius: 4px; font-weight: 500; }
.design-precise .chip-count { font-family: var(--mono); }
.design-precise .filters { border-radius: 6px; }
.design-precise :is(.related-card, .book-card, .rent-card, .checkout-summary, .contact-form--card, .cart-line) { border-radius: 6px; }
.design-precise :is(.related-card__media, .related-card__media img, .product-gallery img) { border-radius: 4px; }
.design-precise main :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], input:not([type]), textarea, select) { border-radius: 4px; }
.design-precise .price-off { border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-weight: 500; }
.design-precise .checkout-step { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .75rem; border-radius: 4px; background: var(--primary); color: var(--primary-ink); font-family: var(--mono); font-weight: 500; }
.design-precise .choice { border-radius: 6px; }
.design-precise .choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--primary); }
.design-precise :is(.svc-card__duration, .duration, .booking-duration) { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; }
.design-precise .cal-day { border-radius: 4px; }
.design-precise .cal-day.is-selected { background: var(--primary); color: var(--primary-ink); }
.design-precise .slot span { border-radius: 4px; font-family: var(--mono); font-weight: 500; }
.design-precise .slot input:checked + span { background: var(--primary); color: var(--primary-ink); }
/* the places left: a tag of the labels' type; a few on the accent's soft ground in the accent's words; full struck */
.design-precise .slot__left { display: inline-flex; align-items: center; height: 1.625rem; margin-top: .25rem; padding: 0 .625rem; border-radius: 3px; background: var(--surface);
                              font-family: var(--mono); font-size: .75rem; color: var(--ink); }
.design-precise .slot:has(input:is([data-left="1"], [data-left="2"], [data-left="3"])) .slot__left { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); color: var(--accent-text); }
.design-precise .slot:has(input[data-left="0"]) .slot__left { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); text-decoration: line-through; }
.design-precise .contact-quick .contact-fact:has(a[href^="tel:"]) { padding: 1.875rem; border: 0; border-radius: 6px; background: var(--primary); color: var(--primary-ink); }
.design-precise .contact-quick .contact-fact:has(a[href^="tel:"]) :is(a, span, small) { color: var(--primary-ink); }
.design-precise .contact-quick a[href^="tel:"] { font-family: var(--font-display); font-weight: 300; font-size: 2.25rem; letter-spacing: -.02em; }

/* The trust band: four cells between hairlines on the page's own ground, the figures light and large, set left. */
.design-precise .section:has(> .container > .trust) { background: none; }
.design-precise .trust { gap: 0; border-block: 1px solid var(--line); }
.design-precise .trust__item { text-align: left; gap: .625rem; padding: 2.5rem 1.5rem 2.5rem 0; }
@media (min-width: 760px) { .design-precise .trust { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } } /* as many equal cells as there are figures */
.design-precise .trust__item + .trust__item { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.design-precise .trust__figure { font-size: 3.5rem; font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.design-precise .trust__label { font-size: .94rem; }
@media (max-width: 759px) {
  .design-precise .trust { grid-template-columns: 1fr; grid-auto-flow: row; }
  .design-precise .trust__item { padding: 1.5rem 0; }
  .design-precise .trust__item + .trust__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
.design-precise .checkout-summary__head h2 { font-size: var(--h3); font-weight: var(--h-strong); letter-spacing: -.01em; }

@media (min-width: 760px) and (max-width: 999px) { .design-precise .hero-stats dd, .design-precise .trust__figure { font-size: 2.625rem; } }
