/* WebMarketiA premium — source inventory: docs/REFONTE-PREMIUM.md.
   Palette/pastels/inversion: TurtleWebia. Layered edges and gold buttons:
   MasterSkillia catalogue.css and the supplied WordPress premium panels. */
:root {
  color-scheme: light;
  --bg: #fcfbfe;
  --surface: #fff;
  --soft: #f4f0ff;
  --ink: #211b30;
  --muted: #5e566d;
  --accent: #4b2aad;
  --accent-deep: #381f82;
  --line: #d6cceb;
  --button-gold: #c99f37;
  --button-bg: #4b2aad;
  --button-fg: #fff;
  --button-hover-bg: #381f82;
  --button-hover-fg: #fff;
  --button-shadow: 0 5px 14px rgb(75 42 173 / 16%);
  --button-radius: 25px;
  --control-height: 44px;
  --radius-panel: 24px;
  --type-h1: clamp(2.15rem, 3.8vw, 3.75rem);
  --type-h2: clamp(1.7rem, 2.7vw, 2.55rem);
  --type-h3: clamp(1.15rem, 1.5vw, 1.3rem);
  --button-silver: #ececec;
  --button-ink: #21190a;
  --pastel: #f1fbf6;
  --header-bg: #4b2aad;
  --header-ink: #fff;
  --header-accent: #f5d989;
  --card-edge: rgb(75 42 173 / 55%);
  --card-shadow: 0 0 0 2px rgb(106 141 255 / 16%), 0 12px 30px rgb(75 42 173 / 22%);
  --card-shadow-hover: 0 0 0 2px #4b2aad, 0 12.8px 28.8px rgb(75 42 173 / 22%);
  --card-hover: #4b2aad;
  --card-hover-ink: #f4f0fa;
  --shadow: 0 12px 32px rgb(75 42 173 / 8%);
  --hero-bg: radial-gradient(ellipse at 19% 42%, #e1d9ff, transparent 42%), linear-gradient(130deg, #efebff, #fcfbfe 75%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-padding-top: 115px;
  scroll-behavior: smooth;
}
html[data-theme="night"] {
  color-scheme: dark;
  --bg: #101010;
  --surface: #171717;
  --soft: #22211f;
  --ink: #ececec;
  --muted: #c6c1b8;
  --accent: #d9b453;
  --accent-deep: #e5c67b;
  --line: #3a3730;
  --pastel: #1d1d1d;
  --button-bg: #c99f37;
  --button-fg: #21190a;
  --button-hover-bg: #e1bd63;
  --button-hover-fg: #21190a;
  --button-shadow: 0 5px 14px rgb(0 0 0 / 24%);
  --header-bg: #191919;
  --header-ink: #ececec;
  --header-accent: #d9b453;
  --card-edge: rgb(201 159 55 / 65%);
  --card-shadow: 0 0 0 2px rgb(201 159 55 / 18%), 0 14px 30px rgb(0 0 0 / 65%);
  --card-shadow-hover: 0 0 0 2px rgb(201 159 55 / 32%), 0 0 18px rgb(201 159 55 / 14%), 0 16px 32px rgb(0 0 0 / 45%);
  --card-hover: #242424;
  --card-hover-ink: #ececec;
  --shadow: 0 14px 36px rgb(0 0 0 / 28%);
  --hero-bg: radial-gradient(ellipse at 90% 10%, rgb(201 159 55 / 6%), transparent 55%), linear-gradient(125deg, #191919, #242321);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}
body {
  background: var(--bg);
  color: var(--ink);
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
}
h1 {
  font-size: var(--type-h1);
  font-weight: 650;
}
h2 {
  font-size: var(--type-h2);
  font-weight: 650;
}
h3 {
  font-size: var(--type-h3);
  font-weight: 550;
  letter-spacing: -0.025em;
}
p + p {
  margin-top: 1rem;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  background: var(--surface);
  padding: 1rem;
  transform: translateY(-120%);
}
.skip:focus {
  transform: none;
}
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: 1px solid rgb(255 255 255 / 15%);
}
.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: block;
  flex: 0 1 240px;
  width: 240px;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 1;
  text-decoration: none;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
}
.brand img:not([src]) { display: none; }
.footer .brand { width: 270px; }
.nav {
  display: flex;
  gap: 25px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--header-ink);
}
.nav a:hover {
  color: var(--header-accent);
}
.tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tools select {
  max-width: 125px;
  background: transparent;
  color: var(--header-ink);
  border: 0;
  font-size: 0.85rem;
  padding: 10px 3px;
}
.theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--control-height);
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 40%);
  background: transparent;
  color: var(--header-ink);
  border-radius: 10px;
  font-size: .85rem;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.theme:hover { background: rgb(255 255 255 / 8%); border-color: var(--header-accent); }
.theme-icon { color: var(--header-accent); font-size: 1.15rem; line-height: 1; }
/* Shared actions: same geometry in navigation, cards, forms and page panels. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  min-height: var(--control-height);
  border: 1px solid var(--button-bg);
  border-radius: var(--button-radius);
  background: var(--button-bg);
  color: var(--button-fg);
  box-shadow: var(--button-shadow);
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.button:hover, .button:focus-visible {
  background: var(--button-hover-bg);
  color: var(--button-hover-fg);
  border-color: var(--button-hover-bg);
  box-shadow: var(--shadow);
}
.button.secondary {
  background: transparent;
  color: var(--accent-deep);
  border-color: var(--line);
  box-shadow: none;
}
.button.secondary:hover, .button.secondary:focus-visible {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent-deep);
}
.button.discreet {
  padding: 8px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--accent-deep);
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.button.discreet:hover, .button.discreet:focus-visible { color: var(--accent); text-decoration-thickness: 2px; }
.button.small { padding-inline: 16px; font-size: .85rem; }
html[data-theme="day"] .header .button { --button-bg: #fff; --button-fg: #4b2aad; --button-hover-bg: #f4f0ff; --button-hover-fg: #381f82; }
html[data-theme="night"] .theme { background: #101010; border-color: var(--line); }
html[data-theme="night"] .theme:hover { background: #242424; border-color: var(--accent); }
.hero {
  padding: clamp(24px, 2.4vw, 34px);
  margin-block: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--hero-bg);
  overflow: hidden;
  position: relative;
}
.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-top:before {
  content: "";
  height: 1px;
  width: 34px;
  background: var(--accent);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.hero h1 {
  max-width: 740px;
  font-size: var(--type-h1);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lead {
  max-width: 550px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-foot {
  display: flex;
  gap: 25px;
  margin-top: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
}
.hero-foot span:before {
  content: "↗";
  color: var(--accent);
  margin-right: 8px;
}
.hero .actions { margin-top: 20px; }
.art { position: relative; min-width: 0; padding-bottom: 24px; max-width: 430px; width: 100%; justify-self: end; }
.illustration {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--soft);
  aspect-ratio: 3 / 2;
}
.illustration img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art .illustration { border-radius: 24px; box-shadow: 0 18px 46px rgb(47 23 91 / 15%); }
.art-caption { position: absolute; bottom: 0; width: 100%; text-align: center; font-size: .75rem; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.section {
  padding: 44px 0;
}
.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}
.section-heading h2 {
  max-width: 660px;
}
.section-heading > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.96rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
/* Soft editorial cards; richer expertise variants retain source layered shadows. */
.card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card p { margin-top: 14px; color: var(--muted); font-size: .96rem; }
.card .arrow { margin-top: auto; padding-top: 22px; align-self: end; color: var(--accent); font-size: 24px; }
.card-content { display: flex; flex: 1; flex-direction: column; padding: 18px 14px 14px; gap: 12px; }
.card-content p { margin-top: 0; }
.card-explore { display: block; margin-top: auto; padding-top: 12px; color: var(--accent-deep); font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.expertise-card { padding: 10px; border: 2px solid var(--card-edge); border-radius: 22px; box-shadow: var(--card-shadow); transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.expertise-card h3 { font-size: var(--type-h3); line-height: 1.25; }
.expertise-card .illustration img, .editorial-card .illustration img { transition: transform .4s ease; }
.expertise-card:focus-visible { background: var(--card-hover); color: var(--card-hover-ink); box-shadow: var(--card-shadow-hover); transform: scale(1.02); z-index: 1; }
.expertise-card:focus-visible p { color: inherit; }
html[data-theme="day"] .expertise-card:focus-visible .card-explore { color: #fff; }
html[data-theme="night"] .expertise-card:focus-visible .card-explore { color: var(--accent); }
.editorial-card { padding: 10px; }
.editorial-card h3 { font-size: 1.4rem; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--accent); transform: translateY(-3px); }
  .expertise-card:hover { background: var(--card-hover); color: var(--card-hover-ink); box-shadow: var(--card-shadow-hover); transform: scale(1.02); z-index: 1; }
  .expertise-card:hover p { color: inherit; }
  html[data-theme="day"] .expertise-card:hover .card-explore { color: #fff; }
  html[data-theme="night"] .expertise-card:hover .card-explore { color: var(--accent); }
  .expertise-card:hover .illustration img, .editorial-card:hover .illustration img { transform: scale(1.03); }
}
.icon {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  border-radius: 12px;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.strip h3 {
  margin-bottom: 12px;
}
.strip p {
  color: var(--muted);
  font-size: 0.94rem;
}
.evening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
  background: var(--soft);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.evening p {
  color: var(--muted);
  margin-top: 22px;
}
.support-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.support-option { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.support-icon { display: block; color: var(--accent); font-size: 1.4rem; margin-bottom: 10px; }
.support-option h3 { font-size: 1.05rem; line-height: 1.3; }
.support-option p { font-size: .9rem; line-height: 1.6; margin-top: 12px; }
.evening h2 { font-size: clamp(1.6rem, 2.3vw, 2.2rem); }
.cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
/* TurtleWebia use-case panels: alternating 75% cards, pastel surfaces. */
.case {
  display: grid;
  grid-template-columns: minmax(150px, .6fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: center;
  width: 85%;
  padding: 28px;
  border: 1px solid var(--card-edge);
  border-radius: 24px;
  background: var(--pastel);
  box-shadow: var(--shadow);
}
.case:nth-child(even) { justify-self: end; background: var(--soft); }
.case h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.case .top-link { margin-bottom: 0; }
.case p {
  margin-top: 16px;
  color: var(--muted);
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.step b {
  display: block;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 25px;
}
.final-cta {
  padding: 48px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--hero-bg);
  border-color: var(--card-edge);
  box-shadow: var(--card-shadow);
}
.final-cta h2 {
  max-width: 780px;
  margin: auto;
}
.final-cta p {
  color: var(--muted);
  margin-top: 18px;
}
.final-cta .actions {
  justify-content: center;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 45px 0 26px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: start;
}
.footer p {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 12px;
  max-width: 350px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 0.85rem;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
}
.page-hero {
  padding: 42px;
  margin-block: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--hero-bg);
}
.page-hero h1 {
  font-size: var(--type-h1);
  max-width: 1000px;
}
.page-hero .lead {
  color: var(--muted);
  max-width: 780px;
  margin-top: 24px;
  font-size: 1.08rem;
}
.breadcrumb {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.reading {
  max-width: 780px;
}
.reading h2 {
  font-size: 1.75rem;
  margin: 40px 0 18px;
}
.reading h3 {
  margin: 24px 0 12px;
}
.reading p,
.reading li {
  color: var(--muted);
}
.reading ul {
  padding-left: 22px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
  align-items: start;
}
.aside {
  position: sticky;
  top: 122px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.aside p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 16px 0;
}
.aside .button {
  width: 100%;
  margin-top: 10px;
}
.notice {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--soft);
  border-radius: 8px;
  margin: 20px 0;
  color: var(--muted);
}
.notice a {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
}
.service-grid .card {
  padding: 24px;
}
.service-grid h3 {
  font-size: 1.12rem;
}
.service-grid p {
  font-size: 0.85rem;
}
.faq {
  margin-top: 45px;
}
.faq details {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 550;
}
.faq p {
  margin-top: 14px;
}
.form-shell {
  max-width: 880px;
  margin: auto;
}
.form-panel {
  padding: 38px;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.form-panel h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}
.form-panel > p {
  color: var(--muted);
  margin-bottom: 25px;
}
.progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  margin: 14px 0 30px;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.field label,
legend {
  font-weight: 550;
  font-size: 0.9rem;
}
input,
select,
textarea {
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 8px;
  width: 100%;
  min-height: 48px;
}
textarea {
  min-height: 115px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: var(--bg);
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--soft);
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.fields-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  margin-bottom: 10px;
}
.form-controls {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 28px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.error {
  color: #d44a56;
  font-weight: 550;
  margin: 15px 0;
}
.hint {
  font-size: 0.82rem;
  color: var(--muted);
}
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
dl.review {
  margin: 20px 0;
}
dl.review dt {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 20px;
}
dl.review dd {
  margin: 3px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-table td,
.admin-table th {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow-x: auto;
}
.search-row {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.top-link {
  display: block;
  margin: 25px 0;
  font-size: 0.85rem;
  color: var(--accent);
}
.status {
  font-size: 0.8rem;
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
}
.article-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.translation-note {
  font-size: 0.8rem;
  margin: 22px 0 0;
  color: var(--muted);
}

.section-method { margin-block: 22px; background: var(--soft); border-block: 1px solid var(--line); }
.section-method .strip > div { padding-left: 20px; border-left: 2px solid var(--accent); }
.evening { background: var(--hero-bg); border: 2px solid var(--card-edge); box-shadow: var(--card-shadow); }

.approach-visual { padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--soft); }
.approach-visual .illustration { margin-bottom: 20px; }
.approach-visual h3, .approach-visual .eyebrow { margin-inline: 12px; }
.page-hero-illustrated { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.page-hero-illustrated h1 { font-size: var(--type-h1); }
.page-hero-illustrated .illustration { border: 1px solid var(--line); box-shadow: var(--shadow); }
.section > .shell.reading, .detail-grid > article.reading { padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.reading > :first-child { margin-top: 0; }
.reading p, .reading li { line-height: 1.75; }
.article-illustration { margin-top: 28px; max-height: 340px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 6px rgb(75 42 173 / 20%); }
html[data-theme="night"] :is(input, select, textarea):focus-visible { box-shadow: 0 0 6px rgb(201 159 55 / 45%); }
.tools select option { background: var(--surface); color: var(--ink); }
.header :focus-visible { outline-color: var(--header-accent); }
html[data-theme="night"] .illustration img { filter: brightness(.88) saturate(1.08); }

@media (max-width: 1100px) {
  .nav {
    gap: 16px;
  }
  .nav a {
    font-size: 0.8rem;
  }
  .tools .small {
    display: none;
  }
  .hero-grid {
    gap: 20px;
  }
  .shell {
    width: calc(100% - 56px);
  }
}
@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 14px;
    min-height: 90px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .tools {
    margin-left: auto;
  }
  .hero {
    padding: 28px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .art {
    max-width: 500px;
    width: 100%;
    margin: auto;
  }
  .hero-top { margin-bottom: 16px; }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section {
    padding: 40px 0;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .section-heading > p {
    max-width: 600px;
  }
  .evening { padding: 26px; gap: 22px; grid-template-columns: 1fr; }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .aside {
    position: static;
  }
  .footer-main {
    flex-direction: column;
  }
  .hero-foot {
    gap: 16px;
    flex-wrap: wrap;
  }
  .form-panel {
    padding: 24px;
  }
}
@media (max-width: 520px) {
  .shell {
    width: calc(100% - 36px);
  }
  h1 {
    font-size: 2.8rem;
  }
  .tools select {
    max-width: 90px;
  }
  .grid,
  .strip,
  .cases,
  .evening,
  .choices,
  .fields-two {
    grid-template-columns: 1fr;
  }
  .card { padding: 22px; }
  .expertise-card, .editorial-card { padding: 8px; }
  .card .icon {
    margin-bottom: 25px;
  }
  .hero-foot {
    font-size: 0.72rem;
  }
  .hero .actions .button {
    width: 100%;
  }
  .art {
  }
  .section-heading h2 { font-size: var(--type-h2); }
  .support-options { grid-template-columns: 1fr; }
  .final-cta {
    padding: 32px 22px;
  }
  .footer-bottom {
    gap: 15px;
    flex-wrap: wrap;
  }
  .form-panel {
    padding: 22px 18px;
  }
  .form-controls .button {
    padding: 12px 18px;
  }
  .page-hero h1 { font-size: var(--type-h1); }
  .admin-table td,
  .admin-table th {
    padding: 10px;
  }
  .tools {
    gap: 4px;
  }
  .theme { padding-inline: 10px; font-size: .8rem; }
}
@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(2.15rem, 4.4vw, 3.25rem); }
  .page-hero-illustrated { gap: 22px; }
}
@media (max-width: 800px) {
  .hero { margin-block: 18px 20px; }
  .page-hero { padding: 28px; }
  .page-hero-illustrated { grid-template-columns: 1fr; }
  .page-hero-illustrated .illustration { max-width: 560px; width: 100%; justify-self: center; }
  .case { width: 94%; grid-template-columns: minmax(120px, .6fr) minmax(0, 1.4fr); padding: 22px; gap: 20px; }
  .section-heading { margin-bottom: 26px; }
}
@media (max-width: 520px) {
  .hero { padding: 24px 20px; border-radius: 24px; }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 2.8rem); }
  .hero .lead { font-size: 1rem; margin-top: 20px; }
  .hero-foot { margin-top: 24px; font-size: .85rem; gap: 8px; }
  .hero-top { letter-spacing: .08em; font-size: .75rem; }
  .section { padding-block: 32px; }
  .case { width: 100%; grid-template-columns: 1fr; }
  .case .illustration { max-height: 220px; }
  .page-hero { padding: 24px 20px; margin-block: 18px; }
  .section > .shell.reading { width: calc(100% - 36px); }
  .detail-grid > article.reading { padding: 24px 20px; }
  .form-shell.page-hero { width: calc(100% - 36px); }
  .section-heading h2 { font-size: 2rem; }
  .progress-label { gap: 12px; }
  .evening .time { font-size: 4rem; padding: 24px 12px; }
  .card-content { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  .expertise-card, .editorial-card, .card, .illustration img { transform: none !important; }
}

/* Long translated words must remain readable on narrow screens. */
body {
  overflow-wrap: anywhere;
}

.illustration > svg { display: block; width: 100%; height: auto; }

@media (max-width: 520px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; min-width: 0; }
  .header-inner > .brand { grid-column: 1; grid-row: 1; }
  .tools { display: contents; }
  .tools .theme { grid-column: 2; grid-row: 1; }
  .tools select { grid-column: 2; grid-row: 2; width: 90px; min-height: 44px; }
  .nav { grid-column: 1; grid-row: 2; width: auto; min-width: 0; flex-wrap: wrap; justify-content: flex-start; gap: 6px 12px; }
  .nav a { font-size: .78rem; padding-block: 4px; }
}

/* Commercial actions retain the existing geometry and can wrap in every locale. */
.hero .actions .button.secondary { border-color: var(--accent); }
@media (min-width: 521px) and (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; }
  .tools { flex-wrap: wrap; }
  .tools .small { display: inline-flex; }
}
@media (max-width: 520px) {
  .tools .small { display: flex; grid-column: 1 / -1; grid-row: 3; justify-content: center; white-space: normal; }
}

.form-security { margin-block: 1rem; }
.security-countdown:not([hidden]) { display: flex; align-items: center; gap: .5rem; }
.security-countdown:not([hidden])::before { content: ''; width: .7rem; height: .7rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: security-wait 1.2s linear infinite; }
@keyframes security-wait { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .security-countdown:not([hidden])::before { animation: none; } }

@media (max-width: 520px) {
  .header .brand { width: min(180px, 100%); }
}
