/* =========================================================
   Алина Ветрова — портфолио. Стили без сборки.
   Цвета заданы токенами: светлая тема по умолчанию,
   тёмная — по системной настройке или кнопке (data-theme).
   ========================================================= */

:root {
  --bg: #F3F5FA;
  --surface: #FFFFFF;
  --surface-2: #E9EDF6;
  --ink: #10162B;
  --muted: #4E5770;
  --line: #D6DCEA;
  --accent: #3346D3;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3E7FF;
  --warm: #F28C38;
  --ok: #157A47;
  --error: #B42318;
  --focus: #3346D3;
  --header-bg: rgba(243, 245, 250, 0.82);
  --contact-bg: #10162B;
  --contact-surface: #1A2240;
  --contact-ink: #F3F5FA;
  --contact-muted: #B9C0D4;
  --contact-line: #3A4466;
  --contact-accent: #A9B3FF;
  --contact-error: #FFB4A8;
  --shadow: 0 1px 2px rgba(16, 22, 43, 0.06), 0 12px 32px -12px rgba(16, 22, 43, 0.18);
  --cover-l: 90%;
  --cover-s: 85%;
  --shape-l: 48%;
  --puff: #FFFFFF;

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1122;
    --surface: #151C33;
    --surface-2: #1C2440;
    --ink: #EEF1F8;
    --muted: #A9B1C7;
    --line: #2A3352;
    --accent: #A9B3FF;
    --accent-ink: #0C1122;
    --accent-soft: #232C55;
    --ok: #5FD39A;
    --error: #FF9C8F;
    --focus: #A9B3FF;
    --header-bg: rgba(12, 17, 34, 0.8);
    --contact-bg: #070B18;
    --contact-surface: #121A33;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --cover-l: 24%;
    --cover-s: 40%;
    --shape-l: 70%;
    --puff: #1A2242;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0C1122;
  --surface: #151C33;
  --surface-2: #1C2440;
  --ink: #EEF1F8;
  --muted: #A9B1C7;
  --line: #2A3352;
  --accent: #A9B3FF;
  --accent-ink: #0C1122;
  --accent-soft: #232C55;
  --ok: #5FD39A;
  --error: #FF9C8F;
  --focus: #A9B3FF;
  --header-bg: rgba(12, 17, 34, 0.8);
  --contact-bg: #070B18;
  --contact-surface: #121A33;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --cover-l: 24%;
  --cover-s: 40%;
  --shape-l: 70%;
  --puff: #1A2242;
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-s);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.icon {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s ease;
}
.icon-btn:hover { border-color: var(--ink); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  white-space: nowrap;
}

.nav-list { display: flex; gap: 4px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: background-color .15s ease;
}
.nav-link:hover { background: var(--surface-2); }
.nav-link[aria-current="true"] { background: var(--accent-soft); color: var(--ink); }

.header-controls { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.lang-btn {
  min-width: 44px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
}
.lang-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-btn:not([aria-pressed="true"]):hover { color: var(--ink); }

.icon-sun { display: none; }
.is-dark .icon-moon { display: none; }
.is-dark .icon-sun { display: block; }

.menu-btn { display: none; }
.icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Приветствие ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6.2vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 1000px;
}
.hero-title span { display: block; }
.hero-accent { color: var(--accent); }
.hero-lead {
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
}
.hero-facts li::before { content: "— "; color: var(--accent); }

.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.puff {
  position: absolute;
  border-radius: 999px;
  background: var(--puff);
  opacity: .9;
}
.puff::before, .puff::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.puff-1 { width: 300px; height: 90px; right: -40px; top: 70px; animation: drift 22s ease-in-out infinite alternate; }
.puff-1::before { width: 150px; height: 150px; left: 50px; top: -80px; }
.puff-1::after { width: 110px; height: 110px; left: 160px; top: -50px; }
.puff-2 { width: 220px; height: 70px; right: 22%; bottom: 60px; animation: drift 28s ease-in-out infinite alternate-reverse; }
.puff-2::before { width: 110px; height: 110px; left: 30px; top: -60px; }
.puff-2::after { width: 80px; height: 80px; left: 110px; top: -36px; }
.puff-3 { width: 160px; height: 50px; right: 8%; top: 46%; opacity: .6; animation: drift 34s ease-in-out infinite alternate; }
.puff-3::before { width: 80px; height: 80px; left: 24px; top: -44px; }
.puff-3::after { width: 60px; height: 60px; left: 84px; top: -28px; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-60px); }
}

/* ---------- Секции ---------- */
.section { padding: 104px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.kicker { font-family: var(--font-mono); font-size: 14px; color: var(--accent); font-weight: 500; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.01em; }
.section-lead { color: var(--muted); font-size: 18px; }

/* ---------- Облако ---------- */
.section-cloud { background: var(--surface); border-block: 1px solid var(--line); }
.cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  padding: 56px 32px;
  border-radius: var(--radius-l);
  background: var(--bg);
}
.skill {
  border: 2px solid transparent;
  background: none;
  padding: 4px 12px;
  min-height: 44px;
  border-radius: 14px;
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--ink);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.skill:hover { background: var(--surface); transform: translateY(-2px); }
.skill[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.skill.w1 { font-size: 16px; font-weight: 500; color: var(--muted); }
.skill.w2 { font-size: 20px; font-weight: 500; }
.skill.w3 { font-size: 26px; font-weight: 500; }
.skill.w4 { font-size: 34px; font-weight: 700; }
.skill.w5 { font-size: 44px; font-weight: 700; color: var(--accent); }
.skill.w1[aria-pressed="true"], .skill.w5[aria-pressed="true"] { color: var(--accent-ink); }

.cloud-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}
.cloud-legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { border-radius: 50%; background: var(--accent); }
.legend-dot.w5 { width: 16px; height: 16px; }
.legend-dot.w3 { width: 11px; height: 11px; opacity: .75; }
.legend-dot.w1 { width: 7px; height: 7px; opacity: .55; }

/* ---------- Проекты ---------- */
.filters-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  transition: border-color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-skill { background: var(--accent-soft); border-color: var(--accent); }

.projects-count { margin: 20px 0 16px; color: var(--muted); font-size: 15px; min-height: 1.6em; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.project-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: card-in .35s ease both;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.project-card:focus-visible { outline-offset: 4px; border-radius: var(--radius-m); }
.card-cover { display: block; width: 100%; aspect-ratio: 16 / 9; }
.card-cover svg { width: 100%; height: 100%; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.card-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.card-title { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.25; }
.card-text { color: var(--muted); font-size: 16px; line-height: 1.5; }
.card-more {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.projects-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  border-radius: var(--radius-m);
  border: 1px dashed var(--line);
  color: var(--muted);
}

/* ---------- Связь ---------- */
.section-contact {
  background: var(--contact-bg);
  color: var(--contact-ink);
  --ink: var(--contact-ink);
  --muted: var(--contact-muted);
  --line: var(--contact-line);
  --surface: var(--contact-surface);
  --accent: var(--contact-accent);
  --accent-ink: #0C1122;
  --focus: var(--contact-accent);
  --error: var(--contact-error);
  --ok: #5FD39A;
}
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}
.contact-info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }
.contact-info .section-title { max-width: 520px; }

.email-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.email-label { width: 100%; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.email-link { color: var(--ink); font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 24px); text-underline-offset: 6px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.email-link:hover { color: var(--accent); }
.email-box .btn-small { background: var(--surface); color: var(--ink); border-color: var(--line); }
.email-box .btn-small:hover { border-color: var(--ink); }

.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: border-color .15s ease, background-color .15s ease;
}
.social:hover { border-color: var(--accent); background: var(--surface); }

.contact-form {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
}
.form-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.form-note { color: var(--muted); font-size: 14px; margin-top: -8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--contact-bg);
  color: var(--ink);
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.field ::placeholder { color: var(--muted); opacity: .8; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: 14px; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok {
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  border: 1px solid var(--ok);
  color: var(--ink);
}
.form-status.is-error { color: var(--error); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--contact-bg); color: var(--contact-muted); border-top: 1px solid var(--contact-line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 28px; font-size: 14px; }
.to-top { color: var(--contact-ink); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Модальное окно проекта ---------- */
.project-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
}
.project-dialog::backdrop { background: rgba(8, 12, 26, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.project-dialog[open] { animation: dialog-in .25s ease both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-inner { position: relative; }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 1; }
.dialog-cover { aspect-ratio: 16 / 7; }
.dialog-cover svg { width: 100%; height: 100%; }
.dialog-body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.dialog-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.dialog-title { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 32px); }
.dialog-desc { color: var(--muted); }
.dialog-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 4px 0; }
.dialog-facts dt { font-size: 13px; font-family: var(--font-mono); color: var(--muted); }
.dialog-facts dd { margin: 0; font-weight: 700; }
.dialog-sub { font-size: 16px; font-weight: 700; margin-top: 8px; }
.dialog-list { display: flex; flex-direction: column; gap: 6px; }
.dialog-list li { padding-left: 22px; position: relative; }
.dialog-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* ---------- Уведомление ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 8px; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-link { width: 100%; min-height: 52px; font-size: 18px; }
  .hero { padding: 56px 0 80px; }
  .section { padding: 72px 0; }
  .cloud { padding: 32px 12px; gap: 6px 10px; }
  .skill.w5 { font-size: 32px; }
  .skill.w4 { font-size: 26px; }
  .skill.w3 { font-size: 21px; }
  .skill.w2 { font-size: 18px; }
  .contact-form { padding: 22px; }
  .dialog-body { padding: 22px 20px 24px; }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
  .socials { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 auto; }
  .puff-2, .puff-3 { display: none; }
  .puff-1 { top: 18px; right: -150px; opacity: .7; }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
}

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

@media (forced-colors: active) {
  .chip[aria-pressed="true"], .lang-btn[aria-pressed="true"], .skill[aria-pressed="true"] { outline: 2px solid CanvasText; }
}

@media print {
  .site-header, .hero-sky, .contact-form, .toast, .filters-row { display: none; }
  body { background: #fff; color: #000; }
}
