/* reha.uz storefront — white, minimal, modern (D27). No build step, no framework.
   Colours are tokens taken from logo B "Plus" (navy #1E4A72, coral #EE7F55). */

:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef2f7;
  --text: #0f1b1d;
  --muted: #5a6a6d;
  --line: #e1e7ef;
  --accent: #1e4a72;
  --accent-hover: #163a5b;
  --accent-soft: #e8eff7;
  --accent-ink: #ffffff;
  --warm: #fff3e4;
  --warm-ink: #9a4f08;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok-soft: #e7f6ec;
  --ok-ink: #17663a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 27 29 / 4%), 0 8px 24px rgb(15 27 29 / 6%);
  --container: 1200px;
  --gutter: 16px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgb(15 27 29 / 25%); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; }
.skip-link:focus {
  left: 8px; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px;
}
:focus-visible { outline: 3px solid rgb(11 122 117 / 45%); outline-offset: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--text); border-color: #cfd9da; }
.btn--light { background: #fff; color: var(--text); }
.btn--light:hover { background: var(--surface); color: var(--text); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- header */
.topbar { background: var(--surface); font-size: 14px; color: var(--muted); }
.topbar .container { display: flex; gap: 20px; align-items: center; min-height: 36px; }
.topbar a { text-decoration: none; }
.topbar__spacer { flex: 1; }
@media (max-width: 767px) { .topbar__hours, .topbar__address { display: none; } }

.header {
  position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 40px; width: auto; }
.nav { display: none; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500;
  font-size: 15px; color: var(--text); white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface); color: var(--text); }
.header__spacer { flex: 1; }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.lang a {
  text-decoration: none; padding: 6px 8px; border-radius: 8px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.lang a[aria-current="true"] { color: var(--text); background: var(--surface); }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; text-decoration: none; color: var(--text);
  border: 0; background: transparent; cursor: pointer;
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.badge-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px;
  font-weight: 700; line-height: 18px; text-align: center;
}
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; right: 0; top: 52px; width: min(320px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px;
}
.menu__panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.menu__panel a:hover { background: var(--surface); }
.menu__panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu { display: none; }
}
.search { display: none; }
@media (min-width: 1360px) {
  .search { display: block; }
  .search input {
    width: 200px; height: 40px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); padding: 0 16px; font-size: 14px;
  }
  .search input:focus { background: #fff; outline: none; border-color: var(--accent); }
}

/* ---------------------------------------------------------------- messages */
.messages { list-style: none; margin: 16px auto 0; padding: 0 var(--gutter); max-width: var(--container); }
.messages li { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 15px; }
.messages .success { background: var(--ok-soft); color: var(--ok-ink); }
.messages .error { background: var(--danger-soft); color: var(--danger); }

/* ---------------------------------------------------------------- sections */
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section--surface { background: var(--surface); }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.section__head a { font-weight: 600; text-decoration: none; color: var(--accent); white-space: nowrap; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 38em; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 40px 0 56px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 { max-width: 14em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__visual {
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%);
  border-radius: 28px; aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 32px;
  overflow: hidden;
}
.hero__visual img { min-width: 0; max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.hero__visual--set { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px; }
.hero__visual--set img { max-height: 220px; }
.hero__visual--set img:first-child { grid-row: span 2; max-height: 100%; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
}

.trust { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
.trust div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.trust svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.trust strong { color: var(--text); display: block; font-size: 15px; }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------------------------------------------------------------- paths */
.paths { display: grid; gap: 16px; }
.path {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px;
  border-radius: 24px; background: var(--surface); text-decoration: none; min-height: 200px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.path:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.path h3 { font-size: 24px; margin: 0; }
.path p { margin: 0; color: var(--muted); max-width: 30em; }
.path__more { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--accent); }
.path--children { background: var(--warm); }
.path--children .path__more { color: var(--warm-ink); }
.path--home { background: var(--accent-soft); }
.path__tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 70%);
}
.paths--secondary .path { min-height: 150px; background: #fff; border: 1px solid var(--line); }
.paths--secondary .path h3 { font-size: 20px; }
@media (min-width: 768px) {
  .paths { grid-template-columns: 1fr 1fr; }
  .path--primary { min-height: 280px; padding: 36px; }
}

/* ---------------------------------------------------------------- product grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.card__image {
  aspect-ratio: 1; border-radius: var(--radius); background: var(--surface); display: grid;
  place-items: center; padding: 18px; overflow: hidden; transition: background 0.2s;
}
.card__image img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.3s; }
.card:hover .card__image { background: var(--surface-2); }
.card:hover .card__image img { transform: scale(1.03); }
.card__body { padding: 12px 2px 0; display: grid; gap: 2px; }
.card__brand { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.card__name { font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.card:hover .card__name { color: var(--accent); }
.card__price { font-weight: 700; margin-top: 4px; }
.card__price small { font-weight: 500; color: var(--muted); font-size: 13px; }
.placeholder { color: #b6c3c5; width: 40%; height: auto; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--surface); color: var(--muted);
}
.chip--ok { background: var(--ok-soft); color: var(--ok-ink); }
.chip--pre { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------------- catalog */
.page-head { padding: 32px 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b6c3c5; }
.crumbs a { text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.filters a {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none;
  font-size: 15px; font-weight: 500;
}
.filters a[aria-current="page"] { background: var(--text); border-color: var(--text); color: #fff; }
.catalog-search { display: flex; gap: 8px; max-width: 480px; margin-top: 16px; }
.catalog-search input { flex: 1; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; align-items: center; }
.empty { padding: 48px 24px; text-align: center; background: var(--surface); border-radius: var(--radius); }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.input, .field input[type="text"], .field input[type="tel"], .field input[type="search"],
.field select, .field textarea, .catalog-search input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid #d3dcdd; background: #fff; font-size: 16px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .catalog-search input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(11 122 117 / 15%);
}
.field .help { font-size: 13px; color: var(--muted); }
.field .errorlist { list-style: none; margin: 0; padding: 0; color: var(--danger); font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }

/* ---------------------------------------------------------------- product page */
.product { display: grid; gap: 32px; padding-bottom: 24px; }
.product > * { min-width: 0; } /* long thumbnail rows scroll instead of widening the page */
@media (min-width: 960px) {
  .product { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
  .product__gallery { position: sticky; top: 92px; }
}
.gallery__main {
  aspect-ratio: 1; background: var(--surface); border-radius: 24px; display: grid;
  place-items: center; padding: 28px; overflow: hidden;
}
.gallery__main img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button {
  flex: none; width: 72px; height: 72px; padding: 6px; border-radius: 12px; border: 2px solid transparent;
  background: var(--surface); cursor: pointer;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product__brand { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.product h1 { font-size: clamp(26px, 3.2vw, 38px); margin: 6px 0 12px; }
.product__summary { color: var(--muted); font-size: 17px; }
.price-box { margin: 20px 0; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.price-box__price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.price-box__detail { font-size: 14px; color: var(--muted); margin-top: 2px; min-height: 1.5em; }
.price-box__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.step { margin: 24px 0; }
.step__title { font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.step__title small { font-weight: 500; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1px solid #d3dcdd; cursor: pointer; font-weight: 500; background: #fff; transition: border-color 0.15s;
}
.choice input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + span { outline: 3px solid rgb(11 122 117 / 45%); outline-offset: 2px; }
.choice input:disabled + span { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.sets { display: grid; gap: 10px; }
.set { position: relative; display: block; cursor: pointer; }
.set input { position: absolute; opacity: 0; pointer-events: none; }
.set__body {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid #d3dcdd;
  background: #fff; transition: border-color 0.15s;
}
.set input:checked + .set__body { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.set input:focus-visible + .set__body { outline: 3px solid rgb(11 122 117 / 45%); outline-offset: 2px; }
.set__name { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.set__desc { font-size: 14px; color: var(--muted); }
.set__items { font-size: 13px; color: var(--muted); }
.set__price { font-weight: 700; font-size: 15px; }

.config { border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; }
.config > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.config > summary::-webkit-details-marker { display: none; }
.config > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.config[open] > summary::after { content: "−"; }
.config__body { padding: 0 18px 12px; }
.group { padding: 12px 0; border-top: 1px solid var(--line); }
.group__name { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.group__name small { color: var(--muted); font-weight: 500; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 15px; cursor: pointer; }
.option input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.option__name { flex: 1; }
.option__price { font-weight: 600; white-space: nowrap; font-size: 14px; }
.option[hidden], .group[hidden] { display: none; }
.included { font-size: 14px; color: var(--muted); margin: 12px 0 0; padding-left: 18px; }

.buy { display: flex; gap: 10px; margin-top: 24px; }
.qty { width: 84px; flex: none; min-height: 48px; border-radius: 999px; border: 1px solid #d3dcdd; text-align: center; font-size: 16px; }
.help-box { margin-top: 20px; padding: 18px; border-radius: var(--radius); border: 1px dashed #c9d5d6; font-size: 15px; }
.help-box__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.prose { max-width: 46em; }
.prose p, .prose li { color: #26373a; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }

/* ---------------------------------------------------------------- cart & checkout */
.cart { display: grid; gap: 32px; }
@media (min-width: 960px) { .cart { grid-template-columns: 1fr 360px; align-items: start; } }
.cart-line { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line__image { width: 88px; height: 88px; border-radius: 12px; background: var(--surface); padding: 8px; display: grid; place-items: center; }
.cart-line__image img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-line__name { font-weight: 600; text-decoration: none; }
.cart-line__meta { font-size: 14px; color: var(--muted); margin: 2px 0 0; padding: 0; list-style: none; }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.cart-line__row form { display: flex; gap: 8px; align-items: center; }
.cart-line__row select { min-height: 40px; border-radius: 10px; border: 1px solid #d3dcdd; padding: 0 10px; background: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.summary { padding: 24px; border-radius: var(--radius); background: var(--surface); position: sticky; top: 92px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.summary__total { font-size: 22px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.summary .small { margin: 12px 0 16px; }
.summary__lines { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; display: grid; gap: 6px; }
.summary__lines li { display: flex; justify-content: space-between; gap: 12px; }

.done { max-width: 620px; margin: 0 auto; text-align: center; padding: 56px 0 80px; }
.done__icon { width: 64px; height: 64px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); display: grid; place-items: center; margin: 0 auto 20px; }
.done__icon svg { width: 32px; height: 32px; }
.done__number { display: inline-block; font-weight: 700; font-size: 20px; padding: 8px 16px; background: var(--surface); border-radius: 12px; margin: 8px 0 20px; }

/* ---------------------------------------------------------------- blocks */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { list-style: none; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 16px;
}
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
.steps ol, ol.steps { padding: 0; margin: 0; }

.partners { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; justify-content: center; }
.partners span { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -0.01em; color: #8a999b; }

.showroom { display: grid; gap: 24px; padding: 32px; border-radius: 28px; background: var(--text); color: #fff; }
.showroom a { color: #fff; }
.showroom .muted { color: #a9b8ba; }
.showroom h2 { color: #fff; }
.showroom dl { margin: 0; display: grid; gap: 14px; }
.showroom dt { font-size: 13px; color: #a9b8ba; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.showroom dd { margin: 2px 0 0; font-size: 17px; }
.showroom__actions { display: flex; flex-wrap: wrap; gap: 10px; align-self: end; }
@media (min-width: 900px) { .showroom { grid-template-columns: 1.2fr 1fr; padding: 48px; gap: 40px; } }

.contact-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { padding: 24px; border-radius: 20px; background: var(--surface); }
.contact-card h3 { font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.contact-card p { font-size: 18px; font-weight: 600; margin: 0; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--surface); margin-top: 80px; padding: 56px 0 32px; font-size: 15px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer__about p { color: var(--muted); max-width: 26em; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 999px; background: #fff; display: grid; place-items: center; }
.social svg { width: 18px; height: 18px; }

/* Guides (D29) */
.guides { display: grid; gap: 16px; }
@media (min-width: 768px) { .guides { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.guide { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--bg); min-width: 0; transition: border-color 0.2s, background 0.2s; }
.guide:hover { border-color: var(--accent); background: var(--surface); }
.guide__date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.guide__title { font-weight: 700; font-size: 18px; line-height: 1.3; text-wrap: balance; overflow-wrap: anywhere; }
.guide__summary { color: var(--muted); font-size: 15px; }
.guide__more { margin-top: auto; padding-top: 4px; font-weight: 600; color: var(--accent); }
.article__head { max-width: 46em; }
.article__head h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.article__layout { display: grid; gap: 32px; margin-top: 24px; }
.article__layout > * { min-width: 0; }
@media (min-width: 1024px) { .article__layout { grid-template-columns: minmax(0, 46em) 300px; justify-content: space-between; } .article__aside { position: sticky; top: 92px; align-self: start; } }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.3em 0; }
.article__note { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
