
:root {
  --cream: #fbf7f5;
  --paper: #fffdfc;
  --paper-soft: #f7f0f6;
  --lavender: #e9d9eb;
  --lilac: #a16aaa;
  --lilac-deep: #745078;
  --plum: #241527;
  --ink: #201b21;
  --muted: #696167;
  --gold: #c89b53;
  --gold-soft: #e5c88f;
  --line: rgba(67, 44, 70, 0.12);
  --shadow: 0 24px 80px rgba(69, 43, 72, 0.12);
  --radius-xl: 34px;
  --radius-lg: 25px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

.container {
  width: min(1380px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(251, 247, 245, 0.82);
  backdrop-filter: blur(22px);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 35px rgba(63, 41, 66, .07);
}

.header-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 38px;
}

.brand {
  width: 78px;
  height: 64px;
  display: grid;
  place-items: center;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.2vw, 58px);
}

.main-nav a {
  position: relative;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transition: right .22s ease;
}

.main-nav a:hover::after {
  right: 0;
}

.header-contact {
  min-height: 52px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(190, 137, 66, .64);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  color: #a96f2c;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.header-contact:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 14px 28px rgba(161, 106, 170, .12);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 23%, rgba(231, 214, 235, .54), transparent 31%),
    radial-gradient(circle at 10% 78%, rgba(246, 226, 232, .56), transparent 30%),
    var(--cream);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(115deg, transparent 0 43%, rgba(255,255,255,.85) 44% 47%, transparent 48% 100%);
  filter: blur(18px);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
}

.hero-copy {
  padding: 48px 0 34px;
}

.hero-intro {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 2.3vw, 36px);
}

.hero-intro span {
  margin-left: 10px;
  color: var(--gold);
}

h1,
h2 {
  margin-top: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: .93;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(72px, 8.2vw, 132px);
  letter-spacing: -.055em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(48px, 5.2vw, 78px);
  letter-spacing: -.035em;
}

h3 {
  margin: 0;
  line-height: 1.25;
}

.hero-fields {
  margin: 0 0 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  text-transform: uppercase;
  letter-spacing: .30em;
  font-size: clamp(11px, 1.08vw, 15px);
  color: #906093;
}

.hero-fields i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-description {
  max-width: 620px;
  margin: 0 0 34px;
  font-size: clamp(17px, 1.25vw, 21px);
  color: var(--muted);
}

.hero-description strong {
  color: var(--lilac);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.button {
  min-height: 58px;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #aa72b2, #805187);
  box-shadow: 0 16px 34px rgba(129, 79, 137, .24);
}

.button-primary:hover {
  box-shadow: 0 20px 42px rgba(129, 79, 137, .32);
}

.button-outline {
  color: #a66f30;
  border-color: rgba(191, 137, 67, .65);
  background: rgba(255,255,255,.40);
}

.button-outline:hover {
  background: rgba(255,255,255,.78);
}


.scroll-hint {
  width: fit-content;
  margin-top: 58px;
  display: inline-flex;
  align-items: center;
  color: #9f75a4;
  text-decoration: none;
}

.scroll-chip {
  min-height: 64px;
  padding: 12px 18px 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(149, 98, 157, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  box-shadow:
    0 18px 40px rgba(75, 47, 79, .08),
    inset 0 1px rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.scroll-hint:hover .scroll-chip {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .82);
  box-shadow:
    0 24px 50px rgba(75, 47, 79, .12),
    inset 0 1px rgba(255,255,255,.96);
}

.scroll-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(236,220,239,.95), rgba(255,255,255,.98));
  border: 1px solid rgba(145, 92, 152, .10);
}

.scroll-icon::before {
  content: "";
  width: 14px;
  height: 22px;
  display: block;
  border: 1.4px solid #b186b8;
  border-radius: 11px;
  position: relative;
}

.scroll-wheel {
  width: 2px;
  height: 6px;
  border-radius: 99px;
  background: #b186b8;
  position: absolute;
  transform: translateY(-4px);
  animation: scrollWheel 1.6s ease-in-out infinite;
}

.scroll-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.scroll-copy small {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 9px;
  color: #b090b6;
}

.scroll-copy strong {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #976ca0;
}

.scroll-arrow {
  font-size: 18px;
  color: var(--gold);
  transform: translateY(1px);
}

@keyframes scrollWheel {
  0%, 100% { transform: translateY(-4px); opacity: .45; }
  50% { transform: translateY(2px); opacity: 1; }
}


.hero-art {
  position: relative;
  min-height: 670px;
  display: grid;
  place-items: end center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 50% 50% 26px 26px / 44% 44% 26px 26px;
  box-shadow: 0 40px 100px rgba(87, 57, 91, .16);
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px 34px rgba(251, 247, 245, .18);
}

.hero-image-wrap img {
  width: 100%;
  height: 680px;
  object-fit: cover;
  object-position: center;
}

.gold-orbit {
  position: absolute;
  z-index: 2;
  width: 80%;
  aspect-ratio: 1;
  top: 1%;
  left: -8%;
  border: 1.5px solid rgba(197, 141, 66, .75);
  border-radius: 50%;
  pointer-events: none;
}

.gold-orbit::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 4.5%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-ambient-one {
  width: 320px;
  height: 320px;
  left: -120px;
  top: 25%;
  background: rgba(222, 194, 229, .40);
}

.hero-ambient-two {
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: 0;
  background: rgba(237, 206, 220, .48);
}

.facts {
  position: relative;
  z-index: 4;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(83, 56, 86, .09);
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 20px 60px rgba(75, 47, 79, .09);
  backdrop-filter: blur(18px);
}

.fact {
  min-height: 112px;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8e5995;
  background: #f0e4f1;
  font-size: 22px;
}

.fact strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.fact small {
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 9px;
  color: var(--muted);
}

.section {
  padding: 118px 0;
}

.section-light {
  background: var(--paper);
}

.section-muted {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 0%, rgba(232, 214, 236, .50), transparent 30%),
    #faf5f9;
}

.about-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: center;
  gap: clamp(50px, 7vw, 120px);
}

.section-heading > p:not(.eyebrow) {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading.compact {
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 15px;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 10px;
  font-weight: 600;
  color: #a46b91;
}

.eyebrow::before {
  content: "✦";
  margin-right: 8px;
  color: var(--gold);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}

.quality-card {
  min-height: 172px;
  padding: 30px;
  display: flex;
  gap: 20px;
}

.quality-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.quality-card:nth-child(-n+2) {
  border-bottom: 1px solid var(--line);
}

.quality-card > span {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #965e9d;
  background: #f0e4f2;
}

.quality-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.quality-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.direction-card {
  position: relative;
  min-height: 320px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.72);
  box-shadow: 0 22px 56px rgba(76, 47, 80, .07);
  transition: transform .24s ease, box-shadow .24s ease;
}

.direction-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 70px rgba(76, 47, 80, .13);
}

.direction-number {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 50px;
  color: rgba(129, 78, 136, .10);
}

.direction-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 36px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #8d5994;
  background: linear-gradient(135deg, #ecdded, #fff);
  font-size: 27px;
}

.direction-card h3 {
  margin-bottom: 15px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  font-weight: 500;
}

.direction-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(235, 207, 232, .88), rgba(255,255,255,.84) 53%, rgba(238,225,241,.86));
  box-shadow: var(--shadow);
}

.project-copy {
  padding: clamp(38px, 5vw, 72px);
}

.project-label {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #976522;
  background: rgba(241, 213, 153, .68);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
}

.project-copy h3 {
  margin-bottom: 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(54px, 5vw, 76px);
  font-weight: 500;
}

.project-copy p {
  max-width: 560px;
  margin: 0;
  color: #5e555c;
}

.tag-list {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-list span {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(111, 70, 117, .12);
  background: rgba(255,255,255,.56);
  font-size: 11px;
  color: #755279;
}

.text-button {
  margin-top: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #805187;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.text-button span {
  display: inline-block;
  margin-left: 8px;
  transition: transform .2s ease;
}

.text-button:hover span {
  transform: translateX(5px);
}

.project-preview {
  min-height: 560px;
  padding: 55px 48px;
  display: grid;
  place-items: center;
}

.preview-browser {
  width: 100%;
  overflow: hidden;
  transform: rotate(1.8deg);
  border: 7px solid #271d29;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 35px 70px rgba(51, 32, 55, .22);
}

.preview-top {
  height: 38px;
  padding-left: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1e8f2;
}

.preview-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b995bd;
}

.preview-body {
  min-height: 360px;
  display: grid;
  grid-template-columns: 24% 1fr;
  background: #fbf8fb;
}

.preview-sidebar {
  background: linear-gradient(#8d5a94, #724679);
}

.preview-content {
  padding: 24px;
}

.preview-banner {
  height: 85px;
  margin-bottom: 18px;
  border-radius: 17px;
  background: linear-gradient(135deg, #ead8ed, #fff);
}

.preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.preview-row div {
  height: 80px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 25px rgba(83,54,89,.08);
}

.preview-chart {
  height: 105px;
  margin-top: 14px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, transparent 48%, rgba(155, 101, 163, .38) 49% 51%, transparent 52%),
    white;
}

.section-dark {
  color: white;
  background:
    radial-gradient(circle at 20% -20%, rgba(165, 108, 174, .30), transparent 38%),
    #281d2b;
}

.eyebrow-light {
  color: #d5b6d9;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.08);
}

.skills-grid > div {
  min-height: 220px;
  padding: 36px;
  background: rgba(255,255,255,.035);
}

.skills-grid h3 {
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
}

.skills-grid p {
  margin: 0;
  color: rgba(255,255,255,.66);
}

.section-contact {
  background:
    radial-gradient(circle at 12% 40%, rgba(231, 211, 235, .62), transparent 32%),
    var(--paper);
}

.contact-panel {
  padding: clamp(42px, 6vw, 82px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(234,215,238,.70));
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin-bottom: 16px;
}

.contact-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-inner a {
  color: var(--lilac-deep);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 17, 31, .62);
  backdrop-filter: blur(12px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(34px, 5vw, 66px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius-xl);
  background: #fffafc;
  box-shadow: 0 40px 110px rgba(19, 10, 21, .35);
}

.modal-dialog h2 {
  margin-bottom: 24px;
}

.modal-dialog > p:not(.eyebrow) {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  font-size: 24px;
}

.modal-columns {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.modal-columns > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbf5fb;
}

.modal-columns h3 {
  margin-bottom: 10px;
}

.modal-columns p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.reveal-delay {
  transition-delay: .12s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .container {
    width: min(100% - 42px, 1380px);
  }

  .header-contact {
    display: none;
  }

  .header-inner {
    grid-template-columns: 78px 1fr;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: clamp(70px, 8vw, 104px);
  }

  .hero-art {
    min-height: 580px;
  }

  .hero-image-wrap img {
    height: 590px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .fact:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .site-header {
    background: rgba(251,247,245,.94);
  }

  .header-inner {
    min-height: 76px;
    grid-template-columns: 62px 1fr;
  }

  .brand,
  .brand img {
    width: 48px;
    height: 48px;
  }

  .menu-button {
    justify-self: end;
    width: 46px;
    height: 46px;
    padding: 10px;
    display: block;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255,255,255,.68);
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    height: 1.5px;
    margin: 5px 0;
    border-radius: 99px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    padding: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,252,251,.98);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 15px;
    border-radius: 12px;
  }

  .main-nav a:hover {
    background: #f4eaf4;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-grid,
  .about-layout,
  .project-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: relative;
    z-index: 4;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-fields,
  .hero-actions {
    justify-content: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .scroll-hint {
    margin-inline: auto;
  }

  .hero-art {
    min-height: 0;
  }

  .hero-image-wrap {
    width: min(760px, 100%);
    border-radius: 42% 42% 24px 24px / 30% 30% 24px 24px;
  }

  .hero-image-wrap img {
    height: auto;
    aspect-ratio: 1.18;
  }

  .gold-orbit {
    width: 68%;
    left: 3%;
  }

  .about-layout {
    gap: 46px;
  }

  .direction-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: 0;
  }

  .project-preview {
    min-height: 430px;
    padding-top: 0;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1380px);
  }

  .hero {
    padding-top: 96px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 80px);
  }

  h2 {
    font-size: clamp(44px, 14vw, 60px);
  }

  .hero-fields {
    gap: 10px;
    letter-spacing: .18em;
    font-size: 10px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-image-wrap img {
    aspect-ratio: .98;
    object-position: 58% center;
  }

  .facts {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .fact {
    min-height: 94px;
  }

  .fact + .fact {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 82px 0;
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }

  .quality-card:nth-child(odd) {
    border-right: 0;
  }

  .quality-card:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

  .quality-card {
    min-height: 0;
    padding: 24px;
  }

  .project-copy {
    padding: 34px 26px;
  }

  .project-preview {
    min-height: 0;
    padding: 20px 18px 34px;
  }

  .preview-body {
    min-height: 260px;
  }

  .preview-row {
    grid-template-columns: 1fr;
  }

  .preview-row div:nth-child(n+2) {
    display: none;
  }

  .skills-grid > div {
    min-height: 0;
    padding: 28px;
  }

  .contact-panel {
    padding: 34px 24px;
  }

  .footer-inner {
    grid-template-columns: 42px 1fr;
  }

  .footer-inner a {
    grid-column: 2;
  }

  .modal-columns {
    grid-template-columns: 1fr;
  }
}


/* Премиальные карточки профессионального позиционирования */
.expertise-strip {
  position: relative;
  z-index: 4;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.expertise-card {
  position: relative;
  min-height: 204px;
  padding: 26px 24px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(83, 56, 86, .10);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,243,248,.78));
  box-shadow:
    0 24px 56px rgba(75, 47, 79, .10),
    inset 0 1px rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.expertise-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}

.expertise-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -68px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,216,236,.85), transparent 70%);
  opacity: .55;
  pointer-events: none;
}

.expertise-card:hover {
  transform: translateY(-6px);
  border-color: rgba(195, 151, 83, .24);
  box-shadow:
    0 32px 68px rgba(75, 47, 79, .14),
    inset 0 1px rgba(255,255,255,.98);
}

.expertise-card:hover::before,
.expertise-card-accent::before {
  opacity: 1;
}

.expertise-card-accent {
  background:
    radial-gradient(circle at 85% 0%, rgba(239,223,233,.82), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,239,246,.90));
}

.expertise-card-accent .expertise-icon {
  background: linear-gradient(145deg, rgba(245,231,237,.98), rgba(255,255,255,.98));
}

.expertise-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 87, 150, .10);
  border-radius: 19px;
  color: #8e5995;
  background:
    linear-gradient(145deg, rgba(238,223,241,.96), rgba(255,255,255,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.85);
  position: relative;
  z-index: 1;
}

.expertise-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expertise-label {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 8px;
  font-weight: 700;
  color: #ad8792;
}

.expertise-card h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.expertise-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Четыре профессиональных направления */

.direction-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

.direction-grid-four .direction-card {
  padding: 30px;
}

.direction-grid-four .direction-icon {
  font-size: 22px;
}

/* Личная часть сайта — после профессионального портфолио */
.section-personal {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 16%, rgba(229, 210, 234, .58), transparent 30%),
    radial-gradient(circle at 92% 84%, rgba(241, 220, 226, .58), transparent 28%),
    #fbf7fa;
}

.personal-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

.personal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.personal-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(80, 52, 84, .10);
  border-radius: 26px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 22px 58px rgba(76,47,80,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.personal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 72px rgba(76,47,80,.13);
}

.personal-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -80px;
  bottom: -85px;
  border-radius: 50%;
  opacity: .45;
}

.personal-card-psychology::after {
  background: #e8d4ec;
}

.personal-card-sport::after {
  background: #e5ddd2;
}

.personal-card-blog::after {
  background: #efd9e3;
}

.personal-index {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  color: rgba(112, 70, 118, .10);
}

.personal-symbol {
  width: 58px;
  height: 58px;
  margin-bottom: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8f5995;
  background: linear-gradient(145deg, #eadbec, #fff);
  font-size: 24px;
}

.personal-card h3 {
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
}

.personal-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Адаптивность новых блоков */
@media (max-width: 1180px) {
  .expertise-strip,
  .direction-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .expertise-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .personal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .personal-grid {
    grid-template-columns: 1fr;
  }

  .personal-card {
    min-height: 0;
  }

  .personal-symbol {
    margin-bottom: 34px;
  }
}

@media (max-width: 640px) {
  .expertise-strip,
  .direction-grid-four {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    min-height: 0;
    padding: 24px 22px;
  }

  .expertise-card + .expertise-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .personal-card {
    padding: 26px;
  }
}


@media (max-width: 1180px) {
  .expertise-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .scroll-hint {
    margin-inline: auto;
  }

  .scroll-chip {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .expertise-strip {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    min-height: 0;
    padding: 24px 22px;
  }

  .scroll-chip {
    width: 100%;
    justify-content: center;
    padding-inline: 16px;
  }

  .scroll-copy strong {
    letter-spacing: .10em;
  }
}


/* =========================================================
   VERSION 5 — ПРЕМИАЛЬНЫЙ УКАЗАТЕЛЬ ПРОКРУТКИ
   ========================================================= */

.scroll-discovery {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-top: 52px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 9px 20px 9px 9px;
  border: 1px solid rgba(145, 91, 153, .15);
  border-radius: 999px;
  color: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(248,238,248,.72));
  box-shadow:
    0 22px 50px rgba(73, 44, 78, .10),
    inset 0 1px rgba(255,255,255,.98);
  backdrop-filter: blur(18px);
  isolation: isolate;
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s ease,
    border-color .28s ease;
}

.scroll-discovery::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  opacity: .58;
  background:
    radial-gradient(circle at 12% 20%, rgba(230,207,235,.80), transparent 35%),
    linear-gradient(90deg, transparent, rgba(224,188,119,.11), transparent);
}

.scroll-discovery:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 150, 78, .30);
  box-shadow:
    0 30px 68px rgba(73, 44, 78, .15),
    inset 0 1px rgba(255,255,255,1);
}

.scroll-discovery__orb {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(177, 123, 184, .17);
  border-radius: 50%;
  color: #8d5794;
  background:
    radial-gradient(circle at 34% 28%, #fff 0 16%, transparent 17%),
    linear-gradient(145deg, #ead9ed, #fffafc);
  box-shadow:
    0 10px 25px rgba(112, 68, 119, .13),
    inset 0 1px rgba(255,255,255,.96);
}

.scroll-discovery__orb::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(202, 157, 83, .32);
  border-radius: 50%;
}

.scroll-discovery__orb svg {
  position: relative;
  z-index: 2;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: premiumArrow 1.8s cubic-bezier(.45,0,.55,1) infinite;
}

.scroll-discovery__pulse {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(155, 96, 164, .22);
  border-radius: 50%;
  animation: premiumPulse 2.4s ease-out infinite;
}

.scroll-discovery__copy {
  min-width: 168px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.scroll-discovery__copy small {
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: 8px;
  font-weight: 600;
  color: #b18ab0;
}

.scroll-discovery__copy strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  color: #654268;
}

.scroll-discovery__trail {
  position: relative;
  width: 54px;
  height: 1px;
  margin-left: 2px;
  overflow: visible;
  background: linear-gradient(90deg, rgba(199,151,77,.18), rgba(199,151,77,.70));
}

.scroll-discovery__trail::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 5px rgba(201,155,80,.09);
}

.scroll-discovery__trail i {
  position: absolute;
  left: 0;
  top: -1px;
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #d6aa62);
  animation: premiumTrail 2s ease-in-out infinite;
}

/* Карточки направлений должны выглядеть отдельными, а не одной белой плашкой. */
.expertise-strip {
  gap: 20px !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.expertise-card {
  min-height: 210px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(91, 59, 95, .10) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(235,216,239,.62), transparent 38%),
    linear-gradient(160deg, rgba(255,255,255,.97), rgba(249,243,249,.87)) !important;
  box-shadow:
    0 24px 60px rgba(72, 45, 77, .10),
    inset 0 1px rgba(255,255,255,.98) !important;
}

.expertise-card + .expertise-card {
  border-left: 1px solid rgba(91, 59, 95, .10) !important;
}

@keyframes premiumArrow {
  0%, 100% { transform: translateY(-2px); opacity: .72; }
  50% { transform: translateY(4px); opacity: 1; }
}

@keyframes premiumPulse {
  0% { transform: scale(.85); opacity: .55; }
  75%, 100% { transform: scale(1.35); opacity: 0; }
}

@keyframes premiumTrail {
  0%, 100% { left: 0; opacity: .25; }
  50% { left: 32px; opacity: 1; }
}

@media (max-width: 900px) {
  .scroll-discovery {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .scroll-discovery {
    width: 100%;
    justify-content: flex-start;
    padding-right: 16px;
  }

  .scroll-discovery__copy {
    min-width: 0;
    flex: 1;
  }

  .scroll-discovery__trail {
    width: 34px;
  }

  .expertise-card + .expertise-card {
    border-left: 1px solid rgba(91, 59, 95, .10) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-discovery__orb svg,
  .scroll-discovery__pulse,
  .scroll-discovery__trail i {
    animation: none !important;
  }
}


/* =========================================================
   VERSION 6 — ПРЕМИАЛЬНЫЙ БЛОК "ОБО МНЕ"
   ========================================================= */

.section-about {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(234, 219, 237, .55), transparent 30%),
    radial-gradient(circle at 95% 82%, rgba(242, 224, 230, .52), transparent 26%),
    var(--paper);
}

.about-layout {
  grid-template-columns: minmax(290px, .78fr) minmax(0, 1.22fr) !important;
  align-items: start !important;
  gap: clamp(38px, 6vw, 96px) !important;
}

.about-intro {
  position: relative;
  padding: clamp(28px, 3vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(86, 56, 91, .10);
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.97), rgba(249,242,248,.78));
  box-shadow:
    0 24px 64px rgba(73, 44, 78, .08),
    inset 0 1px rgba(255,255,255,.98);
}

.about-intro::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,216,236,.92), transparent 68%);
  opacity: .85;
  pointer-events: none;
}

.about-lead {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.72;
}

.about-highlight {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(163, 113, 171, .12);
  border-radius: 24px;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
}

.about-highlight__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9c64a4;
  background: linear-gradient(145deg, #eddcf0, #fff);
  box-shadow: inset 0 1px rgba(255,255,255,.96);
}

.about-highlight p {
  margin: 0;
  color: #7a697c;
  font-size: 14px;
  line-height: 1.7;
}

.about-pills {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-pills span {
  padding: 9px 14px;
  border: 1px solid rgba(128, 83, 136, .10);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: #8c6493;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quality-grid-premium {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.quality-card-premium {
  position: relative;
  min-height: 248px;
  padding: 28px 28px 26px;
  overflow: hidden;
  border: 1px solid rgba(86, 56, 91, .10) !important;
  border-radius: 30px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,243,248,.86)) !important;
  box-shadow:
    0 24px 56px rgba(73, 44, 78, .08),
    inset 0 1px rgba(255,255,255,.98) !important;
  transition:
    transform .26s ease,
    box-shadow .26s ease,
    border-color .26s ease;
}

.quality-card-premium::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -60px;
  bottom: -68px;
  border-radius: 50%;
  opacity: .55;
  pointer-events: none;
}

.quality-card-premium--logic::after {
  background: radial-gradient(circle, rgba(232, 216, 236, .95), transparent 70%);
}

.quality-card-premium--empathy::after {
  background: radial-gradient(circle, rgba(241, 222, 232, .92), transparent 70%);
}

.quality-card-premium--growth::after {
  background: radial-gradient(circle, rgba(234, 228, 216, .92), transparent 70%);
}

.quality-card-premium--details::after {
  background: radial-gradient(circle, rgba(230, 217, 239, .95), transparent 70%);
}

.quality-card-premium:hover {
  transform: translateY(-7px);
  border-color: rgba(195, 151, 83, .24) !important;
  box-shadow:
    0 34px 74px rgba(73, 44, 78, .13),
    inset 0 1px rgba(255,255,255,1) !important;
}

.quality-card__top {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quality-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #945d9b;
  background: linear-gradient(145deg, #ecdcef, #fff);
  box-shadow:
    0 12px 26px rgba(126, 85, 133, .10),
    inset 0 1px rgba(255,255,255,.98);
  font-size: 22px;
}

.quality-card__number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: rgba(125, 82, 132, .18);
}

.quality-card-premium h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.quality-card-premium p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #726773;
  font-size: 14px;
  line-height: 1.72;
}

@media (max-width: 980px) {
  .about-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .about-intro {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .about-highlight {
    padding: 16px;
    border-radius: 20px;
  }

  .quality-grid-premium {
    grid-template-columns: 1fr !important;
  }

  .quality-card-premium {
    min-height: 0;
    padding: 24px 22px;
    border-radius: 26px !important;
  }

  .quality-card-premium h3 {
    font-size: 29px;
  }
}


/* =========================================================
   VERSION 7 — РАСШИРЕННЫЙ БЛОК «ОБО МНЕ»
   ========================================================= */

.about-layout-v7 {
  display: grid !important;
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1.08fr) !important;
  align-items: stretch !important;
  gap: clamp(28px, 4vw, 58px) !important;
}

.about-story {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 4vw, 54px);
  border: 1px solid rgba(86, 56, 91, .10);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 6%, rgba(231, 210, 235, .72), transparent 36%),
    linear-gradient(155deg, rgba(255,255,255,.98), rgba(249,242,248,.84));
  box-shadow:
    0 26px 72px rgba(73, 44, 78, .09),
    inset 0 1px rgba(255,255,255,.98);
}

.about-story::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -110px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,223,231,.72), transparent 68%);
  pointer-events: none;
}

.about-story__lead {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #4f454f;
  font-size: clamp(19px, 1.45vw, 24px);
  line-height: 1.62;
}

.about-story__text {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.about-focus {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid rgba(135, 89, 143, .10);
  border-radius: 24px;
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(12px);
}

.about-focus__title {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 9px;
  font-weight: 700;
  color: #a173a8;
}

.about-focus__item {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: start;
  gap: 12px;
}

.about-focus__item + .about-focus__item {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(91, 59, 95, .08);
}

.about-focus__dot {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #bd8fc2, #d5ab64);
  box-shadow: 0 0 0 5px rgba(174, 116, 182, .08);
}

.about-focus__item strong {
  display: block;
  margin-bottom: 3px;
  color: #3e343f;
  font-size: 13px;
}

.about-focus__item small {
  display: block;
  color: #7b6e7b;
  font-size: 11px;
  line-height: 1.5;
}

.about-values {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.about-values span {
  padding: 9px 13px;
  border: 1px solid rgba(133, 84, 140, .10);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #86588d;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 9px;
  font-weight: 600;
}

.quality-grid-v7 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.quality-card-v7 {
  position: relative;
  min-height: 286px;
  padding: 28px;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  border: 1px solid rgba(86, 56, 91, .10) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(235,216,239,.52), transparent 40%),
    linear-gradient(165deg, rgba(255,255,255,.98), rgba(249,243,248,.88)) !important;
  box-shadow:
    0 24px 60px rgba(73, 44, 78, .09),
    inset 0 1px rgba(255,255,255,.98) !important;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.quality-card-v7::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -62px;
  bottom: -72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,222,232,.74), transparent 70%);
  pointer-events: none;
}

.quality-card-v7:hover {
  transform: translateY(-7px);
  border-color: rgba(195,151,83,.22) !important;
  box-shadow:
    0 34px 76px rgba(73, 44, 78, .14),
    inset 0 1px rgba(255,255,255,1) !important;
}

.quality-card-v7__icon {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 91, 153, .11);
  border-radius: 19px;
  color: #8f5b96;
  background: linear-gradient(145deg, #ead9ed, #fff);
  box-shadow:
    0 12px 28px rgba(113, 70, 120, .10),
    inset 0 1px rgba(255,255,255,.98);
}

.quality-card-v7__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quality-card-v7__label {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 8px;
  font-weight: 700;
  color: #b087af;
}

.quality-card-v7 h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 13px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.02em;
}

.quality-card-v7 p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #716571;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 1040px) {
  .about-layout-v7 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .about-story {
    padding: 26px 22px;
    border-radius: 27px;
  }

  .about-story__lead {
    font-size: 18px;
  }

  .quality-grid-v7 {
    grid-template-columns: 1fr !important;
  }

  .quality-card-v7 {
    min-height: 0;
    padding: 24px 22px;
    border-radius: 26px !important;
  }

  .quality-card-v7 h3 {
    font-size: 28px;
  }
}


/* =========================================================
   VERSION 8 — КОМПАКТНЫЙ БЛОК «ОБО МНЕ»
   ========================================================= */

.section-about {
  padding-top: 86px !important;
  padding-bottom: 86px !important;
}

.about-layout-v7 {
  grid-template-columns: minmax(340px, .88fr) minmax(0, 1.12fr) !important;
  align-items: start !important;
  gap: 28px !important;
}

.about-story {
  height: auto !important;
  min-height: 0 !important;
  padding: 34px 36px !important;
  border-radius: 28px !important;
}

.about-story h2 {
  margin-bottom: 22px !important;
  font-size: clamp(54px, 4.5vw, 74px) !important;
}

.about-story__lead {
  font-size: clamp(17px, 1.2vw, 20px) !important;
  line-height: 1.55 !important;
}

.about-story__text {
  margin-top: 14px !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.about-focus {
  margin-top: 22px !important;
  padding: 18px 20px !important;
  border-radius: 20px !important;
}

.about-focus__title {
  margin-bottom: 12px !important;
}

.about-focus__item + .about-focus__item {
  margin-top: 11px !important;
  padding-top: 11px !important;
}

.about-focus__item strong {
  font-size: 12px !important;
}

.about-focus__item small {
  font-size: 10px !important;
}

.about-values {
  margin-top: 17px !important;
  gap: 7px !important;
}

.about-values span {
  padding: 7px 11px !important;
  font-size: 8px !important;
}

.quality-grid-v7 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 14px !important;
}

.quality-card-v7 {
  min-width: 0 !important;
  min-height: 218px !important;
  height: auto !important;
  padding: 22px 22px 20px !important;
  border-radius: 24px !important;
}

.quality-card-v7__icon {
  width: 48px !important;
  height: 48px !important;
  margin-bottom: 16px !important;
  border-radius: 15px !important;
}

.quality-card-v7__icon svg {
  width: 23px !important;
  height: 23px !important;
}

.quality-card-v7__label {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 0 8px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  background: rgba(238, 221, 241, .72) !important;
  color: #9c66a3 !important;
  font-size: 7px !important;
  line-height: 1.2 !important;
  letter-spacing: .13em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.quality-card-v7 h3 {
  margin-bottom: 9px !important;
  font-size: clamp(24px, 2vw, 29px) !important;
  line-height: 1.02 !important;
  overflow-wrap: anywhere !important;
}

.quality-card-v7 p {
  font-size: 11px !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere !important;
}

.quality-card-v7::after {
  width: 120px !important;
  height: 120px !important;
  right: -52px !important;
  bottom: -58px !important;
}

@media (max-width: 1120px) {
  .about-layout-v7 {
    grid-template-columns: 1fr !important;
  }

  .about-story {
    max-width: none !important;
  }
}

@media (max-width: 760px) {
  .quality-grid-v7 {
    grid-template-columns: 1fr !important;
  }

  .quality-card-v7 {
    min-height: 0 !important;
  }
}

@media (max-width: 640px) {
  .section-about {
    padding-top: 68px !important;
    padding-bottom: 68px !important;
  }

  .about-story {
    padding: 25px 21px !important;
    border-radius: 24px !important;
  }

  .about-story h2 {
    font-size: 52px !important;
  }

  .quality-card-v7 {
    padding: 21px 20px !important;
    border-radius: 22px !important;
  }

  .quality-card-v7__label {
    white-space: normal !important;
  }
}


/* =========================================================
   VERSION 9 — ПОЛНАЯ ПЕРЕКОМПОНОВКА БЛОКА «ОБО МНЕ»
   ========================================================= */

.about-v9 {
  position: relative;
  overflow: hidden;
  padding: 94px 0 !important;
  background:
    radial-gradient(circle at 4% 10%, rgba(233, 216, 237, .46), transparent 28%),
    radial-gradient(circle at 96% 88%, rgba(241, 224, 230, .48), transparent 25%),
    #fffdfc;
}

.about-v9__heading {
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  align-items: end;
  gap: 54px;
}

.about-v9__heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(50px, 5.2vw, 78px);
  line-height: .95;
}

.about-v9__summary {
  max-width: 520px;
  margin: 0 0 5px auto;
  color: #756a75;
  font-size: 16px;
  line-height: 1.72;
}

.about-v9__main {
  display: grid;
  grid-template-columns: minmax(350px, .83fr) minmax(0, 1.17fr);
  align-items: stretch;
  gap: 20px;
}

.about-v9__story {
  min-width: 0;
  padding: 36px 38px;
  border: 1px solid rgba(84, 55, 89, .10);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 5%, rgba(230, 208, 234, .72), transparent 35%),
    linear-gradient(155deg, rgba(255,255,255,.98), rgba(249,243,248,.88));
  box-shadow:
    0 25px 66px rgba(70, 43, 75, .09),
    inset 0 1px rgba(255,255,255,.98);
}

.about-v9__story-label {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 7px 12px;
  border: 1px solid rgba(144, 90, 151, .10);
  border-radius: 999px;
  color: #9d68a4;
  background: rgba(255,255,255,.66);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 8px;
  font-weight: 700;
}

.about-v9__story-lead {
  margin: 0;
  color: #443944;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 2.25vw, 36px);
  line-height: 1.22;
}

.about-v9__story-text {
  margin: 24px 0 0;
  color: #746874;
  font-size: 14px;
  line-height: 1.75;
}

.about-v9__values {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.about-v9__values span {
  padding: 8px 12px;
  border: 1px solid rgba(136, 85, 143, .10);
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  color: #87598e;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 8px;
  font-weight: 600;
}

.about-v9__strengths {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-v9__card {
  min-width: 0;
  min-height: 186px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(84, 55, 89, .10);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(235, 217, 239, .52), transparent 39%),
    linear-gradient(165deg, rgba(255,255,255,.98), rgba(250,245,249,.90));
  box-shadow:
    0 22px 52px rgba(70, 43, 75, .08),
    inset 0 1px rgba(255,255,255,.98);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.about-v9__card:hover {
  transform: translateY(-6px);
  border-color: rgba(194, 149, 80, .23);
  box-shadow:
    0 31px 68px rgba(70, 43, 75, .13),
    inset 0 1px rgba(255,255,255,1);
}

.about-v9__card-head {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-v9__icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 91, 153, .11);
  border-radius: 15px;
  color: #8f5b96;
  background: linear-gradient(145deg, #ead9ed, #fff);
}

.about-v9__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-v9__number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1;
  color: rgba(128, 82, 134, .17);
}

.about-v9__card h3 {
  margin: 0 0 9px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 2vw, 31px);
  font-weight: 500;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.about-v9__card p {
  margin: 0;
  color: #746a74;
  font-size: 12px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.about-v9__focus {
  margin-top: 20px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(84, 55, 89, .10);
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 18px 44px rgba(70, 43, 75, .07);
  backdrop-filter: blur(14px);
}

.about-v9__focus-title {
  flex: 0 0 auto;
  color: #a071a6;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 9px;
  font-weight: 700;
}

.about-v9__focus-items {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.about-v9__focus-items span {
  padding: 8px 13px;
  border: 1px solid rgba(131, 82, 138, .10);
  border-radius: 999px;
  color: #76517b;
  background: linear-gradient(145deg, rgba(238,223,241,.72), rgba(255,255,255,.86));
  font-size: 11px;
}

@media (max-width: 1040px) {
  .about-v9__heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-v9__summary {
    margin-left: 0;
  }

  .about-v9__main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .about-v9 {
    padding: 72px 0 !important;
  }

  .about-v9__heading {
    margin-bottom: 30px;
  }

  .about-v9__heading h2 {
    font-size: 49px;
  }

  .about-v9__story {
    padding: 27px 23px;
    border-radius: 25px;
  }

  .about-v9__story-lead {
    font-size: 27px;
  }

  .about-v9__strengths {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-v9__card {
    min-height: 0;
    padding: 22px;
    border-radius: 23px;
  }

  .about-v9__focus {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}


/* =========================================================
   VERSION 10 — ЧИСТЫЙ БЛОК «ОБО МНЕ»
   ========================================================= */

.about-v10__heading {
  display: block !important;
  margin-bottom: 34px !important;
}

.about-v10__heading > div {
  max-width: 780px;
}

.about-v9__story {
  padding-bottom: 36px !important;
}

.about-v10__closing {
  width: min(760px, 60%);
  margin: 28px 0 0 auto;
  padding: 8px 0 4px 34px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: start;
  gap: 20px;
}

.about-v10__closing-line {
  position: relative;
  width: 46px;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, transparent, rgba(196, 151, 82, .86));
}

.about-v10__closing-line::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 6px rgba(201, 155, 80, .10);
}

.about-v10__closing p {
  margin: 0;
  color: #645966;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 2.25vw, 34px);
  line-height: 1.28;
  letter-spacing: -.015em;
  text-align: left;
}

/* Полностью скрываем старые элементы, если браузер держит старую разметку в кэше */
.about-v9__focus,
.about-v9__values,
.about-v9__summary {
  display: none !important;
}

@media (max-width: 1040px) {
  .about-v10__closing {
    width: min(760px, 82%);
  }
}

@media (max-width: 700px) {
  .about-v10__closing {
    width: 100%;
    margin-top: 24px;
    padding-left: 0;
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }

  .about-v10__closing-line {
    width: 34px;
    margin-top: 15px;
  }

  .about-v10__closing p {
    font-size: 23px;
  }
}


/* =========================================================
   VERSION 11 — КОМПАКТНАЯ НАВИГАЦИЯ И ПЕРВЫЙ ЭКРАН
   ========================================================= */

/* Уменьшаем общий масштаб контента, не используя transform/zoom */
.container {
  width: min(1280px, calc(100% - 48px)) !important;
}

.section {
  padding-top: 96px !important;
  padding-bottom: 96px !important;
}

/* Компактная верхняя панель */
.header-inner {
  min-height: 72px !important;
  grid-template-columns: 62px minmax(0, 1fr) auto !important;
  gap: 24px !important;
}

.brand {
  width: 52px !important;
  height: 52px !important;
}

.brand img {
  width: 46px !important;
  height: 46px !important;
}

.main-nav {
  gap: clamp(18px, 2vw, 36px) !important;
}

.main-nav a {
  font-size: 10px !important;
  letter-spacing: .12em !important;
}

.main-nav a::after {
  bottom: -6px !important;
}

.header-contact {
  min-height: 44px !important;
  padding: 0 21px !important;
  gap: 9px !important;
  font-size: 9px !important;
  letter-spacing: .11em !important;
}

/* Первый экран снова помещается в высоту обычного ноутбука */
.hero {
  min-height: 100svh !important;
  padding: 88px 0 24px !important;
}

.hero-grid {
  min-height: calc(100svh - 116px) !important;
  grid-template-columns: minmax(0, .92fr) minmax(470px, 1.08fr) !important;
  gap: clamp(26px, 4vw, 62px) !important;
}

.hero-copy {
  padding: 8px 0 12px !important;
}

.hero-intro {
  margin-bottom: 8px !important;
  font-size: clamp(20px, 1.75vw, 29px) !important;
}

h1 {
  margin-bottom: 20px !important;
  font-size: clamp(64px, 6.35vw, 102px) !important;
  line-height: .89 !important;
}

h2 {
  font-size: clamp(44px, 4.6vw, 70px) !important;
}

.hero-fields {
  margin-bottom: 22px !important;
  gap: 12px !important;
  font-size: clamp(10px, .86vw, 13px) !important;
  letter-spacing: .25em !important;
}

.hero-description {
  max-width: 570px !important;
  margin-bottom: 25px !important;
  font-size: clamp(15px, 1vw, 18px) !important;
  line-height: 1.65 !important;
}

.hero-actions {
  gap: 13px !important;
}

.hero-actions .button {
  min-height: 50px !important;
  padding-inline: 25px !important;
  font-size: 10px !important;
}

.hero-art {
  width: 100% !important;
  min-height: 0 !important;
  height: min(620px, calc(100svh - 128px)) !important;
  align-self: center !important;
}

.hero-image-wrap {
  height: 100% !important;
  border-radius: 43% 43% 24px 24px / 34% 34% 24px 24px !important;
}

.hero-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.gold-orbit {
  width: 74% !important;
  top: 1% !important;
  left: -3% !important;
}

/* Компактнее, чтобы указатель не вытеснял основной контент */
.scroll-discovery {
  margin-top: 28px !important;
  padding: 7px 17px 7px 7px !important;
}

.scroll-discovery__orb {
  width: 46px !important;
  height: 46px !important;
}

.scroll-discovery__copy {
  min-width: 150px !important;
}

.scroll-discovery__copy strong {
  font-size: 18px !important;
}

.scroll-discovery__trail {
  width: 42px !important;
}

/* Карточки под первым экраном не раздувают страницу */
.expertise-strip {
  margin-top: 22px !important;
  gap: 14px !important;
}

.expertise-card {
  min-height: 174px !important;
  padding: 22px !important;
  border-radius: 24px !important;
}

.expertise-icon {
  width: 50px !important;
  height: 50px !important;
  border-radius: 16px !important;
}

.expertise-card h3 {
  font-size: 27px !important;
}

.expertise-card p {
  font-size: 11px !important;
}

/* Низкие экраны ноутбуков */
@media (min-width: 901px) and (max-height: 820px) {
  .header-inner {
    min-height: 66px !important;
  }

  .brand,
  .brand img {
    width: 42px !important;
    height: 42px !important;
  }

  .hero {
    padding-top: 76px !important;
  }

  .hero-grid {
    min-height: calc(100svh - 94px) !important;
  }

  h1 {
    font-size: clamp(58px, 5.65vw, 88px) !important;
  }

  .hero-art {
    height: min(560px, calc(100svh - 105px)) !important;
  }

  .scroll-discovery {
    margin-top: 18px !important;
  }
}

@media (max-width: 1120px) {
  .container {
    width: min(100% - 36px, 1280px) !important;
  }

  .header-inner {
    grid-template-columns: 56px minmax(0, 1fr) !important;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 24px, 1280px) !important;
  }

  .header-inner {
    min-height: 68px !important;
    grid-template-columns: 50px 1fr !important;
  }

  .brand,
  .brand img {
    width: 44px !important;
    height: 44px !important;
  }

  .main-nav {
    top: 68px !important;
  }

  .hero {
    min-height: auto !important;
    padding-top: 94px !important;
  }

  .hero-grid {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
  }

  .hero-art {
    height: auto !important;
  }

  .hero-image-wrap {
    height: auto !important;
  }

  .hero-image-wrap img {
    height: auto !important;
    aspect-ratio: 1.18 !important;
  }
}

@media (max-width: 640px) {
  .section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  h1 {
    font-size: clamp(55px, 17vw, 76px) !important;
  }

  .hero-image-wrap img {
    aspect-ratio: .98 !important;
  }
}


/* =========================================================
   VERSION 12 — МИНИМАЛИСТИЧНЫЙ SCROLL-ИНДИКАТОР
   ========================================================= */

.scroll-discovery {
  display: none !important;
}

.scroll-minimal {
  width: fit-content;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #a474a8;
  text-decoration: none;
  transition: transform .22s ease, color .22s ease;
}

.scroll-minimal:hover {
  transform: translateY(2px);
  color: #7f5285;
}

.scroll-minimal__line {
  position: relative;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    rgba(201,155,80,.15),
    rgba(201,155,80,.85)
  );
}

.scroll-minimal__line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, 50%);
  box-shadow: 0 0 0 5px rgba(201,155,80,.08);
}

.scroll-minimal__line i {
  position: absolute;
  left: 0;
  top: -10px;
  width: 1px;
  height: 12px;
  background: #8f5d96;
  animation: scrollMinimalMove 1.8s ease-in-out infinite;
}

.scroll-minimal__text {
  text-transform: uppercase;
  letter-spacing: .20em;
  font-size: 9px;
  font-weight: 600;
}

@keyframes scrollMinimalMove {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translateY(46px);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .scroll-minimal {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-minimal__line i {
    animation: none !important;
  }
}


/* =========================================================
   VERSION 13 — ДОРАБОТАННЫЙ БЛОК «ОБО МНЕ»
   Навигация и первый экран не изменяются.
   ========================================================= */

.about-v13 {
  position: relative;
  overflow: hidden;
  padding: 90px 0 !important;
  background:
    radial-gradient(circle at 4% 10%, rgba(233,216,237,.42), transparent 28%),
    radial-gradient(circle at 96% 88%, rgba(241,224,230,.45), transparent 25%),
    #fffdfc;
}

.about-v13__heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.about-v13__heading h2 {
  margin: 0;
  font-size: clamp(48px, 4.7vw, 72px);
  line-height: .96;
}

.about-v13__main {
  display: grid;
  grid-template-columns: minmax(360px, .84fr) minmax(0, 1.16fr);
  align-items: stretch;
  gap: 20px;
}

.about-v13__story {
  min-width: 0;
  padding: 34px 36px;
  border: 1px solid rgba(84,55,89,.10);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 5%, rgba(230,208,234,.68), transparent 35%),
    linear-gradient(155deg, rgba(255,255,255,.98), rgba(249,243,248,.88));
  box-shadow:
    0 24px 64px rgba(70,43,75,.09),
    inset 0 1px rgba(255,255,255,.98);
}

.about-v13__label {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 12px;
  border: 1px solid rgba(144,90,151,.10);
  border-radius: 999px;
  color: #9d68a4;
  background: rgba(255,255,255,.68);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 8px;
  font-weight: 700;
}

.about-v13__lead {
  margin: 0;
  color: #443944;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 1.95vw, 31px);
  line-height: 1.25;
}

.about-v13__text {
  margin: 19px 0 0;
  color: #746874;
  font-size: 13px;
  line-height: 1.72;
}

.about-v13__facts {
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid rgba(92,60,97,.09);
  border-radius: 21px;
  background: rgba(255,255,255,.62);
}

.about-v13__fact {
  min-height: 55px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 11px;
}

.about-v13__fact + .about-v13__fact {
  border-top: 1px solid rgba(92,60,97,.08);
}

.about-v13__fact span {
  color: rgba(137,86,145,.52);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  line-height: 1;
}

.about-v13__fact p {
  margin: 0;
  color: #655965;
  font-size: 11px;
  line-height: 1.45;
}

.about-v13__strengths {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-v13__card {
  min-width: 0;
  min-height: 186px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid rgba(84,55,89,.10);
  border-radius: 26px;
  box-shadow:
    0 22px 52px rgba(70,43,75,.08),
    inset 0 1px rgba(255,255,255,.98);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.about-v13__card--logic {
  background:
    radial-gradient(circle at 100% 0%, rgba(220,218,239,.64), transparent 42%),
    linear-gradient(165deg, rgba(255,255,255,.98), rgba(247,246,252,.91));
}

.about-v13__card--empathy {
  background:
    radial-gradient(circle at 100% 0%, rgba(241,216,229,.66), transparent 42%),
    linear-gradient(165deg, rgba(255,255,255,.98), rgba(252,246,249,.91));
}

.about-v13__card--growth {
  background:
    radial-gradient(circle at 100% 0%, rgba(237,226,205,.66), transparent 42%),
    linear-gradient(165deg, rgba(255,255,255,.98), rgba(252,249,242,.91));
}

.about-v13__card--details {
  background:
    radial-gradient(circle at 100% 0%, rgba(229,214,240,.68), transparent 42%),
    linear-gradient(165deg, rgba(255,255,255,.98), rgba(249,245,252,.91));
}

.about-v13__card:hover {
  transform: translateY(-6px);
  border-color: rgba(194,149,80,.23);
  box-shadow:
    0 31px 68px rgba(70,43,75,.13),
    inset 0 1px rgba(255,255,255,1);
}

.about-v13__card-head {
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-v13__icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145,91,153,.11);
  border-radius: 15px;
  color: #8f5b96;
  background: linear-gradient(145deg, rgba(234,217,237,.92), #fff);
}

.about-v13__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-v13__number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1;
  color: rgba(128,82,134,.17);
}

.about-v13__card h3 {
  margin: 0 0 9px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 1.9vw, 30px);
  font-weight: 500;
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.about-v13__card p {
  margin: 0;
  color: #746a74;
  font-size: 12px;
  line-height: 1.62;
}

.about-v13__transition {
  width: min(850px, 68%);
  margin: 27px 0 0 auto;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 17px;
}

.about-v13__transition > span {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,151,78,.88));
}

.about-v13__transition > span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  box-shadow: 0 0 0 6px rgba(201,155,80,.09);
}

.about-v13__transition p {
  margin: 0;
  color: #655966;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.25;
}

@media (max-width: 1040px) {
  .about-v13__main {
    grid-template-columns: 1fr;
  }

  .about-v13__transition {
    width: min(850px, 88%);
  }
}

@media (max-width: 700px) {
  .about-v13 {
    padding: 72px 0 !important;
  }

  .about-v13__heading {
    margin-bottom: 28px;
  }

  .about-v13__story {
    padding: 27px 23px;
    border-radius: 25px;
  }

  .about-v13__lead {
    font-size: 26px;
  }

  .about-v13__strengths {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-v13__card {
    min-height: 0;
    padding: 22px;
    border-radius: 23px;
  }

  .about-v13__transition {
    width: 100%;
    grid-template-columns: 38px 1fr;
    gap: 13px;
  }

  .about-v13__transition p {
    font-size: 22px;
  }
}


/* =========================================================
   VERSION 14 — ЧИСТЫЙ ПЕРЕХОД ПОСЛЕ БЛОКА «ОБО МНЕ»
   ========================================================= */

.about-v13__transition {
  display: none !important;
}

.about-v14__transition {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(92, 60, 97, .10);
  text-align: center;
}

.about-v14__transition-label {
  display: block;
  margin-bottom: 8px;
  color: #a174a6;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 8px;
  font-weight: 700;
}

.about-v14__transition p {
  margin: 0;
  color: #615563;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 1.9vw, 29px);
  line-height: 1.25;
}

.about-v14__transition i {
  margin-inline: 10px;
  color: var(--gold);
  font-style: normal;
}

@media (max-width: 700px) {
  .about-v14__transition {
    margin-top: 22px;
    padding-top: 18px;
  }

  .about-v14__transition p {
    font-size: 21px;
  }

  .about-v14__transition i {
    margin-inline: 5px;
  }
}


/* =========================================================
   VERSION 15 — 8 БЛОКОВ ПРОФЕССИОНАЛЬНОЙ СПЕЦИАЛИЗАЦИИ
   ========================================================= */

.specialization-v15 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 8%, rgba(232,214,236,.48), transparent 28%),
    radial-gradient(circle at 95% 90%, rgba(242,224,231,.48), transparent 26%),
    #faf6f9;
}

.specialization-v15__heading {
  margin-bottom: 42px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .68fr);
  align-items: end;
  gap: 48px;
}

.specialization-v15__heading h2 {
  margin-bottom: 0;
}

.specialization-v15__heading > p {
  max-width: 520px;
  margin: 0 0 5px auto;
  color: #756a75;
  font-size: 15px;
  line-height: 1.7;
}

.specialization-v15__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.specialization-v15__card {
  position: relative;
  min-width: 0;
  min-height: 265px;
  padding: 25px 24px 23px;
  overflow: hidden;
  border: 1px solid rgba(84,55,89,.10);
  border-radius: 27px;
  background:
    radial-gradient(circle at 100% 0%, rgba(233,216,237,.54), transparent 42%),
    linear-gradient(165deg, rgba(255,255,255,.98), rgba(249,244,249,.90));
  box-shadow:
    0 22px 54px rgba(70,43,75,.08),
    inset 0 1px rgba(255,255,255,.98);
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.specialization-v15__card::after {
  content: "";
  position: absolute;
  width: 145px;
  height: 145px;
  right: -65px;
  bottom: -72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238,221,233,.70), transparent 70%);
  pointer-events: none;
}

.specialization-v15__card:hover {
  transform: translateY(-7px);
  border-color: rgba(194,149,80,.22);
  box-shadow:
    0 32px 70px rgba(70,43,75,.13),
    inset 0 1px rgba(255,255,255,1);
}

.specialization-v15__card--education {
  background:
    radial-gradient(circle at 100% 0%, rgba(238,221,187,.72), transparent 43%),
    linear-gradient(165deg, rgba(255,255,255,.99), rgba(252,248,239,.92));
}

.specialization-v15__card--qa {
  background:
    radial-gradient(circle at 100% 0%, rgba(222,216,239,.64), transparent 43%),
    linear-gradient(165deg, rgba(255,255,255,.99), rgba(247,246,252,.92));
}

.specialization-v15__card--ux {
  background:
    radial-gradient(circle at 100% 0%, rgba(241,216,229,.64), transparent 43%),
    linear-gradient(165deg, rgba(255,255,255,.99), rgba(252,246,249,.92));
}

.specialization-v15__card--frontend,
.specialization-v15__card--backend {
  background:
    radial-gradient(circle at 100% 0%, rgba(226,217,239,.62), transparent 43%),
    linear-gradient(165deg, rgba(255,255,255,.99), rgba(249,246,252,.92));
}

.specialization-v15__card--data {
  background:
    radial-gradient(circle at 100% 0%, rgba(217,230,238,.66), transparent 43%),
    linear-gradient(165deg, rgba(255,255,255,.99), rgba(246,250,252,.92));
}

.specialization-v15__card--analysis {
  background:
    radial-gradient(circle at 100% 0%, rgba(235,226,205,.68), transparent 43%),
    linear-gradient(165deg, rgba(255,255,255,.99), rgba(252,249,242,.92));
}

.specialization-v15__card--product {
  background:
    radial-gradient(circle at 100% 0%, rgba(231,210,235,.72), transparent 43%),
    linear-gradient(165deg, rgba(255,255,255,.99), rgba(249,243,249,.93));
}

.specialization-v15__top {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.specialization-v15__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145,91,153,.11);
  border-radius: 16px;
  color: #8f5b96;
  background: linear-gradient(145deg, rgba(235,220,239,.94), #fff);
  box-shadow: inset 0 1px rgba(255,255,255,.98);
}

.specialization-v15__card--education .specialization-v15__icon {
  color: #a47635;
  background: linear-gradient(145deg, rgba(244,229,196,.96), #fff);
}

.specialization-v15__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.specialization-v15__number {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  line-height: 1;
  color: rgba(128,82,134,.16);
}

.specialization-v15__label {
  display: block;
  margin-bottom: 9px;
  color: #a275a7;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 7px;
  font-weight: 700;
}

.specialization-v15__card--education .specialization-v15__label {
  color: #a77a3c;
}

.specialization-v15__card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 11px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 1.85vw, 30px);
  font-weight: 500;
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.specialization-v15__card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #746a74;
  font-size: 11px;
  line-height: 1.62;
}

@media (max-width: 1180px) {
  .specialization-v15__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .specialization-v15__heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .specialization-v15__heading > p {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .specialization-v15__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .specialization-v15__card {
    min-height: 0;
    padding: 22px;
    border-radius: 23px;
  }
}


/* =========================================================
   VERSION 16 — КЕЙС ПРОЕКТА GROWUP
   ========================================================= */

.projects-v16 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(235,207,232,.48), transparent 28%),
    radial-gradient(circle at 94% 88%, rgba(239,224,241,.50), transparent 26%),
    #fffdfc;
}

.projects-v16__heading {
  margin-bottom: 36px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
  align-items: end;
  gap: 44px;
}

.projects-v16__heading > p {
  max-width: 520px;
  margin: 0 0 5px auto;
  color: #756a75;
  font-size: 15px;
  line-height: 1.72;
}

.project-card-v16 {
  grid-template-columns: minmax(340px, .86fr) minmax(0, 1.14fr);
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(237, 220, 237, .88), rgba(255,255,255,.88) 54%, rgba(239,228,242,.90));
}

.project-copy-v16 {
  padding: clamp(36px, 4.8vw, 68px);
}

.project-lead {
  max-width: 560px;
  margin: 0;
  color: #5e555c;
}

.project-role-box {
  max-width: 560px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(111, 70, 117, .10);
  border-radius: 22px;
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 1px rgba(255,255,255,.92);
}

.project-role-box__label {
  display: inline-block;
  margin-bottom: 8px;
  color: #9b6aa1;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 8px;
  font-weight: 700;
}

.project-role-box p {
  margin: 0;
  color: #5f5560;
  font-size: 14px;
  line-height: 1.65;
}

.project-metrics {
  max-width: 580px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-metrics > div {
  min-height: 86px;
  padding: 15px 16px;
  border: 1px solid rgba(111, 70, 117, .10);
  border-radius: 20px;
  background: rgba(255,255,255,.54);
}

.project-metrics strong {
  display: block;
  margin-bottom: 7px;
  color: #362b37;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.project-metrics span {
  display: block;
  color: #746a74;
  font-size: 11px;
  line-height: 1.45;
}

.tag-list-v16 {
  margin-top: 20px;
}

.project-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.project-actions .button {
  min-height: 52px;
  padding-inline: 25px;
}

.project-actions .button span {
  font-size: 15px;
}

.project-preview-v16 {
  min-height: 0;
  padding: 40px 36px;
  display: block;
}

.project-showcase {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-showcase__viewer {
  overflow: hidden;
  border: 1px solid rgba(84,55,89,.10);
  border-radius: 28px;
  background: rgba(255,255,255,.64);
  box-shadow: 0 22px 55px rgba(77, 48, 82, .11);
}

.showcase-browser {
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  background: #fbf7fb;
}

.showcase-browser__top {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(84,55,89,.08);
  background: #f3eaf4;
  color: #97839a;
  font-size: 11px;
}

.showcase-browser__top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b995bd;
}

.showcase-browser__top span {
  margin-left: 10px;
  opacity: .92;
}

.showcase-browser__frame {
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.showcase-browser__frame img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(53, 34, 57, .12);
}

.project-showcase__caption {
  padding: 0 18px 18px;
}

.project-showcase__caption strong {
  display: block;
  margin-bottom: 5px;
  color: #2f2430;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.02;
}

.project-showcase__caption span {
  display: block;
  color: #766c77;
  font-size: 12px;
  line-height: 1.6;
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.project-thumb {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid rgba(84,55,89,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.48);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.project-thumb img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
}

.project-thumb span {
  color: #6c5a6f;
  font-size: 10px;
  font-weight: 600;
}

.project-thumb:hover,
.project-thumb.is-active {
  transform: translateY(-3px);
  border-color: rgba(180, 134, 69, .24);
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 36px rgba(64, 41, 69, .10);
}

.modal-dialog-v16 {
  width: min(1080px, calc(100% - 34px));
  max-height: calc(100vh - 36px);
  padding: clamp(30px, 4.2vw, 58px);
}

.project-case {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-case__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr);
  gap: 24px;
  align-items: start;
}

.project-case__intro {
  max-width: 720px;
  margin: 0;
  color: #6d626d;
}

.project-case__highlight {
  padding: 22px;
  border: 1px solid rgba(111, 70, 117, .10);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(243,232,245,.95), rgba(255,255,255,.92));
}

.project-case__highlight span {
  display: block;
  margin-bottom: 7px;
  color: #9b6aa1;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 8px;
  font-weight: 700;
}

.project-case__highlight p {
  margin: 0;
  color: #4f4450;
  font-size: 14px;
  line-height: 1.6;
}

.project-case__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-case__stats div {
  min-height: 94px;
  padding: 16px 18px;
  border: 1px solid rgba(84,55,89,.10);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
}

.project-case__stats strong {
  display: block;
  margin-bottom: 8px;
  color: #312631;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.project-case__stats span {
  color: #766c77;
  font-size: 11px;
}

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

.project-case__grid article {
  padding: 22px;
  border: 1px solid rgba(84,55,89,.10);
  border-radius: 24px;
  background: rgba(255,255,255,.68);
}

.project-case__grid h3 {
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  font-weight: 500;
}

.project-case__grid p,
.project-case__grid ul {
  margin: 0;
  color: #6f656f;
  font-size: 14px;
  line-height: 1.68;
}

.project-case__grid ul {
  padding-left: 18px;
}

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

.project-case__screen {
  overflow: hidden;
  border: 1px solid rgba(84,55,89,.10);
  border-radius: 24px;
  background: rgba(255,255,255,.68);
}

.project-case__screen--wide {
  grid-column: 1 / -1;
}

.project-case__screen img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.project-case__screen figcaption {
  padding: 13px 15px 15px;
  color: #706670;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1160px) {
  .projects-v16__heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-v16__heading > p {
    margin-left: 0;
  }

  .project-card-v16 {
    grid-template-columns: 1fr;
  }

  .project-preview-v16 {
    padding-top: 0;
  }

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

  .project-case__hero,
  .project-case__stats,
  .project-case__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .project-metrics,
  .project-thumbs,
  .project-case__stats,
  .project-case__grid,
  .project-case__gallery {
    grid-template-columns: 1fr;
  }

  .project-showcase__caption strong {
    font-size: 27px;
  }

  .modal-dialog-v16 {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    padding: 26px 18px 22px;
  }

  .project-case__hero {
    grid-template-columns: 1fr;
  }

  .project-case__screen--wide {
    grid-column: auto;
  }
}


/* =========================================================
   VERSION 17 — ДОРАБОТКА БЛОКА GROWUP
   ========================================================= */

.project-card-v16 {
  grid-template-columns: minmax(350px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 26px;
}

.project-copy-v16 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-lead,
.project-role-box,
.project-metrics {
  max-width: none;
}

.project-role-box {
  margin-top: 18px;
}

.project-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-metrics > div {
  min-height: 74px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.project-metrics strong {
  margin-bottom: 6px;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.project-metrics span {
  font-size: 10px;
  line-height: 1.4;
}

.project-actions {
  margin-top: 24px;
}

.project-preview-v16 {
  padding: 26px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-showcase {
  width: min(100%, 790px);
  gap: 12px;
}

.project-showcase__viewer {
  overflow: hidden;
  border: 1px solid rgba(84,55,89,.08);
  border-radius: 26px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 44px rgba(77, 48, 82, .09);
}

.showcase-browser {
  overflow: hidden;
  border: 1px solid rgba(84,55,89,.07);
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  box-shadow: inset 0 1px rgba(255,255,255,.98);
}

.showcase-browser__top {
  height: 38px;
  background: #fbf8fb;
}

.showcase-browser__frame {
  padding: 16px;
  background: #ffffff;
}

.showcase-browser__frame img {
  width: 100%;
  height: auto;
  max-height: 430px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(53, 34, 57, .08);
}

.project-showcase__caption {
  padding: 12px 16px 16px;
  background: rgba(255,255,255,.9);
}

.project-showcase__caption strong {
  font-size: 28px;
}

.project-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.project-thumbs::-webkit-scrollbar {
  display: none;
}

.project-thumb {
  flex: 0 0 138px;
  scroll-snap-align: start;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
}

.project-thumb img {
  aspect-ratio: 1.45;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
}

.project-thumb span {
  font-size: 10px;
  line-height: 1.3;
}

@media (max-width: 1160px) {
  .project-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-thumb {
    flex-basis: 150px;
  }
}

@media (max-width: 780px) {
  .project-card-v16 {
    gap: 18px;
  }

  .project-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-browser__frame img {
    max-height: none;
  }

  .project-thumb {
    flex-basis: 132px;
  }
}

@media (max-width: 560px) {
  .project-metrics {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   VERSION 18 — НОВАЯ КОМПОЗИЦИЯ БЛОКА GROWUP
   ========================================================= */

.projects-v18 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(235,207,232,.48), transparent 28%),
    radial-gradient(circle at 94% 88%, rgba(239,224,241,.50), transparent 26%),
    #fffdfc;
}

.projects-v18__heading {
  margin-bottom: 34px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
  align-items: end;
  gap: 44px;
}

.projects-v18__heading > p {
  max-width: 520px;
  margin: 0 0 5px auto;
  color: #756a75;
  font-size: 15px;
  line-height: 1.72;
}

.project-shell-v18 {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 3.4vw, 40px);
  border: 1px solid rgba(84,55,89,.08);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(237,220,237,.86), rgba(255,255,255,.92) 52%, rgba(239,228,242,.88));
  box-shadow:
    0 22px 64px rgba(77,48,82,.08),
    inset 0 1px rgba(255,255,255,.95);
}

.project-hero-v18 {
  display: grid;
  grid-template-columns: minmax(340px, .86fr) minmax(0, 1.14fr);
  gap: 26px;
  align-items: start;
}

.project-copy-v18 h3 {
  margin-top: 14px;
  margin-bottom: 18px;
}

.project-label-v18 {
  width: fit-content;
  min-height: auto;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(226, 198, 130, .78);
  color: #9d6a22;
  font-size: 9px;
  letter-spacing: .16em;
}

.project-role-box-v18 {
  max-width: 640px;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.62);
}

.tag-list-v18 {
  margin-top: 18px;
}

.project-actions-v18 {
  margin-top: 24px;
}

.project-actions-v18 .button {
  min-height: 52px;
  padding-inline: 28px;
}

.project-preview-v18 {
  min-width: 0;
}

.project-showcase__viewer-v18 {
  overflow: hidden;
  border: 1px solid rgba(84,55,89,.08);
  border-radius: 28px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 18px 44px rgba(77,48,82,.09);
}

.showcase-browser-v18 {
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #ffffff;
}

.showcase-browser__frame-v18 {
  width: 100%;
  padding: 14px;
  border: 0;
  background: #ffffff;
  cursor: pointer;
}

.showcase-browser__frame-v18 img {
  width: 100%;
  height: auto;
  max-height: 392px;
  display: block;
  object-fit: contain;
  object-position: center top;
  border-radius: 18px;
  background: #ffffff;
}

.project-showcase__caption-v18 {
  padding: 14px 18px 18px;
  background: rgba(255,255,255,.92);
}

.project-showcase__caption-v18 strong {
  display: block;
  margin-bottom: 6px;
  color: #2f2430;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.03;
}

.project-showcase__caption-v18 span {
  display: block;
  color: #766c77;
  font-size: 12px;
  line-height: 1.58;
}

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

.project-metrics-v18 > div {
  min-height: 92px;
  padding: 16px 16px 15px;
  border: 1px solid rgba(84,55,89,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
}

.project-metrics-v18 strong {
  display: block;
  margin-bottom: 7px;
  color: #2f2430;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

.project-metrics-v18 span {
  display: block;
  color: #746a74;
  font-size: 11px;
  line-height: 1.45;
}

.project-gallery-v18 {
  padding: 18px;
  border: 1px solid rgba(84,55,89,.08);
  border-radius: 26px;
  background: rgba(255,255,255,.56);
}

.project-gallery-v18__head {
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.project-gallery-v18__head span {
  color: #362b37;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 33px;
  line-height: 1;
}

.project-gallery-v18__head p {
  margin: 0;
  color: #8a7f8b;
  font-size: 11px;
}

.project-thumbs-v18 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  padding: 0;
  scrollbar-width: auto;
}

.project-thumb-v18 {
  min-width: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid rgba(84,55,89,.08);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.project-thumb-v18 img {
  width: 100%;
  aspect-ratio: 1.34;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  background: #fff;
}

.project-thumb-v18 span {
  color: #5f5360;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.project-thumb-v18:hover,
.project-thumb-v18.is-active {
  transform: translateY(-3px);
  border-color: rgba(180,134,69,.24);
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 34px rgba(64,41,69,.09);
}

@media (max-width: 1160px) {
  .projects-v18__heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .projects-v18__heading > p {
    margin-left: 0;
  }

  .project-hero-v18 {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 780px) {
  .project-shell-v18 {
    padding: 22px 16px;
    gap: 18px;
    border-radius: 26px;
  }

  .project-hero-v18 {
    gap: 18px;
  }

  .project-metrics-v18 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .project-gallery-v18 {
    padding: 14px;
    border-radius: 22px;
  }

  .project-gallery-v18__head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .showcase-browser__frame-v18 img {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .project-metrics-v18,
  .project-thumbs-v18 {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   VERSION 19 — СТРЕЛКИ И КАРУСЕЛЬ ЭКРАНОВ
   ========================================================= */

.project-gallery-v19__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-gallery-v19__head > div:first-child span {
  display: block;
}

.project-gallery-v19__head > div:first-child p {
  margin-top: 6px;
}

.project-gallery-v19__controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-gallery-v19__arrow,
.project-gallery-v19__edge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(153, 103, 160, .16);
  border-radius: 50%;
  color: #84548b;
  background: linear-gradient(145deg, rgba(239,225,242,.96), rgba(255,255,255,.98));
  box-shadow:
    0 12px 26px rgba(92, 57, 98, .10),
    inset 0 1px rgba(255,255,255,.98);
  cursor: pointer;
  font-size: 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.project-gallery-v19__arrow:hover,
.project-gallery-v19__edge:hover {
  transform: translateY(-2px);
  border-color: rgba(194,149,80,.34);
  box-shadow:
    0 18px 34px rgba(92,57,98,.15),
    inset 0 1px rgba(255,255,255,1);
}

.project-gallery-v19__counter {
  min-width: 62px;
  color: #7d6c80;
  text-align: center;
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
}

.project-gallery-v19__carousel {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
}

.project-thumbs-v19 {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 3px 2px 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.project-thumbs-v19::-webkit-scrollbar {
  display: none;
}

.project-thumb-v19 {
  flex: 0 0 calc((100% - 36px) / 4);
  min-width: 185px;
  scroll-snap-align: center;
}

.project-gallery-v19__edge {
  position: relative;
  z-index: 2;
}

.project-gallery-v19__edge--left {
  justify-self: start;
}

.project-gallery-v19__edge--right {
  justify-self: end;
}

@media (max-width: 980px) {
  .project-thumb-v19 {
    flex-basis: calc((100% - 24px) / 3);
    min-width: 170px;
  }
}

@media (max-width: 700px) {
  .project-gallery-v19__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-gallery-v19__controls {
    align-self: flex-end;
  }

  .project-gallery-v19__carousel {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .project-gallery-v19__arrow,
  .project-gallery-v19__edge {
    width: 40px;
    height: 40px;
  }

  .project-thumb-v19 {
    flex-basis: calc((100% - 12px) / 2);
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .project-gallery-v19__carousel {
    grid-template-columns: 1fr;
  }

  .project-gallery-v19__edge {
    display: none;
  }

  .project-thumb-v19 {
    flex-basis: 82%;
  }
}


/* =========================================================
   VERSION 21 — TITLE, FAVICON И ФИНАЛЬНАЯ КАРТОЧКА КЕЙСА
   ========================================================= */

.project-case__gallery {
  align-items: start;
}

.project-case__screen {
  align-self: start;
}

.project-case__screen img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #faf7fa;
}

.project-case__screen--wide img {
  aspect-ratio: 16 / 9;
}

.project-case__screen--concept img {
  object-fit: cover;
  object-position: center;
}


/* =========================================================
   VERSION 23 — РАСШИРЕННЫЙ СТЕК И КОМПЕТЕНЦИИ
   ========================================================= */

.skills-v23 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% -4%, rgba(170,110,180,.28), transparent 34%),
    radial-gradient(circle at 94% 92%, rgba(202,157,84,.12), transparent 28%),
    #241a27;
}

.skills-v23::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.skills-v23 > .container {
  position: relative;
  z-index: 1;
}

.skills-v23__heading {
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .68fr);
  align-items: end;
  gap: 50px;
}

.skills-v23__heading h2 {
  margin-bottom: 0;
}

.skills-v23__heading > p {
  max-width: 560px;
  margin: 0 0 6px auto;
  color: rgba(255,255,255,.66);
  font-size: 15px;
  line-height: 1.72;
}

.skills-v23__group + .skills-v23__group {
  margin-top: 30px;
}

.skills-v23__group-head {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.skills-v23__group-head > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.skills-v23__group-index {
  color: var(--gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.skills-v23__group-head h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(31px, 2.7vw, 42px);
  font-weight: 500;
}

.skills-v23__group-head p {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.52);
  font-size: 12px;
  text-align: right;
}

.skills-v23__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.skill-card-v23 {
  position: relative;
  min-width: 0;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0%, rgba(166,104,176,.14), transparent 42%),
    rgba(255,255,255,.045);
  box-shadow:
    inset 0 1px rgba(255,255,255,.05),
    0 20px 45px rgba(10,5,12,.14);
  transition:
    transform .24s ease,
    border-color .24s ease,
    background .24s ease;
}

.skill-card-v23::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -68px;
  bottom: -76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,149,80,.13), transparent 68%);
  pointer-events: none;
}

.skill-card-v23:hover {
  transform: translateY(-6px);
  border-color: rgba(229,200,143,.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(166,104,176,.20), transparent 42%),
    rgba(255,255,255,.065);
}

.skill-card-v23--wide {
  grid-column: span 2;
}

.skill-card-v23--full {
  grid-column: 1 / -1;
  min-height: 185px;
}

.skill-card-v23__top {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-card-v23__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221,191,228,.14);
  border-radius: 15px;
  color: #ddbfe2;
  background: rgba(255,255,255,.055);
}

.skill-card-v23__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card-v23__number {
  color: rgba(255,255,255,.13);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.skill-card-v23__label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 9px;
  color: #d2add8;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 7px;
  font-weight: 700;
}

.skill-card-v23 h4 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(27px, 2vw, 34px);
  font-weight: 500;
  line-height: 1.02;
}

.skill-card-v23 p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.66;
}

.skill-card-v23__tags {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-card-v23__tags span {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.66);
  background: rgba(255,255,255,.045);
  font-size: 8px;
  letter-spacing: .04em;
}

.skill-card-v23--manual {
  background:
    radial-gradient(circle at 100% 0%, rgba(182,121,191,.23), transparent 44%),
    rgba(255,255,255,.055);
}

.skill-card-v23--automation {
  background:
    radial-gradient(circle at 100% 0%, rgba(201,155,83,.16), transparent 43%),
    rgba(255,255,255,.050);
}

.skill-card-v23--api {
  background:
    radial-gradient(circle at 100% 0%, rgba(125,145,205,.16), transparent 43%),
    rgba(255,255,255,.048);
}

.skill-card-v23--database {
  background:
    radial-gradient(circle at 100% 0%, rgba(108,166,179,.17), transparent 43%),
    rgba(255,255,255,.045);
}

.skill-card-v23--frontend,
.skill-card-v23--backend {
  background:
    radial-gradient(circle at 100% 0%, rgba(160,112,177,.17), transparent 43%),
    rgba(255,255,255,.045);
}

.skill-card-v23--analysis {
  background:
    linear-gradient(110deg, rgba(255,255,255,.065), rgba(255,255,255,.035)),
    radial-gradient(circle at 100% 0%, rgba(201,155,83,.14), transparent 43%);
}

.skill-card-v23__analysis-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: end;
  gap: 44px;
}

.skill-card-v23__analysis-layout p {
  max-width: 760px;
}

.skills-v23__other {
  margin-top: 22px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
}

.skills-v23__other > span {
  flex: 0 0 auto;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 8px;
  font-weight: 700;
}

.skills-v23__other > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills-v23__other i {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.035);
  font-size: 9px;
  font-style: normal;
}

@media (max-width: 1120px) {
  .skills-v23__heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .skills-v23__heading > p {
    margin-left: 0;
  }

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

  .skill-card-v23--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .skills-v23__group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .skills-v23__group-head p {
    text-align: left;
  }

  .skills-v23__grid {
    grid-template-columns: 1fr;
  }

  .skill-card-v23,
  .skill-card-v23--wide,
  .skill-card-v23--full {
    grid-column: auto;
    min-height: 0;
  }

  .skill-card-v23__analysis-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .skills-v23__other {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}


/* =========================================================
   VERSION 24 — ЛИЧНЫЕ ИСТОРИИ В МОДАЛЬНЫХ ОКНАХ
   ========================================================= */

.personal-v24__hint {
  display: inline-flex;
  margin-top: 22px;
  color: #9b6ba1;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 8px;
  font-weight: 700;
}

.personal-card-v24 {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.personal-card-v24:focus-visible {
  outline: 2px solid rgba(161,106,170,.58);
  outline-offset: 4px;
}

.personal-card-v24__category {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: #ae82b2;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 7px;
  font-weight: 700;
}

.personal-card-v24__link {
  position: absolute;
  z-index: 2;
  left: 30px;
  bottom: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8c5b92;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 8px;
  font-weight: 700;
}

.personal-card-v24__link i {
  font-size: 13px;
  font-style: normal;
  transition: transform .2s ease;
}

.personal-card-v24:hover .personal-card-v24__link i {
  transform: translate(3px, -3px);
}

.personal-card-v24 p {
  padding-bottom: 42px;
}

.personal-modal__dialog {
  width: min(1080px, calc(100% - 34px));
  max-height: calc(100vh - 34px);
  padding: clamp(30px, 4vw, 58px);
}

.personal-modal__dialog--psychology {
  background:
    radial-gradient(circle at 96% 2%, rgba(231,210,235,.82), transparent 28%),
    #fffafc;
}

.personal-modal__dialog--sport {
  background:
    radial-gradient(circle at 96% 2%, rgba(232,222,205,.88), transparent 28%),
    #fffaf8;
}

.personal-modal__dialog--blog {
  background:
    radial-gradient(circle at 96% 2%, rgba(241,216,229,.82), transparent 28%),
    #fffafd;
}

.personal-story {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.personal-story__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr);
  align-items: start;
  gap: 26px;
}

.personal-story__hero h2 {
  margin-bottom: 18px;
}

.personal-story__lead {
  max-width: 730px;
  margin: 0;
  color: #635864;
  font-size: 17px;
  line-height: 1.75;
}

.personal-story__mark {
  padding: 22px;
  border: 1px solid rgba(125,78,132,.10);
  border-radius: 24px;
  background: rgba(255,255,255,.66);
  box-shadow: inset 0 1px rgba(255,255,255,.96);
}

.personal-story__mark strong {
  display: block;
  margin-bottom: 8px;
  color: #7f4f85;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.05;
}

.personal-story__mark span {
  color: #776c77;
  font-size: 12px;
  line-height: 1.55;
}

.personal-story__mark--sport strong {
  color: #8f6d38;
}

.personal-story__mark--blog strong {
  color: #9c5f7d;
}

.personal-story__section {
  padding: 25px;
  border: 1px solid rgba(93,60,97,.09);
  border-radius: 28px;
  background: rgba(255,255,255,.62);
}

.personal-story__section-head {
  margin-bottom: 19px;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: end;
  gap: 20px;
}

.personal-story__section-head > span,
.personal-story__columns article > span {
  color: #a372a8;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 8px;
  font-weight: 700;
}

.personal-story__section-head h3,
.personal-story__columns h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.08;
}

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

.psychology-topics > div {
  min-height: 68px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(93,60,97,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.psychology-topics i {
  color: rgba(145,91,153,.50);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-style: normal;
}

.psychology-topics span {
  color: #5e535f;
  font-size: 12px;
  line-height: 1.5;
}

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

.personal-story__columns article {
  padding: 23px;
  border: 1px solid rgba(93,60,97,.09);
  border-radius: 24px;
  background: rgba(255,255,255,.64);
}

.personal-story__columns h3 {
  margin: 9px 0 11px;
}

.personal-story__columns p {
  margin: 0;
  color: #6e636f;
  font-size: 13px;
  line-height: 1.7;
}

.sport-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sport-stats > div {
  min-height: 105px;
  padding: 20px;
  border: 1px solid rgba(144,108,56,.11);
  border-radius: 23px;
  background: rgba(255,255,255,.68);
}

.sport-stats strong {
  display: block;
  margin-bottom: 8px;
  color: #5f4930;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 35px;
  line-height: 1;
}

.sport-stats span {
  color: #786e66;
  font-size: 12px;
}

.sport-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.sport-path article {
  padding: 19px;
  border: 1px solid rgba(132,98,50,.09);
  border-radius: 21px;
  background: rgba(255,255,255,.70);
}

.sport-path article > span {
  color: rgba(150,111,53,.46);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
}

.sport-path h4 {
  margin: 13px 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}

.sport-path p {
  margin: 0;
  color: #70665f;
  font-size: 11px;
  line-height: 1.6;
}

.blog-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.blog-topics > div {
  min-height: 62px;
  padding: 15px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(145,88,119,.09);
  border-radius: 18px;
  color: #665560;
  background: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.45;
}

.personal-story__quote {
  margin: 0;
  padding: 25px 28px;
  border-left: 3px solid #c89b53;
  border-radius: 0 24px 24px 0;
  color: #584751;
  background: rgba(255,255,255,.62);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.3;
}

@media (max-width: 850px) {
  .personal-story__hero,
  .personal-story__section-head {
    grid-template-columns: 1fr;
  }

  .psychology-topics,
  .personal-story__columns,
  .sport-stats,
  .sport-path,
  .blog-topics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .personal-modal__dialog {
    width: calc(100% - 18px);
    max-height: calc(100vh - 18px);
    padding: 28px 17px 20px;
  }

  .psychology-topics,
  .personal-story__columns,
  .sport-stats,
  .sport-path,
  .blog-topics {
    grid-template-columns: 1fr;
  }

  .personal-story__section {
    padding: 18px;
    border-radius: 22px;
  }
}


/* =========================================================
   VERSION 25 — КОМПАКТНЫЕ ЛИЧНЫЕ КАРТОЧКИ И ЧИСТАЯ ТИПОГРАФИКА
   ========================================================= */

.personal-layout {
  align-items: start !important;
}

.personal-grid {
  align-items: start !important;
}

.personal-card-v24 {
  height: 420px !important;
  min-height: 420px !important;
  padding: 27px 27px 25px !important;
  display: flex !important;
  flex-direction: column;
  align-self: start;
  border-radius: 28px !important;
}

.personal-card-v24 .personal-symbol {
  width: 54px;
  height: 54px;
  margin-bottom: 30px !important;
  flex: 0 0 auto;
}

.personal-card-v24 .personal-index {
  top: 22px;
  right: 24px;
  font-size: 42px;
}

.personal-card-v24__category {
  margin-bottom: 13px !important;
}

.personal-card-v24 h3 {
  margin-bottom: 14px !important;
  font-size: clamp(29px, 2vw, 35px) !important;
  line-height: 1.05 !important;
}

.personal-card-v24 p {
  margin: 0 !important;
  padding-bottom: 0 !important;
  font-size: 12px !important;
  line-height: 1.68 !important;
}

.personal-card-v24__link {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  margin-top: auto;
  padding-top: 22px;
}

.personal-card-v24::after {
  width: 145px !important;
  height: 145px !important;
  right: -68px !important;
  bottom: -72px !important;
}

/* Заголовки внутри подробных окон больше не расползаются по двум колонкам */
.personal-story__section-head {
  display: block !important;
  margin-bottom: 18px !important;
}

.personal-story__section-head > span {
  display: block;
  margin-bottom: 10px;
}

.personal-story__section-head h3 {
  max-width: 820px;
  font-size: clamp(27px, 2.5vw, 36px) !important;
  line-height: 1.08 !important;
}

.personal-story__section {
  padding: 23px !important;
}

.psychology-topics > div {
  min-height: 58px !important;
  padding: 11px 14px !important;
}

.psychology-topics span {
  font-size: 11px !important;
}

/* Более цельное окно о блоге */
.personal-story__columns--blog article {
  background:
    radial-gradient(circle at 100% 0%, rgba(239,216,229,.45), transparent 42%),
    rgba(255,255,255,.70);
}

.blog-topics > div {
  min-height: 56px !important;
  padding: 13px 15px !important;
}

.personal-story__quote {
  position: relative;
  padding: 27px 30px 27px 40px !important;
  border-left: 0 !important;
  border-radius: 25px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(239,216,229,.54), transparent 42%),
    rgba(255,255,255,.72) !important;
  font-size: clamp(23px, 2vw, 31px) !important;
}

.personal-story__quote::before {
  content: "“";
  position: absolute;
  left: 16px;
  top: 8px;
  color: rgba(170,105,139,.28);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 64px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .personal-card-v24 {
    height: 390px !important;
    min-height: 390px !important;
  }
}

@media (max-width: 900px) {
  .personal-card-v24 {
    height: auto !important;
    min-height: 320px !important;
  }
}

@media (max-width: 560px) {
  .personal-card-v24 {
    min-height: 300px !important;
    padding: 24px 22px !important;
  }

  .personal-card-v24 .personal-symbol {
    margin-bottom: 24px !important;
  }

  .personal-story__quote {
    padding: 24px 22px 24px 34px !important;
  }
}


/* =========================================================
   VERSION 26 — ЗАГОЛОВОК ПСИХОЛОГИИ И АККУРАТНЫЙ СКРОЛЛ
   ========================================================= */

/* На широком экране заголовок помещается в одну строку */
.personal-modal__dialog--psychology .personal-story__section-head h3 {
  max-width: none !important;
  font-size: clamp(28px, 2.1vw, 34px) !important;
  line-height: 1.06 !important;
}

@media (min-width: 1220px) {
  .personal-modal__dialog--psychology .personal-story__section-head h3 {
    white-space: nowrap;
  }
}

/* Нативный серый скролл больше не выходит за скругления окна */
.personal-modal__dialog {
  overflow: hidden !important;
}

.personal-modal__dialog .personal-story {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 12px;
  margin-right: -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(171, 118, 179, .58) transparent;
  scrollbar-gutter: stable;
}

.personal-modal__dialog .personal-story::-webkit-scrollbar {
  width: 9px;
}

.personal-modal__dialog .personal-story::-webkit-scrollbar-track {
  background: transparent;
}

.personal-modal__dialog .personal-story::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #cda7d2, #a76eaf);
  background-clip: content-box;
}

.personal-modal__dialog .personal-story::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #bc8fc3, #91599a);
  background-clip: content-box;
}

/* Красивый скролл и в остальных модальных окнах сайта */
.modal-dialog {
  scrollbar-width: thin;
  scrollbar-color: rgba(171, 118, 179, .52) transparent;
}

.modal-dialog::-webkit-scrollbar {
  width: 9px;
}

.modal-dialog::-webkit-scrollbar-track {
  background: transparent;
}

.modal-dialog::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(163, 105, 171, .62);
  background-clip: content-box;
}

@media (max-width: 1219px) {
  .personal-modal__dialog--psychology .personal-story__section-head h3 {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .personal-modal__dialog .personal-story {
    max-height: calc(100vh - 92px);
    padding-right: 8px;
  }
}


/* =========================================================
   VERSION 28 — ИСПРАВЛЕНИЯ БЛОКА ПРОЕКТА
   ========================================================= */

.project-case__screen--concept {
  grid-column: auto !important;
}

.project-case__screen--concept img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.project-case__gallery {
  align-items: stretch;
}

.project-case__screen {
  height: 100%;
}

.project-case__screen figcaption {
  min-height: 56px;
}


/* =========================================================
   VERSION 30 — КАРТИНКА В ПУСТОЕ МЕСТО + СКРОЛЛ САЙТА
   ========================================================= */

/* Картинка GrowUp должна стоять в пустом правом блоке рядом с логином,
   а не растягиваться на всю ширину следующей строки */
.project-case__screen--concept {
  grid-column: auto !important;
  align-self: start;
  height: 100%;
}

.project-case__screen--concept img {
  width: 100%;
  aspect-ratio: 16 / 9 !important;
  display: block;
  object-fit: cover !important;
  object-position: center !important;
  background: #faf7fa;
}

/* Сиреневый скролл для всего сайта */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: #a76eaf #f5edf6;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #f5edf6;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  border: 3px solid #f5edf6;
  border-radius: 999px;
  background: linear-gradient(180deg, #cda7d2, #9c61a5);
  background-clip: content-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #bd8fc4, #854b90);
  background-clip: content-box;
}


/* =========================================================
   VERSION 31 — ПРЕМИАЛЬНЫЙ БЛОК КОНТАКТОВ
   ========================================================= */

.contact-v31 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 38%, rgba(230, 207, 235, .64), transparent 30%),
    radial-gradient(circle at 92% 82%, rgba(239, 215, 228, .54), transparent 28%),
    var(--paper);
}

.contact-panel-v31 {
  position: relative;
  padding: clamp(28px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: clamp(30px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(96, 61, 100, .10);
  border-radius: 36px;
  background:
    radial-gradient(circle at 88% 6%, rgba(233, 209, 237, .76), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,236,246,.86));
  box-shadow:
    0 28px 70px rgba(75, 46, 81, .10),
    inset 0 1px rgba(255,255,255,.98);
}

.contact-panel-v31::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,151,205,.22), transparent 68%);
  pointer-events: none;
}

.contact-portrait-v31 {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-portrait-v31__halo {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(196,149,78,.30);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.94), rgba(224,194,229,.48) 55%, transparent 72%);
}

.contact-portrait-v31__frame {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  aspect-ratio: .82;
  overflow: hidden;
  border: 10px solid rgba(255,255,255,.78);
  border-radius: 44% 44% 28% 28% / 34% 34% 24% 24%;
  box-shadow:
    0 24px 54px rgba(78,48,84,.16),
    inset 0 1px rgba(255,255,255,1);
  transform: rotate(-1.5deg);
}

.contact-portrait-v31__frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 34%;
}

.contact-portrait-v31__label {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 92%;
  padding: 10px 16px;
  border: 1px solid rgba(159,104,168,.14);
  border-radius: 999px;
  color: #86588d;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(12px);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 8px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(80,49,86,.10);
}

.contact-content-v31 {
  position: relative;
  z-index: 1;
  padding: 20px 0 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-content-v31 h2 {
  max-width: 680px;
  margin-bottom: 16px;
}

.contact-intro-v31 {
  max-width: 660px !important;
  margin: 0 0 24px !important;
  color: #6d626e !important;
  font-size: 15px;
  line-height: 1.72;
}

.contact-list-v31 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.contact-item-v31 {
  min-width: 0;
  min-height: 84px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(98,63,103,.09);
  border-radius: 21px;
  color: inherit;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px rgba(255,255,255,.96);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.contact-item-v31:last-child {
  grid-column: 1 / -1;
}

.contact-item-v31:hover {
  transform: translateY(-3px);
  border-color: rgba(171,110,179,.24);
  box-shadow: 0 16px 34px rgba(80,49,86,.10);
}

.contact-item-v31__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #945d9b;
  background: linear-gradient(145deg, #ead9ed, #fff);
}

.contact-item-v31__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-v31:nth-child(2) .contact-item-v31__icon svg {
  fill: currentColor;
  stroke: none;
}

.contact-item-v31__text {
  min-width: 0;
}

.contact-item-v31__text small {
  display: block;
  margin-bottom: 4px;
  color: #a174a6;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 7px;
  font-weight: 700;
}

.contact-item-v31__text strong {
  display: block;
  overflow-wrap: anywhere;
  color: #3f3440;
  font-size: 12px;
  font-weight: 600;
}

.contact-item-v31__arrow {
  color: #a068a7;
  font-size: 17px;
  transition: transform .2s ease;
}

.contact-item-v31:hover .contact-item-v31__arrow {
  transform: translate(3px, -3px);
}

.contact-actions-v31 {
  margin-top: 22px;
}

.contact-actions-v31 .button {
  min-width: 220px;
}

@media (max-width: 980px) {
  .contact-panel-v31 {
    grid-template-columns: 1fr;
  }

  .contact-portrait-v31 {
    min-height: 360px;
  }

  .contact-portrait-v31__frame {
    width: min(78vw, 320px);
  }
}

@media (max-width: 640px) {
  .contact-panel-v31 {
    padding: 22px 18px 24px;
    border-radius: 28px;
  }

  .contact-portrait-v31 {
    min-height: 310px;
  }

  .contact-list-v31 {
    grid-template-columns: 1fr;
  }

  .contact-item-v31:last-child {
    grid-column: auto;
  }

  .contact-actions-v31 {
    flex-direction: column;
  }

  .contact-actions-v31 .button {
    width: 100%;
    min-width: 0;
  }
}


/* =========================================================
   VERSION 32 — НАВИГАЦИЯ И КОПИРОВАНИЕ ПОЧТЫ
   ========================================================= */

/* Точная посадка разделов под фиксированной шапкой */
section[id] {
  scroll-margin-top: 112px;
}

.main-nav a.is-active::after {
  right: 0;
}

/* Почта копируется без системного окна mailto */
.contact-item-v31--copy {
  width: 100%;
  appearance: none;
  text-align: left;
  cursor: pointer;
}

.contact-item-v31--copy .contact-item-v31__arrow {
  font-size: 18px;
}

.contact-actions-v31 button.button {
  appearance: none;
}

.copy-toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  padding: 12px 18px;
  border: 1px solid rgba(151, 94, 160, .16);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #aa72b2, #805187);
  box-shadow: 0 18px 42px rgba(91, 54, 97, .24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  font-size: 12px;
  font-weight: 600;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  section[id] {
    scroll-margin-top: 84px;
  }

  .copy-toast {
    width: max-content;
    max-width: calc(100% - 32px);
    bottom: 18px;
  }
}

/* =========================================================
   VERSION 34 — FINAL TECHNICAL STABILIZATION
   ========================================================= */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

section[id] {
  scroll-margin-top: 104px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* Prevent oversized content from creating horizontal scrolling. */
.container,
.hero-grid,
.about-layout-v7,
.project-hero-v18,
.skills-v23__grid,
.personal-layout,
.contact-panel-v31,
.project-case__gallery {
  min-width: 0;
}

/* Optimized images retain stable layout while loading. */
.hero-visual img,
.project-showcase__viewer img,
.project-thumb img,
.project-case__screen img,
.contact-portrait-v31 img {
  display: block;
}

/* All project-open triggers receive the same keyboard focus treatment. */
[data-open-project]:focus-visible,
[data-open-personal]:focus-visible,
.contact-item-v31:focus-visible {
  outline: 2px solid #a76eaf;
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .header-inner {
    gap: 18px;
  }

  .main-nav {
    gap: 20px;
  }

  .main-nav a {
    font-size: 10px;
  }

  .header-contact {
    padding-inline: 22px;
  }
}

@media (max-width: 980px) {
  section[id] {
    scroll-margin-top: 84px;
  }

  .hero-grid,
  .about-layout-v7,
  .project-hero-v18,
  .contact-panel-v31 {
    grid-template-columns: 1fr !important;
  }

  .hero-copy,
  .project-copy-v18,
  .contact-content-v31 {
    min-width: 0;
  }

  .hero-visual {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .contact-portrait-v31 {
    width: min(100%, 540px);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .container {
    width: min(100% - 30px, var(--container));
  }

  .project-metrics-v18,
  .skills-v23__grid,
  .personal-grid,
  .contact-list-v31,
  .project-case__stats,
  .project-case__grid,
  .project-case__gallery {
    grid-template-columns: 1fr !important;
  }

  .project-shell-v18,
  .contact-panel-v31,
  .modal-dialog,
  .personal-modal__dialog {
    border-radius: 24px !important;
  }

  .project-gallery-v19__carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  }

  .project-gallery-v19__edge,
  .project-gallery-v19__arrow {
    width: 38px;
    height: 38px;
  }

  .project-thumb-v19 {
    min-width: min(72vw, 260px);
  }

  .contact-item-v31__text strong {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 78px) !important;
  }

  .hero-fields {
    letter-spacing: .10em;
    font-size: 10px;
  }

  .button,
  .header-contact {
    min-height: 48px;
  }

  .project-gallery-v19__carousel {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .project-gallery-v19__edge {
    display: none;
  }

  .project-thumb-v19 {
    flex-basis: 86%;
    min-width: 240px;
  }

  .contact-panel-v31 {
    padding: 20px 14px !important;
  }

  .contact-item-v31 {
    padding: 16px 14px !important;
  }

  .contact-item-v31__icon {
    width: 46px;
    height: 46px;
  }

  .contact-item-v31__text small {
    font-size: 7px;
  }

  .contact-item-v31__text strong {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}



/* =========================================================
   VERSION 40 — CLEAN MOBILE RESET
   ВАЖНО: этот блок собран поверх последней стабильной версии V34.
   Не содержит мобильных правил V35–V39, которые конфликтовали между собой.
   ========================================================= */

@media (max-width: 640px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

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

  main,
  header,
  footer,
  section,
  .hero,
  .section,
  .container,
  .hero-grid,
  .hero-copy,
  .hero-art,
  .hero-image-wrap,
  .about-layout-v7,
  .specialization-v15__grid,
  .project-shell-v18,
  .project-hero-v18,
  .skills-v23,
  .skills-v23 .container,
  .skills-v23__grid,
  .personal-layout,
  .personal-grid,
  .contact-panel-v31 {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .container {
    width: 100% !important;
    margin-inline: auto !important;
    padding-inline: 14px !important;
  }

  .site-header {
    width: 100% !important;
  }

  .header-inner {
    width: 100% !important;
    min-height: 64px !important;
    padding-inline: 14px !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
  }

  .brand,
  .brand img {
    width: 40px !important;
    height: 40px !important;
  }

  .hero {
    width: 100% !important;
    min-height: auto !important;
    padding: 84px 0 34px !important;
  }

  .hero-grid {
    width: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 30px !important;
  }

  .hero-copy {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    overflow: visible !important;
  }

  .hero-intro {
    margin-bottom: 10px !important;
    font-size: 18px !important;
  }

  .hero h1 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    font-size: clamp(50px, 16vw, 64px) !important;
    line-height: .92 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .hero-fields {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px 10px !important;
    font-size: 9px !important;
    letter-spacing: .14em !important;
    white-space: normal !important;
  }

  .hero-description {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 23px !important;
    padding-inline: 2px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .hero-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .hero-actions .button,
  .button {
    width: 100% !important;
    max-width: 100% !important;
  }

  .scroll-discovery {
    width: min(100%, 310px) !important;
    max-width: 100% !important;
    margin: 22px auto 0 !important;
    transform: none !important;
  }

  .scroll-discovery__trail {
    display: none !important;
  }

  .hero-art,
  .hero-image-wrap,
  .hero-visual {
    width: 100% !important;
    height: auto !important;
    margin-inline: auto !important;
  }

  .hero-image-wrap img,
  .hero-visual img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1.08 !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .section {
    width: 100% !important;
    padding-top: 58px !important;
    padding-bottom: 58px !important;
    overflow: clip !important;
  }

  .section-heading h2,
  .about-v13__heading h2,
  .specialization-v15__heading h2,
  .projects-v18__heading h2,
  .skills-v23__heading h2,
  .contact-content-v31 h2 {
    max-width: 100% !important;
    font-size: clamp(38px, 12vw, 50px) !important;
    line-height: 1 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .about-layout-v7,
  .about-v13__strengths,
  .specialization-v15__grid,
  .project-hero-v18,
  .skills-v23__grid,
  .personal-grid,
  .contact-panel-v31,
  .contact-list-v31 {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: visible !important;
    gap: 12px !important;
  }

  .about-v13__card,
  .specialization-v15__card,
  .skill-card-v23,
  .skill-card-v23--wide,
  .skill-card-v23--full,
  .personal-card-v24,
  .contact-item-v31 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-column: auto !important;
    white-space: normal !important;
  }

  .skill-card-v23 h4,
  .skill-card-v23 p,
  .skill-card-v23__label,
  .specialization-v15__card h3,
  .specialization-v15__card p,
  .about-v13__card h3,
  .about-v13__card p,
  .contact-item-v31 strong {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .skills-v23__heading,
  .skills-v23__group-head,
  .skills-v23__group-head > div,
  .skill-card-v23__analysis-layout {
    width: 100% !important;
    display: block !important;
  }

  .skills-v23__group-head p {
    margin-top: 8px !important;
    text-align: left !important;
  }

  .project-shell-v18,
  .contact-panel-v31 {
    width: 100% !important;
    padding: 18px 14px !important;
    border-radius: 24px !important;
  }

  .project-copy-v18,
  .project-showcase-v18,
  .contact-content-v31,
  .contact-portrait-v31 {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .project-gallery-v19__carousel {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .project-gallery-v19__edge {
    display: none !important;
  }

  .project-thumbs-v19 {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .project-thumb-v19 {
    flex: 0 0 82% !important;
    min-width: 0 !important;
    max-width: 280px !important;
  }

  /* Окно проекта: компактное и без вертикальной простыни скриншотов */
  .modal[data-project-modal],
  .modal[data-personal-modal] {
    padding: 4px !important;
  }

  .modal[data-project-modal] .modal-dialog-v16,
  .personal-modal__dialog {
    width: calc(100% - 8px) !important;
    max-width: calc(100% - 8px) !important;
    max-height: calc(100dvh - 8px) !important;
    padding: 22px 12px 16px !important;
    border-radius: 22px !important;
    overflow-x: hidden !important;
  }

  .modal[data-project-modal] .project-case,
  .personal-modal__dialog .personal-story {
    width: 100% !important;
    min-width: 0 !important;
  }

  .modal[data-project-modal] .project-case__stats {
    display: flex !important;
    gap: 9px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 7px !important;
    scrollbar-width: none;
  }

  .modal[data-project-modal] .project-case__stats > div {
    flex: 0 0 132px !important;
  }

  .modal[data-project-modal] .project-case__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .modal[data-project-modal] .project-case__gallery {
    width: 100% !important;
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 0 10px !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .modal[data-project-modal] .project-case__screen,
  .modal[data-project-modal] .project-case__screen--wide,
  .modal[data-project-modal] .project-case__screen--concept {
    flex: 0 0 min(82vw, 300px) !important;
    width: min(82vw, 300px) !important;
    max-width: 300px !important;
    height: auto !important;
    grid-column: auto !important;
    scroll-snap-align: start;
  }

  .modal[data-project-modal] .project-case__screen img,
  .modal[data-project-modal] .project-case__screen--wide img,
  .modal[data-project-modal] .project-case__screen--concept img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important;
  }

  /* Личные окна: компактнее, но без обрезания */
  .personal-story__hero,
  .personal-story__columns,
  .sport-stats,
  .sport-path,
  .blog-topics {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .psychology-topics {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .psychology-topics > div {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 10px !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
  }

  .psychology-topics span {
    font-size: 9px !important;
    line-height: 1.4 !important;
    overflow-wrap: break-word !important;
  }

  .site-footer,
  .footer-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-inner {
    padding-inline: 14px !important;
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
  }
}


/* =========================================================
   VERSION 41 — MOBILE SWIPE CAROUSELS
   На телефоне длинные наборы карточек перелистываются горизонтально.
   Десктопная версия не меняется.
   ========================================================= */

@media (max-width: 640px) {
  /* Безопасная база: карусель остаётся внутри ширины секции */
  .about-v13__facts,
  .about-v13__strengths,
  .specialization-v15__grid,
  .project-metrics-v18,
  .skills-v23__grid,
  .personal-grid,
  .modal[data-project-modal] .project-case__grid,
  .personal-modal__dialog .psychology-topics,
  .personal-modal__dialog .personal-story__columns,
  .personal-modal__dialog .sport-stats,
  .personal-modal__dialog .sport-path,
  .personal-modal__dialog .blog-topics {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 0 10px !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .about-v13__facts::-webkit-scrollbar,
  .about-v13__strengths::-webkit-scrollbar,
  .specialization-v15__grid::-webkit-scrollbar,
  .project-metrics-v18::-webkit-scrollbar,
  .skills-v23__grid::-webkit-scrollbar,
  .personal-grid::-webkit-scrollbar,
  .modal[data-project-modal] .project-case__grid::-webkit-scrollbar,
  .personal-modal__dialog .psychology-topics::-webkit-scrollbar,
  .personal-modal__dialog .personal-story__columns::-webkit-scrollbar,
  .personal-modal__dialog .sport-stats::-webkit-scrollbar,
  .personal-modal__dialog .sport-path::-webkit-scrollbar,
  .personal-modal__dialog .blog-topics::-webkit-scrollbar {
    display: none;
  }

  /* На странице видна одна карточка и край следующей — понятно, что можно свайпать */
  .about-v13__facts > *,
  .about-v13__strengths > *,
  .specialization-v15__grid > *,
  .skills-v23__grid > *,
  .personal-grid > * {
    flex: 0 0 calc(100% - 34px) !important;
    width: calc(100% - 34px) !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    grid-column: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .project-metrics-v18 > * {
    flex: 0 0 72% !important;
    width: 72% !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Карточки навыков больше не идут длинным столбцом */
  .skills-v23__grid {
    grid-template-columns: none !important;
  }

  .skill-card-v23,
  .skill-card-v23--wide,
  .skill-card-v23--full {
    min-height: 315px !important;
    padding: 22px !important;
  }

  .skill-card-v23__analysis-layout {
    display: block !important;
  }

  .skill-card-v23__analysis-layout p {
    margin-top: 12px !important;
  }

  /* Дополнительные инструменты — одна компактная горизонтальная строка */
  .skills-v23__other {
    overflow: hidden !important;
  }

  .skills-v23__other > div {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    scrollbar-width: none;
  }

  .skills-v23__other > div::-webkit-scrollbar {
    display: none;
  }

  .skills-v23__other i {
    flex: 0 0 auto !important;
  }

  /* Окно GrowUp: смысловые карточки тоже перелистываются */
  .modal[data-project-modal] .project-case__grid > * {
    flex: 0 0 calc(100% - 28px) !important;
    width: calc(100% - 28px) !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Окно психологии */
  .personal-modal__dialog .psychology-topics {
    grid-template-columns: none !important;
  }

  .personal-modal__dialog .psychology-topics > div {
    flex: 0 0 calc(100% - 24px) !important;
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    min-height: 92px !important;
    padding: 15px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .personal-modal__dialog .psychology-topics span {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  /* Общие смысловые карточки в личных окнах */
  .personal-modal__dialog .personal-story__columns > article {
    flex: 0 0 calc(100% - 24px) !important;
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Окно спорта */
  .personal-modal__dialog .sport-stats > div {
    flex: 0 0 72% !important;
    width: 72% !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .personal-modal__dialog .sport-path > article {
    flex: 0 0 calc(100% - 24px) !important;
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    min-height: 250px !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Окно блога */
  .personal-modal__dialog .blog-topics > div {
    flex: 0 0 78% !important;
    width: 78% !important;
    min-width: 0 !important;
    min-height: 78px !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Небольшой визуальный намёк на продолжение карусели */
  .about-v13__facts,
  .about-v13__strengths,
  .specialization-v15__grid,
  .skills-v23__grid,
  .personal-grid,
  .modal[data-project-modal] .project-case__grid,
  .personal-modal__dialog .psychology-topics,
  .personal-modal__dialog .personal-story__columns,
  .personal-modal__dialog .sport-stats,
  .personal-modal__dialog .sport-path,
  .personal-modal__dialog .blog-topics {
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
  }

  /* Последняя карточка должна показываться полностью */
  .about-v13__facts > *:last-child,
  .about-v13__strengths > *:last-child,
  .specialization-v15__grid > *:last-child,
  .skills-v23__grid > *:last-child,
  .personal-grid > *:last-child,
  .modal[data-project-modal] .project-case__grid > *:last-child,
  .personal-modal__dialog .psychology-topics > *:last-child,
  .personal-modal__dialog .personal-story__columns > *:last-child,
  .personal-modal__dialog .sport-stats > *:last-child,
  .personal-modal__dialog .sport-path > *:last-child,
  .personal-modal__dialog .blog-topics > *:last-child {
    margin-right: 18px !important;
  }
}

/* =========================================================
   VERSION 42 — COMPACT MOBILE EXPERTISE RAIL
   Карточки под первым экраном на телефоне стали компактными
   горизонтальными карточками с перелистыванием.
   ========================================================= */

@media (max-width: 640px) {
  .expertise-strip {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 18px !important;
    padding: 2px 18px 12px 0 !important;
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .expertise-strip::-webkit-scrollbar {
    display: none;
  }

  .expertise-card,
  .expertise-card-accent {
    flex: 0 0 min(84vw, 322px) !important;
    width: min(84vw, 322px) !important;
    max-width: 322px !important;
    min-width: 0 !important;
    min-height: 148px !important;
    height: auto !important;
    padding: 18px !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 14px !important;
    row-gap: 0 !important;
    border: 1px solid rgba(91, 59, 95, .10) !important;
    border-radius: 24px !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .expertise-card + .expertise-card {
    border-top: 1px solid rgba(91, 59, 95, .10) !important;
    border-left: 1px solid rgba(91, 59, 95, .10) !important;
  }

  .expertise-card::before {
    height: 2px !important;
    opacity: .72 !important;
  }

  .expertise-card::after {
    width: 108px !important;
    height: 108px !important;
    right: -50px !important;
    bottom: -54px !important;
  }

  .expertise-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    border-radius: 16px !important;
  }

  .expertise-icon svg {
    width: 23px !important;
    height: 23px !important;
  }

  .expertise-card > div:last-child {
    grid-column: 2 !important;
    min-width: 0 !important;
  }

  .expertise-label {
    margin: 2px 0 7px !important;
    font-size: 7px !important;
    letter-spacing: .15em !important;
    line-height: 1.35 !important;
  }

  .expertise-card h3 {
    margin: 0 0 8px !important;
    font-size: 25px !important;
    line-height: 1.05 !important;
    overflow-wrap: anywhere;
  }

  .expertise-card p {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.48 !important;
  }

  .expertise-card:last-child {
    margin-right: 8px !important;
  }
}


/* =========================================================
   VERSION 43 — ДОПОЛНИТЕЛЬНЫЙ ПРОЕКТНЫЙ ОПЫТ
   ========================================================= */

.projects-extra-v43 {
  margin-top: 28px;
  padding-top: 30px;
  border-top: 1px solid rgba(95, 60, 99, .10);
}

.projects-extra-v43__heading {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.projects-extra-v43__heading > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.projects-extra-v43__heading span {
  color: #c89b53;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.projects-extra-v43__heading h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(31px, 3vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.projects-extra-v43__heading p {
  max-width: 500px;
  margin: 0;
  color: #756a75;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

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

.experience-card-v43 {
  position: relative;
  min-width: 0;
  min-height: 530px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(95, 60, 99, .10);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(220, 193, 226, .42), transparent 38%),
    rgba(255, 255, 255, .74);
  box-shadow:
    0 24px 54px rgba(70, 44, 73, .08),
    inset 0 1px rgba(255, 255, 255, .95);
}

.experience-card-v43--qa {
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 206, 183, .40), transparent 38%),
    rgba(255, 255, 255, .74);
}

.experience-card-v43::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -88px;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(191, 139, 199, .08);
  pointer-events: none;
}

.experience-card-v43__top {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.experience-card-v43__number {
  color: rgba(111, 74, 116, .26);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.experience-card-v43__badge {
  padding: 8px 12px;
  border: 1px solid rgba(152, 98, 160, .12);
  border-radius: 999px;
  color: #8d5d94;
  background: rgba(255, 255, 255, .64);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 7px;
  font-weight: 700;
}

.experience-card-v43__icon {
  width: 58px;
  height: 58px;
  margin-bottom: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(152, 98, 160, .14);
  border-radius: 18px;
  color: #9d68a5;
  background: linear-gradient(145deg, rgba(243, 229, 246, .94), rgba(255, 255, 255, .86));
}

.experience-card-v43__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.experience-card-v43__label {
  margin: 0 0 10px;
  color: #ad7ab2;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 8px;
  font-weight: 700;
}

.experience-card-v43 h4 {
  max-width: 560px;
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(31px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.02;
}

.experience-card-v43__lead {
  max-width: 620px;
  margin: 0;
  color: #716671;
  font-size: 13px;
  line-height: 1.7;
}

.experience-card-v43__facts {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.experience-card-v43__facts span {
  min-width: 0;
  min-height: 92px;
  padding: 13px;
  display: grid;
  grid-template-rows: 38px minmax(28px, auto);
  align-content: start;
  border: 1px solid rgba(95, 60, 99, .08);
  border-radius: 17px;
  color: #786d78;
  background: rgba(255, 255, 255, .58);
  font-size: 9px;
  line-height: 1.35;
}

.experience-card-v43__facts strong {
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  color: #503d52;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(19px, 1.45vw, 24px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.experience-card-v43__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-card-v43__list li {
  position: relative;
  padding: 8px 0 8px 21px;
  border-bottom: 1px solid rgba(95, 60, 99, .07);
  color: #655b65;
  font-size: 11px;
  line-height: 1.5;
}

.experience-card-v43__list li:last-child {
  border-bottom: 0;
}

.experience-card-v43__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 8px;
  color: #c89b53;
  font-size: 9px;
}


@media (max-width: 900px) {
  .projects-extra-v43__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .projects-extra-v43__heading p {
    text-align: left;
  }

  .projects-extra-v43__grid {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    padding: 2px 20px 14px 0;
  }

  .projects-extra-v43__grid::-webkit-scrollbar {
    display: none;
  }

  .experience-card-v43 {
    flex: 0 0 min(86vw, 370px);
    width: min(86vw, 370px);
    min-height: 0;
    padding: 23px;
    border-radius: 26px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .experience-card-v43 h4 {
    font-size: 31px;
  }

  .experience-card-v43__facts {
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .experience-card-v43__facts::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 560px) {
  .projects-v18__heading h2 {
    font-size: 40px;
  }

  .projects-extra-v43 {
    margin-top: 20px;
    padding-top: 23px;
  }

  .projects-extra-v43__heading h3 {
    font-size: 34px;
  }

  .projects-extra-v43__heading p {
    font-size: 11px;
  }

  .experience-card-v43 {
    flex-basis: min(88vw, 345px);
    width: min(88vw, 345px);
    padding: 20px;
  }

  .experience-card-v43__top {
    margin-bottom: 17px;
  }

  .experience-card-v43__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 19px;
  }

  .experience-card-v43__lead {
    font-size: 12px;
  }

  .experience-card-v43__facts {
    margin: 17px 0;
  }

  .experience-card-v43__list li {
    font-size: 10px;
  }
}


/* =========================================================
   VERSION 47 — ВЫРАВНИВАНИЕ ФАКТОВ В ПРОЕКТНЫХ КАРТОЧКАХ
   ========================================================= */

.experience-card-v43__facts {
  grid-auto-rows: 1fr;
}

.experience-card-v43__facts span {
  height: 100%;
}

@media (max-width: 900px) {
  .experience-card-v43__facts span {
    min-height: 86px;
    grid-template-rows: 42px minmax(25px, auto);
  }

  .experience-card-v43__facts strong {
    font-size: 18px;
    white-space: normal;
  }
}


/* =========================================================
   VERSION 48 — ЕДИНАЯ МОБИЛЬНАЯ КАРУСЕЛЬ ПРОЕКТОВ
   ========================================================= */

.projects-mobile-v48 {
  display: none;
}

@media (max-width: 760px) {
  .projects-v18 {
    padding-top: 58px !important;
    padding-bottom: 62px !important;
    overflow: hidden;
  }

  .projects-v18 > .container {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 16px !important;
  }

  .projects-v18__heading {
    margin-bottom: 22px !important;
    display: block !important;
  }

  .projects-v18__heading h2 {
    max-width: 340px;
    margin-bottom: 13px !important;
    font-size: clamp(39px, 11vw, 50px) !important;
    line-height: .94 !important;
  }

  .projects-v18__heading > p {
    max-width: 360px !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: left !important;
  }

  /* На телефоне показывается одна цельная карусель вместо длинной страницы */
  .projects-v18 .project-shell-v18,
  .projects-v18 .projects-extra-v43 {
    display: none !important;
  }

  .projects-mobile-v48 {
    display: block;
    width: 100%;
  }

  .projects-mobile-v48__top {
    margin-bottom: 11px;
    padding-inline: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .projects-mobile-v48__top span {
    color: #8d5d94;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 8px;
    font-weight: 700;
  }

  .projects-mobile-v48__top small {
    color: #9b8e9c;
    font-size: 10px;
  }

  .projects-mobile-v48__track {
    width: calc(100% + 16px);
    display: flex;
    gap: 13px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding: 2px 34px 16px 0;
    -webkit-overflow-scrolling: touch;
  }

  .projects-mobile-v48__track::-webkit-scrollbar {
    display: none;
  }

  .projects-mobile-v48__card {
    position: relative;
    flex: 0 0 calc(100vw - 48px);
    width: calc(100vw - 48px);
    max-width: 382px;
    min-height: 570px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(95, 60, 99, .10);
    border-radius: 28px;
    background:
      radial-gradient(circle at 100% 0%, rgba(224, 200, 229, .58), transparent 36%),
      rgba(255, 255, 255, .82);
    box-shadow:
      0 20px 45px rgba(65, 41, 68, .10),
      inset 0 1px rgba(255, 255, 255, .98);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .projects-mobile-v48__card--management {
    background:
      radial-gradient(circle at 100% 0%, rgba(214, 188, 222, .60), transparent 36%),
      linear-gradient(160deg, rgba(255,255,255,.92), rgba(248,240,250,.92));
  }

  .projects-mobile-v48__card--qa {
    background:
      radial-gradient(circle at 100% 0%, rgba(232, 214, 190, .56), transparent 36%),
      linear-gradient(160deg, rgba(255,255,255,.93), rgba(252,247,241,.94));
  }

  .projects-mobile-v48__card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -92px;
    bottom: -92px;
    border-radius: 50%;
    background: rgba(180, 119, 189, .08);
    pointer-events: none;
  }

  .projects-mobile-v48__head {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .projects-mobile-v48__number {
    color: rgba(101, 66, 106, .28);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 34px;
    line-height: 1;
  }

  .projects-mobile-v48__badge {
    max-width: 205px;
    padding: 7px 10px;
    border: 1px solid rgba(148, 95, 156, .13);
    border-radius: 999px;
    color: #8e5c95;
    background: rgba(255, 255, 255, .68);
    text-transform: uppercase;
    letter-spacing: .10em;
    font-size: 6.5px;
    font-weight: 700;
    text-align: center;
  }

  .projects-mobile-v48__image {
    margin: 0 -6px 20px;
    overflow: hidden;
    border: 1px solid rgba(95, 60, 99, .08);
    border-radius: 19px;
    background: #f7fbf8;
  }

  .projects-mobile-v48__image img {
    width: 100%;
    aspect-ratio: 16 / 8.4;
    display: block;
    object-fit: cover;
    object-position: top center;
  }

  .projects-mobile-v48__label {
    position: relative;
    z-index: 1;
    margin: 0 0 9px;
    color: #aa75af;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 7px;
    font-weight: 700;
  }

  .projects-mobile-v48__card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 13px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(32px, 9.2vw, 39px);
    font-weight: 500;
    line-height: .98;
  }

  .projects-mobile-v48__lead {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #6e636f;
    font-size: 12px;
    line-height: 1.62;
  }

  .projects-mobile-v48__facts {
    position: relative;
    z-index: 1;
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .projects-mobile-v48__facts span {
    min-width: 0;
    min-height: 78px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(95, 60, 99, .08);
    border-radius: 15px;
    color: #746a74;
    background: rgba(255, 255, 255, .62);
    font-size: 8px;
    line-height: 1.25;
  }

  .projects-mobile-v48__facts strong {
    margin-bottom: 5px;
    color: #49394b;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
  }

  .projects-mobile-v48__list {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .projects-mobile-v48__list li {
    position: relative;
    padding: 8px 0 8px 18px;
    border-bottom: 1px solid rgba(95, 60, 99, .07);
    color: #635a64;
    font-size: 10px;
    line-height: 1.45;
  }

  .projects-mobile-v48__list li:last-child {
    border-bottom: 0;
  }

  .projects-mobile-v48__list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 8px;
    color: #c89b53;
    font-size: 8px;
  }

  .projects-mobile-v48__button {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 18px;
    justify-content: center;
  }

  .projects-mobile-v48__dots {
    margin-top: 2px;
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .projects-mobile-v48__dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(143, 93, 150, .22);
  }

  .projects-mobile-v48__dots i:first-child {
    width: 19px;
    border-radius: 999px;
    background: #a468ac;
  }
}

@media (max-width: 390px) {
  .projects-mobile-v48__card {
    flex-basis: calc(100vw - 42px);
    width: calc(100vw - 42px);
    min-height: 555px;
    padding: 19px;
  }

  .projects-mobile-v48__card h3 {
    font-size: 33px;
  }

  .projects-mobile-v48__facts span {
    padding-inline: 6px;
    font-size: 7.5px;
  }

  .projects-mobile-v48__facts strong {
    font-size: 16px;
  }
}


/* =========================================================
   VERSION 49 — НАДЁЖНОЕ ВОССТАНОВЛЕНИЕ ПРОЕКТОВ НА МОБИЛЬНОМ
   ========================================================= */

@media (max-width: 760px) {
  /*
    Основная причина исчезновения: мобильный CSS скрывал старые карточки,
    даже когда новый мобильный HTML-блок не был вставлен.
    Теперь есть безопасный режим для обеих версий HTML.
  */

  .projects-v18 {
    min-height: auto !important;
  }

  .projects-v18 .projects-mobile-v48 {
    display: block !important;
    min-height: 610px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .projects-v18 .projects-mobile-v48__track,
  .projects-v18 .projects-mobile-v48__card {
    visibility: visible !important;
    opacity: 1 !important;
  }

  /*
    Резервный вариант: если пользователь случайно оставил старый HTML
    без projects-mobile-v48, обычные проекты больше не исчезнут.
  */
  .projects-v18 .project-shell-v18,
  .projects-v18 .projects-extra-v43 {
    display: block !important;
  }

  /*
    Когда новый мобильный блок присутствует, скрываем только его
    дублирующие десктопные карточки.
  */
  .projects-v18 .projects-mobile-v48 + .project-shell-v18,
  .projects-v18 .projects-mobile-v48 ~ .projects-extra-v43 {
    display: none !important;
  }

  /* Компактный fallback для старого HTML */
  .projects-v18 .project-shell-v18 {
    width: 100% !important;
    padding: 20px !important;
    border-radius: 26px !important;
  }

  .projects-v18 .project-hero-v18 {
    display: block !important;
  }

  .projects-v18 .project-copy-v18,
  .projects-v18 .project-showcase-v18 {
    width: 100% !important;
  }

  .projects-v18 .project-showcase-v18 {
    margin-top: 18px;
  }

  .projects-v18 .project-metrics-v18 {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .projects-v18 .project-metrics-v18::-webkit-scrollbar {
    display: none;
  }

  .projects-v18 .project-metric-v18 {
    flex: 0 0 150px;
  }

  .projects-v18 .projects-extra-v43__grid {
    display: flex !important;
    gap: 13px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .projects-v18 .projects-extra-v43__grid::-webkit-scrollbar {
    display: none;
  }

  .projects-v18 .experience-card-v43 {
    flex: 0 0 calc(100vw - 48px) !important;
    width: calc(100vw - 48px) !important;
    max-width: 382px !important;
    min-height: 0 !important;
    scroll-snap-align: start;
  }
}


/* =========================================================
   VERSION 50 — АКТИВНЫЕ ИНДИКАТОРЫ МОБИЛЬНОЙ КАРУСЕЛИ
   ========================================================= */

@media (max-width: 760px) {
  .projects-mobile-v48__dots {
    position: relative;
    z-index: 3;
    margin-top: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
  }

  .projects-mobile-v48__dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(143, 93, 150, .23);
    cursor: pointer;
    appearance: none;
    transition:
      width .25s ease,
      background-color .25s ease,
      transform .2s ease;
  }

  .projects-mobile-v48__dots button:hover,
  .projects-mobile-v48__dots button:focus-visible {
    background: rgba(143, 93, 150, .48);
    transform: scale(1.12);
  }

  .projects-mobile-v48__dots button:focus-visible {
    outline: 2px solid rgba(164, 104, 172, .38);
    outline-offset: 4px;
  }

  .projects-mobile-v48__dots button.is-active {
    width: 22px;
    background: #a468ac;
    transform: none;
  }

  /* Старые декоративные точки больше не применяются */
  .projects-mobile-v48__dots i {
    display: none !important;
  }
}


/* =========================================================
   VERSION 51 — ПРЕМИАЛЬНАЯ АКТИВНАЯ ПАНЕЛЬ ПРОЕКТОВ
   ========================================================= */

@media (max-width: 760px) {
  .projects-mobile-v48__dots {
    width: max-content;
    min-width: 112px;
    margin: 8px auto 0;
    padding: 8px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(149, 96, 157, .12);
    border-radius: 999px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, .90),
        rgba(249, 241, 250, .82)
      );
    box-shadow:
      0 10px 26px rgba(91, 57, 96, .10),
      inset 0 1px rgba(255, 255, 255, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .projects-mobile-v48__dots button {
    position: relative;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(172, 130, 177, .27);
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    transition:
      width .28s ease,
      background .28s ease,
      transform .2s ease,
      box-shadow .28s ease;
  }

  .projects-mobile-v48__dots button::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
  }

  .projects-mobile-v48__dots button:hover,
  .projects-mobile-v48__dots button:focus-visible {
    background: rgba(161, 105, 170, .55);
    transform: scale(1.08);
  }

  .projects-mobile-v48__dots button.is-active {
    width: 29px;
    background:
      linear-gradient(90deg, #b477bc, #8f5798);
    box-shadow:
      0 4px 10px rgba(141, 83, 151, .26),
      inset 0 1px rgba(255, 255, 255, .34);
    transform: none;
  }

  .projects-mobile-v48__dots button:focus-visible {
    outline: 2px solid rgba(164, 104, 172, .34);
    outline-offset: 5px;
  }
}


/* =========================================================
   VERSION 52 — ПРЕМИАЛЬНАЯ МОБИЛЬНАЯ НАВИГАЦИЯ
   ========================================================= */

@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(42, 29, 43, .48);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: mobile-menu-backdrop-v52 .24s ease both;
  }

  .site-header {
    overflow: visible !important;
  }

  .header-inner {
    position: relative;
    z-index: 90;
  }

  .menu-button {
    position: relative;
    z-index: 103;
    width: 46px !important;
    height: 46px !important;
    padding: 11px !important;
    display: grid !important;
    place-content: center;
    border: 1px solid rgba(143, 93, 150, .17) !important;
    border-radius: 16px !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,.94), rgba(245,232,247,.92)) !important;
    box-shadow:
      0 10px 24px rgba(82, 50, 86, .11),
      inset 0 1px rgba(255,255,255,.96);
    transition:
      background .25s ease,
      border-radius .25s ease,
      transform .22s ease,
      box-shadow .25s ease !important;
  }

  .menu-button:hover {
    transform: translateY(-1px);
  }

  .menu-button span {
    width: 20px;
    height: 1.5px !important;
    margin: 2.5px 0 !important;
    background: #5e4562 !important;
  }

  .menu-button[aria-expanded="true"] {
    position: fixed;
    top: max(24px, env(safe-area-inset-top));
    right: 25px;
    border-color: rgba(255,255,255,.14) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.10) !important;
    box-shadow: none !important;
  }

  .menu-button[aria-expanded="true"] span {
    background: #fff !important;
  }

  .main-nav {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    z-index: 100;
    width: min(390px, calc(100vw - 36px));
    max-height: none !important;
    padding: 88px 18px 76px !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    gap: 9px !important;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 32px !important;
    background:
      radial-gradient(circle at 85% 5%, rgba(210,166,219,.20), transparent 26%),
      radial-gradient(circle at 4% 92%, rgba(201,154,83,.13), transparent 28%),
      linear-gradient(155deg, #38273b 0%, #261b29 100%) !important;
    box-shadow:
      0 28px 80px rgba(29,18,31,.32),
      inset 0 1px rgba(255,255,255,.10) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(30px) scale(.975);
    transform-origin: top right;
    transition:
      opacity .24s ease,
      visibility .24s ease,
      transform .28s cubic-bezier(.22,.8,.3,1) !important;
  }

  .main-nav::before {
    content: "ES.  ·  НАВИГАЦИЯ";
    position: absolute;
    top: 31px;
    left: 25px;
    color: #d7aa63;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .13em;
  }

  .main-nav::after {
    content: "QA  •  UI/UX  •  WEB DEVELOPMENT";
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.38);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: .18em;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
  }

  .main-nav a {
    position: relative;
    min-height: 62px;
    padding: 14px 46px 14px 58px !important;
    display: flex !important;
    align-items: center;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 18px !important;
    color: rgba(255,255,255,.83) !important;
    background: rgba(255,255,255,.045);
    text-transform: uppercase;
    letter-spacing: .12em !important;
    font-size: 10px !important;
    font-weight: 600;
    transition:
      color .2s ease,
      background .2s ease,
      border-color .2s ease,
      transform .2s ease !important;
  }

  .main-nav a::before {
    position: absolute;
    left: 19px;
    color: rgba(215,170,99,.72);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .main-nav a:nth-child(1)::before { content: "01"; }
  .main-nav a:nth-child(2)::before { content: "02"; }
  .main-nav a:nth-child(3)::before { content: "03"; }
  .main-nav a:nth-child(4)::before { content: "04"; }
  .main-nav a:nth-child(5)::before { content: "05"; }
  .main-nav a:nth-child(6)::before { content: "06"; }

  .main-nav a::after {
    content: "↗" !important;
    position: absolute !important;
    top: 50% !important;
    right: 19px !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    color: rgba(255,255,255,.30);
    background: none !important;
    font-size: 15px;
    line-height: 1;
    transform: translateY(-50%);
    transition:
      color .2s ease,
      transform .2s ease !important;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a.is-active {
    color: #fff !important;
    border-color: rgba(214,169,222,.24);
    background:
      linear-gradient(90deg, rgba(174,111,183,.24), rgba(255,255,255,.07)) !important;
    transform: translateX(3px);
  }

  .main-nav a:hover::after,
  .main-nav a:focus-visible::after,
  .main-nav a.is-active::after {
    color: #d7aa63;
    transform: translate(2px, -50%);
  }

  .main-nav a.is-active::before {
    color: #e7c17e;
  }

  .main-nav a:focus-visible {
    outline: 2px solid rgba(215,170,99,.46);
    outline-offset: 2px;
  }

  .header-contact {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .main-nav {
    right: 8px !important;
    bottom: 8px !important;
    width: calc(100vw - 16px);
    padding-inline: 14px !important;
    border-radius: 28px !important;
  }

  .main-nav a {
    min-height: 58px;
  }

  .menu-button[aria-expanded="true"] {
    right: 20px;
  }
}

@media (max-height: 690px) and (max-width: 900px) {
  .main-nav {
    padding-top: 72px !important;
    padding-bottom: 62px !important;
    gap: 6px !important;
  }

  .main-nav::before {
    top: 24px;
  }

  .main-nav::after {
    bottom: 20px;
  }

  .main-nav a {
    min-height: 51px;
    padding-block: 10px !important;
  }
}

@keyframes mobile-menu-backdrop-v52 {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* =========================================================
   VERSION 53 — СВЕТЛОЕ РАСКРЫВАЮЩЕЕСЯ МОБИЛЬНОЕ МЕНЮ
   ========================================================= */

@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    z-index: 45 !important;
    background: rgba(238, 230, 241, .42) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
  }

  body.menu-open .site-header {
    z-index: 100;
  }

  .site-header {
    overflow: visible !important;
  }

  .header-inner {
    position: relative;
    z-index: 2;
  }

  .menu-button {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    z-index: 104;
    border: 1px solid rgba(154, 103, 161, .16) !important;
    border-radius: 16px !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,.98), rgba(245,233,247,.94)) !important;
    box-shadow:
      0 9px 22px rgba(94, 57, 99, .10),
      inset 0 1px rgba(255,255,255,.98) !important;
  }

  .menu-button span {
    background: #5f4963 !important;
  }

  .menu-button[aria-expanded="true"] {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    border-color: rgba(158, 102, 166, .24) !important;
    border-radius: 16px !important;
    background:
      linear-gradient(145deg, #f0def3, #fffafd) !important;
    box-shadow:
      0 10px 26px rgba(114, 67, 120, .15),
      inset 0 1px rgba(255,255,255,.98) !important;
  }

  .menu-button[aria-expanded="true"] span {
    background: #7d5684 !important;
  }

  .main-nav {
    position: absolute !important;
    top: calc(100% + 9px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 101;
    width: 100% !important;
    max-height: 0 !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(143, 93, 150, .13) !important;
    border-radius: 27px !important;
    background:
      radial-gradient(circle at 90% 4%, rgba(224, 198, 229, .45), transparent 28%),
      radial-gradient(circle at 4% 100%, rgba(229, 196, 209, .26), transparent 30%),
      linear-gradient(155deg, rgba(255,255,255,.985), rgba(251,244,251,.975)) !important;
    box-shadow:
      0 28px 70px rgba(75, 45, 79, .16),
      inset 0 1px rgba(255,255,255,.98) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    clip-path: inset(0 0 100% 0 round 27px);
    transform: translateY(-12px) scale(.985);
    transform-origin: top center;
    transition:
      max-height .42s cubic-bezier(.22,.8,.25,1),
      padding .36s ease,
      opacity .22s ease,
      visibility .22s ease,
      clip-path .42s cubic-bezier(.22,.8,.25,1),
      transform .36s cubic-bezier(.22,.8,.25,1) !important;
  }

  .main-nav::before {
    content: "Навигация";
    position: static !important;
    margin: 0 5px 5px;
    display: block;
    color: #a46aab !important;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 24px !important;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em !important;
  }

  .main-nav::after {
    content: "Екатерина Степанова  ·  QA  ·  UI/UX";
    position: static !important;
    margin: 7px 5px 0;
    padding: 15px 0 0 !important;
    border-top: 1px solid rgba(95, 60, 99, .08) !important;
    color: #a094a1 !important;
    font-size: 7px !important;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .15em !important;
  }

  .main-nav.is-open {
    max-height: min(620px, calc(100vh - 104px)) !important;
    padding: 22px 18px 21px !important;
    overflow-y: auto !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    clip-path: inset(0 0 0 0 round 27px);
    transform: translateY(0) scale(1);
  }

  .main-nav a {
    position: relative;
    min-height: 57px !important;
    padding: 12px 46px 12px 53px !important;
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(117, 77, 122, .075) !important;
    border-radius: 17px !important;
    color: #493d4b !important;
    background:
      linear-gradient(145deg, rgba(255,255,255,.82), rgba(250,245,251,.76)) !important;
    box-shadow:
      inset 0 1px rgba(255,255,255,.90);
    text-transform: uppercase;
    letter-spacing: .115em !important;
    font-size: 10px !important;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      color .2s ease,
      background .2s ease,
      border-color .2s ease,
      box-shadow .2s ease,
      transform .28s ease,
      opacity .28s ease !important;
  }

  .main-nav.is-open a {
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav.is-open a:nth-child(1) { transition-delay: .04s; }
  .main-nav.is-open a:nth-child(2) { transition-delay: .07s; }
  .main-nav.is-open a:nth-child(3) { transition-delay: .10s; }
  .main-nav.is-open a:nth-child(4) { transition-delay: .13s; }
  .main-nav.is-open a:nth-child(5) { transition-delay: .16s; }
  .main-nav.is-open a:nth-child(6) { transition-delay: .19s; }

  .main-nav a::before {
    position: absolute !important;
    left: 18px !important;
    color: #c09250 !important;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px !important;
    font-weight: 600;
    letter-spacing: 0 !important;
  }

  .main-nav a::after {
    content: "↗" !important;
    position: absolute !important;
    top: 50% !important;
    right: 18px !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    color: rgba(126, 84, 132, .42) !important;
    background: none !important;
    font-size: 14px !important;
    line-height: 1;
    transform: translateY(-50%);
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a.is-active {
    color: #6f4876 !important;
    border-color: rgba(164, 104, 172, .20) !important;
    background:
      linear-gradient(90deg, rgba(236,216,240,.74), rgba(255,255,255,.91)) !important;
    box-shadow:
      0 8px 20px rgba(121, 75, 127, .08),
      inset 3px 0 #a66bad !important;
    transform: translateX(2px);
  }

  .main-nav a:hover::after,
  .main-nav a:focus-visible::after,
  .main-nav a.is-active::after {
    color: #a66bad !important;
    transform: translate(2px, -50%);
  }

  .main-nav a:focus-visible {
    outline: 2px solid rgba(164, 104, 172, .28);
    outline-offset: 2px;
  }

  .header-contact {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .main-nav {
    right: -2px !important;
    left: -2px !important;
    width: calc(100% + 4px) !important;
    border-radius: 24px !important;
  }

  .main-nav.is-open {
    padding: 19px 14px 18px !important;
  }

  .main-nav a {
    min-height: 54px !important;
  }
}

@media (max-height: 690px) and (max-width: 900px) {
  .main-nav.is-open {
    max-height: calc(100vh - 96px) !important;
    padding-top: 17px !important;
    padding-bottom: 16px !important;
    gap: 6px !important;
  }

  .main-nav::before {
    font-size: 21px !important;
  }

  .main-nav a {
    min-height: 49px !important;
    padding-block: 9px !important;
  }
}


/* =========================================================
   VERSION 54 — УБРАНА ЛИШНЯЯ ЛИНИЯ В МОБИЛЬНОЙ КАРУСЕЛИ «ОБО МНЕ»
   ========================================================= */

@media (max-width: 640px) {
  .about-v13__fact + .about-v13__fact {
    border-top: 0 !important;
  }
}


/* =========================================================
   VERSION 55 — МЯГКИЕ КРАЯ МОБИЛЬНЫХ КАРУСЕЛЕЙ
   Убирает резкое визуальное обрезание следующей карточки.
   ========================================================= */

@media (max-width: 640px) {
  .about-v13__facts,
  .about-v13__strengths,
  .specialization-v15__grid,
  .project-metrics-v18,
  .skills-v23__grid,
  .skills-v23__other > div,
  .personal-grid,
  .expertise-strip,
  .projects-mobile-v48__track,
  .projects-extra-v43__grid,
  .modal[data-project-modal] .project-case__grid,
  .personal-modal__dialog .psychology-topics,
  .personal-modal__dialog .personal-story__columns,
  .personal-modal__dialog .sport-stats,
  .personal-modal__dialog .sport-path,
  .personal-modal__dialog .blog-topics {
    /*
      Запас справа позволяет последней карточке полностью доехать
      до видимой области, а край следующей карточки плавно исчезает.
    */
    padding-right: 30px !important;
    scroll-padding-right: 30px !important;

    -webkit-mask-image: linear-gradient(
      to right,
      #000 0,
      #000 calc(100% - 34px),
      rgba(0, 0, 0, .92) calc(100% - 23px),
      rgba(0, 0, 0, .38) calc(100% - 8px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      #000 0,
      #000 calc(100% - 34px),
      rgba(0, 0, 0, .92) calc(100% - 23px),
      rgba(0, 0, 0, .38) calc(100% - 8px),
      transparent 100%
    );
  }

  /* Чуть больше воздуха между карточкой и краем экрана */
  .specialization-v15__grid,
  .skills-v23__grid,
  .personal-grid,
  .expertise-strip {
    width: calc(100% + 8px) !important;
    max-width: calc(100% + 8px) !important;
  }

  /* Тени карточек больше не выглядят отрезанными сверху и снизу */
  .specialization-v15__grid,
  .skills-v23__grid,
  .personal-grid,
  .expertise-strip,
  .projects-mobile-v48__track {
    padding-top: 7px !important;
    padding-bottom: 18px !important;
  }
}


/* =========================================================
   VERSION 56 — КОНТАКТЫ БЕЗ КРУГА + УСЛУГА РАЗРАБОТКИ САЙТА
   ========================================================= */

/* Декоративный круг позади портрета полностью убран */
.contact-portrait-v31__halo {
  display: none !important;
}

.contact-portrait-v31 {
  min-height: 400px;
}

.contact-portrait-v31__frame {
  width: min(100%, 350px);
  background: transparent;
  box-shadow:
    0 26px 58px rgba(78, 48, 84, .15),
    inset 0 1px rgba(255, 255, 255, 1);
}

/* Отдельная премиальная карточка про разработку сайта */
.contact-service-v56 {
  position: relative;
  margin: 0 0 16px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  border: 1px solid rgba(154, 101, 162, .13);
  border-radius: 23px;
  color: inherit;
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 198, 232, .56), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,239,249,.86));
  box-shadow:
    0 17px 36px rgba(82, 50, 87, .08),
    inset 0 1px rgba(255,255,255,.98);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.contact-service-v56::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -74px;
  bottom: -92px;
  border-radius: 50%;
  background: rgba(174, 112, 183, .08);
  pointer-events: none;
}

.contact-service-v56:hover {
  transform: translateY(-3px);
  border-color: rgba(171, 110, 179, .26);
  box-shadow:
    0 22px 44px rgba(82, 50, 87, .12),
    inset 0 1px rgba(255,255,255,.98);
}

.contact-service-v56__icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(154, 101, 162, .13);
  border-radius: 17px;
  color: #965f9d;
  background: linear-gradient(145deg, #ead8ed, #fff);
}

.contact-service-v56__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-service-v56__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.contact-service-v56__content small {
  display: block;
  margin-bottom: 5px;
  color: #a174a6;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 7px;
  font-weight: 700;
}

.contact-service-v56__content strong {
  display: block;
  margin-bottom: 6px;
  color: #3f3440;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 600;
  line-height: 1.05;
}

.contact-service-v56__content > span {
  display: block;
  max-width: 590px;
  color: #746975;
  font-size: 11px;
  line-height: 1.55;
}

.contact-service-v56__action {
  position: relative;
  z-index: 1;
  min-width: max-content;
  padding: 10px 13px;
  border: 1px solid rgba(154, 101, 162, .13);
  border-radius: 999px;
  color: #8c5b93;
  background: rgba(255,255,255,.66);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 7px;
  font-weight: 700;
}

.contact-service-v56__action i {
  margin-left: 5px;
  font-style: normal;
}

.contact-service-v56:hover .contact-service-v56__action i {
  display: inline-block;
  transform: translate(2px, -2px);
}

/* Мобильная версия */
@media (max-width: 980px) {
  .contact-portrait-v31 {
    min-height: 330px;
  }
}

@media (max-width: 640px) {
  .contact-portrait-v31 {
    min-height: 290px;
  }

  .contact-portrait-v31__frame {
    width: min(82vw, 310px);
  }

  .contact-service-v56 {
    padding: 16px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    border-radius: 20px;
  }

  .contact-service-v56__icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .contact-service-v56__content strong {
    font-size: 24px;
  }

  .contact-service-v56__content > span {
    font-size: 10px;
  }

  .contact-service-v56__action {
    grid-column: 1 / -1;
    width: 100%;
    padding: 11px 14px;
    text-align: center;
  }
}


/* =========================================================
   VERSION 59 — МОБИЛЬНЫЕ КАРТОЧКИ «ОБО МНЕ ВНЕ IT»
   Все три карточки и содержимое их окон доступны полностью.
   ========================================================= */

@media (max-width: 640px) {
  /* Три основные карточки больше не обрезаются каруселью */
  .personal-grid {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    overflow: visible !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .personal-grid > *,
  .personal-grid > *:last-child {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 300px !important;
    margin-right: 0 !important;
    scroll-snap-align: none !important;
  }

  .personal-card-v24 {
    padding: 24px 22px 70px !important;
    overflow: hidden !important;
  }

  .personal-card-v24__link {
    left: 22px !important;
    bottom: 24px !important;
  }

  /*
    Модальные окна психологии, спорта и блога:
    одно обычное вертикальное прокручивание без вложенных
    горизонтальных каруселей и скрытых карточек.
  */
  .modal[data-personal-modal] {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 6px !important;
    align-items: flex-start !important;
    justify-content: center !important;
    -webkit-overflow-scrolling: touch;
  }

  .modal[data-personal-modal].is-open {
    display: flex !important;
  }

  .modal[data-personal-modal] .modal-backdrop {
    position: fixed !important;
  }

  .personal-modal__dialog {
    width: calc(100% - 4px) !important;
    max-width: calc(100% - 4px) !important;
    max-height: calc(100dvh - 12px) !important;
    margin: 0 auto !important;
    padding: 14px 14px 24px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 24px !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .personal-modal__dialog .modal-close {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    z-index: 30 !important;
    margin: 0 0 -42px auto !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 10px 24px rgba(65, 39, 68, .12) !important;
    backdrop-filter: blur(10px);
  }

  .personal-modal__dialog .personal-story {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 4px 0 0 !important;
    margin: 0 !important;
    gap: 18px !important;
    scrollbar-gutter: auto !important;
  }

  .personal-story__hero {
    padding-right: 46px !important;
  }

  .personal-story__hero,
  .personal-story__columns,
  .psychology-topics,
  .sport-stats,
  .sport-path,
  .blog-topics {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    overflow: visible !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .personal-story__columns > article,
  .psychology-topics > div,
  .sport-stats > div,
  .sport-path > article,
  .blog-topics > div,
  .personal-story__columns > article:last-child,
  .psychology-topics > div:last-child,
  .sport-stats > div:last-child,
  .sport-path > article:last-child,
  .blog-topics > div:last-child {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin-right: 0 !important;
    scroll-snap-align: none !important;
  }

  .psychology-topics > div {
    padding: 14px !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
  }

  .psychology-topics span,
  .blog-topics > div,
  .sport-stats span,
  .sport-path p,
  .personal-story__columns p {
    font-size: 12px !important;
    line-height: 1.55 !important;
    overflow-wrap: break-word !important;
  }

  .personal-story__section {
    width: 100% !important;
    padding: 16px !important;
    border-radius: 22px !important;
  }

  .personal-story__section-head {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .personal-story__section-head h3 {
    max-width: 100% !important;
    font-size: 27px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  .personal-story__lead {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  .personal-story__mark,
  .personal-story__columns article,
  .sport-path article {
    padding: 18px !important;
  }

  .personal-story__quote {
    padding: 20px 18px !important;
    font-size: 25px !important;
  }
}


/* =========================================================
   VERSION 60 — ФИНАЛЬНАЯ МОБИЛЬНАЯ ПОЛИРОВКА
   1С, кнопка «Наверх» и цельный фон навигации.
   ========================================================= */

/* Цифра 1 больше не выглядит как буква I */
.skill-badge-1c {
  font-family: Arial, "Segoe UI", Roboto, sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: .015em !important;
  text-transform: none !important;
}

/* Мобильная навигация вынесена из контейнера шапки:
   теперь её светлый фон отображается целиком */
@media (max-width: 900px) {
  .main-nav {
    position: fixed !important;
    top: calc(84px + env(safe-area-inset-top)) !important;
    right: 12px !important;
    bottom: auto !important;
    left: 12px !important;
    width: auto !important;
    height: auto !important;
    max-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    transform: translateY(-10px) scale(.99) translateZ(0) !important;
    transform-origin: top center !important;
    isolation: isolate;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
    will-change: max-height, opacity, transform;
  }

  .main-nav.is-open {
    max-height: calc(100vh - 98px) !important;
    max-height: calc(100dvh - 98px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: translateY(0) scale(1) translateZ(0) !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .main-nav {
    top: calc(72px + env(safe-area-inset-top)) !important;
    right: 9px !important;
    left: 9px !important;
    width: auto !important;
    border-radius: 24px !important;
  }

  .main-nav.is-open {
    max-height: calc(100vh - 82px) !important;
    max-height: calc(100dvh - 82px) !important;
  }

  /* «Наверх» закреплена в правой части подвала */
  .footer-inner a {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    min-width: max-content;
    border: 1px solid rgba(154, 101, 162, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 18px rgba(83, 51, 88, .07);
    font-size: 9px !important;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .footer-inner > span {
    grid-column: 2 !important;
    min-width: 0;
    font-size: 10px !important;
    line-height: 1.35;
  }
}


/* =========================================================
   VERSION 61 — НОРМАЛЬНАЯ «1С» И ЦЕНТРИРОВАНИЕ ФАКТОВ
   ========================================================= */

/* В надписи «1С» используется обычная современная цифра 1,
   а не декоративная цифра старого начертания */
.fact-label-1c {
  font-family: "Manrope", "Segoe UI", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-variant-numeric: lining-nums tabular-nums !important;
  font-feature-settings: "lnum" 1, "tnum" 1 !important;
  letter-spacing: -.02em !important;
}

/* Факты в двух карточках опыта аккуратно выровнены
   по центру и по горизонтали, и по вертикали */
.experience-card-v43__facts span {
  grid-template-rows: auto auto !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 8px !important;
  text-align: center !important;
}

.experience-card-v43__facts strong {
  width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  .experience-card-v43__facts span {
    grid-template-rows: auto auto !important;
    align-content: center !important;
    min-height: 86px !important;
  }
}

/* Те же аккуратные настройки для мобильных карточек проектов */
@media (max-width: 760px) {
  .projects-mobile-v48__facts span {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 5px !important;
  }

  .projects-mobile-v48__facts strong {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}


/* =========================================================
   VERSION 62 — 35 КНИГ И АККУРАТНЫЙ ЗНАК ЦИТАТЫ
   ========================================================= */

.personal-story__quote {
  position: relative !important;
  overflow: hidden !important;
  padding-left: 34px !important;
}

/* Декоративный знак цитаты остаётся внутри карточки */
.personal-story__quote::before {
  left: 14px !important;
  top: 15px !important;
  transform: none !important;
  line-height: 1 !important;
}

@media (max-width: 640px) {
  .personal-story__quote {
    padding: 28px 22px 24px 34px !important;
  }

  .personal-story__quote::before {
    left: 13px !important;
    top: 17px !important;
    font-size: 42px !important;
  }
}


/* =========================================================
   VERSION 63 — ЦИТАТА БЕЗ ОБРЕЗАНИЯ + СВЕТЛЫЙ ФУТЕР
   ========================================================= */

/* Цитата всегда занимает нужную высоту и переносится по строкам */
.personal-story__quote {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 30px 34px 30px 48px !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.32 !important;
}

/* Знак цитаты расположен внутри отступа и не перекрывает текст */
.personal-story__quote::before {
  left: 17px !important;
  top: 19px !important;
  font-size: 54px !important;
  line-height: .8 !important;
  pointer-events: none;
}

/* Нижний футер в той же светлой гамме, что и верхняя панель */
.site-footer {
  border-top: 1px solid rgba(126, 96, 128, .12) !important;
  background: rgba(251, 247, 245, .82) !important;
  box-shadow: 0 -12px 35px rgba(63, 41, 66, .05);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

@media (max-width: 900px) {
  .personal-story__quote {
    padding: 28px 28px 28px 44px !important;
    font-size: clamp(23px, 5vw, 29px) !important;
  }
}

@media (max-width: 640px) {
  .personal-story__quote {
    width: 100% !important;
    max-width: 100% !important;
    padding: 25px 20px 25px 38px !important;
    border-radius: 22px !important;
    font-size: clamp(22px, 7.1vw, 28px) !important;
    line-height: 1.38 !important;
  }

  .personal-story__quote::before {
    left: 12px !important;
    top: 18px !important;
    font-size: 40px !important;
  }

  .site-footer {
    background: rgba(251, 247, 245, .94) !important;
  }
}


/* =========================================================
   VERSION 64 — ЦИТАТА КАК ЦЕЛЬНАЯ КАРТОЧКА
   Фон растягивается на весь текст, включая мобильную версию.
   ========================================================= */

.personal-story__quote {
  position: relative !important;
  box-sizing: border-box !important;
  display: grid !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 138px !important;
  height: auto !important;
  padding: 30px 34px 30px 52px !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(239,216,229,.58), transparent 43%),
    rgba(255,255,255,.76) !important;
}

.personal-story__quote > span {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.personal-story__quote::before {
  z-index: 2 !important;
  left: 18px !important;
  top: 22px !important;
  font-size: 52px !important;
}

@media (max-width: 900px) {
  .personal-story__quote {
    min-height: 145px !important;
    padding: 28px 28px 28px 48px !important;
  }
}

@media (max-width: 640px) {
  .personal-story__quote {
    min-height: 180px !important;
    padding: 28px 20px 28px 40px !important;
    border-radius: 24px !important;
  }

  .personal-story__quote::before {
    left: 13px !important;
    top: 20px !important;
    font-size: 40px !important;
  }

  .personal-story__quote > span {
    font-size: clamp(22px, 7vw, 28px) !important;
    line-height: 1.38 !important;
  }
}


/* =========================================================
   VERSION 65 — «ЧИТАТЬ ПОДРОБНЕЕ» ПО ЛЕВОМУ КРАЮ НА МОБИЛЬНОМ
   ========================================================= */

@media (max-width: 640px) {
  .personal-card-v24__link {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: auto 0 0 !important;
    padding: 22px 0 0 !important;
    align-self: flex-start !important;
    justify-content: flex-start !important;
    transform: none !important;
  }
}


/* =========================================================
   VERSION 76 — ЧИСТАЯ ТЁМНАЯ ТЕМА БЕЗ НАСЛОЕНИЯ ПАТЧЕЙ
   Светлая тема взята из стабильной версии 65 без изменений.
   ========================================================= */

:root {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --dark-page: #171219;
  --dark-section: #1c151e;
  --dark-panel: #251b28;
  --dark-card: #2c2130;
  --dark-card-soft: #322538;
  --dark-text: #f7eef7;
  --dark-muted: #c9bdca;
  --dark-accent: #d8aee0;
  --dark-gold: #d2a65f;
  --dark-line: rgba(255, 255, 255, .085);
  --dark-line-gold: rgba(210, 166, 95, .24);
}

/* ---------- ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ ---------- */

.theme-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(133, 91, 139, .14);
  border-radius: 50%;
  color: #96609d;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 9px 22px rgba(68, 43, 73, .09);
  cursor: pointer;
  transition:
    transform .2s ease,
    color .22s ease,
    background .22s ease,
    border-color .22s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .2s ease, transform .25s ease;
}

.theme-toggle__sun {
  opacity: 0;
  transform: rotate(-35deg) scale(.65);
}

html[data-theme="dark"] .theme-toggle__moon {
  opacity: 0;
  transform: rotate(35deg) scale(.65);
}

html[data-theme="dark"] .theme-toggle__sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ---------- ШАПКА И БОЛЬШИЕ ЭКРАНЫ ---------- */

@media (min-width: 901px) {
  .header-inner {
    grid-template-columns: 62px minmax(0, 1fr) 42px auto !important;
    gap: 18px !important;
  }

  .brand {
    grid-column: 1;
  }

  .main-nav {
    grid-column: 2;
    min-width: 0;
    gap: clamp(12px, 1.45vw, 30px) !important;
  }

  .theme-toggle {
    grid-column: 3;
  }

  .header-contact {
    grid-column: 4;
  }
}

@media (min-width: 901px) and (max-width: 1230px) {
  .header-inner {
    grid-template-columns: 62px minmax(0, 1fr) 42px !important;
  }

  .header-contact {
    display: none !important;
  }

  .main-nav {
    gap: clamp(10px, 1.2vw, 18px) !important;
  }

  .main-nav a {
    font-size: 9px !important;
    letter-spacing: .08em !important;
  }
}

@media (max-width: 900px) {
  .theme-toggle {
    position: relative;
    z-index: 102;
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    margin-left: auto;
  }

  .menu-button {
    margin-left: 0 !important;
  }
}

@media (min-width: 1680px) {
  .container {
    width: min(100% - 96px, 1480px) !important;
    max-width: 1480px !important;
  }

  .hero-grid {
    grid-template-columns: minmax(0, .94fr) minmax(520px, 1.06fr) !important;
    gap: clamp(48px, 5vw, 90px) !important;
  }

  .hero h1 {
    font-size: clamp(90px, 6.2vw, 126px) !important;
  }
}

@media (min-width: 2200px) {
  .container {
    width: min(100% - 150px, 1600px) !important;
    max-width: 1600px !important;
  }

  .hero h1 {
    font-size: 132px !important;
  }
}

/* ---------- ЕДИНЫЙ ФОН ТЁМНОЙ ТЕМЫ ---------- */

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] main {
  background: var(--dark-page) !important;
  color: var(--dark-text) !important;
}

html[data-theme="dark"] main > section,
html[data-theme="dark"] :is(
  .hero,
  .section,
  .section-light,
  .section-muted,
  .section-dark,
  .about-v13,
  .specialization-v15,
  .projects-v18,
  .skills-v23,
  .personal-v24,
  .contact-v31
) {
  color: var(--dark-text) !important;
  border-color: transparent !important;
  background:
    radial-gradient(circle at 86% 8%, rgba(139, 84, 151, .08), transparent 30%),
    radial-gradient(circle at 9% 91%, rgba(95, 57, 104, .07), transparent 28%),
    var(--dark-page) !important;
}

/* Декоративные круги в тёмной теме не используются */
html[data-theme="dark"] :is(
  .expertise-card,
  .specialization-v15__card,
  .experience-card-v43,
  .projects-mobile-v48__card,
  .skill-card-v23,
  .personal-card-v24,
  .contact-service-v56
)::before,
html[data-theme="dark"] :is(
  .expertise-card,
  .specialization-v15__card,
  .experience-card-v43,
  .projects-mobile-v48__card,
  .skill-card-v23,
  .personal-card-v24,
  .contact-service-v56
)::after {
  content: none !important;
  display: none !important;
}

/* ---------- ШАПКА ---------- */

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer {
  color: var(--dark-text) !important;
  border-color: var(--dark-line) !important;
  background: rgba(24, 18, 26, .94) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .main-nav a {
  color: #eee4ef !important;
}

html[data-theme="dark"] .main-nav a.is-active::after {
  background: var(--dark-gold) !important;
}

html[data-theme="dark"] .header-contact {
  color: #e1bd7d !important;
  border-color: rgba(210, 166, 95, .50) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .theme-toggle {
  color: var(--dark-accent) !important;
  border-color: var(--dark-line-gold) !important;
  background: #302335 !important;
  box-shadow: none !important;
}

/* ---------- ТЕКСТ ---------- */

html[data-theme="dark"] :is(
  h1, h2, h3, h4, h5, h6,
  strong,
  .section-title,
  .hero-intro,
  .about-v13__lead,
  .personal-story__quote,
  .personal-story__quote > span
) {
  color: var(--dark-text) !important;
  text-shadow: none !important;
}

html[data-theme="dark"] :is(
  p,
  li,
  small,
  .hero-description,
  .section-intro,
  .about-v13__text,
  .project-case__intro,
  .personal-story__lead
) {
  color: var(--dark-muted) !important;
}

html[data-theme="dark"] :is(
  .eyebrow,
  .section-kicker,
  .specialization-v15__label,
  .personal-card-v24__category,
  .project-case__highlight span,
  .personal-story__section-head > span
) {
  color: var(--dark-accent) !important;
}

/* ---------- ОБЫЧНЫЕ КАРТОЧКИ ---------- */

html[data-theme="dark"] :is(
  .expertise-card,
  .about-v13__fact,
  .specialization-v15__card,
  .experience-card-v43,
  .skills-v23__other,
  .personal-card-v24,
  .contact-service-v56,
  .contact-item-v31
) {
  color: var(--dark-text) !important;
  border-color: var(--dark-line-gold) !important;
  background: var(--dark-card) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] :is(
  .about-v13__story,
  .projects-extra-v43,
  .contact-panel-v31
) {
  color: var(--dark-text) !important;
  border-color: var(--dark-line) !important;
  background: var(--dark-section) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] :is(
  .experience-card-v43__facts span,
  .project-metrics-v18 > div,
  .skills-v23__other > div
) {
  color: var(--dark-text) !important;
  border-color: var(--dark-line) !important;
  background: var(--dark-card-soft) !important;
  box-shadow: none !important;
}

/* Иконки без белых подложек */
html[data-theme="dark"] :is(
  .expertise-icon,
  .specialization-v15__icon,
  .experience-card-v43__icon,
  .skill-card-v23__icon,
  .personal-card-v24__icon,
  .contact-item-v31__icon,
  .contact-service-v56__icon
) {
  color: var(--dark-accent) !important;
  border-color: var(--dark-line-gold) !important;
  background: #35283a !important;
  box-shadow: none !important;
}

html[data-theme="dark"] :is(
  .expertise-icon,
  .specialization-v15__icon,
  .experience-card-v43__icon,
  .skill-card-v23__icon,
  .personal-card-v24__icon,
  .contact-item-v31__icon,
  .contact-service-v56__icon
) :is(svg, path, circle, line, polyline, rect) {
  stroke: currentColor !important;
}

/* Бейджи и технологии */
html[data-theme="dark"] :is(
  .experience-card-v43__badge,
  .project-tech-v18 span,
  .project-stack-v18 span,
  .project-tags span,
  .experience-card-v43__tags span,
  .skills-v23__tags span
) {
  color: #dcc9df !important;
  border-color: var(--dark-line) !important;
  background: #35283a !important;
  box-shadow: none !important;
}

/* ---------- ПРОЕКТ GROWUP НА СТРАНИЦЕ ---------- */

html[data-theme="dark"] :is(
  .project-shell-v18,
  .project-card-v16,
  .project-role-box,
  .project-preview-v18,
  .project-gallery-v19,
  .project-thumb
) {
  color: var(--dark-text) !important;
  border-color: var(--dark-line) !important;
  background: var(--dark-panel) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] :is(
  .project-preview-v18__caption,
  .project-showcase__caption,
  .showcase-browser__caption,
  .project-image-caption
) {
  color: var(--dark-text) !important;
  border-color: var(--dark-line) !important;
  background: var(--dark-card) !important;
}

html[data-theme="dark"] :is(
  .project-gallery-v19__head h3,
  .project-gallery-v19__head > div:first-child > span,
  .project-gallery-v19__counter
) {
  color: var(--dark-text) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] :is(
  .project-gallery-v19__head p,
  .project-thumb figcaption
) {
  color: var(--dark-muted) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] :is(
  .project-gallery-v19__arrow,
  .project-gallery-v19__edge
) {
  color: var(--dark-accent) !important;
  border-color: var(--dark-line-gold) !important;
  background: #35283a !important;
  box-shadow: none !important;
}

/* Изображения интерфейса не затемняются */
html[data-theme="dark"] :is(
  .project-preview-v18 img,
  .project-thumb img,
  .project-case__screen img,
  .contact-portrait-v31 img
) {
  filter: none !important;
}

/* Главное изображение первого экрана приглушается только в тёмной теме */
html[data-theme="dark"] .hero-image-wrap img {
  filter: brightness(.80) contrast(1.04) saturate(.82) !important;
}

/* ---------- МОДАЛЬНЫЕ ОКНА ----------
   ВАЖНО: overflow и max-height здесь намеренно не переопределяются.
   Рабочая прокрутка остаётся из стабильной светлой версии.
*/

html[data-theme="dark"] .modal-backdrop {
  background: rgba(7, 4, 8, .78) !important;
}

html[data-theme="dark"] :is(
  .modal-dialog,
  .personal-modal__dialog
) {
  color: var(--dark-text) !important;
  border-color: var(--dark-line-gold) !important;
  background: var(--dark-section) !important;
  box-shadow: none !important;
}

/* Внутри тёмных окон вообще нет тяжёлых теней */
html[data-theme="dark"] .modal-dialog *,
html[data-theme="dark"] .personal-modal__dialog * {
  box-shadow: none !important;
}

html[data-theme="dark"] :is(
  .project-case__highlight,
  .project-case__stats div,
  .project-case__grid article,
  .project-case__screen,
  .personal-story__mark,
  .personal-story__section,
  .personal-story__columns article,
  .psychology-topics > div,
  .sport-stats > div,
  .sport-path article,
  .blog-topics > div,
  .personal-story__quote
) {
  color: var(--dark-text) !important;
  border-color: var(--dark-line) !important;
  background: var(--dark-card) !important;
}

html[data-theme="dark"] :is(
  .project-case__highlight p,
  .project-case__stats span,
  .project-case__grid p,
  .project-case__grid ul,
  .project-case__screen figcaption,
  .personal-story__mark span,
  .personal-story__columns p,
  .psychology-topics span,
  .sport-stats span,
  .sport-path p,
  .blog-topics > div
) {
  color: var(--dark-muted) !important;
}

html[data-theme="dark"] :is(
  .project-case__stats strong,
  .project-case__grid h3,
  .personal-story__mark strong,
  .personal-story__section h3,
  .personal-story__columns h3,
  .sport-stats strong,
  .sport-path h4
) {
  color: var(--dark-text) !important;
}

/* Кнопка закрытия */
html[data-theme="dark"] .modal-close {
  color: var(--dark-text) !important;
  border-color: var(--dark-line-gold) !important;
  background: #35283a !important;
  box-shadow: none !important;
}

/* Видимый аккуратный скролл проекта */
html[data-theme="dark"] .modal-dialog {
  scrollbar-color: rgba(181, 119, 190, .72) transparent;
}

html[data-theme="dark"] .modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(181, 119, 190, .72);
  background-clip: content-box;
}

/* Видимый аккуратный скролл психологии, спорта и блога */
html[data-theme="dark"] .personal-modal__dialog .personal-story {
  scrollbar-color: rgba(181, 119, 190, .72) transparent;
}

html[data-theme="dark"] .personal-modal__dialog .personal-story::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c58ace, #92599b);
  background-clip: content-box;
}

/* ---------- МОБИЛЬНАЯ ТЁМНАЯ ТЕМА ---------- */

@media (max-width: 900px) {
  html[data-theme="dark"] .main-nav {
    color: var(--dark-text) !important;
    border-color: var(--dark-line-gold) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(163, 105, 175, .13), transparent 40%),
      #241b27 !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .main-nav a {
    color: var(--dark-text) !important;
    border-color: var(--dark-line) !important;
    background: rgba(255, 255, 255, .035) !important;
  }

  html[data-theme="dark"] .menu-button {
    color: var(--dark-text) !important;
    border-color: var(--dark-line-gold) !important;
    background: #35283a !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .menu-button span {
    background: currentColor !important;
  }
}

@media (max-width: 640px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  html[data-theme="dark"] .hero-image-wrap img {
    filter: brightness(.84) contrast(1.03) saturate(.84) !important;
  }
}


/* =========================================================
   VERSION 77 — ФИНАЛЬНЫЕ АДАПТИВНЫЕ ИСПРАВЛЕНИЯ
   Навигация, hero-изображение, метрики, навыки и личные карточки.
   ========================================================= */

/* ---------------------------------------------------------
   1. HEADER: логотип, тема и меню всегда в одной строке
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .header-inner {
    width: 100% !important;
    min-height: 72px !important;
    padding-inline: 14px !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 42px 46px !important;
    grid-template-rows: 72px !important;
    align-items: center !important;
    gap: 9px !important;
  }

  .brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  .theme-toggle {
    position: relative !important;
    inset: auto !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
  }

  .menu-button {
    position: relative !important;
    inset: auto !important;
    grid-column: 4 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    margin: 0 !important;
  }

  .main-nav {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 430px) {
  .header-inner {
    grid-template-columns: 42px minmax(0, 1fr) 40px 44px !important;
    gap: 7px !important;
  }

  .brand,
  .brand img {
    width: 40px !important;
    height: 40px !important;
  }

  .theme-toggle {
    width: 40px !important;
    height: 40px !important;
  }

  .menu-button {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ---------------------------------------------------------
   2. HERO: изображение показывается целиком без среза сверху
   --------------------------------------------------------- */

.hero-art {
  height: auto !important;
  min-height: 0 !important;
}

.hero-image-wrap {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 916 / 818 !important;
  background: #f8eff1;
}

.hero-image-wrap img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center top !important;
}

@media (max-width: 900px) {
  .hero-image-wrap {
    width: min(760px, 100%) !important;
    aspect-ratio: 916 / 818 !important;
  }

  .hero-image-wrap img {
    aspect-ratio: auto !important;
    object-position: center top !important;
  }
}

@media (max-width: 640px) {
  .hero-art {
    width: 100% !important;
  }

  .hero-image-wrap {
    width: 100% !important;
    aspect-ratio: 916 / 818 !important;
    border-radius: 30% 30% 22px 22px / 22% 22% 22px 22px !important;
  }
}

/* ---------------------------------------------------------
   3. МЕТРИКИ: текст не выпадает из карточек
   --------------------------------------------------------- */

.project-metrics-v18,
.experience-card-v43__facts {
  min-width: 0 !important;
  align-items: stretch !important;
}

.project-metrics-v18 > div,
.experience-card-v43__facts span {
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  text-align: center !important;
}

.project-metrics-v18 strong,
.experience-card-v43__facts strong {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: block !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  line-height: 1.08 !important;
}

.project-metrics-v18 span,
.experience-card-v43__facts span {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

@media (max-width: 900px) {
  .project-metrics-v18 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .experience-card-v43__facts {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .experience-card-v43__facts span {
    min-height: 74px !important;
    padding: 13px 12px !important;
  }

  .experience-card-v43__facts strong {
    font-size: clamp(18px, 5.5vw, 23px) !important;
  }
}

@media (max-width: 480px) {
  .project-metrics-v18 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .project-metrics-v18 > div {
    min-height: 94px !important;
    padding: 13px 9px !important;
  }

  .project-metrics-v18 strong {
    font-size: clamp(17px, 5.3vw, 22px) !important;
  }

  .project-metrics-v18 span {
    font-size: 9px !important;
    line-height: 1.35 !important;
  }
}

/* Тёмная тема: метрики больше не становятся серо-белыми */
html[data-theme="dark"] .project-metrics-v18 > div,
html[data-theme="dark"] .experience-card-v43__facts span {
  color: var(--dark-text) !important;
  border-color: var(--dark-line-gold) !important;
  background: var(--dark-card-soft) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .project-metrics-v18 span,
html[data-theme="dark"] .experience-card-v43__facts span {
  color: var(--dark-muted) !important;
}

html[data-theme="dark"] .project-metrics-v18 strong,
html[data-theme="dark"] .experience-card-v43__facts strong {
  color: var(--dark-text) !important;
}

/* ---------------------------------------------------------
   4. ДОПОЛНИТЕЛЬНЫЕ НАВЫКИ: плашки больше не обрезаются
   --------------------------------------------------------- */

.skills-v23__other {
  min-width: 0 !important;
  max-width: 100% !important;
}

.skills-v23__other > div {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .skills-v23__other {
    width: 100% !important;
    padding: 17px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 13px !important;
    overflow: visible !important;
  }

  .skills-v23__other > div {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .skills-v23__other i {
    flex: 0 1 auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* ---------------------------------------------------------
   5. ЛИЧНЫЕ КАРТОЧКИ: полная ширина без бокового обрезания
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .personal-layout {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 26px !important;
  }

  .personal-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    overflow: visible !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .personal-grid > *,
  .personal-grid > *:last-child,
  .personal-card-v24 {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 310px !important;
    margin: 0 !important;
    flex: none !important;
    scroll-snap-align: none !important;
  }

  .personal-card-v24 {
    padding: 24px 22px !important;
    overflow: hidden !important;
  }

  .personal-card-v24 h3,
  .personal-card-v24 p,
  .personal-card-v24__category,
  .personal-card-v24__link {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .personal-card-v24 h3 {
    font-size: clamp(29px, 8vw, 38px) !important;
  }

  .personal-card-v24__link {
    position: relative !important;
    inset: auto !important;
    margin: auto 0 0 !important;
    padding-top: 22px !important;
    align-self: flex-start !important;
  }
}

/* Тёмная тема: личные карточки без белых иконок */
html[data-theme="dark"] .personal-card-v24 .personal-symbol {
  color: var(--dark-accent) !important;
  border: 1px solid var(--dark-line-gold) !important;
  background: #35283a !important;
  box-shadow: none !important;
}

/* ---------------------------------------------------------
   6. БЕЗОПАСНОСТЬ ОТ ГОРИЗОНТАЛЬНОГО ВЫПАДЕНИЯ
   --------------------------------------------------------- */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  .experience-card-v43,
  .project-shell-v18,
  .projects-extra-v43,
  .skills-v23,
  .personal-v24 {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}


/* =========================================================
   VERSION 78 — ШАПКА НА КОМПЬЮТЕРЕ СТРОГО В ОДНУ СТРОКУ
   ========================================================= */

@media (min-width: 901px) {
  .site-header {
    min-height: 72px !important;
  }

  .header-inner {
    width: min(1280px, calc(100% - 48px)) !important;
    min-height: 72px !important;
    height: 72px !important;

    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) 42px auto !important;
    grid-template-rows: 72px !important;
    grid-auto-rows: 0 !important;
    align-items: center !important;
    gap: 18px !important;
  }

  .brand,
  .main-nav,
  .theme-toggle,
  .header-contact {
    grid-row: 1 !important;
    align-self: center !important;
  }

  .brand {
    grid-column: 1 !important;
    justify-self: start !important;
    margin: 0 !important;
  }

  .main-nav {
    position: static !important;
    grid-column: 2 !important;
    justify-self: center !important;

    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(12px, 1.4vw, 28px) !important;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    clip-path: none !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .theme-toggle {
    grid-column: 3 !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  .header-contact {
    grid-column: 4 !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  .menu-button {
    display: none !important;
  }
}

/* На небольшом ноутбуке скрываем только кнопку связи,
   но сама шапка всё равно остаётся в одну строку */
@media (min-width: 901px) and (max-width: 1230px) {
  .header-inner {
    grid-template-columns: 62px minmax(0, 1fr) 42px !important;
  }

  .main-nav {
    grid-column: 2 !important;
    gap: clamp(9px, 1.1vw, 17px) !important;
  }

  .theme-toggle {
    grid-column: 3 !important;
  }

  .header-contact {
    display: none !important;
  }

  .main-nav a {
    font-size: 9px !important;
    letter-spacing: .075em !important;
  }
}


/* =========================================================
   VERSION 79 — ВОССТАНОВЛЕН БЛОК «ОБО МНЕ» В ТЁМНОЙ ТЕМЕ
   Светлая тема не изменяется.
   ========================================================= */

/* Четыре карточки больше не остаются светлыми */
html[data-theme="dark"] .about-v13__card,
html[data-theme="dark"] .about-v13__card--logic,
html[data-theme="dark"] .about-v13__card--empathy,
html[data-theme="dark"] .about-v13__card--growth,
html[data-theme="dark"] .about-v13__card--details {
  color: var(--dark-text) !important;
  border-color: var(--dark-line-gold) !important;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(139, 84, 151, .10),
      transparent 42%
    ),
    var(--dark-card) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .about-v13__card:hover {
  border-color: rgba(210, 166, 95, .42) !important;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(139, 84, 151, .14),
      transparent 42%
    ),
    var(--dark-card-soft) !important;
  box-shadow: none !important;
}

/* Заголовки и описания */
html[data-theme="dark"] .about-v13__card h3 {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] .about-v13__card p {
  color: var(--dark-muted) !important;
}

/* Иконки без белой подложки */
html[data-theme="dark"] .about-v13__icon {
  color: var(--dark-accent) !important;
  border-color: var(--dark-line-gold) !important;
  background: #35283a !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .about-v13__icon :is(
  svg,
  path,
  circle,
  line,
  polyline,
  rect
) {
  stroke: currentColor !important;
}

/* Номера карточек */
html[data-theme="dark"] .about-v13__number {
  color: rgba(216, 174, 224, .22) !important;
}

/* Левая карточка и факты */
html[data-theme="dark"] .about-v13__tag {
  color: var(--dark-accent) !important;
  border-color: var(--dark-line) !important;
  background: #35283a !important;
}

html[data-theme="dark"] .about-v13__facts {
  border-color: var(--dark-line) !important;
  background: var(--dark-card) !important;
}

html[data-theme="dark"] .about-v13__fact + .about-v13__fact {
  border-top-color: var(--dark-line) !important;
}

html[data-theme="dark"] .about-v13__fact p {
  color: var(--dark-muted) !important;
}

html[data-theme="dark"] .about-v13__fact span {
  color: rgba(216, 174, 224, .45) !important;
}

/* Мобильная версия этого же блока */
@media (max-width: 900px) {
  html[data-theme="dark"] .about-v13__card {
    background: var(--dark-card) !important;
    border-color: var(--dark-line-gold) !important;
  }

  html[data-theme="dark"] .about-v13__icon {
    background: #35283a !important;
  }
}


/* =========================================================
   VERSION 80 — ПОЛНАЯ ТЁМНАЯ ТЕМА МОБИЛЬНЫХ ПРОЕКТОВ
   Светлая тема не изменяется.
   ========================================================= */

@media (max-width: 900px) {
  /* Подпись над мобильной каруселью */
  html[data-theme="dark"] .projects-mobile-v48__top span {
    color: var(--dark-accent) !important;
  }

  html[data-theme="dark"] .projects-mobile-v48__top small {
    color: var(--dark-muted) !important;
  }

  /* Все три мобильные карточки проектов */
  html[data-theme="dark"] .projects-mobile-v48__card,
  html[data-theme="dark"] .projects-mobile-v48__card--management,
  html[data-theme="dark"] .projects-mobile-v48__card--qa {
    color: var(--dark-text) !important;
    border: 1px solid var(--dark-line-gold) !important;
    background:
      radial-gradient(
        circle at 100% 0%,
        rgba(142, 86, 153, .11),
        transparent 40%
      ),
      var(--dark-card) !important;
    box-shadow: none !important;
  }

  /* Убираем светлый декоративный круг */
  html[data-theme="dark"] .projects-mobile-v48__card::after {
    content: none !important;
    display: none !important;
  }

  /* Номер и бейдж */
  html[data-theme="dark"] .projects-mobile-v48__number {
    color: rgba(216, 174, 224, .24) !important;
  }

  html[data-theme="dark"] .projects-mobile-v48__badge {
    color: #dec4e2 !important;
    border-color: var(--dark-line) !important;
    background: #35283a !important;
    box-shadow: none !important;
  }

  /* Картинка GrowUp внутри первой карточки */
  html[data-theme="dark"] .projects-mobile-v48__image {
    border-color: var(--dark-line) !important;
    background: #221925 !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .projects-mobile-v48__image img {
    filter: none !important;
  }

  /* Текст карточек */
  html[data-theme="dark"] .projects-mobile-v48__label {
    color: var(--dark-accent) !important;
  }

  html[data-theme="dark"] .projects-mobile-v48__card h3 {
    color: var(--dark-text) !important;
    text-shadow: none !important;
  }

  html[data-theme="dark"] .projects-mobile-v48__lead {
    color: var(--dark-muted) !important;
  }

  /* Метрики внутри карточек */
  html[data-theme="dark"] .projects-mobile-v48__facts span {
    color: var(--dark-muted) !important;
    border-color: var(--dark-line) !important;
    background: var(--dark-card-soft) !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .projects-mobile-v48__facts strong {
    color: var(--dark-text) !important;
  }

  /* Списки */
  html[data-theme="dark"] .projects-mobile-v48__list li {
    color: var(--dark-muted) !important;
    border-bottom-color: var(--dark-line) !important;
  }

  html[data-theme="dark"] .projects-mobile-v48__list li::before {
    color: var(--dark-gold) !important;
  }

  /* Кнопка */
  html[data-theme="dark"] .projects-mobile-v48__button {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #9a62a3, #75467d) !important;
    box-shadow: none !important;
  }

  /* Индикаторы карусели */
  html[data-theme="dark"] .projects-mobile-v48__dots {
    border-color: var(--dark-line) !important;
    background: rgba(37, 27, 40, .88) !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .projects-mobile-v48__dots button {
    border-color: var(--dark-line) !important;
    background: #35283a !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .projects-mobile-v48__dots button.is-active {
    border-color: var(--dark-line-gold) !important;
    background: var(--dark-accent) !important;
  }

  /* Страховка для остальных мобильных карточек */
  html[data-theme="dark"] :is(
    .projects-mobile-v48__card,
    .experience-card-v43,
    .specialization-v15__card,
    .personal-card-v24,
    .skills-v23__card
  ) {
    -webkit-text-fill-color: currentColor;
  }
}

@media (max-width: 430px) {
  html[data-theme="dark"] .projects-mobile-v48__card {
    background: var(--dark-card) !important;
  }

  html[data-theme="dark"] .projects-mobile-v48__facts span {
    background: var(--dark-card-soft) !important;
  }
}
