/* ============================================================
   Hermes — портфолио. Главная страница.
   Масштаб: 1rem = 10px макета шириной 1681px, поэтому на любом
   десктопном экране страница выглядит как на макете.
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Raleway"; src: url("../assets/fonts/raleway-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Raleway"; src: url("../assets/fonts/raleway-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tinos"; src: url("../assets/fonts/tinos-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tinos"; src: url("../assets/fonts/tinos-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Tinos"; src: url("../assets/fonts/tinos-cyrillic-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tinos"; src: url("../assets/fonts/tinos-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Tinos"; src: url("../assets/fonts/tinos-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tinos"; src: url("../assets/fonts/tinos-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #1c1c3a;
  --muted: #f1f1f3;
  --line: #8a93b2;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: clamp(5.2px, calc(100vw / 168.1), 12px);   /* 1rem = 10px @1681 */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.7rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; user-select: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: .2rem solid var(--ink); outline-offset: .3rem; border-radius: 1rem; }

/* ---------- Иконки (чёрные SVG из набора) ---------- */
.ico { flex: none; }
.ico--white { filter: invert(1); }

/* ============================================================
   NAV
   ============================================================ */
.nav-wrap {
  position: fixed; inset: 2.8rem 0 auto 0; z-index: 50;
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav {
  position: relative;
  display: flex; align-items: center; gap: 1.3rem;
  height: 7.2rem; padding: 0 1.3rem;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(1.4rem); -webkit-backdrop-filter: blur(1.4rem);
  border: .1rem solid rgba(0, 0, 0, .04);
  border-radius: 99rem;
  box-shadow: 0 .2rem 1.2rem rgba(10, 10, 30, .06), 0 1.4rem 3.6rem rgba(10, 10, 30, .05);
  pointer-events: auto;
  animation: navIn .9s var(--ease) both;
}
.nav__indicator {
  position: absolute; z-index: 0;
  top: 1.35rem; left: 0; height: 4.5rem; width: 0;
  background: var(--ink); border-radius: 99rem;
  transition: transform .55s var(--ease), width .55s var(--ease);
}
.nav__link {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 1rem;
  height: 4.5rem; padding: 0 2.2rem;
  border-radius: 99rem;
  font-size: 1.62rem; font-weight: 500; letter-spacing: -.005em;
  color: var(--ink);
  transition: color .35s var(--ease);
  white-space: nowrap;
}
.nav__link .ico { width: 2.3rem; height: 2.3rem; transition: filter .35s var(--ease), transform .45s var(--ease); }
.nav__link:hover .ico { transform: translateY(-.2rem) scale(1.1); }
.nav__link.is-active { color: #fff; }
.nav__link.is-active .ico { filter: invert(1); }
.nav__link:not(.is-active):hover { background: rgba(10, 10, 30, .05); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  width: 137.1rem; max-width: calc(100% - 4rem);
  margin: 0 auto;
  display: grid; grid-template-columns: 66.6rem 1fr; align-items: start;
  padding-top: 16.7rem;
}
.hero__text { position: relative; z-index: 2; }

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 1.1rem;
  height: 4.3rem; padding: 0 2.4rem 0 2rem;
  background: var(--muted);
  border-radius: 99rem;
  font-size: 1.62rem; font-weight: 450;
  letter-spacing: -.005em;
}
.badge__dot {
  position: relative; width: .9rem; height: .9rem; border-radius: 50%; background: var(--ink);
}
.badge__dot::after {
  content: ""; position: absolute; inset: -.5rem; border-radius: 50%;
  border: .15rem solid var(--ink); opacity: 0;
  animation: ping 2.2s ease-out infinite;
}

/* heading */
.hero__title {
  margin: 2.6rem 0 0;
  font-size: 8.1rem; line-height: 8.6rem; font-weight: 700;
  letter-spacing: -.028em;
  color: var(--ink);
}
.hero__name { display: inline-block; }

/* role + caret */
.hero__role {
  margin: 2.75rem 0 0;
  font-family: var(--font-serif);
  font-size: 4.15rem; line-height: 5.6rem; font-weight: 600;
  letter-spacing: -.01em;
  display: flex; align-items: center; white-space: nowrap;
  min-height: 5.6rem;
}
.caret {
  display: inline-block; width: .3rem; height: 4rem; margin-left: 1.2rem;
  background: var(--ink);
  animation: blink 1s steps(1) infinite;
}

/* lead */
.hero__lead {
  margin: 2.1rem 0 0; width: 70rem;
  font-size: 1.92rem; line-height: 2.95rem; font-weight: 450;
  color: var(--ink-soft); letter-spacing: -.003em;
}

/* meta */
.meta { display: flex; align-items: center; gap: 2.6rem; margin-top: 2.3rem; font-size: 1.62rem; font-weight: 450; }
.meta li { display: flex; align-items: center; gap: 1.2rem; }
.meta svg { width: 1.7rem; height: 1.7rem; }

/* buttons */
.actions { display: flex; gap: 1.9rem; margin-top: 2.05rem; }
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem;
  height: 5.4rem; padding: 0 1.6rem; white-space: nowrap;
  border-radius: 99rem; border: .15rem solid var(--ink);
  font-size: 1.65rem; font-weight: 500; letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .3s, color .3s;
}
.btn__ico { width: 2.3rem; height: 2.3rem; transition: transform .45s var(--ease), filter .3s; }
.btn--primary { background: var(--ink); color: #fff; width: 19.5rem; }
.btn--ghost   { background: transparent; color: var(--ink); width: 19.3rem; }

.btn:hover { transform: translateY(-.3rem); box-shadow: 0 1.2rem 2.6rem rgba(10, 10, 30, .18); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn--primary:hover .btn__ico { transform: translateX(.5rem); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost:hover .btn__ico { filter: invert(1); transform: translateY(.3rem); }

.btn .ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: rgba(127, 127, 127, .35); transform: scale(0);
  animation: ripple .7s ease-out forwards;
}

/* divider */
.divider {
  width: 66.6rem; height: .2rem; margin: 2.5rem 0 0; border: 0;
  background: var(--line); opacity: .9;
  transform-origin: left center;
}

/* social */
.social { display: flex; align-items: center; margin-top: 2.9rem; }
.social__label { font-size: 2rem; font-weight: 450; letter-spacing: -.005em; margin-right: 2.9rem; }
.social__link {
  display: grid; place-items: center; width: 4.4rem; height: 4.4rem; margin-right: 3.35rem;
  border-radius: 50%;
  transition: transform .45s var(--ease), background-color .3s;
}
.social__link img { width: 3.4rem; height: 3.4rem; transition: transform .45s var(--ease); }
.social__link:hover { transform: translateY(-.5rem) rotate(-6deg); background: var(--muted); }
.social__link:active { transform: scale(.92); }

/* mascot */
.hero__art { position: relative; justify-self: end; margin-top: 13.2rem; margin-right: -2rem; }
.mascot {
  width: 55rem; height: 54.7rem; object-fit: fill;   /* пропорции как на макете; уберите height, чтобы вернуть оригинальные */
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}


/* ============================================================
   ABOUT  (раздел «Обо мне»)
   ============================================================ */
.about {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: 13.6rem 0 6rem 9rem;
  scroll-margin-top: 0;
}
.about__text { width: 72.8rem; }

.badge--lg { height: 4.7rem; padding: 0 2.5rem 0 2.2rem; font-size: 1.9rem; gap: 1.3rem; font-family: "Raleway", var(--font-sans); font-weight: 500; }

.about__title {
  margin: 2.1rem 0 0;
  font-family: "Montserrat", var(--font-sans);
  font-size: 9.2rem; line-height: 1; font-weight: 800; letter-spacing: -.02em;
}
.about__sub {
  margin: 1.2rem 0 0;
  font-family: "Tinos", "Times New Roman", serif;
  font-size: 4.6rem; line-height: 1.2; font-weight: 700; letter-spacing: 0;
}
.about__p {
  margin: .3rem 0 0;
  font-family: "Raleway", var(--font-sans);
  font-size: 2.17rem; line-height: 2.8rem; font-weight: 500; color: #1d1d3d;
}
.about__p--first { margin-top: 1.6rem; line-height: 3.1rem; }
.about__p b { font-weight: 700; color: #0e0e3a; }

/* cards */
.cards { display: grid; grid-template-columns: 35.9rem 34.5rem; gap: 1.9rem 2.4rem; margin-top: 2.7rem; }
.card {
  display: flex; align-items: center; gap: 3rem;
  height: 9.7rem; padding: 0 2rem 0 3rem;
  background: #fff; border: .15rem solid #e5e6ee; border-radius: 2.8rem;
  box-shadow: 0 .4rem 1.8rem rgba(20, 20, 60, .045);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  cursor: default;
}
.card:hover { transform: translateY(-.5rem); border-color: #cfd1e0; box-shadow: 0 1.4rem 3rem rgba(20, 20, 60, .1); }
.card__ico { width: var(--w); height: auto; flex: none; transition: transform .6s var(--ease); }
.card:hover .card__ico { transform: scale(1.12) rotate(-6deg); }
.card h4 { margin: 0; font-family: "Raleway", var(--font-sans); font-size: 2.1rem; line-height: 2.7rem; font-weight: 500; }
.card p  { margin: .3rem 0 0; font-family: "Raleway", var(--font-sans); font-size: 1.7rem; line-height: 2.15rem; font-weight: 500; color: #5d6384; }

/* quote */
.quote { display: flex; align-items: flex-start; margin: 3.4rem 0 0; }
.quote__mark { width: 4.6rem; height: auto; margin: .2rem 3.3rem 0 .2rem; flex: none; }
.quote blockquote { margin: 0; font-family: "Tinos", "Times New Roman", serif; font-style: italic; font-size: 2.4rem; line-height: 3.1rem; white-space: nowrap; }
.quote__line { flex: 1; height: .2rem; margin: 1.5rem 0 0 2.7rem; background: #7f88aa; transform-origin: left center; }

/* art */
.about__art { position: absolute; right: 4.5rem; top: 27.2rem; width: 62rem; }
.about__figure { height: 58.8rem; clip-path: inset(-6rem -4rem 0 -4rem); }
.about__img { width: 62rem; height: 62rem; max-width: none; animation: floatSoft 6.5s ease-in-out infinite; transform-origin: 50% 100%; }
.desk { position: absolute; left: -2.6rem; top: 58.3rem; width: 62.7rem; height: .8rem; overflow: visible; }
.desk path { fill: none; stroke: #1a1a1a; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.squiggle { position: absolute; left: -5.8rem; top: 24.6rem; width: 7.2rem; height: auto; overflow: visible; }
.squiggle path { fill: none; stroke: #151515; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.about.in .squiggle { animation: wobble 3.2s ease-in-out 1.2s infinite; transform-origin: 50% 50%; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(2.4rem); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(.08s * var(--d, 0)); }
.rv--art { transform: translateX(3rem) scale(.97); }
.about.in .rv { opacity: 1; transform: none; }
.quote.rv .quote__line { transform: scaleX(0); transition: transform 1.1s var(--ease) 1.1s; }
.about.in .quote__line { transform: scaleX(1); }
@keyframes floatSoft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-.9rem); } }
@keyframes wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-5deg) translateX(-.2rem); } 75% { transform: rotate(4deg) translateX(.2rem); } }

/* ============================================================
   Stub sections
   ============================================================ */
.stub {
  min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 1rem;
  border-top: .1rem solid #eee; scroll-margin-top: 0;
}
.stub h2 { margin: 0; font-size: 4.8rem; letter-spacing: -.03em; }
.stub p { margin: 0; color: #777; font-size: 1.8rem; }

/* ============================================================
   Reveal on load
   ============================================================ */
.reveal { opacity: 0; transform: translateY(2.4rem); animation: rise .9s var(--ease) forwards; animation-delay: calc(.12s * var(--d, 0) + .15s); }
.reveal--art { transform: translateX(3rem) scale(.96); animation-name: riseArt; }
.divider.reveal { transform: scaleX(0); animation-name: draw; }

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes navIn   { from { opacity: 0; transform: translateY(-2rem); } to { opacity: 1; transform: none; } }
@keyframes rise    { to   { opacity: 1; transform: none; } }
@keyframes riseArt { to   { opacity: 1; transform: none; } }
@keyframes draw    { to   { opacity: .9; transform: scaleX(1); } }
@keyframes blink   { 50% { opacity: 0; } }
@keyframes ping    { 0% { transform: scale(.6); opacity: .5; } 80%,100% { transform: scale(1.9); opacity: 0; } }
@keyframes float   { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.1rem) rotate(.4deg); } }
@keyframes ripple  { to { transform: scale(4); opacity: 0; } }

/* ============================================================
   Tablet / mobile
   ============================================================ */

/* ============================================================
   PROJECTS + SERVICES — общее
   ============================================================ */
.projects, .services, .contacts {
  position: relative; overflow: hidden;
  min-height: max(100vh, 94.1rem); min-height: max(100svh, 94.1rem);
  scroll-margin-top: 0;
}
.badge--inter { font-family: var(--font-sans); font-weight: 500; }
.services .badge { height: 4.5rem; font-size: 1.75rem; padding: 0 1.9rem 0 1.5rem; gap: 1.2rem; }
.projects .badge { height: 4.8rem; font-size: 1.85rem; padding: 0 1.8rem 0 1.8rem; gap: 1.2rem; }

.art { position: absolute; bottom: 0; z-index: 0; pointer-events: none; }
.art__img { display: block; width: 100%; height: auto; max-width: none; animation: floatSoft 6.5s ease-in-out infinite; transform-origin: 50% 100%; }
.spr { position: absolute; height: auto; transform: translate(-50%, -50%); }

.circle {
  flex: none; display: grid; place-items: center;
  width: 5.8rem; height: 5.8rem; border-radius: 50%;
  background: #efeff1; color: #0a0a0a;
  transition: background-color .35s, color .35s, transform .5s var(--ease);
}
.circle .arr { width: 2.4rem; height: 2.4rem; transition: transform .45s var(--ease); }

/* появление при прокрутке (как в «Обо мне») */
.projects.in .rv, .services.in .rv, .contacts.in .rv { opacity: 1; transform: none; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 14.5rem 0 6rem 8.9rem; }
.services__text { width: 74.5rem; position: relative; z-index: 2; }
.services__title {
  margin: 1.7rem 0 0;
  font-family: var(--font-sans); font-size: 9.4rem; line-height: 1; font-weight: 700; letter-spacing: .01em;
}
.services__sub {
  margin: .8rem 0 0;
  font-family: "Tinos", "Times New Roman", serif;
  font-size: 4rem; line-height: 1.2; font-weight: 400; letter-spacing: 0;
}
.svcs { margin: 4.2rem 0 0 -.35rem; display: grid; gap: 1.1rem; }
.svc {
  display: flex; align-items: center; gap: 3.8rem;
  height: 14.1rem; padding: 0 3.1rem 0 2.4rem;
  background: linear-gradient(180deg, #ffffff, #fafafb);
  border: .15rem solid #ececf0; border-radius: 3.4rem;
  box-shadow: 0 .3rem 1.6rem rgba(20, 20, 60, .035);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.svc__tile {
  flex: none; display: grid; place-items: center;
  width: 11.8rem; height: 10.4rem; border-radius: 2.6rem; background: #efeff0;
  transition: background-color .35s;
}
.svc__tile img { width: var(--w); height: auto; transition: transform .6s var(--ease); }
.svc__body { flex: 1; padding-top: .4rem; }
.svc h4 { margin: 0; font-size: 2.6rem; line-height: 3.2rem; font-weight: 600; letter-spacing: -.01em; }
.svc p  { margin: .5rem 0 0; font-size: 2rem; line-height: 2.7rem; font-weight: 500; color: #4a55a6; letter-spacing: -.005em; }
.svc:hover { transform: translateY(-.5rem); border-color: #dcdce6; box-shadow: 0 1.6rem 3.6rem rgba(20, 20, 60, .1); }
.svc:hover .svc__tile img { transform: scale(1.1) rotate(-6deg); }
.svc:hover .circle { background: var(--ink); color: #fff; }
.svc:hover .circle .arr { transform: translateX(.3rem); }

.art--services { left: 85.5rem; width: 73.9rem; }
.art--services .spr--marks  { left: 13.2rem; top: 10.3rem; width: 5.2rem; }
.art--services .spr--bubble { left: 67.5rem; top: 29.2rem; width: 11.5rem; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { padding: 13.6rem 0 0 8.6rem; }
.projects__text { position: relative; z-index: 2; width: 70rem; }
.projects__title {
  margin: 1.55rem 0 0;
  font-family: "Montserrat", var(--font-sans); font-size: 9.7rem; line-height: 1; font-weight: 800; letter-spacing: -.02em;
}
.projects__sub {
  margin: 1.2rem 0 0;
  font-family: "Source Serif 4", Georgia, serif; font-size: 3.38rem; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
}
.projects__lead { margin: 3.2rem 0 0; font-size: 2.24rem; line-height: 3.1rem; font-weight: 450; color: #1a1a3e; letter-spacing: -.005em; }

.pcards {
  position: absolute; left: 8.2rem; top: 54.6rem; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 48.9rem); gap: 2.1rem;
}
.pcard {
  display: flex; flex-direction: column; height: 34.8rem; padding: 1.6rem;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(1.2rem); backdrop-filter: blur(1.2rem);
  border: .15rem solid rgba(232, 232, 240, .9); border-radius: 3.4rem;
  box-shadow: 0 .3rem 1.6rem rgba(20, 20, 60, .03);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), background-color .4s, border-color .4s;
}
.pcard.is-active {
  background: rgba(255, 255, 255, .93); border-color: #fff;
  box-shadow: 0 1.8rem 4.4rem rgba(20, 20, 60, .13);
}
.pcard__tile {
  flex: none; display: grid; place-items: center; height: 12.7rem; border-radius: 2.4rem; background: rgba(240, 240, 243, .92);
}
.pcard__ico { height: var(--h); width: auto; transition: transform .6s var(--ease); }
.pcard__ico--db { fill: none; stroke: #111; stroke-width: 5; stroke-linecap: round; width: auto; overflow: visible; }
.pcard__ico--db .dot { fill: #111; stroke: none; }
.pcard.is-active .pcard__ico { transform: scale(1.07) translateY(-.2rem); }
.pcard h4 { margin: 1.8rem 0 0 .5rem; font-size: 2.8rem; line-height: 3.4rem; font-weight: 500; letter-spacing: -.02em; }
.pcard p  { flex: 1; margin: .7rem 0 0 .5rem; font-size: 1.9rem; line-height: 2.5rem; font-weight: 450; color: #5a6285; letter-spacing: -.005em; }
.pcard__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-left: .5rem; }
.tags { display: flex; gap: 1.1rem; }
.tags span { display: inline-flex; align-items: center; height: 3.8rem; padding: 0 1.9rem; border-radius: 99rem; background: #ececef; font-size: 1.7rem; font-weight: 500; transition: background-color .3s; }
.pcard .circle { width: 4.6rem; height: 4.6rem; }
.pcard .circle .arr { width: 2rem; height: 2rem; }
.pcard:hover .circle, .pcard.is-active .circle { background: var(--ink); color: #fff; }
.pcard:hover .circle .arr, .pcard.is-active .circle .arr { transform: translateX(.3rem); }

.art--projects { left: 85rem; width: 82.8rem; }
.art--projects .spr--marks  { left: 19.1rem; top: 13.7rem; width: 6rem; }
.art--projects .spr--bubble { left: 70.95rem; top: 29.15rem; width: 9.6rem; }

/* sprites: оживление */
.spr--marks  { animation: marksPop 3.6s ease-in-out 1.4s infinite; }
.spr--bubble { animation: bubbleBob 4.2s ease-in-out infinite; }
@keyframes marksPop  { 0%,70%,100% { transform: translate(-50%, -50%) scale(1) rotate(0); } 78% { transform: translate(-50%, -50%) scale(1.18) rotate(-8deg); } 86% { transform: translate(-50%, -50%) scale(.96) rotate(4deg); } }
@keyframes bubbleBob { 0%,100% { transform: translate(-50%, -50%) rotate(-2deg); } 50% { transform: translate(-50%, calc(-50% - .9rem)) rotate(2deg); } }


/* ============================================================
   CONTACTS
   ============================================================ */
.contacts { padding: 16.7rem 0 6rem 8.8rem; }
.contacts__text { position: relative; z-index: 2; width: 68.5rem; }
.contacts .badge { height: 4.3rem; font-size: 1.6rem; padding: 0 1.7rem 0 1.9rem; gap: 1.4rem; }
.contacts__title {
  margin: 2.9rem 0 0 .7rem;
  font-family: "Montserrat", var(--font-sans); font-size: 7.2rem; line-height: 1; font-weight: 600; letter-spacing: -.01em;
}
.contacts__sub {
  margin: 1.7rem 0 0 .7rem;
  font-family: "Source Serif 4", Georgia, serif; font-size: 2.4rem; line-height: 3.4rem; font-weight: 400; color: #5f5f68;
}
.contacts__sub, .contacts__sub * { color: #5f5f68; }   /* весь подзаголовок одного цвета */

.ccards { margin: 4.2rem 0 0 .6rem; display: grid; gap: 2rem; }
.ccards__row { display: grid; grid-template-columns: 33.9rem 32.3rem; gap: 2.3rem; }
.cc {
  width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center;
  background: linear-gradient(180deg, #ffffff, #fafafb);
  border: .15rem solid #ececf0;
  box-shadow: 0 .3rem 1.6rem rgba(20, 20, 60, .035);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.cc:hover { transform: translateY(-.5rem); border-color: #dcdce6; box-shadow: 0 1.6rem 3.6rem rgba(20, 20, 60, .1); }
.cc:hover .circle { background: var(--ink); color: #fff; }
.cc:hover .circle .arr { transform: translateX(.3rem); }
.cc h4 { margin: 0; font-size: 2.4rem; line-height: 3rem; font-weight: 500; letter-spacing: -.01em; }
.cc b { display: block; font-weight: 500; color: #4754c4; }
.cc__body { flex: 1; min-width: 0; }

.cc--email { height: 13.1rem; padding: 0 2.6rem 0 2.6rem; border-radius: 4.2rem; gap: 3.6rem; }
.cc__tile { flex: none; display: grid; place-items: center; width: 9.8rem; height: 9rem; border-radius: 2.4rem; background: #efeff0; }
.cc__tile img { width: 5.3rem; height: auto; transition: transform .6s var(--ease); }
.cc--email:hover .cc__tile img { transform: scale(1.1) rotate(-6deg); }
.cc--email b { margin-top: .1rem; font-size: 1.65rem; line-height: 2.8rem; }
.cc--email .cc__body { padding-top: .5rem; }
.cc--email small { display: block; margin-top: .3rem; font-size: 1.6rem; line-height: 2.2rem; font-weight: 450; color: #6f79cf; }

.cc--sm { height: 9.8rem; padding: 0 2.1rem 0 3.2rem; border-radius: 3.8rem; gap: 3rem; }
.cc--sm h4 { font-size: 1.7rem; line-height: 2.5rem; }
.cc--sm b { margin-top: .2rem; font-size: 1.6rem; line-height: 2.4rem; }
.cc__ico { width: var(--w); height: auto; flex: none; transition: transform .6s var(--ease); }
.cc--sm:hover .cc__ico { transform: scale(1.12) rotate(-8deg); }
.cc--sm .circle { width: 4.6rem; height: 4.6rem; }
.cc--sm .circle .arr { width: 2rem; height: 2rem; }

.open { display: flex; align-items: center; gap: 3rem; margin: 6.4rem 0 0 .6rem; font-size: 1.83rem; font-weight: 400; color: #1b1b1f; }
.open i { display: block; height: .1rem; }
.open__l { width: 2.2rem; background: #a8a8b3; }
.open__r { width: 20.1rem; background: linear-gradient(90deg, #a8a8b3, rgba(168, 168, 179, .15)); }

.art--contacts { left: 75rem; top: 15.3rem; bottom: auto; width: 86.3rem; }
.art--contacts .spr--marks  { left: 71.1rem; top: 32.3rem; width: 5.8rem; }
.art--contacts .spr--bubble { left: 70.35rem; top: 16.95rem; width: 9.9rem; }

.toast {
  position: fixed; left: 50%; bottom: 3.2rem; z-index: 80;
  transform: translate(-50%, 2rem); opacity: 0; pointer-events: none;
  padding: 1.3rem 2.4rem; border-radius: 99rem; background: var(--ink); color: #fff;
  font-size: 1.6rem; font-weight: 500;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  html { font-size: clamp(7px, 1.1vw, 10px); }
  .hero__lead { width: auto; }
  .hero { grid-template-columns: 1fr; width: 100%; max-width: 100%; padding: 15rem 4rem 6rem; }
  .hero__art { justify-self: center; margin: 4rem 0 0; }
  .mascot { width: 52rem; height: auto; max-width: 100%; }
  .nav-wrap { inset: 2rem 1rem auto 1rem; }
}

@media (max-width: 720px) {
  .br-d { display: none; }
  html { font-size: 10px; }
  body { font-size: 1.6rem; }

  /* nav → компактная таблетка, видны только иконки (активная — с подписью) */
  .nav-wrap { inset: 1.2rem 1rem auto 1rem; }
  .nav { height: 6rem; padding: 0 .8rem; gap: .2rem; max-width: 100%; }
  .nav__indicator { top: .8rem; height: 4.4rem; }
  .nav__link { height: 4.4rem; padding: 0 1.4rem; font-size: 1.5rem; }
  .nav__link:not(.is-active) span { display: none; }
  .nav__link .ico { width: 2.2rem; height: 2.2rem; }

  .hero { padding: 11rem 2rem 5rem; }
  .badge { font-size: 1.5rem; height: 3.8rem; }
  .hero__title { font-size: 5.6rem; line-height: 6rem; margin-top: 2rem; }
  .hero__role { font-size: 3rem; line-height: 4rem; min-height: 4rem; white-space: normal; flex-wrap: wrap; }
  .caret { height: 2.8rem; }
  .hero__lead { width: auto; font-size: 1.8rem; line-height: 2.6rem; }
  .meta { flex-wrap: wrap; gap: 1rem 2.4rem; font-size: 1.5rem; }
  .actions { flex-wrap: wrap; gap: 1.2rem; }
  .btn { height: 5.2rem; font-size: 1.7rem; }
  .btn--primary, .btn--ghost { width: auto; flex: 1 1 15rem; }
  .divider { width: 100%; }
  .social { flex-wrap: wrap; row-gap: 1rem; }
  .social__label { width: 100%; margin: 0 0 .4rem; font-size: 1.8rem; }
  .social__link { margin-right: 2rem; }
  .mascot { width: min(44rem, 92%); height: auto; margin-inline: auto; }
}


@media (max-width: 1100px) {
  .about { padding: 12rem 4rem 6rem; }
  .about__text { width: 100%; max-width: 72.8rem; }
  .about__art { position: relative; right: auto; top: auto; margin: 5rem auto 0; width: 52rem; max-width: 100%; }
  .about__figure { height: 50rem; clip-path: inset(-6rem -4rem 0 -4rem); }
  .about__img { width: 52rem; height: 52rem; max-width: none; }
  .desk { top: 49.4rem; width: 100%; left: 0; }
  .squiggle { left: 0; }
}
@media (max-width: 720px) {
  .about { padding: 10rem 2rem 5rem; }
  .about__title { font-size: 6.6rem; }
  .about__sub { font-size: 2.8rem; }
  .about__p { font-size: 1.7rem; line-height: 2.5rem; }
  .cards { grid-template-columns: 1fr; gap: 1.4rem; }
  .card { height: auto; min-height: 9.2rem; padding: 1.4rem 2rem; gap: 2.2rem; }
  .quote { flex-wrap: wrap; row-gap: 1rem; }
  .quote blockquote { white-space: normal; font-size: 2.2rem; line-height: 2.8rem; }
  .quote__line { flex-basis: 100%; margin: .6rem 0 0; }
  .about__art { width: 100%; }
  .about__figure { height: auto; clip-path: none; overflow: hidden; }
  .about__img { width: min(100%, 44rem); height: auto; margin-inline: auto; animation: none; }
  .desk { position: static; display: block; width: 100%; height: .8rem; margin-top: -.5rem; }
  .squiggle { display: none; }
}


/* ---- Projects / Services: адаптив ---- */
@media (max-width: 1100px) {
  .projects, .services { min-height: 0; padding: 12rem 4rem 0; }
  .services__text, .projects__text { width: 100%; max-width: 74.5rem; }
  .pcards { position: relative; left: auto; top: auto; margin-top: 4rem; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
  .pcard { height: 34rem; }
  .art { position: relative; left: auto; bottom: auto; margin: 4rem auto 0; width: 52rem; max-width: 100%; }
  .art--services .spr--marks  { left: 13%; top: 14%; width: 7%; }
  .art--services .spr--bubble { left: 88%; top: 39%; width: 15%; }
  .art--projects .spr--marks  { left: 19%; top: 14%; width: 7%; }
  .art--projects .spr--bubble { left: 86%; top: 36%; width: 12%; }
}
@media (max-width: 720px) {
  .projects, .services { padding: 10rem 2rem 0; }
  .services__title, .projects__title { font-size: 6.6rem; }
  .services__sub, .projects__sub { font-size: 2.6rem; white-space: normal; }
  .pcard p br { display: none; }
  .projects__lead { font-size: 1.8rem; line-height: 2.6rem; }
  .pcards { grid-template-columns: 1fr; }
  .pcard { height: auto; min-height: 30rem; }
  .pcard p { margin-bottom: 1.6rem; }
  .svc { height: auto; min-height: 12rem; gap: 1.8rem; padding: 1.4rem 1.6rem 1.4rem 1.4rem; border-radius: 2.6rem; }
  .svc__tile { width: 8.6rem; height: 8.6rem; border-radius: 2rem; }
  .svc__tile img { width: calc(var(--w) * .75); }
  .svc h4 { font-size: 2rem; line-height: 2.6rem; }
  .svc p { font-size: 1.5rem; line-height: 2.1rem; }
  .svc p br { display: none; }
  .circle { width: 4.4rem; height: 4.4rem; }
  .art { width: min(100%, 44rem); }
}


/* ---- Contacts: адаптив ---- */
@media (max-width: 1100px) {
  .contacts { min-height: 0; padding: 12rem 4rem 0; }
  .contacts__text { width: 100%; max-width: 74rem; }
  .art--contacts { position: relative; left: auto; top: auto; bottom: auto; margin: 4rem auto 0; width: 52rem; max-width: 100%; }
  .art--contacts .spr--marks  { left: 82%; top: 31%; width: 7%; }
  .art--contacts .spr--bubble { left: 81%; top: 14%; width: 12%; }
}
@media (max-width: 720px) {
  .contacts { padding: 10rem 2rem 0; }
  .contacts__title { font-size: 5.4rem; }
  .contacts__sub { font-size: 2.2rem; line-height: 3rem; }
  .ccards { margin-left: 0; }
  .ccards__row { grid-template-columns: 1fr; gap: 1.6rem; }
  .cc--email { height: auto; min-height: 11rem; gap: 1.8rem; padding: 1.4rem 1.6rem 1.4rem 1.4rem; border-radius: 3rem; }
  .cc__tile { width: 7.8rem; height: 7.8rem; }
  .cc--email b { font-size: 1.7rem; }
  .cc--email small { font-size: 1.4rem; }
  .cc--sm { gap: 2rem; padding: 0 1.8rem 0 2.4rem; }
  .open { margin-left: 0; font-size: 1.6rem; gap: 1.4rem; flex-wrap: nowrap; }
  .open__r { width: 6rem; }
  .art--contacts { width: min(100%, 44rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .rv { opacity: 1; transform: none; }
  .quote__line { transform: none !important; }
  .caret { animation: none; }
}
