/* friendly — «Дружній»: the direction's own type, plates and looks, on the body's class. Colours only through var(--*):
   the direction's colour sets drive them. */

.direction-friendly {
  --section-pad: clamp(4rem, 7.6vw, 6.9rem);
  --head-gap: clamp(2rem, 3.3vw, 3rem);
  --pill: 999px;
  --radius: 36px;
  --radius-small: 24px;
  --plate-radius: clamp(28px, 3.3vw, 48px);
  --accent-soft: color-mix(in srgb, var(--accent) 26%, var(--bg));
  font-size: 1.125rem;
  line-height: 1.6;
}

/* The type: the rounded face, bold; the word the headline turns on on a tint of the accent. */
.direction-friendly :is(h1, h2, h3) { font-weight: 700; letter-spacing: -.02em; }
.direction-friendly main h1 { font-size: clamp(2.6rem, 4.9vw, 4.4rem); line-height: 1.1; }
.direction-friendly main h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.12; }
.direction-friendly main h3 { font-family: var(--font-body); font-weight: 800; font-size: clamp(1.2rem, 1.5vw, 1.35rem); letter-spacing: 0; }
.direction-friendly :is(h1, h2) em { font-style: normal; background: var(--accent-soft); border-radius: .3em; padding: 0 .2em;
                                     -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* The kicker: a chip — a dot of the accent and the words on the surface. */
.direction-friendly .eyebrow { display: inline-flex; align-items: center; gap: .55rem; height: 2.5rem; padding: 0 1.1rem; border-radius: 999px;
                               background: var(--surface); color: var(--ink); font-size: .94rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.direction-friendly .eyebrow::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }

/* The buttons: round ends, bold; the second on the surface. */
.direction-friendly .btn { border-radius: 999px; font-weight: 700; }
.direction-friendly main .btn { min-height: 3.5rem; padding-inline: 1.75rem; font-size: 1.06rem; }
.direction-friendly main .btn-ghost { border: 0; background: var(--surface); color: var(--ink); }
.direction-friendly .hero-actions { gap: .75rem; }

/* The first screen: the photo large and round-cornered, the second a round portrait over its corner, the note a bubble. */
.direction-friendly .hero-photo { border-radius: var(--plate-radius); }
.direction-friendly .hero--editorial .hero-photo2 { width: clamp(8rem, 15vw, 13.75rem); aspect-ratio: 1; border-radius: 50%; left: clamp(-4rem, -4vw, -1.5rem);
                                                     bottom: clamp(-2.5rem, -2.5vw, -1rem); box-shadow: 0 0 0 10px var(--bg); }
.direction-friendly .hero-note { border-radius: 24px; font-size: 1rem; }
.direction-friendly .hero-caption { display: none; }

/* About and its figures: one plate of the surface — the story its upper half, the figures its foot. */
.direction-friendly main .section:has(.story) { margin-inline: clamp(12px, 4vw, 80px); border-radius: var(--plate-radius); background: var(--surface); }
.direction-friendly main .section:has(.story) + .section:has(.stats) { margin-inline: clamp(12px, 4vw, 80px); margin-top: calc(-1 * var(--plate-radius));
                                                                       border-radius: 0 0 var(--plate-radius) var(--plate-radius); background: var(--surface); padding-top: 0; }
.direction-friendly main .section:has(.story):has(+ .section .stats) { border-radius: var(--plate-radius) var(--plate-radius) 0 0; padding-bottom: var(--plate-radius); }
.direction-friendly .story-text p { font-size: 1.25rem; }
.direction-friendly .story-media img { border-radius: var(--radius); }
.direction-friendly .stats .hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.direction-friendly .stats .hero-stats > div { background: var(--bg); border-radius: 24px; padding: 1.25rem; border: 0; }
.direction-friendly .hero-stats dd { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 2.5vw, 2.25rem); line-height: 1; }
.direction-friendly .hero-stats dt { margin-top: .4rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .direction-friendly .stats .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The offer: cards on the surface, round-cornered, the photo inset with its own corners. */
.direction-friendly :is(.card, .card--product) { background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: none; padding: 14px 14px 1.2rem; }
.direction-friendly .card--product > :not(.card__media) { margin-inline: .75rem; }
.direction-friendly .card__media { border-radius: 26px; overflow: hidden; }
.direction-friendly .card__title { font-weight: 800; font-size: 1.25rem; }
.direction-friendly .price-line .price { font-weight: 800; font-size: 1.2rem; }

/* Reasons: plates of colour — the accent's tint, the surface, the tint again — a round mark in each. */
.direction-friendly .features--cards .feature-card { border: 0; border-radius: var(--radius); background: var(--accent-soft); box-shadow: none; padding: clamp(1.75rem, 2.5vw, 2.25rem); }
.direction-friendly .features--cards .feature-card:nth-child(even) { background: var(--surface); }
.direction-friendly .feature-card p { color: var(--muted); font-size: 1rem; }

/* Steps: the numbers in round marks of the primary, no rules. */
.direction-friendly .steps--ruled .feature-card { border: 0; padding-top: 0; }
.direction-friendly .steps .feature-index { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--primary); color: var(--primary-ink);
                                            font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; font-style: normal; margin-bottom: 1.25rem; }
.direction-friendly .steps .feature-index::before { content: counter(feature); }

/* The team: round portraits, the names under them, centred. */
.direction-friendly .team .team-grid { grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); }
.direction-friendly :is(.person, .person.is-text) { background: none; border: 0; box-shadow: none; padding: 0; text-align: center; }
.direction-friendly .team .person__photo { aspect-ratio: 1; border-radius: 50%; max-width: 13.75rem; margin-inline: auto; }
.direction-friendly .person__name { font-family: var(--font-body); font-weight: 800; font-size: 1.1rem; margin-top: 1rem; }
.direction-friendly .person__role { color: var(--muted); font-size: .95rem; }

/* The reviews: plates; the first larger, on the primary. */
.direction-friendly .quotes-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 24px; }
.direction-friendly .quote-card { border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: none; padding: clamp(1.75rem, 2.5vw, 2.25rem); display: flex; flex-direction: column; }
.direction-friendly .quote-card:first-child { background: var(--primary); color: var(--primary-ink); --ink: var(--primary-ink); --muted: color-mix(in srgb, var(--primary-ink) 75%, transparent); }
.direction-friendly .quote-card blockquote { font-family: var(--font-body); font-weight: 600; font-size: 1.12rem; line-height: 1.5; color: var(--ink); }
.direction-friendly .quote-card:first-child blockquote { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.direction-friendly .quote-card blockquote::before { content: '«'; margin: 0; color: inherit; }
.direction-friendly .quote-card blockquote::after { content: '»'; margin: 0; color: inherit; }
.direction-friendly .quote-card figcaption { margin-top: auto; padding-top: 1.25rem; color: var(--ink); font-weight: 700; }
.direction-friendly .quote-avatar { background: var(--bg); color: var(--ink); }
@media (max-width: 960px) { .direction-friendly .quotes-grid { grid-template-columns: 1fr; } }

/* The call to action: the photo a round-cornered plate in the page's column, the words on a plate of the ground. */
.direction-friendly main .section:has(> .cta--boxed) { padding-inline: clamp(12px, 4vw, 80px); }
.direction-friendly .cta--boxed { border-radius: var(--plate-radius); overflow: hidden; }
.direction-friendly .cta--boxed .cta-inner { border-radius: var(--radius); margin-left: clamp(16px, 3.3vw, 48px); }

/* The header: a pill of the surface held off the page's edges. */
.direction-friendly .hdr { background: transparent; border-bottom: 0; }
.direction-friendly .hdr-row__in { background: var(--surface); border-radius: 999px; padding-inline: 1.75rem .5rem; margin-top: 12px; }
.direction-friendly .brand__word { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
                                   color: var(--ink); white-space: nowrap; }
.direction-friendly .brand__word::before { content: attr(data-initial); flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
                                          background: var(--accent); color: var(--bg); font-family: var(--font-body); font-size: 1rem; font-weight: 800; line-height: 1; }
.direction-friendly .brand__word.is-long { font-size: 1.2rem; }
.direction-friendly .hdr-cta { border-radius: 999px; }

/* The footer: a plate of the surface, round-cornered, held off the edges. */
body.direction-friendly .ftr { margin: clamp(2rem, 5vw, 5rem) clamp(12px, 3vw, 40px) clamp(12px, 3vw, 40px); border-radius: var(--plate-radius); background: var(--surface); border: 0; }
.direction-friendly .ftr-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* On the surface's plate the chips and the second button stand on the page's ground. */
.direction-friendly main .section:is(:has(.story), :has(.story) + .section) :is(.eyebrow, .btn-ghost) { background: var(--bg); }

/* The first screen's columns as drawn: the photo 600px, the words beside it with room for both buttons in a row. */
@media (min-width: 901px) {
  .direction-friendly .hero--editorial.has-photo .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 37.5rem); gap: clamp(2rem, 5vw, 4.5rem); }
  .direction-friendly .hero--editorial .hero-copy { padding-right: 0; }
}
