@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --tint: #f2f3f0;
  --text: #16191a;
  --muted: #5c6366;
  --line: #e1e3df;
  --accent: #0b7a55;
  --accent-ink: #ffffff;
  --radius: 14px;
  --radius-lg: 28px;
  --glass: rgb(255 255 255 / 0.62);
  --glass-edge: rgb(255 255 255 / 0.9);
  --glass-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 12px 32px rgb(20 50 40 / 0.08);
  --halo: rgb(11 122 85 / 0.13);
  --max: 1160px;
  --gap: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111314;
    --surface: #181b1c;
    --tint: #151819;
    --text: #e7e9e8;
    --muted: #a0a7a9;
    --line: #2a2f31;
    --accent: #3cc391;
    --accent-ink: #0b1a14;
    --glass: rgb(32 37 38 / 0.55);
    --glass-edge: rgb(255 255 255 / 0.1);
    --glass-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 12px 32px rgb(0 0 0 / 0.35);
    --halo: rgb(60 195 145 / 0.1);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111314;
  --surface: #181b1c;
  --tint: #151819;
  --text: #e7e9e8;
  --muted: #a0a7a9;
  --line: #2a2f31;
  --accent: #3cc391;
  --accent-ink: #0b1a14;
  --glass: rgb(32 37 38 / 0.55);
  --glass-edge: rgb(255 255 255 / 0.1);
  --glass-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 12px 32px rgb(0 0 0 / 0.35);
  --halo: rgb(60 195 145 / 0.1);
}
:root[data-theme="light"] { color-scheme: light; }

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

svg { display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header: logo | nav (centred) | tools */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 20px; min-height: 68px;
}
.logo {
  justify-self: start; display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.logo-mark { color: var(--accent); }
.logo-word { display: block; height: 19px; width: auto; color: var(--text); }
.logo-mark svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) {
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .nav { display: none; }
}
@media (max-width: 420px) { .header-tools .btn-sm { display: none; } }
/* Back-to-top tab hanging from the middle of the header (js/top.js shows it
   once the hero is out of view). No blur here: the header's own blur already
   is the backdrop. */
.to-top {
  position: absolute; left: 50%; top: 100%;
  display: grid; place-items: center; width: 56px; height: 26px;
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px;
  background: var(--bg); background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--muted);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.to-top:hover { color: var(--accent); }
.to-top svg { width: 18px; height: 18px; }

.lang, .theme-toggle {
  display: inline-grid; place-items: center; height: 36px; min-width: 36px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.lang:hover, .theme-toggle:hover { border-color: var(--muted); }
.theme-toggle { padding: 0; }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 7px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Sections: every heading block is centred */
section { padding: 96px 0; }
section.tinted { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.07rem; margin-bottom: 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* Hero */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - 69px); min-height: calc(100svh - 69px); /* screen minus header */
  /* Equal padding keeps the text at the exact vertical centre; the top
     padding also leaves room for the logo, which hangs above the text. */
  padding: 216px 0; text-align: center; border-bottom: 1px solid var(--line);
}
.hero .wrap { position: relative; }
.hero h1 { color: var(--accent); margin-bottom: 12px; }
.hero-logo {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  width: 180px; height: 180px; margin-bottom: 20px; color: var(--accent); opacity: 0.8;
}
.tagline { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; max-width: 720px; margin: 0 auto 20px; text-wrap: balance; }
.hero .lead { font-size: 1.17rem; color: var(--muted); max-width: 660px; margin: 0 auto; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
/* Scroll cue: a small mouse outline whose wheel slides down, centred at the
   bottom of the hero. */
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 22px; height: 34px; border: 1.5px solid var(--muted); border-radius: 11px; opacity: 0.6;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue::before {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--muted); animation: wheel 2s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 70%, 100% { opacity: 0; transform: translateY(9px); } }
@media (max-height: 760px) and (min-width: 641px) { .hero { padding: 120px 0; } .hero-logo { width: 96px; height: 96px; margin-bottom: 12px; } .hero .actions { margin-top: 28px; } }
@media (max-width: 640px) { .hero { padding: 156px 0; } .hero-logo { width: 128px; height: 128px; margin-bottom: 14px; } }

/* Card look (rounded glass) only where a box helps: plans and projects.
   Everything else is open - thin lines and whitespace instead of boxes.
   Behind the plans and the projects sit two soft accent halos
   (point-symmetric), so the blur has something to show. */
.plan, .project {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
}
@media (prefers-reduced-transparency: reduce) {
  .plan, .project, .site-header {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .plan, .project { background: var(--surface); }
  .site-header { background: var(--bg); }
}
#pricing, #projects { position: relative; isolation: isolate; overflow: clip; }
#pricing::before, #projects::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 18% 30%, var(--halo), transparent 32%),
    radial-gradient(circle at 82% 70%, var(--halo), transparent 32%);
}

/* Services: 4 open columns split by thin lines, rows aligned across them.
   Name and one-line claim first, the technical details small underneath. */
.grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(4, 1fr);
}
.card {
  display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0;
  padding: 8px 24px; text-align: center;
}
.card + .card { border-left: 1px solid var(--line); }
.card .icon { color: var(--accent); justify-self: center; margin-bottom: 16px; }
.card .icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.6rem; margin-bottom: 2px; }
.card .claim { color: var(--accent); font-weight: 600; font-size: 1.1rem; margin: 0 0 14px; }
.card p { color: var(--muted); }
.card ul { margin: 4px 0 24px; padding: 0; list-style: none; }
.card li { padding: 3px 0; font-size: 0.86rem; color: var(--muted); }
.tags { display: flex; gap: 8px; justify-content: center; align-self: end; }
.tag {
  font-size: 0.8rem; font-weight: 600; padding: 3px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .card:nth-child(3) { border-left: 0; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .card { grid-row: auto; grid-template-rows: none; padding: 40px 8px; }
  .card:first-child { padding-top: 0; }
  .card:last-child { padding-bottom: 0; }
  .card + .card { border-left: 0; border-top: 1px solid var(--line); }
}

/* Two ways: 2 equal columns */
.options { display: grid; gap: 0; grid-template-columns: repeat(2, 1fr); }
.option { padding: 8px 40px; text-align: center; }
.option + .option { border-left: 1px solid var(--line); }
.option p { color: var(--muted); }
.option p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .options { grid-template-columns: 1fr; }
  .option { padding: 32px 8px; }
  .option:first-child { padding-top: 0; }
  .option + .option { border-left: 0; border-top: 1px solid var(--line); }
}
/* Comparison under the two ways: installation | topic | hosting, mirrored */
.compare { margin: 56px auto 0; max-width: 900px; }
.compare table { width: 100%; border-collapse: collapse; text-align: center; }
.compare th, .compare td { padding: 14px 12px; vertical-align: middle; }
.compare thead th { font-size: 1.05rem; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { width: 20%; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.compare tbody td { width: 40%; font-size: 0.95rem; }
@media (max-width: 560px) {
  .compare table, .compare thead, .compare tbody { display: block; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; }
  .compare thead td { display: none; }
  .compare tbody th { grid-column: 1 / -1; grid-row: 1; width: auto; padding-bottom: 0; }
  .compare tbody td { width: auto; }
}

/* Hosting plans: 4 equal columns, rows aligned across cards */
.plans {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, 1fr);
}
.plan {
  display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0;
  padding: 32px 24px 26px; text-align: center;
}
.plan.featured { border: 2px solid var(--accent); padding: 31px 23px 25px; }
.plan h3 { margin-bottom: 4px; }
.plan .fit { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.plan .price { display: flex; flex-direction: column; align-items: center; }
.plan .price strong { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.plan .price span { color: var(--muted); font-size: 0.9rem; }
.plan .price-net { color: var(--muted); font-size: 0.88rem; margin: 2px 0 20px; }
.plan ul { margin: 0 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plan .price strong {
  display: inline-grid; place-items: center; min-width: 9rem; padding: 6px 18px; margin-bottom: 4px;
  border-radius: 999px; background: var(--tint);
}
.plan li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.plan .btn { align-self: end; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, 1fr); max-width: 680px; margin: 0 auto; } }
/* Backup switch under the plans */
.backup-switch {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 36px auto 0; font-weight: 600; cursor: pointer; text-align: left;
}
.backup-switch[hidden] { display: none; }
.backup-switch input {
  appearance: none; -webkit-appearance: none; flex: none; position: relative;
  width: 46px; height: 26px; margin: 0; border-radius: 13px; cursor: pointer;
  background: var(--muted); transition: background 0.2s ease;
}
.backup-switch input::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform 0.2s ease;
}
.backup-switch input:checked { background: var(--accent); }
.backup-switch input:checked::before { transform: translateX(20px); }
.more { margin: 40px 0 0; text-align: center; font-size: 1.08rem; font-weight: 600; }
.note { margin: 12px auto 0; max-width: 760px; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* Steps: 4 equal columns */
.steps {
  counter-reset: step; display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0; list-style: none; text-align: center;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent); font-weight: 700;
}
.steps p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }
/* A row of grey chevrons (› › ›) between the circles, level with their
   centres, fading out towards both circles, drifting slowly towards 4.
   Text glyphs plus a gradient mask, so no image is needed. A monospace
   face makes every "› " exactly 2ch wide, so shifting the text by 2ch
   loops without a jump. Only while the four steps share one row. */
@media (min-width: 901px) {
  .steps li { position: relative; }
  .steps li:not(:last-child)::after {
    content: "\203A \203A \203A \203A \203A \203A \203A \203A \203A \203A \203A \203A \203A \203A \203A \203A \203A \203A \203A \203A";
    position: absolute; top: 0; height: 44px; line-height: 42px;
    left: calc(50% + 30px); width: calc(100% + var(--gap) - 60px);
    overflow: hidden; white-space: pre; text-align: left; text-indent: -2ch;
    font: 400 1.7rem/42px ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
    color: var(--muted); opacity: 0.6;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
    animation: steps-drift 3.5s linear infinite;
  }
}
@keyframes steps-drift { from { text-indent: -2ch; } to { text-indent: 0; } }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Projects: 4 equal columns, rows aligned across cards */
.projects { display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); }
.project {
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0;
  overflow: hidden; text-align: center; color: var(--text); text-decoration: none;
}
.project:hover { border-color: var(--accent); text-decoration: none; }
.project-logo {
  display: grid; place-items: center; height: 136px; margin: 10px 10px 22px;
  border-radius: calc(var(--radius-lg) - 10px); background: var(--tint);
}
.project-logo img {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  background: var(--surface); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line);
}
.project-logo img[src$=".svg"] { object-fit: contain; padding: 14px; }
.project h3 { font-size: 1.05rem; margin: 0 20px 6px; }
.project p { color: var(--muted); font-size: 0.9rem; margin: 0 20px 16px; }
.project-tags {
  display: flex; flex-wrap: wrap; justify-content: center; align-content: start; gap: 6px;
  list-style: none; margin: 0 20px 20px; padding: 0;
}
.project-tags li {
  font-size: 0.76rem; font-weight: 600; padding: 2px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.project .url {
  align-self: end; padding: 14px 20px; border-top: 1px solid var(--line);
  color: var(--accent); font-weight: 600; font-size: 0.88rem;
}
@media (max-width: 1000px) { .projects { grid-template-columns: repeat(2, 1fr); max-width: 680px; margin: 0 auto; } }

/* Phones: plans and projects become a swipeable row (js/slider.js adds the
   dots and starts the plans on the featured card). Each card snaps to the
   middle with its neighbours peeking in on both sides. */
@media (max-width: 640px) {
  .plans, .projects {
    --card: min(78vw, 340px);
    position: relative; display: flex; gap: 14px; max-width: none;
    margin: 0 -16px; padding: 10px calc(50vw - var(--card) / 2) 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .plans::-webkit-scrollbar, .projects::-webkit-scrollbar { display: none; }
  .plan, .project {
    flex: 0 0 var(--card); display: flex; flex-direction: column;
    scroll-snap-align: center; scroll-snap-stop: always;
  }
  .plan .btn, .project .url { margin-top: auto; }
  .is-slider > * { transition: transform 0.3s ease, opacity 0.3s ease; }
  .is-slider > :not(.is-current) { transform: scale(0.93); opacity: 0.6; }
}
.slider-dots { display: none; }
@media (max-width: 640px) {
  .slider-dots { display: flex; justify-content: center; margin-top: 6px; }
  .slider-dots button {
    display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
    border: 0; background: none; cursor: pointer;
  }
  .slider-dots button::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line);
    transition: background 0.3s ease;
  }
  .slider-dots button[aria-current="true"]::before { background: var(--accent); }
}

/* FAQ: one centred column */
.faq { max-width: 780px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.faq details { padding: 20px 4px; border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Contact */
.cta { text-align: center; max-width: 720px; margin: 0 auto; }
.cta p { color: var(--muted); font-size: 1.07rem; margin-bottom: 28px; }
.cta small { display: block; margin-top: 20px; color: var(--muted); }

/* Prose (privacy pages) */
.prose { max-width: 760px; padding-top: 64px; padding-bottom: 80px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.9rem; color: var(--muted); text-align: center; }
.site-footer .wrap { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
/* Footer logo: at the left edge on desktop, under the header logo (the text row stays centred),
   centred above the text on phones. */
.site-footer .wrap { position: relative; }
.site-footer .footer-logo {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  display: flex; color: var(--accent); opacity: 0.65;
}
.site-footer .footer-logo { gap: 9px; align-items: center; }
.site-footer .footer-logo svg { width: 36px; height: 36px; }
.site-footer .footer-logo .logo-word { width: auto; height: 22px; color: var(--text); }
.site-footer .footer-logo:hover { color: var(--accent); opacity: 1; }
@media (min-width: 720px) { .site-footer .footer-logo { left: 32px; } } /* lines up with the header logo */
@media (max-width: 640px) {
  .site-footer .footer-logo { position: static; transform: none; flex-basis: 100%; justify-content: center; }
}

/* Scroll fade-in (js/reveal.js adds .reveal-on to <html>, so nothing is
   hidden without the script). Columns in a row follow each other a little. */
.reveal-on .reveal { opacity: 0; translate: 0 18px; transition: opacity 0.7s ease, translate 0.7s ease; }
.reveal-on .reveal.is-in { opacity: 1; translate: none; }
.reveal-on :is(.grid, .options, .steps) > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-on :is(.grid, .options, .steps) > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-on :is(.grid, .options, .steps) > .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-slider > *, .slider-dots button::before,
  .backup-switch input, .backup-switch input::before, .to-top { transition: none; }
  .scroll-cue::before { animation: none; }
  .reveal-on .reveal { opacity: 1; translate: none; transition: none; }
  .steps li::after { animation: none; }
}

/* Contact form */
.contact-form { display: grid; gap: 16px; max-width: 640px; margin: 0 auto; text-align: left; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.93rem; }
.contact-form .opt { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 400;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.contact-form .check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.contact-form button { justify-self: center; min-width: 200px; cursor: pointer; font: inherit; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sent / error pages */
.message-page { text-align: center; max-width: 640px; padding-top: 120px; padding-bottom: 120px; }
.message-page p { color: var(--muted); font-size: 1.07rem; margin-bottom: 28px; }

/* Floating contact bubble (bottom right) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.chat-bubble {
  position: fixed; right: 24px; bottom: 24px; z-index: 20;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);
}
.chat-bubble:hover { filter: brightness(1.08); }
.chat-bubble svg { width: 26px; height: 26px; }
.chat-panel {
  position: fixed; right: 24px; bottom: 92px; z-index: 20;
  width: 360px; max-height: calc(100vh - 116px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.2); padding: 22px;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-head h2 { font-size: 1.2rem; margin: 0; }
.chat-close {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
  color: var(--text); cursor: pointer;
}
.chat-close svg { width: 16px; height: 16px; }
.chat-intro { color: var(--muted); font-size: 0.9rem; margin: 8px 0 16px; }
.chat-form { gap: 12px; }
.chat-form textarea { min-height: 96px; }
.chat-form button { justify-self: stretch; }
.chat-status { margin: 0; font-size: 0.9rem; text-align: center; }
.chat-status:empty { display: none; }
.chat-status.ok { color: var(--accent); font-weight: 600; }
.chat-status.err { color: #c0392b; font-weight: 600; }
@media (max-width: 480px) {
  .chat-bubble { right: 16px; bottom: 16px; }
  .chat-panel { left: 8px; right: 8px; bottom: 84px; width: auto; max-height: calc(100vh - 100px); }
}

/* Footer note under the footer row (green hosting), centred like the row. */
.site-footer .footer-note { margin: 14px auto 0; padding: 0 16px; max-width: 640px; font-size: 0.85rem; }
.site-footer .footer-note, .site-footer .footer-note a { color: var(--accent); } /* full strength: readable as small text */
