/* ============================================================
   moisa — design tokens (light only)
   ============================================================ */
:root {
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                  "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;

  /* Type scale */
  --t-xs: 12px;
  --t-sm: 14px;
  --t-md: 16px;
  --t-lg: 18px;
  --t-xl: 28px;

  /* Spacing scale (4px base) */
  --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;
  --s5: 24px;  --s6: 32px;  --s7: 48px;  --s8: 64px;
  --s9: 96px;  --s10: 128px; --s11: 160px; --s12: 200px;

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;

  /* Light palette */
  --paper: #fafaf7;
  --paper-2: #f2f1ec;
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.7);
  --ink: #0a0a0a;
  --ink-2: #54545a;
  --muted: #86868b;
  --line: rgba(10, 10, 10, 0.08);
  --line-2: rgba(10, 10, 10, 0.04);
  --blue: #2f6bff;
  --blue-soft: #eaf0ff;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-2: 0 1px 2px rgba(10, 10, 10, 0.04),
              0 8px 24px rgba(10, 10, 10, 0.05);
  --shadow-3: 0 2px 8px rgba(10, 10, 10, 0.06),
              0 24px 56px rgba(10, 10, 10, 0.10);

  /* Layout */
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--blue); color: #fff; }

/* ============================================================
   Layout primitives
   ============================================================ */
.section {
  width: min(calc(100% - var(--s7)), var(--container));
  margin: 0 auto;
  padding: var(--s12) 0;
}

.section-intro { margin-bottom: var(--s9); }
.section-intro-wide { position: relative; }
.section-intro-wide .intro-note {
  position: absolute;
  right: 0;
  bottom: var(--s1);
  max-width: 240px;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.6;
}

.section-index {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0 0 var(--s6);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.section-index span {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--blue);
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

em { color: var(--blue); font-style: normal; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line-2);
  background: rgba(250, 250, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 250, 247, 0.88);
  box-shadow: 0 1px 0 var(--line-2);
}

.header-inner {
  display: flex;
  width: min(calc(100% - var(--s7)), var(--container));
  height: 96px;
  align-items: center;
  gap: var(--s6);
  margin: 0 auto;
}

.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.brand-logo {
  display: block !important;
  height: 70px !important;
  max-height: 70px !important;
  width: auto !important;
}

.main-nav {
  display: flex;
  gap: var(--s6);
  margin-left: auto;
}
.main-nav a {
  position: relative;
  color: var(--ink-2);
  font-size: var(--t-xs);
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}
.main-nav a.is-active { color: var(--ink); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 1.5px;
  background: var(--blue);
  border-radius: 2px;
}

.header-mail {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--ink-2);
  font-size: var(--t-xs);
  transition: color 0.2s var(--ease);
}
.header-mail span:last-child { color: var(--blue); font-size: 14px; }

.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - 60px);
  flex-direction: column;
  justify-content: center;
  padding-top: var(--s11);
  padding-bottom: var(--s8);
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.14), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.kicker {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0 0 var(--s6);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.kicker-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--blue);
}

.hero-title {
  max-width: 1000px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 8.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero-title span { color: var(--blue); }

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 900px;
  margin-top: var(--s10);
  gap: var(--s7);
}
.hero-footer > p {
  max-width: 320px;
  margin: 0;
  color: var(--ink-2);
  font-size: var(--t-sm);
  line-height: 1.65;
}

.hero-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

.hero-bottom-line {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--s7);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   Buttons
   ============================================================ */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: var(--s5);
  padding: 0 var(--s5);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
.button span { font-size: 15px; font-weight: 400; }
.button:active { transform: scale(0.97); }

.button-dark { background: var(--ink); color: var(--paper); }
.button-light { border-color: var(--line); background: var(--surface-2); color: var(--ink); }

/* ============================================================
   Principles
   ============================================================ */
.principles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--s10);
  border-top: 1px solid var(--line);
}
.principles .section-intro { margin-bottom: 0; }
.principles-list { border-top: 1px solid var(--line); }

.principle {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s6);
  min-height: 176px;
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
}
.principle-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}
.principle svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.2;
}
.principle h3 {
  margin: 0 0 var(--s3);
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.principle p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: var(--t-sm);
  line-height: 1.65;
}

/* ============================================================
   Projects
   ============================================================ */
.projects { border-top: 1px solid var(--line); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
  align-items: start;
}

.project-card {
  display: block;
  padding: var(--s7) var(--s7) 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
  transition: transform 0.3s var(--ease);
}
.project-card-large { grid-column: 1 / -1; }

.project-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.device {
  width: min(100%, 260px);
  margin: 0 auto;
  padding: 7px;
  border-radius: 40px;
  background: linear-gradient(145deg, #2a2a2e, #131317);
  box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.device-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  background: #000;
}
.project-card-large .device { width: min(48%, 340px); }

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* NORTH */
.screen-north { align-items: center; justify-content: center; background: #b6c2bb; color: #f2f5f2; }
.screen-north::before {
  content: ""; position: absolute; inset: 20% -20% 0 -20%;
  background: linear-gradient(135deg, #7f8f88, #d3ddd7); filter: blur(28px);
}
.screen-north::after {
  content: ""; position: absolute; right: -12%; bottom: -8%;
  width: 60%; height: 68%; border-radius: 50% 50% 0 0;
  background: rgba(60, 74, 69, 0.5);
}
.north-label {
  position: absolute; top: 32px; left: 22px;
  font-size: 8px; letter-spacing: 0.12em; line-height: 1.35;
  text-transform: uppercase; z-index: 1;
}
.north-title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: clamp(38px, 8vw, 64px);
  font-weight: 700; letter-spacing: -0.06em;
}
.north-location {
  position: absolute; bottom: 32px; left: 22px;
  font-size: 8px; letter-spacing: 0.14em; z-index: 2;
}
.north-circle {
  position: absolute; bottom: 20%; left: 14%;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 50%; z-index: 1;
}

/* PALATIN */
.screen-palatin { align-items: center; justify-content: center; background: #d0c9bf; color: #48463f; }
.screen-palatin::before, .screen-palatin::after {
  content: ""; position: absolute;
  border: 1px solid rgba(72, 70, 63, 0.35); border-radius: 50%;
}
.screen-palatin::before { width: 168px; height: 168px; }
.screen-palatin::after  { width: 118px; height: 118px; }
.palatin-small {
  position: absolute; top: 34px; left: 22px;
  font-size: 8px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.08em;
}
.screen-palatin strong {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 26px;
  font-weight: 600; letter-spacing: 0.14em;
}
.palatin-dot {
  position: relative; z-index: 1;
  width: 4px; height: 4px; margin-top: 10px; border-radius: 50%; background: #48463f;
}
.palatin-bottom {
  position: absolute; bottom: 34px; left: 22px;
  font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* CHAOS */
.screen-chaos {
  align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 46%, #e8a88b, #b85e4c 27%, #221d20 67%);
}
.chaos-orbit {
  position: absolute; top: 48%; left: 50%;
  border: 1px solid rgba(255, 218, 189, 0.6); border-radius: 50%;
}
.chaos-orbit-one { width: 200px; height: 118px; transform: translate(-50%, -50%) rotate(-30deg); }
.chaos-orbit-two { width: 118px; height: 200px; transform: translate(-50%, -50%) rotate(37deg); }
.screen-chaos strong {
  position: relative; z-index: 1; color: #ffe0c4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px; font-weight: 400; line-height: 0.86;
  text-align: center; letter-spacing: 0.08em;
}
.screen-chaos i { font-size: 11px; font-style: normal; letter-spacing: 0.32em; }
.chaos-caption {
  position: absolute; bottom: 34px; left: 22px; color: #ffe0c4;
  font-size: 8px; line-height: 1.5; letter-spacing: 0.1em; text-transform: uppercase;
}

.project-meta {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s5); min-height: 104px; padding: var(--s5) 0 var(--s5);
}
.project-number {
  display: block; margin-bottom: var(--s2);
  color: var(--blue); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
}
.project-meta h3 {
  margin: 0; font-family: var(--font-display);
  font-size: 22px; font-weight: 600; letter-spacing: -0.025em;
}
.project-meta p {
  margin: 0 0 2px auto; color: var(--muted);
  font-size: var(--t-xs); line-height: 1.6;
}
.project-link {
  display: grid; flex: 0 0 34px; width: 34px; height: 34px;
  place-items: center; margin-left: var(--s2);
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--blue); font-size: 15px;
}

/* ============================================================
   Process
   ============================================================ */
.process { border-top: 1px solid var(--line); }
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
}
.process-line {
  position: absolute; top: 21px; left: 2%; right: 4%;
  height: 1px; background: var(--line);
}
.process-step { position: relative; }
.step-circle {
  position: relative; z-index: 1;
  display: grid; width: 42px; height: 42px; place-items: center;
  border: 1px solid var(--blue); border-radius: 50%;
  background: var(--paper); color: var(--blue);
  font-size: 11px; font-weight: 600;
}
.step-caption {
  display: block; margin: var(--s6) 0 var(--s3);
  color: var(--blue); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.process-step h3 {
  margin: 0 0 var(--s3); font-family: var(--font-display);
  font-size: 20px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15;
}
.process-step p {
  max-width: 210px; margin: 0; color: var(--muted);
  font-size: var(--t-xs); line-height: 1.7;
}

/* ============================================================
   Pricing & Promo
   ============================================================ */
.pricing { border-top: 1px solid var(--line); }

.promo-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 4px 12px 4px 6px; margin-bottom: var(--s5);
  border-radius: var(--r-full); background: var(--blue-soft);
  border: 1px solid rgba(47, 107, 255, 0.22);
}
.promo-badge-tag {
  display: inline-block; padding: 2px 8px;
  border-radius: var(--r-full); background: var(--blue);
  color: #ffffff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; line-height: 1.25;
}
.promo-badge-text {
  color: var(--ink); font-size: var(--t-xs);
  font-weight: 500; letter-spacing: -0.01em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}

.price-card {
  position: relative;
  display: flex;
  min-height: 480px;
  flex-direction: column;
  padding: var(--s6) var(--s6) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
}
.price-card.featured {
  border-color: rgba(47, 107, 255, 0.55);
  box-shadow: var(--shadow-2);
}
.popular {
  position: absolute; top: 0; right: var(--s5);
  padding: 6px var(--s3); border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--blue); color: #fff;
  font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.plan-head { display: flex; align-items: center; justify-content: space-between; }
.plan-head span {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 600; letter-spacing: -0.03em;
}
.plan-head small { color: var(--muted); font-size: 10px; }

.price-box {
  display: flex; align-items: baseline; gap: var(--s3);
  margin: var(--s7) 0 var(--s3); flex-wrap: wrap;
}
.price-box strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 600; letter-spacing: -0.045em; line-height: 1;
}
.price-box strong i {
  color: var(--muted); font-size: 18px;
  font-style: normal; font-weight: 400; letter-spacing: -0.01em;
}
.price-old {
  color: var(--muted); font-size: 15px; font-weight: 400;
  text-decoration: line-through; white-space: nowrap;
}

.price-card > p {
  min-height: 40px; margin: 0 0 var(--s5);
  color: var(--muted); font-size: var(--t-xs); line-height: 1.6;
}
.price-card ul {
  display: flex; flex-direction: column; gap: var(--s3);
  margin: 0; padding: var(--s5) 0 var(--s5);
  border-top: 1px solid var(--line);
}
.price-card li { color: var(--ink-2); font-size: var(--t-xs); }
.price-card li::before { display: inline-block; width: 16px; color: var(--blue); content: "—"; }
.price-card > a {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs); font-weight: 500;
}
.price-card > a span { color: var(--blue); font-size: 16px; }

.price-note { margin: var(--s5) 0 0; color: var(--muted); font-size: var(--t-xs); }

/* ============================================================
   Extra services + FAQ shared grid
   ============================================================ */
.extra-services,
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr);
  gap: var(--s10);
  border-top: 1px solid var(--line);
}
.split-heading p:last-child {
  max-width: 240px; margin: var(--s5) 0 0;
  color: var(--muted); font-size: var(--t-xs); line-height: 1.65;
}

.services-table { border-top: 1px solid var(--line); }
.table-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
  color: var(--ink-2); font-size: var(--t-sm);
}
.table-row span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.table-head {
  padding-top: 0; color: var(--muted);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.service-price {
  display: inline-flex; align-items: baseline; gap: var(--s2);
  font-weight: 600; color: var(--ink);
}
.price-old-inline {
  color: var(--muted); font-size: 12px;
  font-weight: 400; text-decoration: line-through;
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: var(--s5); padding: var(--s5) 0; text-align: left;
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em; color: var(--ink);
}
.faq-q b {
  color: var(--blue); font-size: 20px; font-weight: 400;
  line-height: 1; transition: transform 0.28s var(--ease);
}
.faq-item.is-open .faq-q b { transform: rotate(45deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  max-width: 520px; margin: 0 0 var(--s5);
  color: var(--muted); font-size: var(--t-sm); line-height: 1.7;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  position: relative; overflow: hidden;
  padding: var(--s12) max(var(--s7), calc((100% - var(--container)) / 2));
  background: var(--ink); color: var(--paper);
}
.contact-orb {
  position: absolute; top: -240px; right: -80px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.34), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }
.contact .section-index { color: #9a9aa0; }
.contact .section-index span { background: #6d94ff; }
.contact h2 { font-size: clamp(52px, 8.5vw, 96px); color: #fff; }
.contact h2 em { color: #9cb8ff; }
.contact-inner > p:not(.section-index) {
  max-width: 340px; margin: var(--s7) 0 var(--s8);
  color: #a4a4aa; font-size: var(--t-sm); line-height: 1.7;
}
.contact-links { display: flex; flex-wrap: wrap; gap: var(--s7) var(--s10); }
.contact-links a {
  display: flex; min-width: 220px; flex-direction: column;
  gap: var(--s2); padding-bottom: var(--s2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-links small {
  color: #80808a; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.contact-links strong {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); font-size: 14px; font-weight: 500;
}
.contact-arrow { color: #9cb8ff; font-size: 16px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  display: flex; width: min(calc(100% - var(--s7)), var(--container));
  min-height: 84px; align-items: center; justify-content: space-between;
  gap: var(--s5); margin: 0 auto;
  color: var(--muted); font-size: 11px;
}
.site-footer .brand { color: var(--ink); font-size: 15px; }
.site-footer .brand-logo {
  height: 56px !important;
  max-height: 56px !important;
}

/* ============================================================
   Back to top + toast
   ============================================================ */
.back-to-top {
  position: fixed !important;
  z-index: 40 !important;
  right: 24px !important;
  bottom: 24px !important;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  border: 1px solid rgba(10,10,10,0.1) !important;
  border-radius: 50% !important;
  background: #fafaf7 !important;
  box-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 8px 24px rgba(10,10,10,0.1) !important;
  color: #0a0a0a !important;
  cursor: pointer !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px) !important;
  transition: opacity .25s ease, transform .25s ease !important;
}
.back-to-top.is-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
.back-to-top svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
}
.back-to-top:active { transform: scale(0.94) !important; }

.copy-toast {
  position: fixed; z-index: 50; bottom: var(--s5); left: 50%;
  padding: 10px var(--s4); border-radius: var(--r-full);
  background: var(--ink); box-shadow: var(--shadow-3); color: var(--paper);
  font-size: var(--t-xs); transform: translate(-50%, 12px); opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .header-inner, .site-footer { width: calc(100% - var(--s6)); }
  .main-nav, .header-mail { display: none; }
  .nav-toggle {
    display: flex; width: 40px; height: 40px;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; margin-left: auto;
    border: 1px solid var(--line); border-radius: var(--r-sm);
  }
  .nav-toggle span { width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; }
  .mobile-nav {
    display: none; width: calc(100% - var(--s6));
    flex-direction: column; gap: var(--s5);
    margin: 0 auto; padding: 0 0 var(--s5);
  }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a { font-size: var(--t-lg); font-weight: 500; }
}

@media (max-width: 800px) {
  .header-inner { height: 72px !important; }
  .brand-logo { height: 60px !important; max-height: 60px !important; }
  .site-footer .brand-logo { height: 48px !important; max-height: 48px !important; }

  .section { width: calc(100% - var(--s6)); padding: var(--s10) 0; }
  .hero {
    min-height: calc(100vh - 60px);
    padding-top: var(--s9); padding-bottom: var(--s6);
  }
  .hero-title { font-size: clamp(40px, 12vw, 64px); }
  .hero-footer { display: block; margin-top: var(--s8); }
  .hero-actions { flex-wrap: wrap; margin-top: var(--s5); }
  .hero-actions .button { flex: 1 1 auto; }
  .section-intro { margin-bottom: var(--s8); }
  .section-intro-wide .intro-note { position: static; margin-top: var(--s5); }

  .principles, .extra-services, .faq { grid-template-columns: 1fr; gap: var(--s8); }
  .principle { grid-template-columns: 1fr 2fr; min-height: 148px; gap: var(--s4); }
  .principle svg { width: 34px; height: 34px; }
  .principle h3 { font-size: 17px; }

  .project-grid { grid-template-columns: 1fr; }
  .project-card-large { grid-column: auto; }
  .project-card-large .device, .device { width: min(75%, 280px); }
  .project-card { padding: var(--s5) var(--s5) 0; }
  .project-meta { min-height: 88px; }
  .project-meta p { display: none; }
  .project-link { margin-left: auto; }

  .process-track { grid-template-columns: 1fr; gap: var(--s7); padding-left: var(--s3); }
  .process-line { top: 21px; bottom: 21px; left: 32px; right: auto; width: 1px; height: auto; }
  .process-step { display: grid; grid-template-columns: 42px 1fr; column-gap: var(--s5); }
  .process-step .step-circle { grid-row: span 3; }
  .step-caption { margin: 0 0 var(--s2); padding-top: 3px; }
  .process-step h3 { margin-bottom: var(--s2); font-size: 19px; }
  .process-step p { max-width: 300px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: auto; }
  .price-box { margin-top: var(--s7); }

  .contact { padding: var(--s10) var(--s6); }
  .contact-inner > p:not(.section-index) { margin: var(--s6) 0 var(--s7); }
  .contact-links { flex-direction: column; gap: var(--s5); }

  .site-footer { flex-wrap: wrap; gap: var(--s4); padding: var(--s5) 0; min-height: 0; }
  .site-footer span:nth-child(2) { width: 100%; order: 3; }
  .site-footer span:nth-child(3) { margin-left: auto; }
}

@media (max-width: 400px) {
  .section, .header-inner, .site-footer { width: calc(100% - var(--s5)); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
}

/* ============================================================
   Accessibility & Lock
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

html, body {
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
.page, main, section, footer, header { max-width: 100%; }

/* ============================================================
   Plan title row + sale tag (−30% рядом с названием тарифа)
   ============================================================ */
.plan-title-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.plan-title-row span:first-child {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.plan-sale-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid rgba(47, 107, 255, 0.25);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ============================================================
   Гарантия: зачёркивание, жирный, размеры
   ============================================================ */
.price-old,
.price-old-inline,
s.price-old,
s.price-old-inline {
  text-decoration: line-through !important;
  text-decoration-thickness: 1.5px !important;
  -webkit-text-decoration: line-through !important;
}

.price-box strong,
.plan-title-row span:first-child,
.section-index,
h2,
h3 {
  font-weight: 700 !important;
}

/* На старых телефонах шрифт иногда не жирнеет — явно задаём насыщенность */
@supports not (font-variation-settings: normal) {
  .price-box strong { font-weight: 700 !important; }
}

/* Три строки hero-title — выравниваем по левому краю, одинаковый ритм */
.hero-title br { content: ""; display: block; margin: 0; }

/* ============================================================
   ФИНАЛЬНЫЙ ФИКС: жирный + зачёркивание в карточках тарифов
   ============================================================ */

/* Зачёркивание — через <s> тег + CSS + псевдоэлемент (тройная защита) */
.price-card .price-old,
.price-card s.price-old,
.price-box .price-old,
s.price-old {
  text-decoration: line-through !important;
  text-decoration-thickness: 1.5px !important;
  color: var(--muted, #86868b) !important;
  position: relative !important;
  display: inline-block !important;
}
.price-card .price-old::after,
s.price-old::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 50% !important;
  height: 1.5px !important;
  background: currentColor !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

/* Жирный шрифт для ключевых элементов */
.price-card .price-box strong,
.price-box strong,
.price-card strong,
.plan-head span,
.plan-title-row span:first-child,
.price-card .plan-head span,
h1, h2, h3 {
  font-weight: 700 !important;
}

/* Цена — чёрная, крупная, жирная */
.price-card .price-box strong,
.price-box strong {
  color: var(--ink, #0a0a0a) !important;
  font-weight: 700 !important;
}

/* Символ ₽ — нормальный, не курсив */
.price-box strong i,
.price-card strong i {
  font-style: normal !important;
  font-weight: 400 !important;
  color: var(--muted, #86868b) !important;
  text-decoration: none !important;
}
