/*
 * Copyright (c) 2026 PsyGioX. Licensed under the MIT License.
 * Source: https://github.com/PsyGioX/PsyGioX-website — Site: https://psygiox-dev.vercel.app/
 *
 * Copyright (c) 2026 PsyGioX. Лицензия MIT.
 * Исходники: https://github.com/PsyGioX/PsyGioX-website — Сайт: https://psygiox-dev.vercel.app/
 */
/* ==========================================================================
   PsyGioX — Lo-fi Pastel · главная страница (index / en)
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(24px, 6vh, 64px)) 0 clamp(48px, 8vh, 96px);
  overflow-x: clip;
}
.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  grid-template-columns: 1fr;
}
.hero__title {
  display: grid;
  gap: 0;
}
.hero__hi {
  display: inline-block;
  justify-self: start;
  font-family: var(--f-hand);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--ion);
  transform: rotate(-3deg);
  transform-origin: left bottom;
  animation: hi-wave 5s ease-in-out 2.4s infinite;
}
@keyframes hi-wave {
  0%, 84%, 100% { transform: rotate(-3deg); }
  90% { transform: rotate(-8deg) translateY(-3px); }
  95% { transform: rotate(1deg); }
}
.hero__name {
  min-height: 1.1em;
  font-size: clamp(44px, 12vw, 84px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--star);
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.75);
}
html[data-theme="night"] .hero__name {
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
}
.hero__copy {
  position: relative;
}
/* Имя собирается по буквам (scripts/home.js). Оно скрыто до старта анимации, но место в разметке уже занято;
   если скрипт не сработает, через 1,6 с имя покажется само. */
html.js-decode [data-decode] { visibility: hidden; animation: decode-reveal 0s 1.6s forwards; }
@keyframes decode-reveal { to { visibility: visible; } }
/* маркер, который проводят под именем */
.hero__name [data-decode] {
  background: linear-gradient(transparent 60%, var(--marker) 60% 90%, transparent 90%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
  animation: marker 1.1s var(--ease) 0.5s forwards;
}
html.js-decode [data-decode] { animation: decode-reveal 0s 1.6s forwards, marker 1.1s var(--ease) 0.9s forwards; }
@keyframes marker { to { background-size: 100% 100%; } }
.hero__name .w { display: inline-block; white-space: nowrap; }
.hero__name .ch {
  display: inline-block;
  animation: ch-pop 0.75s var(--spring) backwards, ch-tint 1.2s ease backwards;
  animation-delay: var(--d, 0ms);
}
@keyframes ch-pop {
  from { opacity: 0; transform: translateY(0.55em) scale(0.5) rotate(-14deg); }
}
@keyframes ch-tint {
  0%, 35% { color: var(--ion); }
  70% { color: var(--cyan); }
}
@media (prefers-reduced-motion: reduce) { html.js-decode [data-decode] { visibility: visible; animation: none; } .hero__name [data-decode] { background-size: 100% 100%; } }
.hero__role {
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 800;
  color: var(--cyan);
}
.hero__role::before {
  content: "\266A  ";
  color: var(--ion);
}
.hero__role::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.18em;
  border-radius: 3px;
  background: var(--ion);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero__desc {
  max-width: 56ch;
  margin-top: 18px;
  font-size: 17px;
  color: var(--dim);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* виниловая пластинка с аватаром */
.hero__visual {
  display: grid;
  justify-items: center;
  gap: 32px;
}
.orbit {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
}
.orbit__ring {
  position: absolute;
  border-radius: 50%;
}
.orbit__ring--a {
  inset: 0;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255, 255, 255, 0.08) 31.4%, transparent 32%),
    conic-gradient(from 20deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.3) 9%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.22) 59%, rgba(255, 255, 255, 0) 72%),
    repeating-radial-gradient(circle, #6b5b95 0 2px, #5d4e87 2px 4px);
  box-shadow: 0 28px 50px -20px rgba(var(--shadow-rgb), 0.75), inset 0 0 0 7px rgba(255, 255, 255, 0.08);
  animation: spin 9s linear infinite;
}
.orbit__ring--b {
  inset: -7%;
  border: 3px dashed rgba(var(--cyan-rgb), 0.38);
  animation: spin 70s linear infinite reverse;
}
.orbit__ring--b::after {
  content: "";
  position: absolute;
  top: -6px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--p-pink);
  box-shadow: 0 0 0 4px rgba(248, 180, 208, 0.35), 0 0 16px rgba(248, 180, 208, 0.9);
}
.orbit__avatar {
  position: absolute;
  inset: 22%;
  overflow: hidden;
  border-radius: 50%;
  border: 7px solid #fff;
  background: var(--space);
  box-shadow: 0 0 0 7px rgba(248, 180, 208, 0.7), 0 16px 32px -10px rgba(var(--shadow-rgb), 0.7);
  transition: transform 0.5s var(--spring);
}
html[data-theme="night"] .orbit__avatar { border-color: #3a2f5c; }
.orbit:hover .orbit__avatar {
  transform: rotate(-4deg) scale(1.04);
}
.orbit__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html[data-theme="night"] .orbit__ring--a {
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255, 255, 255, 0.06) 31.4%, transparent 32%),
    conic-gradient(from 20deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 9%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.14) 59%, rgba(255, 255, 255, 0) 72%),
    repeating-radial-gradient(circle, #3a2f63 0 2px, #31275a 2px 4px);
}
/* тонарм */
.orbit::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -5%;
  right: -4%;
  width: 11%;
  height: 11%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d8 0 30%, #ecd9ff 31% 100%);
  box-shadow: 0 6px 12px -4px rgba(var(--shadow-rgb), 0.6), 0 0 0 4px rgba(255, 255, 255, 0.5);
}
.orbit::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0.6%;
  right: 1%;
  width: 40%;
  height: 3.4%;
  min-height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--p-pink) 0 13%, #fff6d8 13% 100%);
  box-shadow: 0 5px 8px -3px rgba(var(--shadow-rgb), 0.5);
  transform-origin: right center;
  transform: rotate(-46deg);
  rotate: 15deg; /* игла поднята над пластинкой, пока музыка выключена */
  transition: rotate 0.9s var(--spring);
  animation: tonearm 6s ease-in-out infinite;
}
html[data-music="on"] .orbit::after { rotate: 0deg; }
@keyframes tonearm {
  0%, 100% { transform: rotate(-46deg); }
  50% { transform: rotate(-44.2deg); }
}
/* наклейки вокруг */
.orbit__tick {
  position: absolute;
  z-index: 3;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.7);
  animation: float 5s ease-in-out infinite;
}
.orbit__tick--tl { top: 2%; left: -3%; color: var(--p-pink); filter: saturate(1.4); }
.orbit__tick--tr { top: 18%; right: -9%; font-size: 28px; color: #f1b94a; animation-delay: -1.4s; }
.orbit__tick--bl { bottom: 10%; left: -8%; color: #62c9a5; animation-delay: -2.6s; }
.orbit__tick--br { bottom: 0; right: 4%; font-size: 30px; color: var(--p-lav); filter: saturate(1.6); animation-delay: -3.5s; }
.orbit__tick--tl::before { content: "\266A"; }
.orbit__tick--tr::before { content: "\2726"; }
.orbit__tick--bl::before { content: "\266B"; }
.orbit__tick--br::before { content: "\2661"; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}
.hero__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero__name { font-size: clamp(60px, 6.6vw, 96px); }
}

/* ---------- Блоки и заголовки секций ---------- */
.block {
  position: relative;
  padding: clamp(60px, 8vw, 104px) 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
/* волнистая линия, которая медленно «течёт» */
.section-head h2::after {
  content: "";
  flex: 1;
  min-width: 32px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='14' viewBox='0 0 44 14'%3E%3Cpath d='M0 7Q11-1 22 7T44 7' fill='none' stroke='%23cdb4f6' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 50% / 44px 14px;
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent);
  mask: linear-gradient(90deg, #000 40%, transparent);
  animation: squiggle 3.5s linear infinite;
}
@keyframes squiggle {
  to { background-position-x: 44px; }
}
.section-head p {
  max-width: 64ch;
  margin-top: 16px;
  font-size: 17px;
  color: var(--dim);
}

/* ---------- Услуги ---------- */
.services-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 36px 30px 30px;
}
.service-card h3 {
  font-size: 24px;
}
.service-card p {
  color: var(--dim);
  font-size: 16px;
}
.service-card .btn {
  margin-top: auto;
}
.service-card p + .btn {
  margin-top: 10px;
}
.service-card:nth-child(odd) { transform: rotate(-0.5deg); }
.service-card:nth-child(even) { transform: rotate(0.5deg); }
.service-card:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 26px 46px -20px rgba(var(--shadow-rgb), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
@media (min-width: 800px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Процесс (последовательность → нумерация оправдана) ---------- */
.process {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.process .section-head {
  margin-bottom: 0;
}
.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 25px;
  width: 0;
  border-left: 3px dashed rgba(var(--cyan-rgb), 0.35);
}
.step {
  position: relative;
  padding: 0 0 40px 82px;
}
.step:last-child {
  padding-bottom: 0;
}
.step__n {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-family: var(--f-hand);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--on-pastel);
  background: var(--n-bg, var(--p-pink));
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 4px 0 rgba(var(--shadow-rgb), 0.25), 0 12px 20px -10px rgba(var(--shadow-rgb), 0.5);
  transition: transform 0.4s var(--spring);
}
.step:nth-child(5n + 1) .step__n { --n-bg: var(--p-pink); }
.step:nth-child(5n + 2) .step__n { --n-bg: var(--p-lav); }
.step:nth-child(5n + 3) .step__n { --n-bg: var(--p-mint); }
.step:nth-child(5n + 4) .step__n { --n-bg: var(--p-butter); }
.step:nth-child(5n + 5) .step__n { --n-bg: var(--p-sky); }
.step:hover .step__n {
  transform: rotate(-12deg) scale(1.12);
}
.step h3 {
  padding-top: 10px;
  font-size: 22px;
}
.step p {
  max-width: 52ch;
  margin-top: 8px;
  color: var(--dim);
  font-size: 16px;
}
@media (min-width: 960px) {
  .process { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
  .process .section-head {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    align-self: start;
  }
  .process .section-head h2::after { display: none; }
}

/* ---------- Почему я ---------- */
.why-list {
  border-top: 3px dashed var(--line-dim);
}
.why-item {
  position: relative;
  display: grid;
  gap: 8px 48px;
  grid-template-columns: 1fr;
  padding: 28px 16px 28px 52px;
  border-bottom: 3px dashed var(--line-dim);
  transition: background-color 0.3s;
}
.why-item::before {
  content: "\2726";
  position: absolute;
  top: 28px;
  left: 14px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ion);
  transition: transform 0.5s var(--spring), color 0.3s;
}
.why-item:hover {
  background: linear-gradient(90deg, rgba(var(--cyan-rgb), 0.1), transparent 75%);
}
.why-item:hover::before {
  transform: rotate(180deg) scale(1.35);
  color: var(--cyan);
}
.why-item h3 {
  font-size: 22px;
}
.why-item p {
  max-width: 60ch;
  color: var(--dim);
  font-size: 16px;
}
@media (min-width: 800px) {
  .why-item { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: baseline; }
}

/* ---------- Проекты: карточки-полароиды ---------- */
.projects-grid {
  display: grid;
  align-items: start;
  gap: 30px 26px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.project-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.project-card:nth-child(3n + 1) { transform: rotate(-0.7deg); }
.project-card:nth-child(3n + 2) { transform: rotate(0.5deg); }
.project-card:nth-child(3n + 3) { transform: rotate(-0.3deg); }
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 0 30px 50px -22px rgba(var(--shadow-rgb), 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.project-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel-solid);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease), filter 0.3s;
}
/* блик, пробегающий по скриншоту */
.project-image::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.project-card:hover .project-image img,
.project-card:focus-within .project-image img {
  transform: scale(1.06);
}
.project-card:hover .project-image::after,
.project-card:focus-within .project-image::after {
  animation: shine 0.9s var(--ease);
}
@keyframes shine {
  to { left: 130%; }
}
.project-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 12px 12px;
}
.project-title,
.project-open {
  padding: 0;
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  color: var(--star);
  background: none;
  border: 0;
}
.project-open::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
}
.project-open:focus-visible {
  outline: none;
}
.project-card:has(.project-open:focus-visible) {
  outline: 3px solid rgba(var(--ion-rgb), 0.7);
  outline-offset: 3px;
}
.project-card:hover .project-open {
  color: var(--cyan);
}
.project-info p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-info .chips {
  margin-top: auto;
  padding-top: 6px;
}
.project-more {
  padding-top: 8px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--cyan);
}
.project-more::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border: solid currentColor;
  border-width: 2.5px 2.5px 0 0;
  transform: rotate(45deg);
  transition: transform 0.3s var(--spring);
}
.project-card:hover .project-more::after {
  transform: rotate(45deg) translate(4px, -4px);
}
.project-hidden {
  display: none;
}

/* модальное окно проекта */
.project-dialog {
  width: min(900px, calc(100% - 32px));
  max-height: min(92vh, 900px);
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
}
.modal-image {
  aspect-ratio: 16 / 8.4;
  margin: 14px 14px 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel-solid);
}
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.modal-info {
  padding: 28px clamp(20px, 4vw, 36px) 34px;
}
.modal-info h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 900;
}
.modal-info > p {
  max-width: 64ch;
  margin-top: 12px;
  color: var(--dim);
}
.modal-details {
  margin-top: 24px;
}
.modal-details h3 {
  font-size: 17px;
  color: var(--cyan);
}
.modal-features {
  display: grid;
  gap: 8px 32px;
  margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.modal-features li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--star);
}
.modal-features li::before {
  content: "\2726";
  position: absolute;
  top: 0;
  left: 2px;
  font-size: 14px;
  color: var(--ion);
}
.modal-info .chips {
  margin-top: 22px;
}
.modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Комплексный подход ---------- */
.service-ext__head {
  max-width: 78ch;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.service-ext__head .chip {
  margin-bottom: 18px;
}
.service-ext__head h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.service-ext__head p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--dim);
}
.spec-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 3px dashed var(--line-dim);
}
.spec {
  padding: 26px 0 28px;
  border-bottom: 3px dashed var(--line-dim);
}
.spec h3 {
  font-size: 22px;
}
.spec p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--dim);
}
.spec ul {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}
.spec li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
}
.spec li::before {
  content: "\2726";
  position: absolute;
  top: 0.05em;
  left: 2px;
  font-size: 13px;
  color: var(--ion);
}
@media (min-width: 720px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(odd) { padding-right: 32px; }
  .spec:nth-child(even) { padding-left: 32px; border-left: 3px dashed var(--line-dim); }
}
@media (min-width: 1100px) {
  .spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 3px dashed var(--line-dim); }
  .spec { padding: 28px 24px 30px; border-bottom: 0; border-left: 3px dashed var(--line-dim); }
  .spec:first-child { border-left: 0; padding-left: 0; }
  .spec:last-child { padding-right: 0; }
  .spec:nth-child(odd),
  .spec:nth-child(even) { padding-left: 24px; padding-right: 24px; }
  .spec:first-child { padding-left: 0; }
  .spec:last-child { padding-right: 0; }
}
.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
  margin-top: clamp(32px, 5vw, 52px);
  padding: 30px clamp(22px, 3vw, 40px);
  background: linear-gradient(135deg, rgba(205, 180, 246, 0.5), rgba(248, 180, 208, 0.5));
}
html[data-theme="night"] .callout {
  background: linear-gradient(135deg, rgba(110, 80, 190, 0.4), rgba(190, 80, 140, 0.32));
}
.callout p {
  max-width: 60ch;
  font-size: 17px;
  font-weight: 700;
  color: var(--star);
}

/* ---------- Резюме ---------- */
.resume-container {
  display: grid;
  gap: 32px;
}
.resume-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.resume-name {
  font-size: clamp(34px, 5.6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.resume-tagline {
  max-width: 56ch;
  margin-top: 12px;
  font-size: 17px;
  color: var(--dim);
}
.resume-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.resume-badges .badge {
  padding: 2px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--on-pastel);
  background: var(--p-mint);
  border-radius: 999px;
}
.resume-badges .badge:nth-child(2n) { background: var(--p-butter); }
.resume-badges .badge:nth-child(3n) { background: var(--p-sky); }
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.resume-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}
.resume-left,
.resume-right {
  display: grid;
  gap: 24px;
}
.resume-card {
  padding: 28px 28px 30px;
}
.resume-card h3 {
  margin-bottom: 16px;
  font-size: 19px;
  color: var(--cyan);
}
.contact-item + .contact-item,
.education-item + .education-item {
  margin-top: 8px;
}
.contact-icon {
  display: none;
}
.contact-item a {
  font-weight: 700;
  color: var(--star);
}
.contact-item a:hover {
  color: var(--cyan);
}
.edu-place {
  font-weight: 800;
}
.edu-spec {
  font-size: 14.5px;
  color: var(--dim);
}
.skills-list,
.availability {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag,
.avail-badge {
  display: inline-block;
  padding: 2px 13px;
  font-size: 13px;
  font-weight: 800;
  color: var(--on-pastel);
  background: var(--p-lav);
  border-radius: 999px;
}
.skill-tag:nth-child(5n + 2) { background: var(--p-pink); }
.skill-tag:nth-child(5n + 3) { background: var(--p-mint); }
.skill-tag:nth-child(5n + 4) { background: var(--p-butter); }
.skill-tag:nth-child(5n + 5) { background: var(--p-sky); }
.avail-badge {
  background: var(--p-mint);
}
.additional-info {
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--dim);
}
.additional-info strong {
  color: var(--star);
  font-weight: 800;
}
.short-bio {
  color: var(--dim);
}
.projects-list {
  display: grid;
}
.projects-list .project-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px 0;
  border-bottom: 2px dashed var(--line-dim);
}
.projects-list .project-info {
  display: block;
  padding: 0;
}
.projects-list .project-item:first-child {
  padding-top: 0;
}
.projects-list .project-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.project-item h4 {
  font-size: 17px;
}
.project-item p {
  font-size: 14.5px;
  color: var(--dim);
}
.project-item a {
  font-family: var(--f-display);
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
}
.achievements-list {
  display: grid;
  gap: 10px;
}
.achievements-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--dim);
}
.achievements-list li::before {
  content: "\2726";
  position: absolute;
  top: 0.1em;
  left: 2px;
  font-size: 13px;
  color: var(--ion);
}
@media (min-width: 960px) {
  .resume-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
}
.faq-item summary {
  position: relative;
  display: block;
  padding: 22px 76px 22px 26px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary h3 {
  font-size: 18px;
  line-height: 1.3;
}
.faq-item summary:hover h3 {
  color: var(--cyan);
}
/* кружок с плюсом, который поворачивается в минус */
.faq-item summary::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--p-pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.5v11M2.5 8h11' stroke='%233b2f5c' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 3px 0 rgba(200, 90, 150, 0.3);
  transition: transform 0.45s var(--spring), background-color 0.3s;
}
.faq-item[open] summary::before {
  transform: rotate(180deg);
  background-color: var(--p-mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h11' stroke='%233b2f5c' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq-item[open] {
  background: var(--panel-hi);
  border-color: rgba(var(--cyan-rgb), 0.3);
}
.faq-item[open] .faq-answer {
  animation: faq-in 0.45s var(--ease);
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-8px); }
}
.faq-answer {
  padding: 0 26px 26px;
  max-width: 72ch;
  color: var(--dim);
  font-size: 16px;
}
.faq-footer {
  margin-top: 32px;
  color: var(--dim);
}
.faq-footer a {
  font-weight: 800;
}

/* ---------- Адаптив: мелочи ---------- */
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .modal-buttons .btn { width: 100%; }
  .callout .btn { width: 100%; }
}
