/* poster — «Плакат»: 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-poster {
  /* a section holds 60 over and under, so two neighbours stand 120 apart as drawn (84 on a laptop, 64 on a phone) */
  --section-pad: 3.75rem;
  --head-gap: 3rem;
  --pill: 0;
  --radius: 0px;
  --radius-small: 0px;
  --rule: 2px;
  --body-text: var(--text);
  --accent-text: color-mix(in srgb, var(--accent) 70%, var(--ink)); /* small words in the accent, readable on every set */
  --card-ground: color-mix(in srgb, var(--bg) 50%, var(--surface));
  /* the font pair's sizes (the oswald pair's; the others below) */
  --h1: 9.375rem; --h2: 5.25rem; --h3: 1.625rem; --h-weight: 600; --h-track: -.005em;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.design-poster.fonts-fira    { --h1: 9.25rem; --h2: 5.125rem; --h3: 1.625rem; --h-weight: 800; --h-track: -.01em; }
.design-poster.fonts-archivo { --h1: 8.75rem; --h2: 4.875rem; --h3: 1.5625rem; --h-weight: 700; --h-track: -.02em; }
/* a laptop's builder preview or a tablet (760–999): the pairs' sizes and the rhythm scaled as drawn */
@media (min-width: 760px) and (max-width: 999px) {
  .design-poster { --section-pad: 2.625rem; --head-gap: 2.5rem; --h1: 6.375rem; --h2: 4rem; --h3: 1.4375rem; }
  .design-poster.fonts-fira { --h1: 6.3125rem; --h2: 3.875rem; --h3: 1.4375rem; }
  .design-poster.fonts-archivo { --h1: 5.9375rem; --h2: 3.6875rem; --h3: 1.375rem; }
}
@media (max-width: 759px) { .design-poster { --section-pad: 2rem; --head-gap: 2rem; --h1: 3.5rem; --h2: 2.625rem; --h3: 1.3125rem; font-size: 1rem; } }

/* The type: condensed capitals, very large, set close. */
.design-poster :is(h1, h2, h3) { font-weight: var(--h-weight); text-transform: uppercase; letter-spacing: var(--h-track); color: var(--ink); }
/* The first screen's headline very large across the page; any other page's (a product's, beside its photo) large but
   inside its column — a word of it wider than the column pushed the page out sideways. Not tighter than 1.06: the
   descenders of Щ, Д, Ц and a comma reach into the line under them. */
.design-poster main h1 { font-size: calc(var(--h1) * .8); line-height: 1.06; overflow-wrap: break-word; }
.design-poster main .hero h1 { font-size: var(--h1); line-height: .9; } /* as drawn: the first screen's lines close */
@media (max-width: 759px) { .design-poster main h1 { font-size: calc(var(--h1) * .66); } .design-poster main .hero h1 { font-size: var(--h1); } }
.design-poster main h2 { font-size: var(--h2); line-height: .95; overflow-wrap: break-word; hyphens: manual; }
.design-poster main h3 { font-size: var(--h3); line-height: 1.1; }
.design-poster :is(h1, h2) em { font-style: normal; color: var(--accent); }

/* The kickers numbered down the page: 01, 02… in the display face, before the word. */
.design-poster main { counter-reset: kicker; }
.design-poster .eyebrow { display: flex; gap: 1rem; font-family: var(--font-display); font-size: .94rem; font-weight: 500;
                             letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.design-poster .eyebrow::before { counter-increment: kicker; content: counter(kicker, decimal-leading-zero); color: var(--accent-text); }

/* The buttons: square, capitals, a heavy outline for the second. */
.design-poster .btn { border-radius: 0; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
/* 52 px exactly, a filled and an outlined one alike: a min-height let the padding and the line make them 56 and 58. */
.design-poster main .btn { display: inline-flex; align-items: center; justify-content: center; height: 3.25rem; padding-block: 0; padding-inline: 1.6rem; font-size: 1rem; }
.design-poster main .btn-ghost { border-width: 2px; }

/* Heavy rules between the sections. */
.design-poster main > .section + .section { border-top: 2px solid var(--line); }
.design-poster .section-head { padding-bottom: 1.75rem; border-bottom: 2px solid var(--line); }
.design-poster .section-head .lead { max-width: 30rem; }

/* The offer as a ruled catalogue: the name in capitals, the price large in the display face. */
.design-poster .card__title, .design-poster .svc-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.3rem, 1.95vw, 1.75rem); font-weight: 500; }
.design-poster .price-line .price { font-family: var(--font-display); font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 500; }
.design-poster :is(.products--ruled, .services--ruled) .card__media { aspect-ratio: 9 / 10; }

/* The figures: the display face's own. */
.design-poster .hero-stats dd { font-family: var(--font-display); font-weight: 600; }

/* Reasons and steps: very large numbers, the columns divided by heavy rules. */
/* (each cell ruled on its left; the first column's rule sits outside the grid, clipped) */
.design-poster :is(.features--ruled, .steps--ruled) .features-grid { column-gap: 0; overflow: hidden; }
.design-poster :is(.features--ruled, .steps--ruled) .feature-card { border-top: 2px solid var(--line); border-left: 2px solid var(--line);
                                                                      margin-left: -2px; padding: 1.75rem 1.75rem 0; }
.design-poster .feature-index { font-size: clamp(3.5rem, 6.7vw, 6rem); font-weight: 600; line-height: .9; color: var(--ink); }
.design-poster .feature-card p { color: var(--muted); }

/* The reviews: cells of a grid ruled by heavy lines, on the surface's band. */
.design-poster .section:has(> .testimonials) { background: var(--surface); }
.design-poster .quotes-grid { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.design-poster .quote-card { border: 0; border-radius: 0; box-shadow: none; background: var(--bg); padding: clamp(1.5rem, 2.5vw, 2.25rem); min-height: 18rem; display: flex; flex-direction: column; }
.design-poster .quote-card blockquote { font-size: 1.2rem; line-height: 1.45; }
.design-poster .quote-card figcaption { margin-top: auto; padding-top: 1.75rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.design-poster .quote-avatar { display: none; }

/* The team: cells under heavy rules, the name in capitals. */
.design-poster :is(.person, .person.is-text) { background: none; border: 0; border-top: 2px solid var(--line); border-radius: 0; box-shadow: none; padding: 1.25rem 0 0; }
.design-poster .person.is-text::before { display: none; }
.design-poster .person__name { font-family: var(--font-display); text-transform: uppercase; font-weight: 500; }

/* The call to action as a poster: its words as large as a section's heading. */
.design-poster .cta--poster .cta-inner h2 { font-size: clamp(2.8rem, 6.1vw, 5.5rem); line-height: 1.04; max-width: 20ch; }

/* The header: the name in condensed capitals, the menu in capitals, a heavy rule under it. */
.design-poster .hdr { border-bottom: 2px solid var(--line); }
.design-poster .brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1; letter-spacing: .02em;
                                 text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.design-poster .brand__word.is-long { font-size: 1.35rem; }
.design-poster .hdr nav a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; }

/* The footer: dark, the columns first, the name across its whole width at the foot. */
.design-poster .ftr { background: var(--primary); color: var(--primary-ink); --ink: var(--primary-ink);
                         --muted: color-mix(in srgb, var(--primary-ink) 70%, transparent); --line: color-mix(in srgb, var(--primary-ink) 25%, transparent); }
.design-poster .ftr a { color: var(--primary-ink); }
.design-poster .ftr-brand { grid-column: 1 / -1; order: 9; }
.design-poster .ftr .brand__word { font-size: clamp(4rem, 20vw, 18.75rem); line-height: .78; letter-spacing: -.01em; color: var(--primary-ink);
                                     padding-bottom: .16em; } /* set this close, the tail of Д, Щ, Ц runs below the line onto the words under it */
.design-poster .ftr .brand__word.is-long { font-size: clamp(2.5rem, 8.3vw, 7.5rem); line-height: .9; white-space: normal; }
.design-poster .ftr-title { font-family: var(--font-display); letter-spacing: .1em; }

/* The header as the design's: an 84 px row from a tablet up, its call as tall as the page's buttons. */
@media (min-width: 760px) { body.design-poster { --header-row-h: 5.25rem; } .design-poster .hdr-cta { height: 3.25rem; padding-inline: 1.6rem; } }
/* The footer's column titles in the display face's capitals, not the small muted ones. */
.design-poster .ftr-title { font-family: var(--font-display); font-size: .95rem; font-weight: 500; letter-spacing: .1em; color: var(--ink); }

/* ---- the variants ---------------------------------------------------------------------------------------------- */
/* centered: a top row of 40 (open now, the phone · the rest), the name 76 px in the middle, the menu its own row of 54
   between two heavy rules. */
@media (min-width: 760px) {
  body.design-poster.header--layout-centered { --header-top-h: 9.25rem; }
  .design-poster.header--layout-centered .hdr-row__in { grid-template-rows: var(--header-top-h) 3.375rem; }
  .design-poster.header--layout-centered .hdr-brand:not(.hdr-brand--mini) .brand__word { font-size: clamp(2.875rem, 5.9vw, 4.75rem); line-height: .9; letter-spacing: .02em; }
  .design-poster.header--layout-centered .hdr-brand:not(.hdr-brand--mini) .brand__word.is-long { font-size: clamp(2rem, 3.6vw, 2.875rem); }
  .design-poster.header--layout-centered .hdr-nav::before { border-top-width: 2px; border-top-color: var(--line); }
  .design-poster.header--layout-centered .hdr-nav { --nav-gap: 1.75rem; }
}

/* cover: the photo behind, white words on a scrim rising from the foot, a white rule over the line and the buttons. */
.design-poster .section:has(> .hero--cover.has-photo) { padding: 0; }
.design-poster .hero--cover.has-photo { min-height: min(50rem, 100svh); display: flex; align-items: flex-end; padding-block: 8rem 3.75rem;
                                        --ink: #fff; --body-text: rgba(255, 255, 255, .9); --muted: rgba(255, 255, 255, .8); color: #fff; }
.design-poster .hero--cover.has-photo .hero-inner { width: 100%; }
.design-poster .hero--cover.has-photo::after { background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .1) 75%); }
.design-poster .hero--cover h1 { color: #fff; }
.design-poster .hero--cover .eyebrow, .design-poster .hero--cover .eyebrow::before { color: #fff; }
.design-poster .hero--cover .lead { color: rgba(255, 255, 255, .9); max-width: 34rem; }
.design-poster .hero--cover .hero-actions .btn:not(.btn-ghost) { background: #fff; color: #111; border-color: #fff; }
.design-poster .hero--cover .hero-actions .btn-ghost { color: #fff; border-color: #fff; }

/* ---- the inner pages: square, heavy rules of the ink, capitals in the display face ------------------------------- */
.design-poster .crumbs { font-size: .875rem; color: var(--muted); }
.design-poster .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.375rem; padding: .875rem 0; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.design-poster .filters .filter { margin: 0; background: none; }
.design-poster .chip { height: 2.625rem; padding: 0 1.125rem; border: 0; border-radius: 0; background: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line);
                       font-family: var(--font-display); font-weight: 500; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; }
.design-poster .chip.is-active { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
.design-poster .chip-count { background: none; color: inherit; opacity: .6; }
.design-poster .filter__range input { width: 5.75rem; height: 2.5rem; border: 0; border-radius: 0; background: var(--card-ground); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--line) 45%, transparent); }
.design-poster .sort a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
.design-poster .sort a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.design-poster :is(.price, .price-main, .svc-card__price, .booking-price, .rental-price, .service-price) { font-family: var(--font-display); font-weight: 600; }
.design-poster .price-off { border-radius: 0; background: var(--primary); color: var(--primary-ink); font-family: var(--font-display); letter-spacing: .05em; }
.design-poster .related-card { border: 2px solid var(--line); border-radius: 0; background: none; padding: 0; box-shadow: none; }
.design-poster .related-card__media { border-bottom: 2px solid var(--line); }
.design-poster .related-card__media img { border-radius: 0; }
.design-poster .product-buy__title { font-family: var(--font-display); font-weight: var(--h-weight); text-transform: uppercase; line-height: .95; font-size: clamp(2.25rem, 4.5vw, calc(var(--h1) * .58)); }
.design-poster main :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], input:not([type]), textarea, select) {
  border: 0; border-radius: 0; background: var(--card-ground); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--line) 45%, transparent); }
.design-poster main :is(input, textarea, select):focus { outline: 0; box-shadow: inset 0 0 0 2px var(--line); }
.design-poster .cart-drawer__panel { border-radius: 0; border-left: 2px solid var(--line); }
.design-poster .cart-line img { border-radius: 0; }
.design-poster .checkout-step { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .75rem; border-radius: 0; background: var(--primary); color: var(--primary-ink); font-family: var(--font-display); }
.design-poster .choice { padding: 1.125rem 1.25rem; border: 0; border-radius: 0; background: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--line) 35%, transparent); }
.design-poster .choice:has(input:checked) { background: var(--card-ground); box-shadow: inset 0 0 0 2px var(--line); }
.design-poster .choice input[type="radio"] { accent-color: var(--primary); }
.design-poster .checkout-summary { border: 2px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.design-poster .checkout-summary__head h2 { font-size: var(--h3); }
.design-poster :is(.book-card, .rent-card) { border: 2px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.design-poster .cal-grid { gap: .375rem; }
.design-poster .cal[data-mode='single'] .cal-day { min-height: 3rem; border: 0; border-radius: 0; background: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--line) 35%, transparent); font-family: var(--font-display); }
.design-poster .cal[data-mode='single'] .cal-day:disabled:not(.is-selected) { box-shadow: none; }
.design-poster .cal[data-mode='single'] .cal-day.is-selected { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
.design-poster .cal-nav { border-radius: 0; }
.design-poster .slot span { min-height: 3rem; border: 0; border-radius: 0; background: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--line) 35%, transparent); font-family: var(--font-display); }
.design-poster .slot input:checked + span { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
/* the places left: a tag of the surface; a few on the accent in its own readable ink; full struck */
.design-poster .slot__left { display: inline-flex; align-items: center; height: 1.75rem; margin-top: .25rem; padding: 0 .625rem; border-radius: 0; background: var(--surface);
                             font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.design-poster .slot:has(input:is([data-left="1"], [data-left="2"], [data-left="3"])) .slot__left { background: var(--accent); color: var(--accent-ink); }
.design-poster .slot:has(input[data-left="0"]) .slot__left { background: none; box-shadow: inset 0 0 0 1.5px var(--muted); color: var(--muted); text-decoration: line-through; }
.design-poster .contact-quick .contact-fact:has(a[href^="tel:"]) { padding: 1.875rem; border: 0; border-radius: 0; background: var(--primary); color: var(--primary-ink); }
.design-poster .contact-quick .contact-fact:has(a[href^="tel:"]) :is(a, span, small) { color: var(--primary-ink); }
.design-poster .contact-quick a[href^="tel:"] { font-family: var(--font-display); font-weight: var(--h-weight); font-size: 2rem; letter-spacing: .01em; }
.design-poster .contact-form--card { border: 2px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
/* On a phone the line and the buttons go under each other, the buttons wrapping their words: beside each other the
   widest pair (Archivo Narrow) pushed the page 3 px past the screen. */
@media (max-width: 759px) {
  .design-poster .hero--poster .hero-copy { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
  .design-poster .hero--poster .hero-actions { justify-content: flex-start; }
  .design-poster main .hero-actions .btn { flex: 1 1 auto; white-space: normal; text-align: center; }
}
