:root {
  color-scheme: dark;
  --bg: #060712;
  --bg-2: #0b1020;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f8fbff;
  --muted: #aab7cc;
  --cyan: #67e8f9;
  --violet: #8b5cf6;
  --green: #34d399;
  --amber: #fbbf24;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.1), transparent 34%),
    linear-gradient(225deg, rgba(139, 92, 246, 0.12), transparent 40%),
    linear-gradient(180deg, var(--bg), #0b0c18 48%, #060712);
  overflow-x: hidden;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.36) 58%, transparent 100%);
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(103, 232, 249, 0.16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.16), transparent 26%),
    radial-gradient(circle at 72% 82%, rgba(52, 211, 153, 0.08), transparent 30%);
}

.site-backdrop__canvas,
.site-backdrop__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-backdrop__canvas {
  opacity: 0.72;
}

.site-backdrop__grid {
  background:
    linear-gradient(100deg, rgba(103, 232, 249, 0.12), transparent 24%),
    linear-gradient(280deg, rgba(139, 92, 246, 0.13), transparent 44%);
  mix-blend-mode: screen;
  opacity: 0.82;
}

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  border: 1px solid transparent;
  transition: 220ms ease;
}

.site-header.is-scrolled {
  height: 60px;
  background: rgba(6, 7, 18, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(103, 232, 249, 0.52);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.16), rgba(139, 92, 246, 0.14));
  color: var(--cyan);
  box-shadow: inset 0 0 30px rgba(103, 232, 249, 0.08);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(103, 232, 249, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.section {
  position: relative;
  padding: 116px max(24px, calc((100vw - 1180px) / 2));
  scroll-margin-top: 92px;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  align-items: center;
  gap: 56px;
  padding-top: 120px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(46px, 8vw, 94px);
  line-height: 0.95;
  max-width: 890px;
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  margin-bottom: 18px;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy,
.section-head p,
.contact-copy p,
.about-copy p,
.service-card p,
.project-body p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 670px;
  font-size: 18px;
}

.hero-actions,
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn,
button,
.text-link {
  cursor: pointer;
  border: 0;
  font: inherit;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  transition: 180ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #04101b;
  box-shadow: 0 18px 44px rgba(103, 232, 249, 0.22);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn:hover,
.text-link:hover,
button:hover {
  transform: translateY(-2px);
}

.contact-button {
  gap: 10px;
}

.contact-button__icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  flex: 0 0 auto;
}

.contact-button__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-button--whatsapp {
  background: linear-gradient(135deg, #25d366, var(--cyan));
  color: #03140d;
}

.contact-button--telegram {
  border-color: rgba(103, 232, 249, 0.34);
  color: var(--text);
}

.contact-button--telegram .contact-button__icon {
  color: var(--cyan);
}

.hero-signal {
  position: relative;
  z-index: 1;
  min-height: 520px;
  border-left: 1px solid rgba(103, 232, 249, 0.24);
  border-right: 1px solid rgba(139, 92, 246, 0.2);
}

.signal-line {
  position: absolute;
  top: 16%;
  left: 8%;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scan 4s linear infinite;
}

.signal-line.short {
  top: 66%;
  left: 22%;
  width: 56%;
  animation-delay: -2s;
}

.signal-core {
  position: absolute;
  inset: 20% 0 18%;
  display: grid;
  align-content: center;
  gap: 22px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(255, 255, 255, 0.07) 29px 30px);
}

.signal-core span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(40px, 7vw, 74px);
  font-weight: 900;
  text-align: right;
}

@keyframes scan {
  from { transform: translateY(0); opacity: 0.2; }
  45% { opacity: 0.9; }
  to { transform: translateY(220px); opacity: 0.2; }
}

.setup-warning {
  margin: 0 auto;
  width: min(1180px, calc(100% - 48px));
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 8px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.project-grid,
.service-grid,
.stats-grid {
  display: grid;
  gap: 18px;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.project-stack {
  display: grid;
  gap: 14px;
}

.project-extra-wrap {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.project-card[hidden] {
  display: none;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card,
.service-card,
.stat-card,
.contact-form,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.project-card,
.service-card {
  overflow: hidden;
  transition: 220ms ease;
}

.project-card:hover,
.service-card:hover,
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 232, 249, 0.36);
  background: var(--panel-strong);
}

.project-media {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.08), rgba(139, 92, 246, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.project-media img,
.project-visual {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-media img {
  padding: 10px;
}

.project-visual {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.22), rgba(139, 92, 246, 0.18)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
}

.project-visual span {
  font-size: 64px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.86);
}

.project-card--featured {
  display: grid;
  min-height: 100%;
}

.project-card--featured .project-media {
  aspect-ratio: 16 / 10;
}

.project-card--featured .project-body {
  padding: 26px;
}

.project-card--compact {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.project-card--compact .project-media {
  height: 100%;
  min-height: 132px;
  aspect-ratio: auto;
}

.project-card--compact .project-media img,
.project-card--compact .project-visual {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.project-card--compact .project-body {
  padding: 18px;
}

.project-card--compact .badge {
  margin-bottom: 10px;
}

.project-card--compact h3 {
  margin-top: 0;
}

.project-card--compact p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-body {
  padding: 22px;
}

.badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 9px;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--cyan);
}

.service-media {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(103, 232, 249, 0.16));
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  border-radius: 8px;
}

.service-card--mini {
  display: grid;
  grid-template-rows: minmax(132px, auto) auto;
  min-height: 194px;
  overflow: hidden;
  cursor: pointer;
  transition: 220ms ease;
}

.service-card--mini[hidden] {
  display: none;
}

.service-card--mini:hover,
.service-card--mini:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(103, 232, 249, 0.36);
  background: var(--panel-strong);
  outline: none;
}

.service-card--mini .service-media {
  width: 100%;
  height: auto;
  min-height: 132px;
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.12), rgba(139, 92, 246, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.service-card--mini .service-media img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  border-radius: 0;
}

.service-card--mini .service-media span {
  font-size: 42px;
}

.service-title {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin: 0;
  padding: 12px 14px 14px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.portfolio-toggle,
.service-toggle {
  display: none;
  margin: 18px auto 0;
  padding: 13px 18px;
  border: 1px solid rgba(103, 232, 249, 0.34);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(103, 232, 249, 0.08);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.portfolio-toggle,
.service-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-detail-trigger] {
  cursor: pointer;
}

[data-detail-trigger]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.detail-modal[hidden] {
  display: none;
}

.detail-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.detail-modal__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(103, 232, 249, 0.18), transparent 34%),
    rgba(2, 4, 13, 0.78);
  backdrop-filter: blur(16px);
}

.detail-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  width: min(980px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.08), transparent 34%),
    rgba(10, 13, 27, 0.96);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.detail-modal.is-open .detail-modal__panel {
  animation: modalRise 180ms ease-out;
}

.detail-modal__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  line-height: 1;
}

.detail-modal__media {
  display: grid;
  min-height: 420px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.22), rgba(139, 92, 246, 0.18)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
}

.detail-modal__media img {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
}

.detail-modal__fallback {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(58px, 8vw, 108px);
  font-weight: 900;
}

.detail-modal__content {
  overflow-y: auto;
  padding: 44px;
}

.detail-modal__content .badge {
  margin-bottom: 18px;
}

.detail-modal__content h2 {
  font-size: clamp(30px, 4vw, 54px);
}

.detail-modal__content p,
.detail-modal__details {
  color: var(--muted);
  line-height: 1.72;
}

.detail-modal__details {
  margin-top: 20px;
  white-space: pre-line;
}

.detail-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 42px;
  align-items: center;
}

.about-copy blockquote {
  margin: 28px 0;
  padding-left: 18px;
  border-left: 2px solid var(--cyan);
  color: var(--text);
  font-size: 20px;
  line-height: 1.6;
}

.skills-list {
  display: grid;
  gap: 16px;
}

.skill-item span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.skill-item div {
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-item i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.about-visual {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.1), rgba(139, 92, 246, 0.12));
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.profile-placeholder {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.profile-placeholder span {
  font-size: 110px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.86);
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.stat-card {
  padding: 24px;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 34px;
  color: var(--cyan);
}

.stat-card span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(103, 232, 249, 0.72);
}

.form-alert {
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
}

.form-alert.success {
  background: rgba(52, 211, 153, 0.14);
  color: #bbf7d0;
}

.form-alert.error {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.contact-list a {
  color: var(--text);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 900;
}

.faq-item p {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 56px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.site-footer p,
.footer-links a,
.social-links a {
  color: var(--muted);
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a:hover,
.social-links a:hover {
  color: var(--cyan);
}

.social-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  transition: 180ms ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.42);
  background: rgba(103, 232, 249, 0.1);
}

.social-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.back-top {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cyan);
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .about-layout,
  .contact-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-signal {
    min-height: 280px;
  }

  .project-grid,
  .service-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-showcase,
  .project-extra-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card--compact {
    grid-template-columns: 118px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: min(100% - 20px, 1180px);
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    padding: 10px;
    background: rgba(6, 7, 18, 0.94);
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    display: grid;
  }

  .section {
    padding: 86px 18px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
  }

  h1 {
    font-size: clamp(40px, 14vw, 62px);
  }

  .project-grid,
  .service-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .project-card--featured .project-body,
  .project-card--compact .project-body {
    padding: 18px;
  }

  .project-card--compact {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .project-card--compact .project-media {
    min-height: 112px;
  }

  .project-media img {
    padding: 7px;
  }

  .project-card--compact .project-visual span {
    font-size: 34px;
  }

  .project-card--compact h3 {
    font-size: 17px;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-card--mini {
    grid-template-rows: minmax(96px, auto) auto;
    min-height: 154px;
  }

  .service-card--mini .service-media {
    min-height: 96px;
  }

  .service-title {
    min-height: 54px;
    padding: 10px;
    font-size: 14px;
  }

  .detail-modal {
    place-items: center;
    padding: 12px;
  }

  .detail-modal__panel {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 24px);
    width: 100%;
  }

  .detail-modal__media {
    min-height: 220px;
    max-height: 32svh;
  }

  .detail-modal__content {
    padding: 26px 18px 20px;
  }

  .detail-modal__close {
    top: 10px;
    right: 10px;
  }

  .site-footer {
    padding: 42px 18px;
  }
}
