/* W-Dev portfolio */
:root {
  --bg: #050507;
  --bg2: #0a0b10;
  --card: #0d0f15;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .16);
  --text: #eceef4;
  --muted: #8b91a2;
  --accent: #22a0fe;
  --accent2: #5b6cff;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 1.1s;
  --wrap: 1180px;
  --r: 22px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
::selection { background: var(--accent); color: #031019; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---------- фон: медленные размытые пятна ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; will-change: transform; }
.orb.o1 { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, #1b6fc4, transparent 68%); animation: drift1 46s ease-in-out infinite alternate; }
.orb.o2 { width: 44vw; height: 44vw; right: -12vw; top: 18vh; background: radial-gradient(circle, #3a3fd0, transparent 68%); opacity: .38; animation: drift2 58s ease-in-out infinite alternate; }
.orb.o3 { width: 38vw; height: 38vw; left: 28vw; bottom: -22vw; background: radial-gradient(circle, #22a0fe, transparent 68%); opacity: .26; animation: drift3 52s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, 14vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-12vw, -14vh) scale(1.2); } }

/* ---------- появление: медленно и немного размыто ---------- */
.js [data-reveal] {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(22px);
  transition: opacity var(--slow) var(--ease), filter var(--slow) var(--ease), transform var(--slow) var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; filter: blur(0); transform: none; }

.split .w { display: inline-block; }
.js .split .w {
  opacity: 0;
  filter: blur(16px);
  transform: translateY(.4em);
  transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--i) * .1s + .15s);
}
.js .split.in .w { opacity: 1; filter: blur(0); transform: none; }

/* вход на страницу и выход */
main { animation: pageIn .9s var(--ease) backwards; }
@keyframes pageIn { from { opacity: 0; filter: blur(12px); } }
.veil {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: rgba(5, 5, 7, .6);
  -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  opacity: 0;
  transition: opacity .6s var(--ease), backdrop-filter .6s var(--ease), -webkit-backdrop-filter .6s var(--ease);
}
body.leaving .veil { opacity: 1; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); pointer-events: all; }

/* ---------- шапка ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 28px;
  padding: 24px max(20px, calc((100vw - var(--wrap)) / 2));
  border-bottom: 1px solid transparent;
  transition: background .6s var(--ease), padding .6s var(--ease), border-color .6s var(--ease);
  animation: hdrIn 1.1s var(--ease) .15s backwards;
}
.hdr.scrolled {
  padding-block: 14px;
  background: rgba(5, 5, 7, .62);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}
@keyframes hdrIn { from { opacity: 0; filter: blur(12px); } }
.logo { font: 500 20px/1 var(--display); letter-spacing: -.04em; white-space: nowrap; transition: color .6s var(--ease); }
.logo i { font-style: normal; color: var(--accent); }
.logo:hover { color: var(--accent); }
.clock { margin-left: auto; display: flex; gap: 20px; font: 400 13px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #5d6272; letter-spacing: .03em; }
.clock b { font-weight: 400; color: #aab0c0; margin-left: 8px; }
.menu-btn { display: inline-flex; align-items: center; gap: 16px; padding: 10px 0 10px 8px; font-size: 16px; transition: color .6s var(--ease); }
.menu-btn:hover { color: var(--accent); }
.menu-btn .lbl { min-width: 62px; text-align: right; }
.menu-btn .lines { position: relative; width: 26px; height: 10px; }
.menu-btn .lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.menu-btn .lines i:nth-child(1) { top: 0; }
.menu-btn .lines i:nth-child(2) { top: 8px; }
body.menu-open .menu-btn .lines i:nth-child(1) { top: 4px; transform: rotate(45deg); }
body.menu-open .menu-btn .lines i:nth-child(2) { top: 4px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px;
  padding: 110px max(20px, calc((100vw - var(--wrap)) / 2)) 48px;
  background: rgba(5, 5, 7, .78);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
body.menu-open .mnav { opacity: 1; visibility: visible; transition-delay: 0s; }
.mnav a { width: max-content; max-width: 100%; font: 400 clamp(28px, min(6vw, 8.5vh), 68px)/1.15 var(--display); letter-spacing: -.035em; padding: 4px 0; opacity: 0; filter: blur(12px); transform: translateY(14px); transition: opacity .8s var(--ease), filter .8s var(--ease), transform .8s var(--ease), color .5s var(--ease); transition-delay: 0s; }
body.menu-open .mnav a { opacity: 1; filter: blur(0); transform: none; transition-delay: calc(var(--i) * .06s + .12s), calc(var(--i) * .06s + .12s), calc(var(--i) * .06s + .12s), 0s; }
.mnav a:hover { color: var(--accent); }
.mnav .soc { display: flex; gap: 12px; margin-top: 44px; }
.mnav .soc a { width: 52px; height: 52px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 10px; color: var(--text); background: rgba(255,255,255,.03); }
.mnav .soc a:hover { border-color: var(--accent); }
.mnav a[aria-current="page"] { color: var(--accent); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  font: 500 16px/1 var(--body);
  background: var(--accent); color: #031019;
  border: 1px solid transparent;
  transition: background .9s var(--ease), color .9s var(--ease), border-color .9s var(--ease), box-shadow 1.2s var(--ease), transform 1.2s var(--ease);
}
.btn:hover { box-shadow: 0 10px 60px -8px rgba(34, 160, 254, .65); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn.sm { padding: 12px 22px; font-size: 15px; }
.btn.light { background: #fff; color: #050507; border-radius: 8px; padding: 12px 22px; font-size: 15px; }
.btn.light:hover { background: var(--accent); box-shadow: none; transform: none; }

/* ---------- секции ---------- */
section { padding: clamp(72px, 11vw, 150px) 0; position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 58px); max-width: 16ch; }
.sec-head p { color: var(--muted); max-width: 46ch; margin-top: 18px; }
.sec-head .lead { max-width: 560px; }
.link-arrow { color: var(--muted); border-bottom: 1px solid var(--line2); padding-bottom: 4px; transition: color .8s var(--ease), border-color .8s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 150px 0 90px; }
.kicker { margin-bottom: 26px; font: 300 13px/1 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(36px, 7.4vw, 100px); max-width: 15ch; line-height: 1.04; letter-spacing: -.035em; }
.hero .sub { margin-top: 34px; max-width: 52ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.hero .cta { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .where { margin-top: 70px; color: var(--muted); font-size: 15px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero .where span { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); animation: pulse 4.5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.page-hero { padding: 190px 0 40px; }
.page-hero h1 { font-size: clamp(34px, 6vw, 80px); max-width: 17ch; letter-spacing: -.035em; }
.page-hero p { margin-top: 28px; color: var(--muted); max-width: 54ch; font-size: 19px; }
.page-hero + section { padding-top: clamp(40px, 6vw, 70px); }

/* ---------- лента стека ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: tick 55s linear infinite; }
.ticker-track span { font: 400 clamp(20px, 2.4vw, 30px)/1 var(--display); letter-spacing: -.02em; color: rgba(236, 238, 244, .34); white-space: nowrap; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- карточки работ ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.chip { padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; transition: color .8s var(--ease), border-color .8s var(--ease), background .8s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip[aria-pressed="true"] { color: var(--text); background: rgba(34, 160, 254, .14); border-color: rgba(34, 160, 254, .5); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: start; }
.work { text-align: left; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; }
.work.hide { display: none; }
.cover {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--c1), var(--c2));
  transition: border-color 1s var(--ease);
}
.cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%); }
.cover .glyph { position: absolute; left: 28px; bottom: 6px; font: 500 clamp(64px, 11vw, 150px)/1 var(--display); letter-spacing: -.06em; color: rgba(255, 255, 255, .9); mix-blend-mode: soft-light; transition: transform 1.3s var(--ease), filter 1.3s var(--ease); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.work:hover .cover { border-color: rgba(34, 160, 254, .55); }
.work:hover .cover .glyph, .work:hover .cover img { transform: scale(1.06); }
.work-info { padding: 22px 6px 0; }
.work-info .t { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.work-info h3 { font-size: clamp(22px, 2.3vw, 30px); display: flex; align-items: center; gap: 14px; }
.work-info h3 svg { width: 22px; height: 22px; flex: none; opacity: 0; transform: translate(-8px, 8px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.work:hover h3 svg { opacity: 1; transform: none; color: var(--accent); }
.work-info p { color: var(--muted); margin-top: 10px; max-width: 46ch; font-size: 16px; }

/* ---------- услуги ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc {
  position: relative; padding: 38px 36px 40px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  transition: border-color 1s var(--ease), background 1s var(--ease);
}
.svc:hover { border-color: rgba(34, 160, 254, .45); background: linear-gradient(180deg, rgba(34,160,254,.09), rgba(255,255,255,.01)); }
.svc h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 14px; }
.svc p { color: var(--muted); font-size: 16px; }
.svc ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }
.svc.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ---------- продукты-полоса ---------- */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 32px; align-items: center; padding: 34px 6px; border-bottom: 1px solid var(--line); transition: background 1s var(--ease), padding 1s var(--ease); }
.row:hover { background: rgba(255, 255, 255, .025); padding-inline: 22px; }
.row h3 { font-size: clamp(20px, 2vw, 26px); }
.row p { color: var(--muted); font-size: 16px; }
.row .go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; transition: background .9s var(--ease), color .9s var(--ease), border-color .9s var(--ease); }
.row:hover .go { background: var(--accent); color: #031019; border-color: var(--accent); }
.row .go svg { width: 18px; height: 18px; }

/* ---------- этапы / принципы ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 28px 24px 30px; border: 1px solid var(--line); border-radius: var(--r); counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font: 400 14px/1 var(--display); color: var(--accent); margin-bottom: 40px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.55; }

.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.portrait {
  position: sticky; top: 120px;
  aspect-ratio: 4 / 5; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(34,160,254,.5), transparent 60%), radial-gradient(circle at 80% 90%, rgba(91,108,255,.4), transparent 55%), var(--card);
  display: flex; align-items: flex-end; padding: 30px;
}
.portrait b { font: 500 clamp(64px, 9vw, 120px)/.9 var(--display); letter-spacing: -.07em; color: rgba(255,255,255,.92); }
.portrait small { position: absolute; top: 26px; left: 30px; color: rgba(255,255,255,.7); font-size: 15px; }
.prose p { color: #c4c8d4; margin-bottom: 22px; font-size: 18px; max-width: 60ch; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts span { color: var(--muted); }
.facts b { font-weight: 500; text-align: right; }

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill { padding: 32px; border: 1px solid var(--line); border-radius: var(--r); }
.skill h3 { font-size: 20px; margin-bottom: 18px; }
.skill ul { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.skill li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 16px; }
.skill li:first-child { border-top: 0; padding-top: 0; }

/* ---------- faq ---------- */
.faq { max-width: 860px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; padding: 28px 0; font: 400 clamp(18px, 2vw, 22px)/1.3 var(--display); letter-spacing: -.02em; transition: color .8s var(--ease); }
.qa button:hover { color: var(--accent); }
.qa .pm { width: 26px; height: 26px; flex: none; position: relative; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 4px; right: 4px; top: 12px; height: 1.5px; background: currentColor; transition: transform .9s var(--ease); }
.qa .pm::after { transform: rotate(90deg); }
.qa.open .pm::after { transform: rotate(0); }
.qa .ans { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 1s var(--ease), opacity 1s var(--ease); }
.qa.open .ans { grid-template-rows: 1fr; opacity: 1; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { color: var(--muted); padding: 0 48px 30px 0; max-width: 62ch; }

/* ---------- cta ---------- */
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 9vw, 120px) 28px;
  border: 1px solid var(--line); border-radius: 32px;
  background: radial-gradient(circle at 50% 120%, rgba(34, 160, 254, .32), transparent 60%), var(--bg2);
}
.cta-card h2 { font-size: clamp(28px, 5vw, 64px); max-width: 17ch; margin: 0 auto; }
.cta-card p { color: var(--muted); max-width: 48ch; margin: 24px auto 0; }
.cta-card .btn { margin-top: 40px; }

/* ---------- контакты ---------- */
.contact { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.form { display: grid; gap: 20px; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.02); }
.field label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line2); background: rgba(5, 5, 7, .6);
  color: var(--text); font: inherit; resize: vertical;
  transition: border-color .8s var(--ease), box-shadow .8s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34, 160, 254, .15); }
.field textarea { min-height: 150px; }
.form .note { color: var(--muted); font-size: 14px; }
.links { display: grid; gap: 14px; }
.link-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color 1s var(--ease), background 1s var(--ease); }
.link-card:hover { border-color: rgba(34, 160, 254, .5); background: rgba(34, 160, 254, .06); }
.link-card b { display: block; font: 400 20px/1.2 var(--display); letter-spacing: -.02em; }
.link-card span { color: var(--muted); font-size: 15px; }
.link-card svg { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* ---------- модалка проекта ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(3, 3, 5, .6); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s linear .9s; }
.modal.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.sheet { width: min(980px, 100%); max-height: calc(100svh - 40px); overflow: auto; border: 1px solid var(--line2); border-radius: 28px; background: var(--bg2); transform: translateY(26px) scale(.97); filter: blur(10px); opacity: 0; transition: transform .85s var(--ease), filter .85s var(--ease), opacity .85s var(--ease); }
.modal.open .sheet { transform: none; filter: blur(0); opacity: 1; }
.sheet .cover { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); aspect-ratio: 21 / 8; }
.sheet-body { padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
.sheet-body h2 { font-size: clamp(26px, 3.4vw, 42px); margin: 6px 0 18px; }
.sheet-body .t { color: var(--accent); font-size: 15px; }
.sheet-body p { color: #c4c8d4; }
.sheet-body h4 { font: 500 14px/1 var(--body); color: var(--muted); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tags span { padding: 7px 14px; border: 1px solid var(--line2); border-radius: 999px; font-size: 14px; }
.sheet-links { display: grid; gap: 10px; }
.close { position: sticky; top: 14px; float: right; margin: 14px 14px -58px 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(5,5,7,.7); border: 1px solid var(--line2); display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .8s var(--ease), color .8s var(--ease); }
.close:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- подвал ---------- */
.ftr { border-top: 1px solid var(--line); padding: 64px 0 36px; background: linear-gradient(180deg, transparent, rgba(34,160,254,.05)); }
.ftr-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ftr .logo { font-size: 24px; }
.ftr p { color: var(--muted); margin-top: 16px; max-width: 36ch; font-size: 16px; }
.ftr h4 { font: 500 14px/1 var(--body); color: var(--muted); margin-bottom: 18px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr li a { color: #c4c8d4; transition: color .8s var(--ease); }
.ftr li a:hover { color: var(--accent); }
.ftr-bot { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.ftr-bot a { color: var(--text); transition: color .8s var(--ease); }
.ftr-bot a:hover { color: var(--accent); }

.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.nf h1 { font-size: clamp(90px, 22vw, 260px); letter-spacing: -.07em; line-height: .9; }
.nf p { color: var(--muted); margin: 18px 0 38px; }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .clock { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact, .sheet-body { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 420px; }
  .skills { grid-template-columns: 1fr; }
  .svc.wide { grid-template-columns: 1fr; gap: 0; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .ftr-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .menu-btn { margin-left: auto; }
  .grid, .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; gap: 14px 18px; }
  .row p { grid-column: 1; grid-row: 2; }
  .row .go { grid-column: 2; grid-row: 1 / 3; }
  .sec-head { align-items: flex-start; }
  .sheet .cover { aspect-ratio: 16 / 9; }
  .facts li { flex-direction: column; gap: 4px; }
  .facts b { text-align: left; }
}

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