/* EMG Som e Imagem — estilos partilhados */

/* Fontes alojadas no próprio site (SIL Open Font License, ver fonts/) */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/newsreader-latin-opsz-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('../fonts/newsreader-latin-ext-opsz-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url('../fonts/newsreader-latin-opsz-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/archivo-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/archivo-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --sand: #F1EFEA;
  --placeholder: #EFEDE7;
  --ink: #13171C;
  --text: #3D434A;
  --muted: #5B6168;
  --muted-2: #6B7178;
  --line: #E2DFD8;
  --line-soft: #ECE9E2;
  --line-strong: #CFCBC1;
  --orange: #EC6B1F;
  --orange-text: #AF4F17;
  --dark-line: #2A3038;
  --dark-text: #C9CDD2;
  --dark-muted: #9AA0A6;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Archivo', system-ui, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #B04F17; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 112px; padding-bottom: 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografia */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-text); }
.eyebrow--muted { color: var(--muted); }
.h1 { margin: 22px 0 0; font-family: var(--serif); font-size: clamp(42px, 5.6vw, 76px); line-height: 1.05; font-weight: 500; letter-spacing: -0.015em; }
.h2 { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); line-height: 1.1; font-weight: 500; }
.h3 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.lead { margin: 28px 0 0; max-width: 540px; font-size: 19px; color: var(--text); }
.text { color: var(--text); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { margin: 16px 0 0; color: var(--text); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head--split > div { max-width: 720px; }

/* Botões e links */
.btn { text-decoration: none; font-weight: 600; padding: 16px 28px; border-radius: 2px; min-height: 52px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid transparent; font-family: inherit; font-size: inherit; cursor: pointer; }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: #F07A33; color: var(--ink); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--outline { border-color: var(--ink); color: var(--ink); font-weight: 500; background: transparent; }
.btn--outline:hover { background: var(--ink); color: #FFFFFF; }
.btn--dark { background: var(--ink); color: #FFFFFF; }
.btn--dark:hover { background: #262C33; color: #FFFFFF; }
.btn svg { flex: none; }
.link-arrow { text-decoration: none; color: var(--orange-text); font-weight: 600; border-bottom: 1px solid var(--orange); padding-bottom: 4px; min-height: 44px; display: inline-flex; align-items: flex-end; }

/* Barra superior */
.topbar { background: var(--ink); color: #FFFFFF; font-size: 13px; border-bottom: 3px solid var(--orange); }
.topbar .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.topbar a { color: #FFFFFF; text-decoration: none; }
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 6px 24px; }

.topbar__tel a { white-space: nowrap; }
.topbar .call-cost { font-size: 11px; color: var(--dark-muted); }
.call-cost { font-size: 13px; color: var(--muted); }

/* Navegação */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 249, 246, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.nav { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand__divider { width: 1px; height: 28px; background: #C9C5BC; }
.brand__tag { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 32px; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--orange-text); }
.nav__cta { background: var(--orange); color: var(--ink); font-weight: 600; padding: 12px 22px; border-radius: 2px; min-height: 44px; display: inline-flex; align-items: center; }
.nav__cta:hover { background: #F07A33; color: var(--ink); }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.lang-switch a { padding: 6px 7px; min-height: 32px; display: inline-flex; align-items: center; color: var(--muted); border-radius: 2px; }
.lang-switch a:hover { color: var(--ink); background: var(--sand); }
.lang-switch a[aria-current="true"] { color: var(--orange-text); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 2px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

@media (max-width: 1200px) {
  .nav__toggle { display: inline-flex; }
  .nav { flex-wrap: wrap; }
  .nav__links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-top: 1px solid var(--line-soft); }
  .nav__links .nav__cta { margin-top: 12px; justify-content: center; border-top: 0; }
  .nav__links .lang-switch { padding-top: 8px; gap: 8px; border-top: 1px solid var(--line-soft); }
  .nav__links .lang-switch a { border-top: 0; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .brand__divider, .brand__tag { display: none; }
}

/* Hero */
.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__copy { flex: 1 1 520px; min-width: 0; }
.hero__media { flex: 1 1 440px; min-width: 0; margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; max-height: 600px; object-fit: cover; border: 1px solid var(--line); background: var(--placeholder); }
.hero__media figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Números */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { padding: 36px 24px; text-align: center; }
.stat__value { font-family: var(--serif); font-size: 48px; font-weight: 500; line-height: 1; color: var(--orange-text); }
.stat__label { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Clientes */
.clients { padding-top: 64px; padding-bottom: 16px; text-align: center; }
.clients .eyebrow { margin-bottom: 28px; }
.clients__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 48px; align-items: center; }
.clients__list li { font-family: var(--serif); font-size: clamp(20px, 2vw, 25px); font-weight: 500; color: var(--muted-2); }

/* Soluções */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; min-height: 290px; }
.card .h3 { margin-top: 6px; }
.card p { margin: 0; color: var(--text); }
.card__meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }

/* Projetos (grelha de destaque) */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 40px 32px; }
.project { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 16px; }
.project:hover { color: var(--ink); }
.project__img { overflow: hidden; border: 1px solid var(--line); background: var(--placeholder); aspect-ratio: 3 / 2; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project:hover .project__img img { transform: scale(1.03); }
.project__tag { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-text); }
.project h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.project p { margin: 0; color: var(--text); max-width: 540px; }

/* Marcas */
.band { margin-top: 112px; background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band > .wrap { padding-top: 96px; padding-bottom: 96px; }
.brand-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: #DDD9D0; border: 1px solid #DDD9D0; }
.brand-grid li { background: var(--surface); height: 100px; display: flex; align-items: center; justify-content: center; padding: 20px 28px; }
.brand-grid img { max-width: 100%; max-height: 40px; }
.brand-grid img.is-square { max-height: 64px; }
.brand-grid img { width: auto; height: auto; object-fit: contain; }

/* Sobre */
.about { display: flex; flex-wrap: wrap; gap: 64px; }
.about > div { flex: 1 1 440px; min-width: 0; }
.about p { margin: 28px 0 18px; color: var(--text); font-size: 18px; }
.quote { margin: 32px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--orange); font-family: var(--serif); font-size: 26px; font-style: italic; line-height: 1.35; color: var(--ink); }
/* A coluna do ano ajusta-se à palavra mais comprida (ex.: "Aujourd'hui") e fica igual nas três linhas */
.timeline { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); column-gap: 24px; align-content: start; }
.timeline__item { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding: 28px 0; border-top: 1px solid var(--line); }
@supports not (grid-template-columns: subgrid) {
  .timeline__item { grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); column-gap: 24px; }
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__year { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--orange-text); }
.timeline__title { font-size: 18px; font-weight: 600; }
.timeline__text { color: var(--muted); }
@media (max-width: 480px) {
  .timeline__year { font-size: 24px; }
}
.presence { margin-top: 88px; padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.presence > div:first-child { flex: 1 1 280px; }
.presence__title { margin-top: 12px; font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.15; }
.chips { flex: 2 1 480px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li, .chip { border: 1px solid #D6D2C8; padding: 9px 16px; border-radius: 2px; font-size: 15px; color: var(--text); background: transparent; }

/* Atlas da presença internacional */
.presence--atlas { display: block; }
.presence__head { max-width: 640px; }
.atlas { position: relative; margin-top: 32px; }
.atlas__map { display: block; width: 100%; height: auto; }
.atlas__land { fill: #E7E3DA; stroke: var(--surface); stroke-width: 0.6; }
.atlas__country { fill: #F4C3A1; stroke: var(--surface); stroke-width: 0.6; transition: fill 0.2s ease; }
.atlas__country.is-active { fill: var(--orange); }
.atlas__pin { cursor: pointer; outline: none; }
.atlas__dot { r: 4px; fill: var(--orange-text); stroke: var(--surface); stroke-width: 1.5; transition: r 0.15s ease; }
.atlas__pin--hq .atlas__dot { r: 5px; fill: var(--ink); }
.atlas__ring { r: 10px; fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: 0.45; }
.atlas__pin:hover .atlas__dot, .atlas__pin.is-active .atlas__dot { r: 7px; }
.atlas__pin:focus-visible .atlas__dot { r: 7px; stroke: var(--ink); stroke-width: 2; }
.atlas__tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 14px)); background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 500; line-height: 1.3; padding: 7px 11px; border-radius: 2px; white-space: nowrap; pointer-events: none; }
.atlas__tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.atlas__legend { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px 40px; }
.atlas__group { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.atlas__legend .chips { flex: none; gap: 8px; }
.atlas__legend .chips li { font-size: 14px; padding: 6px 12px; cursor: default; transition: border-color 0.15s ease, background-color 0.15s ease; }
.atlas__legend .chips li.is-active { border-color: var(--orange); background: #FFF3EA; color: var(--ink); }
@media (max-width: 640px) {
  .atlas { margin-top: 20px; }
  .atlas__dot { r: 5px; }
  .atlas__pin--hq .atlas__dot { r: 6px; }
  .atlas__ring { r: 12px; }
  .atlas__pin:hover .atlas__dot, .atlas__pin.is-active .atlas__dot { r: 8px; }
}

/* Faixa laranja (RMA) */
.callout { background: var(--orange); color: var(--ink); padding: clamp(36px, 5vw, 60px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.callout > div { max-width: 700px; }
.callout .eyebrow { color: var(--ink); opacity: 0.85; }
.callout h2 { margin: 12px 0; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 500; }
.callout p { margin: 0; font-size: 18px; opacity: 0.92; }

/* Contactos e formulários */
.contact { padding-top: 112px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px; }
.contact > div { flex: 1 1 380px; min-width: 0; }
.contact .h2 { margin-bottom: 36px; }
.contact-list { display: flex; flex-direction: column; gap: 24px; font-size: 17px; }
.contact-list a { text-decoration: none; }
.label-sm { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.form { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; align-content: start; }
.contact .form { flex: 1 1 500px; min-width: 0; }
.form fieldset { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.form legend { padding: 0; margin-bottom: 4px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.form fieldset + fieldset { padding-top: 28px; border-top: 1px solid var(--line-soft); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.field--full { grid-column: 1 / -1; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea { min-height: 50px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink); padding: 0 14px; font: inherit; font-size: 16px; font-weight: 400; border-radius: 2px; width: 100%; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:not([type=radio]):not([type=checkbox]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(236, 107, 31, 0.18); }
.field small { font-weight: 400; color: var(--muted); }
.req { color: var(--orange-text); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 400; color: var(--ink); }
.radio-row label, .check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 400; color: var(--text); min-height: 28px; }
.radio-row input, .check input { accent-color: var(--orange); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form__footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { font-size: 15px; color: var(--text); }
.form__status.is-ok { color: #2F6B3A; }
.form__status.is-error { color: #A3301B; }

/* Rodapé */
.footer { background: var(--ink); color: var(--dark-text); }
.footer a { color: var(--dark-text); text-decoration: none; }
.footer a:hover { color: #FFFFFF; }
.footer__top { padding-top: 56px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__brand { font-family: var(--serif); font-size: 36px; font-weight: 600; color: #FFFFFF; letter-spacing: 0.02em; line-height: 1.1; }
.footer__tag { margin-top: 4px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dark-muted); }
.footer__address { margin-top: 18px; font-size: 14px; color: var(--dark-muted); font-style: normal; line-height: 1.6; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 15px; align-items: flex-start; }
.footer__bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--dark-muted); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer__legal a { color: var(--dark-muted); }
.complaints { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--dark-line); padding: 6px 12px; border-radius: 2px; }

/* Páginas internas */
.page-head { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 40px; }
.case:first-child { border-top: 1px solid var(--line); }
.page-head .h1 { font-size: clamp(38px, 5vw, 64px); }
.page-head .lead { max-width: 680px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 32px; }
.filters button { font: inherit; cursor: pointer; min-height: 44px; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

.case { padding: 56px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; scroll-margin-top: 100px; }
.case[hidden] { display: none; }
.case__info h2 { margin: 12px 0 12px; font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.15; font-weight: 500; }
.case__info p { margin: 0; color: var(--text); }
.case__gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-content: start; }
.case__gallery button { padding: 0; border: 1px solid var(--line); background: var(--placeholder); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; grid-column: span 3; }
.case__gallery button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.case__gallery[data-count="1"] button:first-child { aspect-ratio: 3 / 2; }
.case__gallery[data-count="2"] button { grid-column: span 3; aspect-ratio: 4 / 3; }
.case__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case__gallery button:hover img { transform: scale(1.03); }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; gap: 24px; }
}

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(19, 23, 28, 0.94); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1600px, 100%); max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25); color: #FFFFFF; width: 48px; height: 48px; border-radius: 2px; cursor: pointer; font-size: 22px; line-height: 1; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.brand-card { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.brand-card[hidden] { display: none; }
.brand-card__logo { margin: 0 0 14px; height: 64px; display: flex; align-items: center; }
.brand-card__logo img { max-width: 70%; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.brand-card__logo img.is-square { max-height: 64px; }
.brand-card p { margin: 0; color: var(--text); font-size: 16px; }
.brand-card__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-text); }
.brand-card__link { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; color: var(--orange-text); text-decoration: none; }

.layout-aside { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 56px; padding-bottom: 96px; }
.layout-aside > aside { flex: 1 1 300px; min-width: 0; }
.layout-aside > form, .layout-aside > article { flex: 3 1 560px; min-width: 0; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 16px 0 16px 48px; border-top: 1px solid var(--line); color: var(--text); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 14px; font-family: var(--serif); font-size: 26px; color: var(--orange-text); }
.note { margin-top: 24px; padding: 20px; background: var(--sand); border-left: 2px solid var(--orange); font-size: 15px; color: var(--text); }

.prose { max-width: 760px; }
.prose h2 { margin: 48px 0 12px; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; }
.draft-banner { padding: 16px 20px; border: 1px dashed var(--orange); background: #FFF6EF; font-size: 15px; color: var(--text); margin-bottom: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
