/* Hub Rocket — le coworking en France et ailleurs */

:root {
  --bg: #ffffff;
  --ink: #1f1640;
  --violet: #2b1d5c;
  --muted: #554c75;
  --line: #e4def5;
  --orange: #ff5a1f;
  --orange-ink: #c2410c;
  --peach: #fff1ea;
  --lilac: #f1edff;
  --lilac-2: #cbbdff;
  --yellow: #ffd23f;
  --display: "Futura", "Futura PT", "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
  --text: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --radius: 18px;
  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--yellow);
  color: var(--violet);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--violet);
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--violet);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  background: #fff;
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  min-height: 74px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  color: var(--violet);
  text-decoration: none;
}

.logo .rocket {
  width: 36px;
  height: 36px;
  grid-row: span 2;
}

.logo-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.logo-name b {
  color: var(--orange-ink);
  font-weight: 700;
}

.logo small {
  display: none;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--muted);
}

@media (min-width: 720px) {
  .logo small { display: block; }
  .logo .rocket { width: 42px; height: 42px; }
  .logo-name { font-size: 23px; }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav a {
  padding: 8px 8px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--violet);
  text-decoration: none;
}

.nav a:hover {
  border-color: var(--violet);
}

.nav a[aria-current="page"] {
  background: var(--violet);
  color: #fff;
}

.nav .nav-home {
  display: none;
}

@media (min-width: 560px) {
  .nav { gap: 6px; }
  .nav a { padding: 8px 14px; font-size: 15px; }
  .nav .nav-home { display: inline-block; }
}

.band {
  background: var(--violet);
  color: #fff;
  border-top: 3px solid var(--violet);
}

.band .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 36px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.band span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.band span + span::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
}

/* ---------- Buttons & small parts ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid var(--violet);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 5px 5px 0 var(--orange);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--orange);
}

.btn-ghost {
  background: #fff;
  color: var(--violet);
}

.btn-ghost:hover {
  background: var(--yellow);
}

.tag {
  display: inline-block;
  padding: 7px 10px 6px;
  border: 2px solid var(--violet);
  border-radius: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
}

.tag-startup { background: var(--orange); color: var(--violet); }
.tag-freelance { background: var(--violet); color: #fff; }
.tag-entreprises { background: var(--lilac-2); color: var(--violet); }
.tag-gestion { background: var(--yellow); color: var(--violet); }
.tag-societe { background: #fff; color: var(--violet); }
.tag-ailleurs { background: var(--peach); color: var(--orange-ink); border-color: var(--orange-ink); }

.sticker {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  border: 2px solid var(--violet);
  background: var(--yellow);
  color: var(--violet);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.link-arrow {
  font-family: var(--display);
  font-weight: 700;
  color: var(--violet);
  text-decoration: none;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 2px;
}

.link-arrow:hover {
  color: var(--orange-ink);
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 56px;
  border-top: 3px solid var(--violet);
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

@media (min-width: 920px) {
  .hero { padding: 72px 0 88px; }
  .hero-in {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 2px solid var(--violet);
  border-radius: 999px;
  background: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 9vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hl {
  text-decoration-line: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.08em;
  text-decoration-skip-ink: none;
}

.lede {
  max-width: 36em;
  margin: 0 0 28px;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.sticker-round {
  top: 2%;
  right: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  line-height: 1.15;
  transform: rotate(12deg);
  box-shadow: 4px 4px 0 var(--violet);
}

.sticker-round strong {
  font-size: 25px;
  letter-spacing: -0.02em;
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

@media (min-width: 920px) {
  .section { padding: 80px 0; }
}

.section-tint {
  background: var(--lilac);
  border-top: 3px solid var(--violet);
  border-bottom: 3px solid var(--violet);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.02em;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 8px;
  margin-top: 12px;
  border-radius: 4px;
  background: var(--orange);
  transform: rotate(-2deg);
}

.section-head p {
  margin: 0;
  max-width: 34em;
  color: var(--muted);
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--violet);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--violet);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.card:focus-within {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--orange);
}

.card-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 132px;
  padding: 0 18px;
  overflow: hidden;
  border-bottom: 2px solid var(--violet);
}

.card-top::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -36px;
  width: 132px;
  height: 132px;
  border: 3px dashed currentColor;
  border-radius: 50%;
  opacity: 0.5;
}

.card-top::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 30px;
  width: 20px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.card-num {
  margin-bottom: -8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 120px;
  line-height: 0.78;
  letter-spacing: -0.05em;
}

.t-orange { background: var(--orange); color: #fff; }
.t-orange .card-num { color: #fff; text-shadow: 4px 4px 0 var(--violet); }
.t-violet { background: var(--violet); color: var(--orange); }
.t-lilac { background: var(--lilac-2); color: var(--violet); }
.t-yellow { background: var(--yellow); color: var(--violet); }
.t-yellow .card-num { color: var(--orange); text-shadow: 4px 4px 0 var(--violet); }
.t-peach { background: var(--peach); color: var(--orange); }
.t-peach .card-num { text-shadow: 4px 4px 0 var(--violet); }

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 20px 22px;
}

.card:nth-child(even) .tag {
  transform: rotate(2deg);
}

.card h2,
.card h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.18;
}

.card h2 a,
.card h3 a {
  text-decoration: none;
}

.card h2 a::after,
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

.card a:focus-visible {
  outline: none;
}

.card:focus-within {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.card .card-meta,
.feature .card-meta {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--violet);
}

/* ---------- Featured article ---------- */

.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--violet);
  border-radius: 26px;
  box-shadow: 8px 8px 0 var(--orange);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature:hover,
.feature:focus-within {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--orange);
}

.feature:focus-within {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}

.feature a:focus-visible {
  outline: none;
}

@media (min-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

.feature-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 270px;
  padding: 0 24px;
  overflow: hidden;
  background: var(--violet);
}

.feature-num {
  position: relative;
  z-index: 1;
  margin-bottom: -16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(170px, 26vw, 300px);
  line-height: 0.75;
  letter-spacing: -0.06em;
  color: var(--orange);
}

.feature-art .rocket-big {
  position: absolute;
  top: 18px;
  right: -6px;
  width: 52%;
  max-width: 250px;
  pointer-events: none;
}

.feature-art .sticker {
  top: 22px;
  left: 22px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 var(--orange);
}

.feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 24px 30px;
}

@media (min-width: 860px) {
  .feature-body {
    justify-content: center;
    padding: 44px 44px 40px;
  }
}

.feature h3 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.feature h3 a {
  text-decoration: none;
}

.feature h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
}

.feature p {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

/* ---------- Editorial + prose ---------- */

.edito {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
}

@media (min-width: 980px) {
  .edito {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 64px;
    align-items: start;
  }
  .edito aside {
    position: sticky;
    top: 24px;
  }
}

.prose {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.72;
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose h2 {
  margin: 2em 0 0.55em;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.015em;
  scroll-margin-top: 20px;
}

.prose h3 {
  margin: 1.7em 0 0.45em;
  font-size: 23px;
}

.prose a {
  color: var(--orange-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--violet);
}

.prose strong {
  color: var(--violet);
}

.prose ul {
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  margin: 0 0 0.65em;
  padding-left: 28px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(45deg);
}

.prose h2 .n {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(66px, 10vw, 104px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--orange);
  text-shadow: 4px 4px 0 var(--violet);
}

.takeaway {
  position: relative;
  margin: 2.6em 0 0.5em;
  padding: 36px 26px 20px;
  border-radius: 20px;
  background: var(--violet);
  color: #fff;
  box-shadow: 6px 6px 0 var(--orange);
}

.takeaway-label {
  position: absolute;
  top: -17px;
  left: 20px;
  margin: 0;
  padding: 6px 14px;
  border: 2px solid var(--violet);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--violet);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  pointer-events: none;
}

.prose .takeaway p.takeaway-label {
  margin: 0;
}

.takeaway ul {
  margin: 0;
}

.takeaway li {
  font-size: 17px;
  line-height: 1.6;
}

.table-wrap {
  margin: 1.4em 0 0.6em;
  overflow-x: auto;
  border: 2px solid var(--violet);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--lilac-2);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}

@media (min-width: 560px) {
  .table-wrap table { font-size: 15.5px; }
}

.table-wrap caption {
  padding: 12px 16px;
  background: var(--violet);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.table-wrap th,
.table-wrap td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.table-wrap th:first-child {
  text-align: left;
}

.table-wrap thead th {
  background: var(--peach);
  color: var(--violet);
  font-family: var(--display);
  font-size: 13px;
  white-space: normal;
  vertical-align: bottom;
}

@media (min-width: 560px) {
  .table-wrap th,
  .table-wrap td { padding: 10px 14px; }
}

.table-wrap tbody th {
  color: var(--violet);
  font-family: var(--display);
}

.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody tr:nth-child(even) {
  background: #faf8ff;
}

.prose .table-note {
  margin-top: 0.4em;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.box {
  position: relative;
  padding: 30px 24px 24px;
  border: 2px solid var(--violet);
  border-radius: 22px;
  background: var(--lilac);
  box-shadow: 6px 6px 0 var(--lilac-2);
}

.box h2 {
  margin: 0 0 6px;
  font-size: 25px;
}

.box dl {
  margin: 0;
}

.box dt {
  margin-top: 16px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--violet);
}

.box dd {
  margin: 2px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
}

.box .sticker {
  top: -16px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  transform: rotate(5deg);
}

/* ---------- Rubriques ---------- */

.rubriques {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .rubriques { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .rubriques { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  border: 2px solid var(--violet);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rub:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--violet);
}

.rub .d {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.rub .go {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  color: var(--violet);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Article page ---------- */

.article-head,
.page-head {
  position: relative;
  overflow: hidden;
  padding: 28px 0 40px;
  border-top: 3px solid var(--violet);
  border-bottom: 3px solid var(--violet);
}

.article-head { background: var(--peach); }
.page-head { background: var(--lilac); }

.article-head-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

@media (min-width: 920px) {
  .article-head,
  .page-head { padding: 40px 0 56px; }
  .article-head-in {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: end;
  }
}

.crumbs {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.crumbs a {
  color: var(--violet);
  font-weight: 600;
}

.crumbs span[aria-hidden] {
  margin: 0 4px;
}

.article-head h1 {
  max-width: 17em;
  margin: 16px 0 18px;
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.chapo {
  max-width: 38em;
  margin: 0 0 18px;
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--violet);
}

.meta span + span::before {
  content: "✦";
  margin-right: 16px;
  color: var(--orange-ink);
}

.folio {
  order: -1;
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 84px;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--orange);
  text-shadow: 4px 4px 0 var(--violet);
}

.folio small {
  margin-right: 4px;
  font-size: 0.3em;
  letter-spacing: 0;
  vertical-align: top;
  color: var(--violet);
  text-shadow: none;
}

@media (min-width: 920px) {
  .folio {
    order: 0;
    margin: 0;
    font-size: clamp(180px, 20vw, 270px);
    text-shadow: 8px 8px 0 var(--violet);
  }
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 16px;
}

@media (min-width: 1040px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 72px;
    padding-top: 64px;
  }
}

.article-aside {
  display: none;
}

@media (min-width: 1040px) {
  .article-aside { display: block; }
  .article-aside .inner {
    position: sticky;
    top: 24px;
  }
}

.toc {
  padding: 20px 22px;
  border: 2px solid var(--violet);
  border-radius: 18px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--lilac-2);
}

.toc-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 4px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
  counter-increment: toc;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 700;
  color: var(--orange-ink);
}

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--orange-ink);
  text-decoration: underline;
}

.aside-note {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--violet);
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
}

.aside-note p {
  margin: 0 0 10px;
}

.aside-note a {
  color: #fff;
  font-weight: 700;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.related {
  padding: 56px 0 8px;
}

/* ---------- Simple pages ---------- */

.page-head h1 {
  margin: 14px 0 14px;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-head .deco {
  position: absolute;
  right: 4%;
  bottom: -30px;
  width: 230px;
  pointer-events: none;
  display: none;
}

@media (min-width: 900px) {
  .page-head .deco { display: block; }
  .page-head .head-text { max-width: calc(100% - 280px); }
  .page-head .chapo { max-width: 32em; }
}

.contact-card {
  position: relative;
  max-width: 760px;
  padding: 34px 24px 28px;
  border: 2px solid var(--violet);
  border-radius: 24px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--orange);
}

@media (min-width: 720px) {
  .contact-card { padding: 44px 44px 36px; }
}

.contact-card .sticker {
  top: -16px;
  right: 22px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  transform: rotate(4deg);
}

.contact-card h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 34px);
}

.mail-btn {
  margin: 10px 0 22px;
  font-size: clamp(17px, 4.4vw, 24px);
  overflow-wrap: anywhere;
}

.legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-top: 48px;
}

@media (min-width: 980px) {
  .legal {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  .legal .toc {
    position: sticky;
    top: 24px;
  }
}

.legal-body section + section {
  margin-top: 8px;
}

.fineprint {
  font-size: 15px;
  color: var(--muted);
}

.rub-list {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .rub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rub-list li {
  padding: 18px 20px;
  border: 2px solid var(--violet);
  border-radius: 16px;
  background: #fff;
}

.rub-list p {
  margin: 10px 0 0;
}

.rub-list a {
  color: var(--orange-ink);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  padding: 56px 0 28px;
  background: var(--violet);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 820px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
}

.footer-logo .rocket {
  width: 46px;
  height: 46px;
}

.site-footer p {
  max-width: 30em;
  margin: 0;
  color: #e6e0ff;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0 0 10px;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-word {
  margin: 48px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 13.5vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--orange);
}

.site-footer .footer-word {
  max-width: none;
  margin: 48px 0 0;
  color: var(--orange);
}

.site-footer .footer-logo {
  margin: 0 0 14px;
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 14px;
  color: #ddd6ff;
}

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