/* ═════════════════════════════════════════════════════════════
   AzimDev — стили сайта-портфолио
   Тёмная тема по умолчанию, светлая — через [data-theme="light"].
   ═════════════════════════════════════════════════════════════ */

/* ── Токены ── */
:root {
  --bg: #0c0c0e;
  --bg-2: #111114;
  --bg-3: #17171b;
  --card: #141417;
  --card-2: #1a1a1e;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #eeeae3;
  --text-2: #c2bdb3;
  --muted: #8f8a81;
  --faint: #66625b;
  --gold: #c8a96e;
  --gold-2: #e5c890;
  --gold-3: #9e8150;
  --gold-a: rgba(200, 169, 110, .11);
  --gold-b: rgba(200, 169, 110, .26);
  --on-gold: #17130b;
  --teal: #4fbfa8;
  --teal-a: rgba(79, 191, 168, .12);
  --amber: #e2a64b;
  --danger: #e8705c;
  --glass: rgba(20, 20, 23, .72);
  --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, .32);
  --stage: radial-gradient(120% 100% at 50% 108%, rgba(200, 169, 110, .17) 0%, rgba(200, 169, 110, 0) 56%),
           linear-gradient(180deg, #19191d 0%, #121215 100%);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --nav-h: 74px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7f5f0;
  --bg-2: #f0ece5;
  --bg-3: #e9e4db;
  --card: #ffffff;
  --card-2: #fbf9f5;
  --line: rgba(24, 20, 12, .08);
  --line-2: rgba(24, 20, 12, .15);
  --text: #17140e;
  --text-2: #3f3a31;
  --muted: #6d675d;
  --faint: #a19b90;
  --gold: #9d7638;
  --gold-2: #7f5e27;
  --gold-3: #c19b5f;
  --gold-a: rgba(157, 118, 56, .1);
  --gold-b: rgba(157, 118, 56, .24);
  --on-gold: #ffffff;
  --teal: #1f8a71;
  --teal-a: rgba(31, 138, 113, .1);
  --glass: rgba(255, 255, 255, .78);
  --shadow: 0 24px 60px rgba(60, 45, 15, .13);
  --shadow-sm: 0 10px 26px rgba(60, 45, 15, .08);
  --stage: radial-gradient(120% 100% at 50% 108%, rgba(157, 118, 56, .17) 0%, rgba(157, 118, 56, 0) 56%),
           linear-gradient(180deg, #fdfcfa 0%, #f1ede5 100%);
  color-scheme: light;
}

/* ── Основа ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
strong, b { font-weight: 700; }
::selection { background: var(--gold-b); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: clamp(80px, 10vw, 128px) 0; }
main > .section:nth-of-type(even) { background: var(--bg-2); }

/* плавная смена темы — только в момент переключения */
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, fill .3s ease !important;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

.progress {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2), var(--teal));
  z-index: 200; pointer-events: none;
}

/* ── Типографика разделов ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.sec-title {
  font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -.035em;
  text-wrap: balance;
}
.sec-sub { margin-top: 16px; color: var(--muted); font-size: 1.04rem; max-width: 560px; line-height: 1.7; text-wrap: pretty; }
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-head--center .sec-sub { margin-inline: auto; }

/* ── Кнопки ── */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 22px; border-radius: 13px;
  font-size: .95rem; font-weight: 700; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .3s var(--spring), box-shadow .3s ease, background-color .2s, border-color .2s, color .2s;
  isolation: isolate; overflow: hidden;
}
.btn svg { flex-shrink: 0; transition: transform .3s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: .88rem; border-radius: 11px; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 1rem; border-radius: 15px; }
.btn--block { width: 100%; }
.btn--gold {
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px -8px rgba(200, 169, 110, .55);
}
[data-theme="light"] .btn--gold { background: linear-gradient(180deg, #b0894a 0%, var(--gold) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 22px -8px rgba(157,118,56,.6); }
.btn--gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 32px -10px rgba(200, 169, 110, .7); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: var(--text); }
[data-theme="light"] .btn--ghost { background: rgba(255, 255, 255, .6); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); background: var(--gold-a); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold-b); background: var(--gold-a); }

/* ── Пилюли, метки, теги ── */
.pill {
  display: inline-flex; align-items: center; gap: 9px; min-height: 34px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .82rem; font-weight: 600; color: var(--text-2);
}
.pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.pill__dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--teal); opacity: 0; animation: ping 2.2s var(--ease) infinite;
}
.pill--status.is-busy .pill__dot, .pill--status.is-busy .pill__dot::after { background: var(--amber); border-color: var(--amber); }
.pill--news { cursor: pointer; padding-left: 5px; gap: 10px; max-width: 100%; transition: border-color .2s, transform .3s var(--spring); }
.pill--news:hover { border-color: var(--gold-b); transform: translateY(-1px); }
.pill--news svg { color: var(--gold); flex-shrink: 0; transition: transform .3s var(--ease); }
.pill--news:hover svg { transform: translateX(3px); }
.pill__tag {
  flex-shrink: 0; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--on-gold);
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
}
.pill__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--gold-a); border: 1px solid var(--gold-b); color: var(--gold);
  font-size: .78rem; font-weight: 700; letter-spacing: .01em;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 4px 11px; border-radius: 8px; border: 1px solid var(--line-2);
  font-size: .78rem; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .015);
}
.tags--sm li { padding: 3px 9px; font-size: .72rem; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  font-size: .84rem; font-weight: 600; color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s, transform .25s var(--spring);
}
.chip:hover { transform: translateY(-2px); color: var(--text); }
.chip--hi { color: var(--gold-2); border-color: var(--gold-b); background: var(--gold-a); }
[data-theme="light"] .chip--hi { color: var(--gold); }

/* ═════════ ШАПКА ═════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; }
/* Логотип — текстом, старым фирменным шрифтом (как на прежнем сайте) */
.logo {
  font-family: 'Outfit', var(--font); font-weight: 800; font-size: 1.1875rem; line-height: 1;
  letter-spacing: .04em; text-transform: uppercase; color: var(--gold-2); flex-shrink: 0;
  transition: color .2s;
}
.logo:hover { color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 13px; border-radius: 10px;
  font-size: .9rem; font-weight: 600; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
[data-theme="light"] .nav__links a:hover { background: rgba(0, 0, 0, .04); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--gold);
}
.nav__mobile-cta { display: none !important; }
.nav__right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; align-items: center; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); }
.lang__btn { padding: 5px 9px; border-radius: 9px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); transition: color .2s, background-color .2s; }
.lang__btn:hover { color: var(--text); }
.lang__btn.is-on { background: var(--gold-a); color: var(--gold); }
.theme-btn { position: relative; overflow: hidden; }
.theme-btn svg { position: absolute; transition: transform .45s var(--ease), opacity .3s; }
[data-theme="dark"] .theme-btn .i-moon, :root:not([data-theme]) .theme-btn .i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="light"] .theme-btn .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px; }
.burger span { display: block; height: 1.7px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.7px) rotate(-45deg); }

/* ═════════ ПЕРВЫЙ ЭКРАН ═════════ */
.hero {
  position: relative; min-height: min(100svh, 980px);
  padding: calc(var(--nav-h) + 48px) 0 96px;
  display: flex; align-items: center; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb--1 { width: 620px; height: 620px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(200, 169, 110, .38), transparent 65%); animation: drift 16s ease-in-out infinite alternate; }
.orb--2 { width: 460px; height: 460px; left: -180px; bottom: -120px; background: radial-gradient(circle, rgba(79, 191, 168, .22), transparent 65%); animation: drift 20s ease-in-out infinite alternate-reverse; }
[data-theme="light"] .orb { opacity: .45; }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 30%, transparent 85%);
  opacity: .6;
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }

.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; animation: up .7s var(--ease) both; }
.hero__title { font-size: clamp(3.1rem, 7.4vw, 6.4rem); font-weight: 800; line-height: .94; letter-spacing: -.05em; margin-bottom: 22px; }
.hero__name { display: block; animation: up .8s var(--ease) both .05s; }
.hero__name--2 {
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold) 45%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation-delay: .12s; padding-bottom: .06em;
}
[data-theme="light"] .hero__name--2 { background-image: linear-gradient(100deg, #b38a49 0%, var(--gold) 45%, #6d4f1d 100%); }
.hero__role { font-size: clamp(1.1rem, 1.7vw, 1.3rem); font-weight: 700; color: var(--text); margin-bottom: 18px; animation: up .8s var(--ease) both .18s; }
.hero__role em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--muted); }
.hero__lead { max-width: 540px; color: var(--text-2); font-size: 1.06rem; line-height: 1.75; margin-bottom: 34px; animation: up .8s var(--ease) both .24s; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; animation: up .8s var(--ease) both .3s; }
.hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-bottom: 44px; animation: up .8s var(--ease) both .36s; }
.link-cv { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 700; color: var(--text-2); border-bottom: 1px dashed var(--line-2); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.link-cv:hover { color: var(--gold); border-color: var(--gold); }
.hero__sep { width: 1px; height: 22px; background: var(--line-2); }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s, transform .3s var(--spring);
}
.socials a:hover { color: var(--gold); border-color: var(--gold-b); background: var(--gold-a); transform: translateY(-3px); }
.hero__stats { display: flex; gap: 0; max-width: 520px; padding-top: 28px; border-top: 1px solid var(--line); animation: up .8s var(--ease) both .42s; }
.stat { flex: 1; padding-right: 20px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__val { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat__lbl { margin-top: 8px; font-size: .85rem; color: var(--muted); font-weight: 500; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 430px); animation: up 1s var(--ease) both .15s; }
.portrait { position: relative; }
.portrait__frame {
  position: relative; z-index: 1; aspect-ratio: 3 / 4; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--bg-3);
  box-shadow: var(--shadow);
}
.portrait__frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35) 100%);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.portrait:hover .portrait__frame img { transform: scale(1.04); }
.portrait__ring {
  position: absolute; inset: -14px; border-radius: calc(var(--r-xl) + 14px); z-index: 0;
  background: conic-gradient(from 210deg, transparent 0deg, rgba(200, 169, 110, .55) 70deg, transparent 150deg, rgba(79, 191, 168, .35) 230deg, transparent 300deg);
  filter: blur(22px); opacity: .55; animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chip-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm); font-size: .8rem; color: var(--muted); line-height: 1.2;
}
.chip-float b { display: block; font-size: 1.1rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.chip-float__ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-a); color: var(--gold); flex-shrink: 0; }
.chip-float__ico--teal { background: var(--teal-a); color: var(--teal); }
.chip-float--a { top: 9%; right: -34px; animation: floatY 6s ease-in-out infinite; }
.chip-float--b { bottom: 21%; left: -46px; animation: floatY 7s ease-in-out infinite reverse; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.feat-float {
  position: absolute; z-index: 3; left: -58px; bottom: -30px; width: 290px;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; text-align: left;
  border-radius: 18px; background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow); transition: transform .35s var(--spring), border-color .25s;
}
.feat-float:hover { transform: translateY(-4px); border-color: var(--gold-b); }
.feat-float__img { width: 92px; flex-shrink: 0; aspect-ratio: 16 / 10; border-radius: 11px; overflow: hidden; background: var(--stage); display: grid; place-items: center; }
.feat-float__img img { width: 128%; max-width: none; height: auto; }
.feat-float__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feat-float__lbl { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.feat-float__title { font-size: .98rem; font-weight: 800; color: var(--text); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feat-float__arr { margin-left: auto; color: var(--muted); flex-shrink: 0; transition: color .2s, transform .3s var(--ease); }
.feat-float:hover .feat-float__arr { color: var(--gold); transform: translate(2px, -2px); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line-2);
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; border-radius: 3px; background: var(--gold); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ── Бегущая строка ── */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0;
  border-block: 1px solid var(--line); background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; width: max-content; animation: marquee 48s linear infinite;
  will-change: transform; transform: translate3d(0, 0, 0); backface-visibility: hidden;
}
.marquee__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee__group span { font-size: 1.05rem; font-weight: 700; color: var(--muted); letter-spacing: -.01em; white-space: nowrap; }
.marquee__group i { font-style: normal; color: var(--gold); font-size: .8rem; opacity: .8; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ═════════ ОБО МНЕ ═════════ */
.about__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__media { position: relative; max-width: 440px; }
.about__photo { aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-3); box-shadow: var(--shadow); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__media:hover .about__photo img { transform: scale(1.04); }
.about__badge {
  position: absolute; right: -22px; bottom: 34px; display: flex; flex-direction: column;
  padding: 14px 18px; border-radius: 16px; line-height: 1.15;
  background: linear-gradient(160deg, var(--gold-2), var(--gold)); color: var(--on-gold);
  font-weight: 800; font-size: .95rem; letter-spacing: -.01em; box-shadow: var(--shadow-sm);
}
.about__badge span:last-child { font-family: var(--serif); font-style: italic; font-weight: 500; }
.about__loc {
  position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.about__loc svg { color: var(--gold); }
.about__text { margin: 22px 0 26px; color: var(--text-2); font-size: 1.04rem; line-height: 1.8; }
.about__text p + p { margin-top: 14px; }
.about__text strong { color: var(--text); }
.checklist { display: grid; gap: 12px; margin-bottom: 34px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); font-weight: 500; }
.checklist__ico { width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: var(--gold-a); color: var(--gold); margin-top: 1px; }

/* ═════════ НАВЫКИ ═════════ */
.skills__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.skills__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.skills__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.skills__cards > .skill:last-child:nth-child(odd) { grid-column: 1 / -1; }
.skill {
  padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--spring), box-shadow .3s;
}
.skill:hover { border-color: var(--gold-b); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.skill__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.skill__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-a); color: var(--gold); transition: transform .4s var(--spring); }
.skill:hover .skill__ico { transform: rotate(-8deg) scale(1.08); }
.skill__title { font-size: 1.06rem; font-weight: 800; letter-spacing: -.015em; }

/* ═════════ ПРОЕКТЫ ═════════ */
.work__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 44px; }
.filters { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); }
.filter { padding: 9px 16px; border-radius: 10px; font-size: .88rem; font-weight: 700; color: var(--muted); transition: color .2s, background-color .25s; }
.filter:hover { color: var(--text); }
.filter.is-on { background: var(--gold-a); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-b); }

/* Сцена с мокапом: ноутбук на прозрачном фоне «стоит» на подсвеченной поверхности */
.stage { position: relative; overflow: hidden; background: var(--stage); aspect-ratio: 16 / 10; isolation: isolate; }
.stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
  opacity: .9;
}
.stage::after {
  content: ''; position: absolute; left: 14%; right: 14%; bottom: 4.5%; height: 9%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 70%); filter: blur(8px);
}
[data-theme="light"] .stage::after { background: radial-gradient(ellipse at center, rgba(70, 50, 20, .25), transparent 70%); }
.stage img {
  position: absolute; left: 50%; top: 50%; width: 114%; max-width: none; height: auto;
  transform: translate(-50%, -50%); transition: transform .8s var(--ease);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .35));
}
[data-theme="light"] .stage img { filter: drop-shadow(0 16px 20px rgba(60, 40, 10, .16)); }
.stage--phone img { width: 128%; }
/* скриншот без рамки — заполняет сцену целиком */
.stage--flat::after, .stage--flat::before { display: none; }
.stage.stage--flat img, .pm__slide.is-flat img {
  left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transform: none; filter: none;
}
.card:hover .stage--flat img, .feature:hover .stage--flat img { transform: scale(1.03); }

.feature {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: stretch;
  border-radius: var(--r-xl); overflow: hidden; background: var(--card); border: 1px solid var(--line);
  margin-bottom: 28px; box-shadow: var(--shadow-sm);
  transition: border-color .35s, box-shadow .35s;
}
.feature:hover { border-color: var(--gold-b); box-shadow: var(--shadow); }
.feature__stage { aspect-ratio: auto; min-height: 400px; cursor: pointer; border-right: 1px solid var(--line); }
.feature__stage img { width: 122%; }
.feature:hover .feature__stage img { transform: translate(-50%, -52%) scale(1.02); }
.feature__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.feature__type { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.feature__title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.feature__desc { color: var(--text-2); font-size: .98rem; line-height: 1.75; }
.feature__desc p + p { margin-top: 10px; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.feature__tech { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.feature__tech svg { color: var(--gold); }

.work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line);
  cursor: pointer; transition: border-color .35s, transform .5s var(--spring), box-shadow .35s;
}
.card:hover { border-color: var(--gold-b); transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover .stage img { transform: translate(-50%, -53%) scale(1.04); }
.card.is-hidden { display: none; }
.card__stage { border-bottom: 1px solid var(--line); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__type { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.card__title { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; padding-right: 36px; }
.card__open { text-align: left; font-weight: inherit; letter-spacing: inherit; }
.card__open::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__desc { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 6px; }
.card .tags { margin-top: auto; }
.card__ext {
  position: absolute; z-index: 2; right: 16px; top: calc(62.5% * 0 + 14px);
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line-2); color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(-6px) scale(.9); transition: opacity .25s, transform .35s var(--spring), color .2s, border-color .2s;
}
.card:hover .card__ext, .card__ext:focus-visible { opacity: 1; transform: none; }
.card__ext:hover { color: var(--gold); border-color: var(--gold-b); }
.work__empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ═════════ ПРОЦЕСС ═════════ */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.steps::before {
  content: ''; position: absolute; left: 6%; right: 6%; top: 47px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-b), var(--gold-b), transparent);
}
.step {
  position: relative; padding: 26px 24px 28px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .3s, transform .45s var(--spring);
}
.step:hover { border-color: var(--gold-b); transform: translateY(-5px); }
.step__num { position: absolute; right: 22px; top: 20px; font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; color: var(--line-2); line-height: 1; }
.step__ico {
  position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gold-2), var(--gold)); color: var(--on-gold); margin-bottom: 22px;
  box-shadow: 0 0 0 6px var(--card), 0 10px 24px -8px rgba(200, 169, 110, .6);
}
.step__title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: .92rem; line-height: 1.65; }

/* ═════════ СЕРТИФИКАТЫ ═════════ */
.certs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.cert { border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .45s var(--spring), border-color .3s, box-shadow .3s; }
.cert:hover { transform: translateY(-5px); border-color: var(--gold-b); box-shadow: var(--shadow); }
.cert__thumb { display: block; position: relative; width: 100%; aspect-ratio: 1400 / 990; overflow: hidden; background: var(--bg-3); }
.cert__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cert:hover .cert__thumb img { transform: scale(1.05); }
.cert__zoom {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(12, 12, 14, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--spring);
}
.cert__thumb:hover .cert__zoom, .cert__thumb:focus-visible .cert__zoom { opacity: 1; transform: none; }
.cert__body { padding: 20px 22px 22px; }
.cert__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cert__title { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.cert__issuer { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--gold); background: var(--gold-a); border: 1px solid var(--gold-b); }
.cert__meta { color: var(--muted); font-size: .88rem; margin: 6px 0 14px; }
.cert__verify { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: .88rem; font-weight: 700; transition: gap .25s, color .2s; }
.cert__verify:hover { gap: 9px; color: var(--text); }
.cert__verify .v-short { display: none; }

/* ═════════ FAQ ═════════ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__grid .sec-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__grid .sec-head .btn { margin-top: 24px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .3s, background-color .3s; }
.faq__item:hover { border-color: var(--line-2); }
.faq__item[open] { border-color: var(--gold-b); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__ico { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--gold); transition: transform .4s var(--ease), background-color .3s, border-color .3s; }
.faq__item[open] .faq__ico { transform: rotate(45deg); background: var(--gold-a); border-color: var(--gold-b); }
.faq__a { padding: 0 22px 22px; color: var(--text-2); line-height: 1.75; animation: faqIn .4s var(--ease) both; }
.faq__a p + p { margin-top: 10px; }
.faq__a a { color: var(--gold); border-bottom: 1px solid var(--gold-b); transition: border-color .2s; }
.faq__a a:hover { border-color: var(--gold); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ═════════ КОНТАКТЫ И КВИЗ ═════════ */
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.cinfo { display: grid; gap: 10px; margin: 32px 0 22px; }
.cinfo__item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .25s, transform .35s var(--spring), background-color .25s;
}
.cinfo__item:hover { border-color: var(--gold-b); transform: translateX(6px); }
.cinfo__ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-a); color: var(--gold); flex-shrink: 0; }
.cinfo__lbl { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.cinfo__val { display: block; font-weight: 700; word-break: break-word; }
.contact__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.contact__note { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.link-ask {
  display: inline-flex; align-items: center; gap: 7px; padding-bottom: 2px;
  font-size: .9rem; font-weight: 700; color: var(--gold); border-bottom: 1px dashed var(--gold-b);
  transition: color .2s, border-color .2s;
}
.link-ask:hover { color: var(--text); border-color: var(--text); }
.contact__note svg { color: var(--teal); }

.quiz {
  position: relative; padding: clamp(24px, 3.4vw, 36px); border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.quiz__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.quiz__heading { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.quiz__counter { font-size: .85rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz__counter.is-hidden { visibility: hidden; }
.quiz__track { height: 5px; border-radius: 5px; background: var(--bg-3); overflow: hidden; margin-bottom: 26px; }
.quiz__fill { height: 100%; width: 25%; border-radius: 5px; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transition: width .5s var(--ease); }
.quiz__body { min-height: 300px; }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: up .45s var(--ease) both; }
.quiz__q { font-size: 1.12rem; font-weight: 800; letter-spacing: -.015em; margin-bottom: 16px; }
.quiz__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz__grid--1 { grid-template-columns: 1fr; }
.quiz__opt {
  display: flex; align-items: center; gap: 11px; text-align: left; min-height: 52px;
  padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--card-2);
  font-size: .93rem; font-weight: 600; color: var(--text);
  transition: border-color .2s, background-color .2s, transform .3s var(--spring);
}
.quiz__opt svg { color: var(--gold); flex-shrink: 0; }
.quiz__opt:hover { border-color: var(--gold-b); background: var(--gold-a); transform: translateY(-2px); }
.quiz__opt.is-sel { border-color: var(--gold); background: var(--gold-a); box-shadow: inset 0 0 0 1px var(--gold); }
.quiz__opt--wide { grid-column: 1 / -1; }
.quiz__done { text-align: center; padding-top: 20px; }
.quiz__done-ico { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-a); color: var(--teal); animation: pop .5s var(--spring) both; }
.quiz__done-text { color: var(--muted); margin: -4px auto 24px; max-width: 380px; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.quiz__nav { display: flex; align-items: center; gap: 16px; margin-top: 20px; min-height: 22px; }
.quiz__back { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 700; color: var(--muted); transition: color .2s; }
.quiz__back:hover { color: var(--text); }
.quiz__back[hidden] { display: none; }
.quiz__hint { margin-left: auto; font-size: .8rem; color: var(--faint); text-align: right; }
.flip { transform: scaleX(-1); }
.rot-up { transform: rotate(-90deg); }

.fg { margin-bottom: 16px; }
.flabel { display: block; margin-bottom: 7px; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.flabel__opt { font-weight: 500; color: var(--faint); }
.finput, .ftarea {
  width: 100%; height: 50px; padding: 0 15px; border-radius: 13px;
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--text);
  font-size: .97rem; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.ftarea { height: auto; min-height: 110px; padding: 13px 15px; resize: vertical; line-height: 1.55; }
.finput:focus, .ftarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-a); }
.finput::placeholder, .ftarea::placeholder { color: var(--faint); }
.finput.error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(232, 112, 92, .14); }
.char-count { margin-top: 5px; text-align: right; font-size: .75rem; color: var(--faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.cmethods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cmethod {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 6px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--card-2);
  font-size: .8rem; font-weight: 700; color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s, transform .3s var(--spring);
}
.cmethod:hover { color: var(--text); transform: translateY(-2px); }
.cmethod.is-on { color: var(--gold); border-color: var(--gold); background: var(--gold-a); }
.cfield-hint { margin-top: 7px; font-size: .78rem; color: var(--faint); line-height: 1.5; }
.cf-anim { animation: up .35s var(--ease) both; }

.phone-wrap { position: relative; display: flex; gap: 8px; }
.phone-wrap[hidden], .tg-wrap[hidden], .mail-wrap[hidden] { display: none; }
.phone-wrap.is-open { z-index: 30; }
.cc-btn {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0; height: 50px; padding: 0 12px;
  border-radius: 13px; border: 1px solid var(--line-2); background: var(--card-2); font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.cc-btn:hover, .cc-btn[aria-expanded="true"] { border-color: var(--gold); }
.cc-btn[aria-expanded="true"] { box-shadow: 0 0 0 4px var(--gold-a); }
.cc-flag { font-size: 1.15rem; line-height: 1; }
.cc-flag--code { font-size: .68rem; font-weight: 800; letter-spacing: .04em; padding: 3px 5px; border-radius: 5px; background: var(--gold-a); color: var(--gold); }
.cc-dial { font-size: .92rem; font-variant-numeric: tabular-nums; }
.cc-arrow { color: var(--muted); transition: transform .3s var(--ease); }
.cc-btn[aria-expanded="true"] .cc-arrow { transform: rotate(180deg); }
.cc-input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cc-pop {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; width: min(340px, 100%);
  border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); animation: up .25s var(--ease) both;
}
.cc-pop[hidden] { display: none; }
.cc-search { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cc-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: .92rem; color: var(--text); }
.cc-list { max-height: 240px; overflow-y: auto; padding: 6px; overscroll-behavior: contain; scrollbar-width: thin; }
.cc-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: .9rem; transition: background-color .15s; }
.cc-item:hover, .cc-item.is-hl { background: var(--gold-a); }
.cc-item.is-sel { color: var(--gold); }
.cc-item__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-item__dial { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.cc-sep { padding: 10px 10px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.cc-empty { padding: 16px; text-align: center; color: var(--muted); font-size: .88rem; }
.tg-wrap, .mail-wrap { position: relative; }
.tg-at { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 800; pointer-events: none; }
.tg-input { padding-left: 34px; }
.mail-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.mail-input { padding-left: 42px; }

/* ═════════ ПОДВАЛ ═════════ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) auto auto; gap: 32px 48px; align-items: start; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__brand p { margin-top: 14px; color: var(--muted); font-size: .92rem; max-width: 340px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.footer__nav a { color: var(--muted); font-weight: 600; font-size: .92rem; transition: color .2s; }
.footer__nav a:hover { color: var(--gold); }
.socials--footer a { width: 38px; height: 38px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .84rem; color: var(--faint); }
.footer__up { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 700; transition: color .2s; }
.footer__up:hover { color: var(--gold); }

/* ═════════ МОДАЛЬНЫЕ ОКНА ═════════ */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 6, 8, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .3s ease both; }
[data-theme="light"] .modal__backdrop { background: rgba(30, 24, 14, .45); }
.modal__card {
  position: relative; width: 100%; outline: none; max-height: calc(100svh - 40px); overflow: auto;
  border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55); animation: pop-in .5s var(--ease) both;
  scrollbar-width: thin;
}
.modal.is-closing .modal__card { animation: pop-out .25s ease both; }
.modal.is-closing .modal__backdrop { animation: fade .25s ease reverse both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close {
  position: absolute; z-index: 5; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: var(--text);
  background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .35s var(--spring), color .2s, border-color .2s;
}
.modal__close:hover { transform: rotate(90deg); color: var(--gold); border-color: var(--gold-b); }

.modal__card--project { max-width: 940px; }
.pm__stage { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.pm__track { position: absolute; inset: 0; display: flex; transition: transform .6s var(--ease); }
.pm__slide { position: relative; flex: 0 0 100%; height: 100%; }
.pm__slide img { width: 108%; }
.pm__slide.is-phone img { width: 118%; }
.pm__nav {
  position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%;
  display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line-2); color: var(--text);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: color .2s, border-color .2s, transform .3s var(--spring);
}
.pm__nav:hover { color: var(--gold); border-color: var(--gold-b); transform: scale(1.06); }
.pm__nav--prev { left: 14px; } .pm__nav--next { right: 14px; }
.pm__nav[hidden] { display: none; }
.pm__dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; }
.pm__dots button { width: 8px; height: 8px; border-radius: 8px; background: var(--line-2); transition: width .3s var(--ease), background-color .3s; }
.pm__dots button.is-on { width: 22px; background: var(--gold); }
.pm__body { padding: 28px clamp(22px, 4vw, 40px) 34px; }
.pm__labels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pm__cat, .pm__type { padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pm__cat { color: var(--gold); background: var(--gold-a); border: 1px solid var(--gold-b); }
.pm__type { color: var(--muted); border: 1px solid var(--line-2); }
.pm__type:empty { display: none; }
.pm__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 14px; }
.pm__desc { color: var(--text-2); line-height: 1.8; }
.pm__desc p + p { margin-top: 10px; }
.pm__tech { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.pm__tech svg { color: var(--gold); }
.pm__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Новость: золотая окантовка, баннер или картинка, логотип, пункты, цена */
.modal__card--news {
  max-width: 540px; border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(150deg, rgba(229, 200, 144, .6), rgba(255, 255, 255, .07) 36%, rgba(255, 255, 255, .04) 70%, rgba(200, 169, 110, .4)) border-box;
}
[data-theme="light"] .modal__card--news {
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(150deg, rgba(157, 118, 56, .55), rgba(0, 0, 0, .06) 40%, rgba(157, 118, 56, .3)) border-box;
}
.modal__card--news.has-img { max-width: 940px; }
.news__media { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.news__media img { width: 118%; }
.news__media.stage--phone { aspect-ratio: 5 / 4; }
.news__media.stage--phone img { width: 140%; }
@media (min-width: 761px) {
  .modal__card--news.has-img { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .modal__card--news.has-img .news__media { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
  .modal__card--news.has-img .news__media img { width: 128%; }
  .modal__card--news.has-img .news__media.stage--phone img { width: 200%; }
}
.news__banner {
  position: relative; height: 132px; overflow: hidden;
  background: radial-gradient(120% 150% at 88% -25%, rgba(229, 200, 144, .55), transparent 55%),
              radial-gradient(90% 130% at -5% 125%, rgba(79, 191, 168, .24), transparent 60%),
              linear-gradient(135deg, #2b2316 0%, #17140f 58%, #111114 100%);
}
[data-theme="light"] .news__banner {
  background: radial-gradient(120% 150% at 88% -25%, rgba(157, 118, 56, .38), transparent 55%),
              radial-gradient(90% 130% at -5% 125%, rgba(31, 138, 113, .16), transparent 60%),
              linear-gradient(135deg, #f7f0e3 0%, #efe6d6 60%, #ebe5da 100%);
}
.news__banner::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: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 95%); mask-image: linear-gradient(180deg, #000 10%, transparent 95%);
}
[data-theme="light"] .news__banner::before { background-image: linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px); }
.news__spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 16px 4px rgba(229, 200, 144, .55); animation: twinkle 3.2s ease-in-out infinite; }
.news__spark--1 { top: 30px; right: 26%; }
.news__spark--2 { top: 74px; right: 12%; width: 5px; height: 5px; animation-delay: 1.3s; }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.6); } }
.news__body { padding: 30px clamp(22px, 4vw, 34px) 30px; display: flex; flex-direction: column; min-width: 0; }
.no-img .news__body { padding-top: 0; }
.news__top { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin-bottom: 16px; }
.no-img .news__top { margin-top: -40px; align-items: flex-end; position: relative; }
.news__logo {
  width: 60px; height: 60px; flex-shrink: 0; border-radius: 17px; overflow: hidden; display: grid; place-items: center;
  background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55);
}
.no-img .news__logo { width: 82px; height: 82px; border-radius: 23px; border: 4px solid var(--card); }
.news__logo img { width: 100%; height: 100%; object-fit: contain; }
.news__logo--icon { background: linear-gradient(160deg, var(--gold-2), var(--gold)); color: var(--on-gold); }
.news__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--gold-a); border: 1px solid var(--gold-b); color: var(--gold);
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
}
.no-img .news__badge { margin-bottom: 8px; }
.news__title { font-size: clamp(1.5rem, 3.4vw, 1.95rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; margin-bottom: 12px; padding-right: 26px; text-wrap: balance; }
.has-img .news__title { padding-right: 40px; }
.news__text { color: var(--text-2); line-height: 1.75; font-size: .98rem; }
.news__text p + p { margin-top: 10px; }
.news__text a { color: var(--gold); border-bottom: 1px solid var(--gold-b); }
.news__points { display: grid; gap: 9px; margin-top: 16px; }
.news__points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: .95rem; line-height: 1.5; }
.news__check { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border-radius: 7px; display: grid; place-items: center; background: var(--gold-a); color: var(--gold); }
.news__price {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 14px 18px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(200, 169, 110, .17), rgba(200, 169, 110, .04)); border: 1px solid var(--gold-b);
}
.news__price span { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--muted); font-weight: 700; }
.news__price span svg { color: var(--gold); }
.news__price b { font-size: 1.35rem; font-weight: 800; color: var(--gold-2); letter-spacing: -.02em; text-align: right; }
.news__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.news__actions .btn--gold { flex: 1 1 210px; }

/* Окно «Задать вопрос» */
.modal__card--ask { max-width: 540px; }
.ask__head { padding: 32px clamp(22px, 4vw, 34px) 4px; }
.ask__ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(160deg, var(--gold-2), var(--gold)); color: var(--on-gold);
  box-shadow: 0 12px 28px -10px rgba(200, 169, 110, .6);
}
.ask__title { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.ask__sub { color: var(--muted); line-height: 1.6; padding-right: 32px; }
.ask__form { padding: 20px clamp(22px, 4vw, 34px) 30px; }
.ask__form .ftarea { min-height: 120px; }
.ask__done { text-align: center; padding: 46px 30px 38px; }
.ask__done .quiz__done-text { max-width: 340px; }

/* Сертификат на весь экран */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 5vw; background: rgba(6, 6, 8, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .25s ease both; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 88svh; width: auto; border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); animation: pop-in .45s var(--ease) both; }

/* Уведомление */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 400; max-width: 360px;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: .92rem; font-weight: 600;
  transform: translateY(140%); opacity: 0; transition: transform .45s var(--spring), opacity .3s;
}
.toast.is-on { transform: none; opacity: 1; }
.toast__ico { width: 28px; height: 28px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; }
.toast.ok .toast__ico { background: var(--teal-a); color: var(--teal); }
.toast.err .toast__ico { background: rgba(232, 112, 92, .14); color: var(--danger); }
.spin { animation: spin .8s linear infinite; }

/* ── Появление при прокрутке ── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ── Полоса прокрутки ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* ═════════ АДАПТИВ ═════════ */
@media (max-width: 1160px) {
  .nav__cta { display: none; }
  .chip-float--a { right: -14px; }
  .chip-float--b { left: -22px; }
  .feat-float { left: -24px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 66px; }
  .burger { display: inline-flex; }
  .nav__links {
    position: fixed; left: 12px; right: 12px; top: calc(var(--nav-h) + 6px);
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px;
    border-radius: 20px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .35s var(--ease), visibility .25s;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav__links a { padding: 14px 16px; font-size: 1rem; border-radius: 12px; }
  .nav__links a.is-active::after { display: none; }
  .nav__links a.is-active { background: var(--gold-a); color: var(--gold); }
  .nav__mobile-cta { display: flex !important; justify-content: center; margin-top: 6px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--on-gold) !important; font-weight: 800 !important; }
  .nav__right { margin-left: auto; }

  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 36px); padding-bottom: 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 20px; }
  /* как на прежнем сайте: портрет сверху, компактный, плашки по углам — лицо открыто */
  .hero__visual { order: -1; width: min(76vw, 290px); margin: 0 auto 34px; }
  .hero__copy { text-align: left; }
  .hero__scroll { display: none; }
  .chip-float--a { top: 14px; right: -18px; }
  .chip-float--b { top: auto; bottom: 18px; left: -18px; }
  .feat-float { display: none; }

  .about__grid, .skills__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { margin: 0 auto; width: min(100%, 400px); }
  .about__badge { right: -10px; }
  .skills__head, .faq__grid .sec-head { position: static; }
  .feature { grid-template-columns: 1fr; }
  .feature__stage { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  .lang__btn { padding: 5px 7px; }
  .hero__title { font-size: clamp(2.9rem, 14vw, 4rem); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__stats { max-width: none; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 14px; }
  .stat__lbl { font-size: .78rem; }
  .chip-float { padding: 8px 12px 8px 8px; font-size: .72rem; }
  .chip-float b { font-size: .98rem; }
  .chip-float__ico { width: 30px; height: 30px; }
  .work__head { flex-direction: column; align-items: flex-start; }
  .filters { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filter { flex: 1 0 auto; }
  .work__grid { grid-template-columns: 1fr; }
  .card__ext { opacity: 1; transform: none; }
  .steps { grid-template-columns: 1fr; }
  .skills__cards { grid-template-columns: 1fr; }
  .quiz__grid { grid-template-columns: 1fr; }
  .quiz__hint { display: none; }
  .cmethods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-pop { width: 100%; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { left: 16px; right: 16px; bottom: auto; top: 16px; max-width: none; transform: translateY(-140%); }
  .toast.is-on { transform: none; }

  /* окна на телефоне выезжают снизу */
  .modal { padding: 0; align-items: end; }
  .modal__card { border-radius: 26px 26px 0 0; max-height: 92svh; animation: sheet-in .5s var(--ease) both; }
  .modal.is-closing .modal__card { animation: sheet-out .25s ease both; }
  .modal__card::before { content: ''; position: sticky; top: 8px; display: block; width: 44px; height: 4px; margin: 8px auto -12px; border-radius: 4px; background: var(--line-2); z-index: 6; }
  .news__actions .btn { flex: 1 1 100%; }
  .no-img .news__logo { width: 72px; height: 72px; }
  /* сертификаты — по два в ряд, компактнее */
  .certs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cert { border-radius: 16px; }
  .cert__zoom { width: 38px; height: 38px; }
  .cert__body { padding: 12px 12px 14px; }
  .cert__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cert__title { font-size: .9rem; line-height: 1.25; }
  .cert__issuer { font-size: .58rem; padding: 3px 8px; }
  .cert__meta { font-size: .74rem; line-height: 1.4; margin: 6px 0 10px; }
  .cert__verify { font-size: .8rem; gap: 4px; }
  .cert__verify .v-long { display: none; }
  .cert__verify .v-short { display: inline; }
  .contact__foot { flex-direction: column; align-items: flex-start; }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
}

/* Крупные зоны нажатия на сенсорных экранах */
@media (hover: none) {
  .socials a, .icon-btn { width: 44px; height: 44px; }
  .card__ext { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
