:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eaf0f7;
  --surface-strong: #0d2642;
  --text: #10233a;
  --text-soft: #5d6d7d;
  --line: #d6e0eb;
  --line-strong: #aebdcd;
  --primary: #0b63e6;
  --primary-hover: #074fae;
  --primary-soft: #dbeaff;
  --cyan: #19b8cf;
  --orange: #ff8a3d;
  --green: #11a683;
  --shadow: 0 24px 70px rgba(30, 67, 104, 0.13);
  --shadow-soft: 0 12px 38px rgba(30, 67, 104, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --section-pad: clamp(36px, 3.2vw, 48px);
  --shell: min(1180px, calc(100% - 40px));
  --header-height: 82px;
}

html[data-theme="dark"] {
  --bg: #07111d;
  --surface: #0c1a29;
  --surface-soft: #122235;
  --surface-strong: #cfe1f3;
  --text: #edf6ff;
  --text-soft: #a4b5c7;
  --line: #22364a;
  --line-strong: #3a5167;
  --primary: #6aa8ff;
  --primary-hover: #91beff;
  --primary-soft: #143b69;
  --cyan: #42d3e4;
  --orange: #ff9d59;
  --green: #4bd4b1;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 28%),
    radial-gradient(circle at 92% 38%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 30%);
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
  font: inherit;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--bg);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: -0.015em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-controls,
.language-switcher,
.theme-button {
  display: flex;
  align-items: center;
}

.header-controls {
  flex: 0 0 auto;
  gap: 10px;
}

.language-switcher {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.language-button {
  width: 42px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.theme-button {
  height: 46px;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.theme-icons {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.theme-icon {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  display: none;
  color: #e68124;
}

html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: block;
  color: #ffb45f;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--orange) 45%, transparent));
}

.theme-label {
  font-size: 12px;
  font-weight: 750;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 92px) 0 var(--section-pad);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 46%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 46%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-soft) 62%, var(--surface));
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.025em;
}

html[data-theme="dark"] .event-pill {
  color: #b8d6ff;
}

.event-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--orange) 15%, transparent);
}

.eyebrow,
.section-index {
  margin: 28px 0 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-top: 0;
}

.hero h1 {
  margin: 12px 0 20px;
  display: grid;
  gap: 0.02em;
  font-size: clamp(52px, 6.4vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.058em;
  font-weight: 820;
}

.hero-lead {
  max-width: 660px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.hero-actions,
.presentation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 26%, transparent);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary,
.button-quiet {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-quiet {
  background: transparent;
}

.button-light {
  background: #fff;
  color: #0e2844;
}

.direct-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  color: var(--text-soft);
  font-size: 14px;
}

.direct-contact a:hover {
  color: var(--primary);
}

.hero-qr-card {
  appearance: none;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: min(100%, 390px);
  margin-top: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.hero-qr-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-qr-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 42%, transparent);
  outline-offset: 3px;
}

.qr-image-wrap {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.qr-image-wrap img {
  display: block;
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.qr-copy {
  display: grid;
  min-width: 0;
}

.qr-copy small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.qr-copy strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.qr-copy span {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
}

body.qr-open {
  overflow: hidden;
}

.qr-lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  background: rgba(3, 12, 23, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: zoom-out;
  overscroll-behavior: contain;
}

.qr-lightbox[hidden] {
  display: none;
}

.qr-lightbox-button {
  appearance: none;
  width: min(86vw, 86vh, 760px);
  height: min(86vw, 86vh, 760px);
  padding: 0;
  border: 0;
  border-radius: clamp(18px, 3vw, 34px);
  background: #fff;
  cursor: zoom-out;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.qr-lightbox-button:focus-visible {
  outline: 4px solid var(--primary);
  outline-offset: 6px;
}

.qr-lightbox-button img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.capability-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.capability-line li,
.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.capability-line li {
  padding: 7px 10px;
  font-size: 10px;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  padding: 38px 20px 84px;
}

.visual-frame {
  position: relative;
  width: min(100%, 480px);
  margin-inline: auto;
  aspect-ratio: 0.92;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 42px 42px 96px 42px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(4, 22, 40, 0.58), transparent 42%);
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-caption {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 24px;
  display: grid;
  color: #fff;
}

.visual-caption span {
  font-size: 12px;
  opacity: 0.78;
}

.visual-caption strong {
  font-size: 19px;
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  width: min(270px, 62%);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
}

.note-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
}

.note-top {
  top: 0;
  left: 0;
}

.note-bottom {
  right: 0;
  bottom: 0;
}

.contact-panel {
  padding: 16px 0 var(--section-pad);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 38px;
}

.section-heading .section-index,
.presentation-copy .section-index,
.final-card .section-index {
  margin: 8px 0 0;
}

.section-heading h2,
.presentation-copy h2,
.final-card h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-heading p:not(.section-index),
.presentation-copy p:not(.section-index),
.final-card p:not(.section-index) {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 17px;
}

.compact-heading {
  margin-bottom: 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-action {
  min-height: 112px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 150ms ease, border-color 150ms ease;
}

.contact-action:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.contact-number {
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.contact-action > span:nth-child(2) {
  min-width: 0;
  display: grid;
}

.contact-action small {
  color: var(--text-soft);
  font-size: 12px;
}

.contact-action strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.action-arrow {
  font-size: 20px;
}

.contact-telegram {
  border-color: color-mix(in srgb, #229ed9 36%, var(--line));
}

.contact-whatsapp {
  border-color: color-mix(in srgb, #21a366 36%, var(--line));
}

.work-section,
.capabilities-section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}

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

.work-grid .case-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
}

.work-grid .case-media {
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.case-card:hover .case-media img {
  transform: scale(1.018);
}

.case-media {
  min-height: 330px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.image-media {
  overflow: hidden;
}

.image-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: top center;
  transition: transform 350ms ease;
}

.portrait-media img {
  object-position: 50% 16%;
}

.tender-live {
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #071a11;
}

.tender-live img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top left;
}

.case-body {
  padding: 28px;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.status-live {
  color: var(--green);
}

.case-body h3 {
  margin: 18px 0 12px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.case-body > p:not(.case-note) {
  margin: 0;
  color: var(--text-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 9px;
  font-size: 9px;
}

.case-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
}

.case-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.capability-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.capability-card > span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.capability-card h3 {
  margin: 46px 0 12px;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.capability-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.presentation-section {
  padding: var(--section-pad) 0;
}

.presentation-card {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 60px;
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 42px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.presentation-visual {
  position: relative;
  min-height: 360px;
  perspective: 800px;
}

.document-stack,
.document-front {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 246px;
  height: 328px;
  border-radius: 15px;
  transform-origin: 50% 100%;
}

.document-back {
  border: 1px solid var(--line);
  background: var(--primary-soft);
  transform: translate(-38%, -47%) rotate(11deg);
}

.document-mid {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 70%, var(--cyan));
  transform: translate(-62%, -50%) rotate(-8deg);
}

.document-front {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: linear-gradient(145deg, #0c3d71, #0b72de 68%, #22b4cc);
  color: #fff;
  transform: translate(-50%, -50%) rotate(1deg);
  box-shadow: 0 28px 60px rgba(6, 49, 92, 0.35);
}

.document-front span,
.document-front small {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.document-front strong {
  margin: auto 0;
  font-size: 35px;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.final-cta {
  padding: 0 0 42px;
}

.final-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  padding: clamp(34px, 6vw, 70px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 85% 20%, rgba(65, 213, 230, 0.2), transparent 22%),
    linear-gradient(145deg, #0a2746, #0b5cae);
  color: #fff;
  box-shadow: var(--shadow);
}

.final-card .section-index {
  color: #80dcf1;
}

.final-card p:not(.section-index) {
  color: rgba(255, 255, 255, 0.74);
}

.final-actions {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.final-whatsapp {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 750;
}

.final-whatsapp:hover {
  color: #fff;
}

.contact-save-dialog {
  width: min(540px, calc(100% - 32px));
  margin: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.contact-save-dialog::backdrop {
  background: rgba(3, 12, 23, 0.66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.contact-save-dialog.dialog-fallback-open {
  position: fixed;
  z-index: 1000;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

body.dialog-open::after {
  content: "";
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(3, 12, 23, 0.66);
}

.dialog-close {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}

.dialog-close::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid color-mix(in srgb, var(--primary) 70%, var(--line));
  border-radius: inherit;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dialog-close:hover::before {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 15%, var(--surface));
}

.dialog-close:active::before {
  transform: scale(0.94);
}

.dialog-close:focus-visible {
  outline: none;
}

.dialog-close:focus-visible::before {
  outline: 2px solid color-mix(in srgb, var(--primary) 58%, transparent);
  outline-offset: 2px;
}

.dialog-close svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.dialog-kicker {
  margin: 0 46px 12px 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-save-dialog h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.contact-save-dialog > p:not(.dialog-kicker) {
  margin: 18px 0 0;
  color: var(--text-soft);
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 10px;
  margin-top: 26px;
}

.dialog-actions .button {
  width: 100%;
}

.site-footer {
  padding: 34px 0 46px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.footer-inner p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.footer-meta {
  text-align: right;
}

@media (max-width: 960px) {
  :root { --shell: min(100% - 32px, 760px); }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 630px; }
  .section-heading { grid-template-columns: 1fr; gap: 10px; }
  .section-heading .section-index { margin-top: 0; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presentation-card { grid-template-columns: 1fr; }
  .presentation-visual { order: -1; min-height: 330px; }
  .final-card { grid-template-columns: 1fr; align-items: start; }
  .final-actions { justify-items: start; }
}

@media (max-width: 720px) {
  :root { --header-height: 70px; --shell: calc(100% - 28px); }
  .site-header { min-height: var(--header-height); }
  .header-inner { min-height: var(--header-height); gap: 10px; }
  .brand { max-width: 126px; }
  .brand-copy { display: grid; }
  .brand-copy strong { font-size: 12px; line-height: 1.15; }
  .brand-copy small { display: none; }
  .theme-button { width: 42px; height: 42px; justify-content: center; padding: 0; }
  .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .language-switcher { padding: 3px; }
  .language-button { width: 38px; height: 34px; }
  .hero { padding-top: 52px; padding-bottom: var(--section-pad); }
  .hero h1 { font-size: clamp(46px, 15vw, 62px); line-height: 0.98; }
  .hero-actions, .presentation-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .direct-contact { display: grid; gap: 4px; }
  .direct-contact > span { display: none; }
  .hero-qr-card { grid-template-columns: 112px minmax(0, 1fr); width: 100%; }
  .qr-image-wrap { width: 112px; height: 112px; }
  .qr-image-wrap img { width: 106px; height: 106px; }
  .hero-visual { min-height: 0; padding: 32px 0 76px; }
  .visual-frame { width: 92%; border-radius: 30px 30px 70px 30px; }
  .floating-note { width: min(250px, 70%); }
  .note-top { top: 0; }
  .note-bottom { bottom: 0; }
  .contact-panel { padding-bottom: var(--section-pad); }
  .contact-grid, .work-grid { grid-template-columns: 1fr; }
  .work-grid .case-card { display: block; }
  .work-grid .case-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-action { min-height: 94px; padding: 18px; grid-template-columns: 30px 1fr auto; }
  .work-section, .capabilities-section, .presentation-section { padding: var(--section-pad) 0; }
  .section-heading { margin-bottom: 28px; }
  .case-media, .image-media img { min-height: 230px; }
  .case-body { padding: 22px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 0; }
  .capability-card h3 { margin-top: 28px; }
  .presentation-card { gap: 22px; padding: 28px 22px; border-radius: 28px; }
  .presentation-visual { min-height: 290px; transform: scale(0.86); margin-inline: -28px; }
  .final-card { gap: 28px; padding: 34px 24px; border-radius: 28px; }
  .contact-save-dialog { padding: 28px 20px 22px; border-radius: 22px; }
  .dialog-actions { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .header-controls { gap: 6px; }
  .language-button { width: 34px; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 17px; }
  .floating-note { font-size: 10px; }
  .contact-action strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
