/* Lillirode design system: the components, styled ONLY from the tokens.
   Load order: ../fonts/fonts.css, ../tokens/tokens.css, ../tokens/tokens-dark.css, ../tokens/tokens-decor.css, (../elements/elements.css), then this file; with motion, ../tokens/tokens-motion.css before it and motion.css after it (motion.js in the head).
   No colour, size, font or motion literal below: every value is var(--...), a calc() over tokens, 0, a unitless number, a percentage, an angle or a CSS keyword
   (auto, 1fr, thin). Two kinds of literal remain and are stated in components.md: the layout breakpoints in the @container queries (720px, the same in
   elements.css, and 1024px for the site header's menu) and the aspect ratios. A section marker "== ds-<name> ==" starts each component; check_components.py reads the markers.
   State classes (.is-hover, .is-active, .is-focus) mirror :hover, :active, :focus-visible so a page can show a state at rest; real pages never write them.
   Motion is not declared here: every transition and animation is in motion.css, on the tokens of ../tokens/tokens-motion.css, and runs only under prefers-reduced-motion: no-preference (see motion.md). */

/* == ds-base == */
:root {
  --ds-icon: var(--size-icon);
  --ds-icon-lg: var(--size-icon-lg);
  --ds-touch: var(--size-touch);
  --ds-line: var(--line-width);
  --ds-focus-width: var(--focus-width);
  --ds-focus-offset: var(--focus-offset);
}
/* The page is the container the responsive rules read (container name scr), so a page built by the steps of INDEX.md leaves the phone layout from 720px on its own;
   .ds-screen is the same container for a panel or a specimen that is narrower than the page. */
body { container: scr / inline-size; }
/* The reset: every box is border-box, so a control of --size-touch is 48 px high with its padding and border inside it. .ds-container takes its width as a border-box too (see ds-section). */
*, *::before, *::after { box-sizing: border-box; }
/* The page shell: the body is a column at least as high as the window and <main> takes the free space, so the footer, the last child, stands at the window bottom on a short page.
   html is the window's height (a percentage, so no viewport unit is written); .ds-page is the same shell for a specimen or a panel that is not the page. */
html { block-size: 100%; }
body { margin: 0; min-block-size: 100%; display: flex; flex-direction: column; background: var(--color-bg); color: var(--color-text); font-family: var(--ff-body); font-size: var(--fs-body); line-height: var(--lh-body); }
.ds-page { display: flex; flex-direction: column; }
:is(body, .ds-page) > main { flex: 1 0 auto; }
:is(body, .ds-page) > :is(.ds-site-footer, .ds-site-header) { flex: none; }
::selection { background: var(--color-selection-bg); color: var(--color-selection-text); }
.ds-screen { container: scr / inline-size; position: relative; background: var(--color-bg); color: var(--color-text); font-family: var(--ff-body); font-size: var(--fs-body); line-height: var(--lh-body); }
.ds-icon { inline-size: var(--ds-icon); block-size: var(--ds-icon); flex: none; vertical-align: middle; }
.ds-icon--lg { inline-size: var(--ds-icon-lg); block-size: var(--ds-icon-lg); }
.ds-logo { display: block; inline-size: auto; block-size: calc(var(--space-5) + var(--space-2)); max-inline-size: 100%; }
.ds-text--muted { color: var(--color-muted); }
:is(.ds-button, .ds-link, .ds-card--link, .ds-site-header__brand, .ds-site-header__link, .ds-site-header__menu, .ds-site-footer__brand, .ds-site-footer__link, .ds-site-footer__company a, .ds-lang__button, .ds-lang__item, .ds-icon-tile, .ds-theme-toggle, .ds-skip-link):is(:focus-visible, .is-focus) {
  outline: var(--ds-focus-width) solid var(--color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-site-header__brand:is(:focus-visible, .is-focus), .ds-site-footer__brand:is(:focus-visible, .is-focus) { border-radius: var(--radius-sm); }
@media print {
  .ds-deco-light, .ds-deco-orbits, .ds-site-header__menu, .ds-site-header__nav, .ds-lang, .ds-theme-toggle, .ds-skip-link, .ds-photo-band { display: none; }
  .ds-screen, .ds-hero, .ds-card { background: none; box-shadow: none; color: var(--color-text); }
}

/* == ds-prose == */
.ds-prose { max-inline-size: var(--w-text); color: var(--color-text); font-family: var(--ff-body); font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); font-weight: var(--fw-body); hyphens: manual; overflow-wrap: break-word; }
.ds-prose > * { margin-block: 0; }
.ds-prose > * + * { margin-block-start: var(--space-4); }
.ds-prose h1 { font-family: var(--ff-h1); font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-h1); }
.ds-prose h2 { font-family: var(--ff-h2); font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: var(--fw-h2); }
.ds-prose h3 { font-family: var(--ff-h3); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-h3); }
.ds-prose h4 { font-family: var(--ff-h4); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-h4); }
.ds-prose :is(h2, h3, h4) { margin-block-start: var(--space-6); }
.ds-prose :is(h1, h2, h3, h4) + * { margin-block-start: var(--space-3); }
.ds-prose > :first-child { margin-block-start: 0; }
.ds-prose .ds-lead { font-family: var(--ff-lead); font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); font-weight: var(--fw-lead); }
.ds-prose :is(ul, ol) { padding-inline-start: var(--space-5); }
.ds-prose li + li { margin-block-start: var(--space-2); }
.ds-prose a { color: var(--color-link); font-weight: var(--fw-text-strong); text-decoration: underline; text-underline-offset: auto; }
.ds-prose a:hover { color: var(--color-link-hover); }
.ds-prose a:focus-visible { outline: var(--ds-focus-width) solid var(--color-focus-ring); outline-offset: var(--ds-focus-offset); }
.ds-prose strong { font-weight: var(--fw-text-strong); }
.ds-prose small { font-family: var(--ff-small); font-size: var(--fs-small); line-height: var(--lh-small); letter-spacing: var(--ls-small); font-weight: var(--fw-small); color: var(--color-muted); }

/* == ds-section == */
/* The container is a border-box: its box is the content width of the token plus the two gutters, never wider than its parent, so the content is min(100% - 2 gutters, token) wide exactly as it was drawn when the box was content-box. */
.ds-container { inline-size: min(100%, calc(var(--w-content) + 2 * var(--gutter))); margin-inline: auto; padding-inline: var(--gutter); }
.ds-container--wide { inline-size: min(100%, calc(var(--w-wide) + 2 * var(--gutter))); }
.ds-container--text { inline-size: min(100%, calc(var(--w-text) + 2 * var(--gutter))); }
.ds-section { padding-block: var(--space-7); }
.ds-section--loose { padding-block: var(--space-8); }
.ds-section--wide { padding-block: var(--space-9); }

/* == ds-section-head == */
.ds-section-head { display: grid; gap: var(--space-3); max-inline-size: var(--w-text); }
.ds-section-head > * { margin: 0; }
.ds-section-head__kicker { font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); text-transform: uppercase; color: var(--color-accent); }
.ds-section-head__title { font-family: var(--ff-h2); font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: var(--fw-h2); hyphens: manual; overflow-wrap: break-word; }
.ds-section-head__lead { font-family: var(--ff-lead); font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); font-weight: var(--fw-lead); color: var(--color-muted); }
.ds-section-head + :is(.ds-card-grid, .ds-contacts) { margin-block-start: var(--space-6); }

/* == ds-button == */
.ds-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-block-size: var(--ds-touch); padding-block: var(--space-2); padding-inline: var(--space-5);
  border: var(--ds-line) solid transparent; border-radius: var(--radius-pill); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-text-strong); line-height: var(--lh-label);
  text-align: center; text-decoration: none; cursor: pointer; }
.ds-button--primary { background: var(--color-accent); color: var(--color-on-accent); }
.ds-button--primary:is(:hover, .is-hover) { background: var(--color-accent-hover); box-shadow: var(--shadow-sm); }
.ds-button--primary:is(:active, .is-active) { background: var(--color-accent-hover); box-shadow: none; }
.ds-button--secondary { background: var(--color-surface-raised); color: var(--color-text); border-color: var(--color-border-strong); }
.ds-button--secondary:is(:hover, .is-hover) { background: var(--color-accent-subtle); border-color: var(--color-accent); color: var(--color-accent-hover); }
.ds-button--secondary:is(:active, .is-active) { background: var(--color-accent-subtle); border-color: var(--color-accent-hover); color: var(--color-accent-hover); }
.ds-button--block { display: flex; inline-size: 100%; }
.ds-button:is(:disabled, [aria-disabled="true"], .is-disabled) { background: var(--color-disabled-bg); color: var(--color-disabled-text); border-color: transparent; box-shadow: none; cursor: not-allowed; }

/* == ds-card == */
.ds-card { display: flex; flex-direction: column; gap: var(--space-3); min-inline-size: 0; background: var(--color-surface); color: var(--color-text); border: var(--ds-line) solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-sm); overflow: hidden; text-decoration: none; }
.ds-card__title { margin: 0; font-family: var(--ff-h4); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-h4); hyphens: manual; overflow-wrap: break-word; }
.ds-card__text { margin: 0; color: var(--color-muted); font-size: var(--fs-small); line-height: var(--lh-small); }
.ds-card--media { padding: 0; gap: 0; }
.ds-card__media { aspect-ratio: 16 / 9; display: grid; place-items: center; gap: var(--space-2); background: var(--color-surface-sunken); color: var(--color-muted); font-size: var(--fs-small); }
.ds-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); }
/* the actions slot: the buttons of a card stand on the card's bottom edge, so cards of one row end their buttons on one line */
.ds-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block-start: auto; padding-block-start: var(--space-3); }
.ds-card--link:is(:hover, .is-hover) { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.ds-card--link:is(:active, .is-active) { box-shadow: var(--shadow-sm); border-color: var(--color-accent); }

/* == ds-card-grid == */
/* cards of one row stand at one height (the grid stretches them); the columns step with the number of cards:
   one column on a phone; from 720px two columns for a count of 2 or 4, three columns for every other count of 3 or more (later rule wins for 4) */
.ds-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: stretch; }
@container scr (min-width: 720px) {
  .ds-card-grid:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-card-grid:is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* == ds-feature-icon == */
/* the icon of a card or a block: --space-8 (64 px) square, the accent colour, one line drawing from the sprite; its one-time drawing is motion.css (data-draw) */
.ds-feature-icon { flex: none; display: block; inline-size: var(--space-8); block-size: var(--space-8); color: var(--color-accent); }

/* == ds-badge == */
.ds-badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); background: var(--color-second-subtle); color: var(--color-second);
  font-family: var(--ff-label); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); line-height: var(--lh-label); text-transform: uppercase; }
.ds-badge--accent { background: var(--color-accent-subtle); color: var(--color-accent); }

/* == ds-alert == */
.ds-alert { --ds-alert-c: var(--color-second); --ds-alert-bg: var(--color-second-subtle); display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4);
  border-radius: var(--radius-md); border-inline-start: var(--ds-focus-width) solid var(--ds-alert-c); background: var(--ds-alert-bg); color: var(--color-text); }
.ds-alert--warning { --ds-alert-c: var(--color-warning); --ds-alert-bg: var(--color-warning-subtle); }
.ds-alert__icon { color: var(--ds-alert-c); margin-block-start: var(--space-1); }
.ds-alert__body { min-inline-size: 0; font-size: var(--fs-small); line-height: var(--lh-small); }
.ds-alert__title { margin: 0 0 var(--space-1); font-weight: var(--fw-text-strong); font-size: var(--fs-body); line-height: var(--lh-body); }
.ds-alert__text { margin: 0; }

/* == ds-hero == */
/* the hero is full width and its content stands on the page grid: --ds-hero-edge is the side space of .ds-container's content (the gutter, or half of what is left of --w-content), so the first screen and every section share one left edge */
.ds-hero { --ds-hero-edge: max(var(--gutter), calc((100% - var(--w-content)) / 2)); position: relative; display: grid; gap: var(--space-6); padding: var(--space-5) var(--ds-hero-edge) var(--space-7); }
.ds-hero > :not(.ds-deco-light):not(.ds-deco-orbits) { position: relative; z-index: 1; min-inline-size: 0; }
.ds-hero__kicker { margin: 0 0 var(--space-2); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); text-transform: uppercase; color: var(--color-accent); }
.ds-hero__title { margin: 0; font-family: var(--ff-h1); font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-h1); hyphens: manual; overflow-wrap: break-word; }
.ds-hero__lead { margin: var(--space-3) 0 var(--space-5); max-inline-size: var(--w-text); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.ds-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.ds-hero__media { padding: var(--space-4); }
@container scr (min-width: 720px) {
  .ds-hero { grid-template-columns: 1.25fr 1fr; align-items: center; padding: var(--space-8) var(--ds-hero-edge); }
}
/* the strip the hero reserves when it carries the decorative orbits (class ds-deco on an ancestor; ../elements/README.md) */
.ds-deco .ds-hero { padding-block-end: calc(var(--space-6) + var(--orb-h)); }
@container scr (min-width: 720px) {
  .ds-deco .ds-hero { padding-block-end: var(--space-8); padding-inline-end: max(var(--ds-hero-edge), calc(var(--space-7) + var(--orb-w))); }
}

/* == ds-portrait == */
.ds-portrait { position: relative; inline-size: min(100%, var(--w-portrait)); margin-inline: auto; }
.ds-portrait__box { position: relative; z-index: 1; overflow: hidden; display: grid; place-items: center; align-content: center; gap: var(--space-2); aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: var(--color-surface-sunken); border: var(--ds-line) dashed var(--color-border-strong); color: var(--color-muted); font-size: var(--fs-small); text-align: center; }
.ds-portrait__box > img { display: block; position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% var(--portrait-focus-y); border-radius: 0; }
.ds-portrait__box:has(> img) { border-style: none; }

/* == ds-photo-band == */
/* a full-width photograph between two sections: its top and bottom edges fade into the page ground (--color-bg) over --band-fade each, with no wash over the picture, and the ring divider sits on its bottom edge; the frame grows with the window (--h-band); each picture sets its own focal point on the band element as --band-focus-x and --band-focus-y (default 50% 50%) */
.ds-photo-band { position: relative; }
.ds-photo-band__frame { position: relative; isolation: isolate; overflow: hidden; block-size: var(--h-band); }
.ds-photo-band__img { position: absolute; inset: 0; z-index: -1; display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: var(--band-focus-x) var(--band-focus-y); }
.ds-photo-band__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--color-bg), transparent var(--band-fade), transparent calc(100% - var(--band-fade)), var(--color-bg)); }
.ds-photo-band__seam { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 1; display: grid; justify-items: center; transform: translateY(50%); pointer-events: none; }

/* == ds-kv == */
.ds-kv { margin: 0; display: grid; }
.ds-kv__row { display: grid; gap: var(--space-1); padding-block: var(--space-3); border-block-end: var(--ds-line) solid var(--color-border); }
.ds-kv__row:first-child { border-block-start: var(--ds-line) solid var(--color-border); }
.ds-kv__key { margin: 0; color: var(--color-muted); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); text-transform: uppercase; }
.ds-kv__value { margin: 0; min-inline-size: 0; hyphens: manual; overflow-wrap: break-word; }
@container scr (min-width: 720px) {
  .ds-kv__row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-5); }
}

/* == ds-timeline == */
.ds-timeline { list-style: none; margin: 0; padding: 0; }
.ds-timeline__item { position: relative; padding-inline-start: var(--space-6); padding-block-end: var(--space-5); }
/* marker = the system's gold dot (--color-gold), its centre on the centre of the day label's line box (--ds-tl-mid = half of font size x line height of the label).
   connector = ONE continuous line (--decor-edge wide) from below the marker to before the next marker: --color-second at the marker, --decor-silver at --decor-fade-stop, then transparent;
   decorative (pseudo-elements, never read) */
.ds-timeline { --ds-tl-mid: calc(var(--fs-label) * var(--lh-label) / 2); }
.ds-timeline__item::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: calc(var(--ds-tl-mid) - var(--space-3) / 2); inline-size: var(--space-3); block-size: var(--space-3); border-radius: var(--radius-round); background: var(--color-gold); pointer-events: none; }
.ds-timeline__item::after { content: ""; position: absolute; inset-inline-start: calc(var(--space-3) / 2 - var(--decor-edge) / 2); inline-size: var(--decor-edge); inset-block-start: calc(var(--ds-tl-mid) + var(--space-3) / 2 + var(--space-1)); inset-block-end: calc(var(--space-2) - var(--ds-tl-mid)); border-radius: var(--decor-edge); background: linear-gradient(to bottom, var(--color-second), var(--decor-silver) var(--decor-fade-stop), transparent); pointer-events: none; }
.ds-timeline__item:last-child { padding-block-end: 0; }
.ds-timeline__item:last-child::after { display: none; }
.ds-timeline__day { display: block; font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); font-weight: var(--fw-label); text-transform: uppercase; color: var(--color-muted); }
.ds-timeline__title { margin: var(--space-1) 0; font-family: var(--ff-h4); font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: var(--fw-h4); hyphens: manual; overflow-wrap: break-word; }
.ds-timeline__text { margin: 0; color: var(--color-muted); font-size: var(--fs-small); line-height: var(--lh-small); }

/* == ds-link == */
.ds-link { display: inline; color: var(--color-link); font-weight: var(--fw-text-strong); text-decoration: underline; text-underline-offset: auto; }
.ds-link:is(:hover, .is-hover) { color: var(--color-link-hover); }
.ds-link:is(:active, .is-active) { color: var(--color-link-hover); text-decoration-thickness: var(--ds-focus-width); }
.ds-link .ds-icon { margin-inline-start: var(--space-1); }
.ds-link[aria-disabled="true"] { color: var(--color-disabled-text); text-decoration: none; cursor: not-allowed; }

/* == ds-site-header == */
.ds-site-header { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); background: var(--color-surface); border-block-end: var(--ds-line) solid var(--color-border); position: relative; z-index: 1; }
.ds-site-header__brand { display: block; margin-inline-end: auto; min-inline-size: 0; }
.ds-site-header__nav { display: none; }
.ds-site-header__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); }
.ds-site-header__link { display: inline-flex; align-items: center; min-block-size: var(--ds-touch); padding-inline: var(--space-3); border-block-end: var(--ds-focus-width) solid transparent; color: var(--color-text);
  font-size: var(--fs-small); font-weight: var(--fw-text-strong); text-decoration: none; }
.ds-site-header__link:is(:hover, .is-hover) { color: var(--color-accent); }
.ds-site-header__link[aria-current="page"] { border-block-end-color: var(--color-accent); }
.ds-site-header__menu { display: inline-grid; place-items: center; inline-size: var(--ds-touch); block-size: var(--ds-touch); padding: 0; border: var(--ds-line) solid var(--color-border-strong); border-radius: var(--radius-round); background: transparent; color: var(--color-text); cursor: pointer; }
.ds-site-header__menu:is(:hover, .is-hover), .ds-site-header__menu[aria-expanded="true"] { background: var(--color-accent-subtle); color: var(--color-accent); }
/* below 1024px the links open under the header when the menu button sets data-open on the header (components.js); from 1024px the links stand in the bar */
@container scr (not (min-width: 1024px)) {
  .ds-site-header[data-open] .ds-site-header__nav { display: block; position: absolute; inset-inline: 0; inset-block-start: 100%; padding: var(--space-3) var(--space-4); background: var(--color-surface); border-block-end: var(--ds-line) solid var(--color-border); box-shadow: var(--shadow-md); }
  .ds-site-header[data-open] .ds-site-header__list { flex-direction: column; gap: 0; }
}
@container scr (min-width: 720px) {
  .ds-site-header { padding-inline: var(--space-7); gap: var(--space-5); }
}
@container scr (min-width: 720px) and (not (min-width: 1024px)) {
  .ds-site-header[data-open] .ds-site-header__nav { padding-inline: var(--space-7); }
}
@container scr (min-width: 1024px) {
  .ds-site-header__nav { display: block; }
  .ds-site-header__menu { display: none; }
}

/* == ds-site-footer == */
.ds-site-footer { padding-block: var(--space-4); background: var(--color-surface); border-block-start: var(--ds-line) solid var(--color-border); color: var(--color-muted); font-size: var(--fs-small); line-height: var(--lh-small); }
.ds-site-footer__inner { display: grid; gap: var(--space-2); inline-size: min(100%, calc(var(--w-content) + 2 * var(--gutter))); margin-inline: auto; padding-inline: var(--gutter); }
.ds-site-footer p { margin: 0; }
/* two rows: the top row (the mark, the section links, the socials) and the bottom row (the legal links, the operator line, the (c) line); both wrap on a phone and the type keeps its size */
.ds-site-footer__row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.ds-site-footer__row > nav { min-inline-size: 0; }
.ds-site-footer__row--bottom { padding-block-start: var(--space-3); border-block-start: var(--ds-line) solid var(--color-border); }
.ds-site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.ds-site-footer__link { display: inline-flex; align-items: center; min-block-size: var(--ds-touch); color: var(--color-text); font-weight: var(--fw-text-strong); text-decoration: underline; text-underline-offset: var(--space-1); }
.ds-site-footer__link:is(:hover, .is-hover) { color: var(--color-link-hover); }
.ds-site-footer__brand { display: block; }
.ds-site-footer__tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ds-site-footer__company { display: flex; align-items: center; gap: var(--space-3); min-inline-size: 0; }
.ds-site-footer__company a { color: var(--color-text); font-weight: var(--fw-text-strong); text-decoration: underline; text-underline-offset: var(--space-1); }
.ds-site-footer__company a:is(:hover, .is-hover) { color: var(--color-link-hover); }
.ds-site-footer__flag { flex: none; display: block; inline-size: calc(var(--space-4) + var(--space-3)); block-size: calc(var(--space-4) + var(--space-3)); border-radius: var(--radius-round); box-shadow: 0 0 0 var(--ds-line) var(--color-border-strong); }
.ds-site-footer__legal { margin: 0; }
@container scr (min-width: 720px) {
  .ds-site-footer__row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-5); }
  .ds-site-footer__row--top > nav { flex: 1 1 0; }
  .ds-site-footer__row--top .ds-site-footer__list { justify-content: center; }
}
/* == ds-lang == */
.ds-lang { position: relative; display: inline-block; }
.ds-lang__button { display: inline-grid; place-items: center; inline-size: var(--ds-touch); block-size: var(--ds-touch); padding: 0; border: var(--ds-line) solid var(--color-border-strong); border-radius: var(--radius-round); background: transparent; color: var(--color-text); cursor: pointer; }
.ds-lang__button:is(:hover, .is-hover), .ds-lang__button[aria-expanded="true"] { background: var(--color-accent-subtle); color: var(--color-accent); }
.ds-lang__list { position: absolute; inset-block-start: calc(100% + var(--space-2)); inset-inline-end: 0; z-index: 1; list-style: none; margin: 0; padding: var(--space-1); display: grid; gap: var(--space-1); min-inline-size: calc(var(--ds-touch) * 3);
  background: var(--color-surface-raised); border: var(--ds-line) solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.ds-lang__list[hidden] { display: none; }
.ds-lang__item { display: flex; align-items: center; min-block-size: var(--ds-touch); padding-inline: var(--space-4); border-radius: var(--radius-sm); color: var(--color-text); text-decoration: none; }
.ds-lang__item:is(:hover, .is-hover) { background: var(--color-surface-sunken); }
.ds-lang__item[aria-current="true"] { background: var(--color-accent-subtle); color: var(--color-accent); font-weight: var(--fw-text-strong); }
.ds-lang__item:is(:focus-visible, .is-focus) { outline-offset: calc(var(--ds-focus-offset) * -1); }

/* == ds-signup == */
.ds-signup { gap: var(--space-4); }
.ds-signup__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.ds-signup__title { margin: 0; font-family: var(--ff-h3); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-h3); hyphens: manual; overflow-wrap: break-word; }
.ds-signup__note { margin: 0; color: var(--color-muted); font-size: var(--fs-small); line-height: var(--lh-small); }

/* == ds-launcher == */
.ds-launcher { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-4); background: var(--color-surface-raised); color: var(--color-text);
  border: var(--ds-line) solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.ds-launcher__text { flex: 1 1 var(--w-text); min-inline-size: 0; margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); }

/* == ds-icon-tile == */
.ds-icon-tile { display: inline-grid; place-items: center; inline-size: var(--ds-touch); block-size: var(--ds-touch); border-radius: var(--radius-md); background: var(--color-accent-subtle); color: var(--color-accent); text-decoration: none; }
.ds-icon-tile:is(:hover, .is-hover) { background: var(--color-accent); color: var(--color-on-accent); }
.ds-icon-tile:is(:active, .is-active) { background: var(--color-accent-hover); color: var(--color-on-accent); }

/* == ds-theme-toggle == */
.ds-theme-toggle { display: inline-grid; place-items: center; inline-size: var(--ds-touch); block-size: var(--ds-touch); padding: 0; border: var(--ds-line) solid var(--color-border-strong); border-radius: var(--radius-round); background: var(--color-surface); color: var(--color-text); cursor: pointer; }
.ds-theme-toggle:is(:hover, .is-hover) { background: var(--color-accent-subtle); color: var(--color-accent); }
.ds-theme-toggle[aria-pressed="true"] { background: var(--color-surface-sunken); }
.ds-theme-toggle__moon { display: none; }
.ds-theme-toggle[aria-pressed="true"] .ds-theme-toggle__sun { display: none; }
.ds-theme-toggle[aria-pressed="true"] .ds-theme-toggle__moon { display: block; }

/* == ds-contacts == */
/* the contacts block: three equal cards (a feature icon, a short line, a button), one column on a phone and three from 720px; the first card (write to her) is the highlighted one:
   its card is raised, its button is the primary one */
.ds-contacts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: stretch; }
@container scr (min-width: 720px) { .ds-contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ds-contacts__item--lead { box-shadow: var(--shadow-md); }

/* == ds-skip-link == */
/* «Перейти к содержанию»: the first focusable element of the page, seen only while it has focus; it points at the id of <main> */
.ds-skip-link { position: absolute; inset-inline-start: var(--space-3); inset-block-start: var(--space-3); z-index: 10; display: inline-flex; align-items: center; min-block-size: var(--ds-touch); padding-inline: var(--space-5);
  border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); font-weight: var(--fw-text-strong); text-decoration: none; }
.ds-skip-link:not(:focus, .is-focus) { inline-size: var(--ds-line); block-size: var(--ds-line); min-block-size: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
