/* Главная — композиция и карточка проекта по макету Figma */

main {
  padding-bottom: 2rem;
}

/* —— Hero: несколько карточек (введение / опыт / контакты) —— */
.hero {
  margin-top: 0;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-row--split {
  display: block;
}

@media (min-width: 900px) {
  .hero-row--split {
    display: block;
  }
}

.hero-panel {
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 3.5vw, 32px);
  overflow: visible;
}

.hero-row--split > .hero-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: var(--radius-card);
}

/* Без градиентного «свечения» на карточках hero — спокойнее для глаза */
.hero-panel::before {
  display: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

/* Карточки hero: мягче фон и тень, меньше «стекла» */
.hero-stack .surface-card.hero-panel {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

/* Главная: без обводок у карточек (селектор с :has — только index; ценности/навыки — отдельно с рамкой) */
main.page-main:has(> section.hero) .hero-stack .surface-card.hero-panel,
main.page-main:has(> section.hero) .surface-card,
main.page-main:has(> section.hero) .project-card,
main.page-main:has(> section.hero) .method-step,
main.page-main:has(> section.hero) .contact-banner {
  border: none;
}

/* Главная: заливки как у блоков кейса «Строим» (контейнер #0c0c0c, «карточки» #000000) */
main.page-main:has(> section.hero) .hero-stack .surface-card.hero-panel,
main.page-main:has(> section.hero) .surface-card,
main.page-main:has(> section.hero) .project-card,
main.page-main:has(> section.hero) .contact-banner {
  background: #0c0c0c;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.4);
}

main.page-main:has(> section.hero) .method-step {
  background: #0c0c0c;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.4);
}

/* «Что важно» / «Навыки»: без заливки, только обводка */
main.page-main:has(> section.hero) .two-cards .value-card,
main.page-main:has(> section.hero) .two-cards .skills-card {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
}

.hero-panel--experience {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel--experience .experience-list {
  margin-top: 32px;
}

.hero-panel--intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

/* Сетка: десктоп — аватар слева на двух строках; мобилка — одна строка фото+имя, текст ниже на всю ширину */
.hero-intro-wrap {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 336px;
  grid-template-rows: auto auto;
  gap: clamp(16px, 3vw, 24px);
  align-items: start;
}

.hero-avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 132px;
  height: 132px;
  border-radius: 25px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.hero-intro-head {
  grid-column: 2 / 3;
  grid-row: 1;
  min-width: 0;
}

.hero-intro-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  vertical-align: middle;
}

.hero-intro-body {
  grid-column: 2 / 3;
  grid-row: 2;
  min-width: 0;
}

.hero-experience-inline {
  grid-column: 3;
  grid-row: 1 / span 2;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 24px;
}

.hero-experience-inline .experience-list {
  margin-top: 32px;
}

@media (max-width: 1099px) {
  .hero-intro-wrap {
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 16px 18px;
  }

  .hero-avatar {
    grid-column: 1;
    grid-row: 1;
    width: 108px;
    height: 108px;
    border-radius: 20px;
  }

  .hero-intro-head {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-intro-body {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero-experience-inline {
    grid-column: 1 / -1;
    grid-row: 3;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 0;
    padding-top: 16px;
  }
}

@media (max-width: 820px) {
  .hero-intro-body {
    display: contents;
  }

  .hero-lead {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero-experience-inline {
    grid-row: 3;
  }

  .hero-intro-actions {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    width: 100%;
  }

  .hero-intro-actions .hero-action-btn {
    width: 100%;
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .hero-intro-wrap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    gap: 14px;
  }

  .hero-avatar {
    grid-column: 1;
    grid-row: 1;
    width: clamp(72px, 22vw, 88px);
    height: clamp(72px, 22vw, 88px);
    border-radius: 18px;
  }

  .hero-intro-head {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-intro-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-role,
  p.hero-role {
    white-space: normal;
    text-align: left;
  }

  .hero-lead {
    grid-row: 3;
  }

  .hero-experience-inline {
    grid-row: 4;
    padding-top: 14px;
  }

  .hero-intro-actions {
    grid-row: 5;
  }

  .hero-name-pill {
    font-size: 21px;
  }
}

.hero-intro-head .hero-name-pill {
  margin: 0 0 8px;
}

.hero-name-pill {
  margin: 0 0 10px;
  display: block;
  width: auto;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #fff;
  background: #000000;
  border: none;
}

#hero-name {
  background: unset;
  background-color: unset;
  color: #ffffff;
}

.hero-name-pill--compact {
  margin: 0;
  padding: 5px 12px;
  font-size: var(--font-size-text);
  font-weight: 500;
}

.hero-intro-head .hero-role {
  margin: 0;
}

.hero-role,
p.hero-role {
  margin: 0;
  font-family: "Unbounded", var(--font-heading), var(--font);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  vertical-align: top;
}

.hero-lead {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  line-height: 160%;
  max-width: none;
}

.hero-intro-actions {
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  height: 52px;
  flex: 1 1 0;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: unset;
  background-color: unset;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1;
  gap: 10px;
}

.hero-action-btn > span:not(.hero-action-btn__icon) {
  font-family: "Unbounded", var(--font-heading), var(--font);
  font-weight: 300;
}

.hero-intro-actions .hero-action-btn:nth-child(2) {
  border: none;
  background: #000000;
  color: #ffffff;
}

.hero-action-btn__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.status-text {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-status);
  line-height: 1.35;
}

.hero-meta-line {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.4;
  max-width: none;
}

.hero-meta-line__lead {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-meta-line__rest {
  font-size: 12px;
  color: var(--color-text-muted);
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.hero-panel--contacts .hero-contacts {
  padding: 0;
  margin: 0;
  border: none;
}

.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

a.contact-channel:hover {
  opacity: 1;
}

.contact-channel:hover .contact-channel__value {
  text-decoration: underline;
}

.contact-channel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border);
  color: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.hero-panel--contacts .contact-channel__icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-panel--contacts a.contact-channel:hover .contact-channel__icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.contact-channel__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-channel__label {
  font-size: var(--font-size-text);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}

.contact-channel__value {
  font-size: var(--font-size-text);
  font-weight: 400;
  color: var(--color-contact-accent);
  line-height: 1.3;
  word-break: break-word;
}

.btn-resume {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
  min-height: 36px;
  padding: 0 10px 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

a.btn-resume:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.btn-resume__label {
  text-align: left;
}

.btn-resume__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
}

.btn-resume__icon svg {
  width: 13px;
  height: 13px;
}

.hero-panel--contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px 16px;
  padding: clamp(16px, 2.5vw, 22px);
  border-radius: var(--radius-card);
  border: none;
  background: transparent;
  overflow: hidden;
}

.hero-panel--contacts .hero-contacts {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-panel--contacts .hero-panel__actions {
  margin: 0;
  flex: 0 0 auto;
}

.hero-panel--contacts .btn-resume {
  width: auto;
}

@media (max-width: 639px) {
  .hero-panel--contacts {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }

  .hero-contacts {
    gap: 10px 14px;
  }

  .hero-panel--contacts .hero-panel__actions {
    align-self: stretch;
  }

  .hero-panel--contacts .btn-resume {
    max-width: 100%;
    justify-content: center;
  }
}

.experience-block__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-transform: none;
  text-align: left;
}

.experience-block__tenure {
  display: inline-block;
  margin-left: 0.35em;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-text-muted);
}

.experience-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.experience-list > li {
  padding: 0;
  border: none;
}

.experience-list > li + li {
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
}

.experience-entry {
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
}

.experience-entry__line {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
}

.experience-entry__org,
span.experience-entry__org {
  font-family: "Unbounded", var(--font-heading), var(--font);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.hero-experience-inline .experience-list > li:nth-child(2) .experience-entry__org {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-experience-inline .experience-entry__org,
.hero-experience-inline .experience-entry__role {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.experience-entry__dash {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.experience-entry__role {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}

.experience-entry__dates {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.35;
}

/* —— Широкая оранжевая CTA — промежуток после hero: 32/32/24 —— */
.cta-wide {
  margin-top: 20px;
  display: block;
  width: 100%;
}

a.cta-wide {
  font-family: "Unbounded", var(--font-heading), var(--font);
  font-weight: 400;
  font-size: 22px;
}

.cta-wide__inner {
  display: flex;
  font-family: var(--font-heading);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: clamp(18px, 3vw, 22px) clamp(22px, 4vw, 32px);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.cta-wide__inner:hover {
  background: rgba(0, 0, 0, 0.55);
}

.cta-wide .circle-black {
  width: 62px;
  height: 62px;
  min-width: 62px;
  background: #c54934;
}

.cta-wide__inner:active {
  transform: scale(0.995);
}

/* —— Секция «О себе» — промежуток от CTA: 32/32/24 —— */
.about-section {
  margin-top: 28px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  box-shadow: none;
}

.section-block--padded {
  padding: 32px;
}

.section-block__title {
  margin: 0 0 24px;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
}

/* «О себе» — как блок «Что для меня важно»: заголовок и текст списка */
.about-section .section-block__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
}

.section-block__text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-body);
  max-width: none;
}

.about-section .section-block__text {
  max-width: none;
  margin: 0;
}

.contact-banner {
  margin-top: var(--section-outer-gap);
  padding: clamp(22px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--block-gap-inner);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.contact-banner__text {
  margin: 0;
  flex: 1 1 260px;
  font-size: var(--font-size-text);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-text-body);
  max-width: 42ch;
}

.contact-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.contact-banner__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: var(--font-size-text);
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.contact-banner__btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.contact-banner__btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-banner__btn:hover::after {
  opacity: 1;
  animation: skill-pill-shine 0.9s var(--ease) forwards;
}

.contact-banner__label {
  position: relative;
  z-index: 1;
}

.contact-banner__btn--accent {
  border-color: rgba(200, 85, 61, 0.48);
  background: rgba(200, 85, 61, 0.1);
}

.contact-banner__btn--accent:hover {
  border-color: rgba(200, 85, 61, 0.58);
  background: rgba(200, 85, 61, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .contact-banner__btn::after {
    display: none;
  }

  .contact-banner__btn:hover {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* —— Метод работы — от two-cards: 100/60/40 —— */
.method-section {
  margin-top: var(--layout-gap-twocards-method);
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
}

.method-section__title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
}

.method-section__lead {
  margin: 0 0 calc(var(--block-gap-inner) * 1.75) 0;
  margin-bottom: var(--layout-gap-projects-heading-grid);
  width: auto;
  font-size: var(--font-size-text);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-body);
  max-width: 70ch;
  text-align: left;
}

.method-grid {
  display: grid;
  gap: var(--block-gap-inner);
  grid-template-columns: 1fr;
  text-align: left;
}

@media (min-width: 640px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.method-step {
  margin: 0;
  padding: var(--block-gap-inner);
  border-radius: var(--radius-ui);
  border: 1px solid var(--color-border);
  background: rgba(8, 8, 8, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.method-step__name {
  margin: 0 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.method-step__emoji {
  flex-shrink: 0;
  font-size: 1.15em;
  line-height: 1.2;
}

.method-step__text {
  margin: 0;
  font-size: var(--font-size-text);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-body);
}

/* —— Две колонки: ценности + навыки — от «О себе»: 32/32/24 —— */
.two-cards {
  margin-top: var(--layout-gap-about-twocards);
  display: grid;
  gap: var(--block-gap-inner);
}

@media (min-width: 900px) {
  .two-cards {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.two-cards > .surface-card {
  height: 100%;
}

/* Только обводка, без заливки карточки (как рамка на тёмном фоне) */
.two-cards .value-card,
.two-cards .skills-card {
  background: rgba(0, 0, 0, 0.55);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  color: #ffffff;
}

.value-card {
  padding: clamp(22px, 4vw, 32px);
  border-radius: 15px;
}

.value-card__title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 400;
  text-align: left;
  color: #ffffff;
}

.value-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  max-width: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
}

.value-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value-list li + li {
  margin-top: 16px;
}

.value-list__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 178, 70, 0.11);
  color: #ffffff;
  font-family: "Unbounded", var(--font-heading), var(--font);
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}

.value-list__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.value-list__body strong {
  font-family: "Unbounded", var(--font-heading), var(--font);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.value-list__body span {
  font-size: 15px;
  font-weight: 300;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.53);
}

.skills-card {
  padding: clamp(22px, 4vw, 32px);
}

.skills-card__title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 400;
  text-align: left;
  color: #ffffff;
}

.skills-card .skill-pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.skills-card .skills-grid {
  justify-content: flex-start;
}

.about-section .two-cards {
  margin-top: 32px;
}

.two-cards {
  gap: 32px;
}

.two-cards .cta-wide {
  grid-column: 1 / -1;
  margin-top: 0;
}

@media (max-width: 899px) {
  .about-section.section-block--padded {
    padding: 24px 16px;
  }

  .about-section .two-cards {
    margin-top: 24px;
  }

  .two-cards {
    gap: 20px;
  }

  .about-section .two-cards > .surface-card,
  .about-section .two-cards > .cta-wide {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .about-section .two-cards .cta-wide__inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .value-card,
  .skills-card {
    padding: 24px;
  }

  .value-card__title,
  .skills-card__title {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 500;
  }

  .value-list__body strong {
    font-size: 15px;
  }

  .value-list__body span {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 560px) {
  .about-section .section-block__title {
    font-size: 21px;
  }

  .method-section__title {
    font-size: 21px;
  }

  .method-section .method-step {
    padding: 16px;
  }

  .method-step__name {
    font-size: 17px;
    margin-bottom: 16px;
  }

  /* Как у #method-title: тот же размер, без перебития глобальным #projects-title */
  #projects-title.projects-heading,
  .projects-heading {
    font-size: 21px;
  }

  .value-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .value-list__idx {
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
    border-radius: 7px;
    font-size: 16px;
  }

  .value-card,
  .skills-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .value-list__body strong {
    font-size: 14px;
  }

  .value-list__body span {
    font-size: 13px;
  }

  .cta-wide .circle-black {
    display: none;
  }

  .about-section .two-cards .cta-wide__inner {
    padding: 16px;
    font-size: 16px;
  }
}

/* Превью карточек: на десктопе выше базы 16/10; на мобиле ещё выше */
@media (max-width: 767px) {
  .project-card__visual {
    aspect-ratio: 16 / 15;
  }
}

/* —— Проекты — от method-section: 100/60/40 —— */
.projects-section {
  margin-top: var(--layout-gap-method-projects);
}

/* Заголовок секции — до сетки карточек: 40 / 60 / 100 (mobile / tablet / desktop) */
.projects-heading {
  margin: 0 0 var(--layout-gap-projects-heading-grid);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  text-align: left;
  letter-spacing: -0.02em;
}

.projects-grid {
  display: grid;
  gap: var(--block-gap-inner);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 700px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Карточка проекта: одинаковая высота в ряду — flex + распорка перед превью */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-ui);
  overflow: hidden;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.project-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px clamp(20px, 4vw, 32px) 0;
}

.project-card__grow {
  flex: 1 1 0;
  min-height: 24px;
  width: 100%;
}

.project-card__title {
  margin: 12px 0 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (min-width: 561px) {
  #projects-title {
    font-size: 28px;
    text-align: left;
  }
}

.project-card__desc {
  margin: 0;
  font-size: var(--font-size-text);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-body);
}

.project-card__visual {
  position: relative;
  flex-shrink: 0;
  margin-top: 0;
  box-sizing: border-box;
  border-radius: var(--radius-visual);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--visual-bg, #1a1a14);
  height: 274px;
  min-height: 274px;
  max-height: 274px;
}

/* Превью карточек по основе из stroim-ux-solve-card__figure */
.project-card__visual-figure {
  margin: 0;
  padding: 0;
  height: 100%;
  max-height: 100%;
  border-radius: 15px;
  overflow: hidden;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.project-card__visual-img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  flex: 0 0 auto;
  transform: translateY(28px);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 767px) {
  .project-card__visual-img {
    transform: translateY(18px) scale(0.86);
    transform-origin: center bottom;
  }
}

/* Alivebe — тёплая бежевая подложка (как на макете карточки) */
.project-card--alive .project-card__visual {
  --visual-bg: transparent;
  background: rgba(233, 191, 139, 1);
}

/* Строим — тёмно-синяя подложка (как на макете карточки) */
.project-card--stroim .project-card__visual {
  --visual-bg: transparent;
  background: #1a2a42;
}

/* Полоса «Изучить проект»: эффект только при hover на полосу; тёмно-оранжевый glass */
.project-card__footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  margin: 24px clamp(20px, 4vw, 32px) 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-project-cta);
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  isolation: isolate;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.project-card__footer::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 32%,
    rgba(255, 77, 46, 0.14) 44%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(255, 77, 46, 0.1) 56%,
    transparent 68%,
    transparent 100%
  );
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.project-card__footer .circle-arrow {
  position: relative;
  z-index: 2;
  transition: box-shadow 0.3s var(--ease);
}

.project-card__footer:not(.project-card__footer--soon):hover {
  border-color: rgba(255, 77, 46, 0.28);
  background: rgba(18, 10, 8, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 77, 46, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.project-card__footer:not(.project-card__footer--soon):hover::after {
  opacity: 1;
  animation: project-footer-shine 0.9s var(--ease) forwards;
}

.project-card__footer:not(.project-card__footer--soon):hover .circle-arrow--project {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .project-card__footer::after {
    display: none;
  }

  .project-card__footer:not(.project-card__footer--soon):hover {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.project-card__cta-text,
span.project-card__cta-text {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

a.project-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.project-card:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 4px;
}

.project-card__footer--soon .project-card__cta-text {
  color: var(--color-text-soft);
  font-weight: 500;
}

.project-card__footer--soon::after {
  display: none;
}

.project-card__footer--soon .circle-arrow {
  opacity: 0.35;
  pointer-events: none;
}

.project-card--placeholder-a .project-card__visual {
  --visual-bg: #151a17;
}

.project-card--placeholder-b .project-card__visual {
  --visual-bg: #1a1520;
}

@media (prefers-reduced-transparency: reduce) {
  .two-cards .value-card,
  .two-cards .skills-card {
    background: transparent;
  }
}

@keyframes project-footer-shine {
  from {
    transform: translateX(-130%);
  }

  to {
    transform: translateX(130%);
  }
}
