@charset "UTF-8";

/* Папка проектов: бумага и ярлыки в общей палитре сада. */
.projects-view {
  max-width: 1600px;
  padding: 28px 5.5% 60px;
}
.projects-view .back-link { margin-bottom: 24px; }
.projects-view .section-heading { margin-bottom: 32px; }
.projects-view .section-heading .eyebrow { display: none; }
.projects-view .section-heading h1 { font-size: clamp(42px, 4.6vw, 68px); letter-spacing: -.035em; }
.projects-view .section-heading > p:last-child { color: #78616b; }
.portfolio-project-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  padding-top: 6px;
  scrollbar-width: thin;
  scrollbar-color: #b87991 #f1dde2;
  overscroll-behavior-x: contain;
}
.portfolio-project-tabs::-webkit-scrollbar { height: 5px; }
.portfolio-project-tabs::-webkit-scrollbar-thumb { background: #b87991; border-radius: 3px; }
.portfolio-project-tabs::-webkit-scrollbar-track { background: #f1dde2; }
.portfolio-folder {
  position: relative;
  padding: 14px;
  background: #e9cbd4;
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 18px 36px #77536515;
}
.portfolio-tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 170px;
  min-height: 48px;
  padding: 13px 24px 11px;
  border: 0;
  border-radius: 10px 20px 0 0;
  background: #f1dde2;
  color: #67434f;
  font: inherit;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.portfolio-tab[aria-selected="true"] { min-height: 54px; background: #e9cbd4; }
.portfolio-tab[aria-selected="false"]:hover { background: #ecd2dc; color: #833c59; }
.portfolio-tab:focus-visible { outline: 2px solid #994663; outline-offset: -6px; }
.portfolio-sheet:focus-visible { outline: 2px solid #994663; outline-offset: -5px; }
.portfolio-sheet {
  position: relative;
  padding: clamp(24px, 3.2vw, 50px);
  background: #fffcf8 url('assets/images/paper-fibers.svg');
  color: var(--ink);
}
.portfolio-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #78616b;
}
.portfolio-stage { display: inline-flex; align-items: center; gap: 8px; color: #58644c; }
.portfolio-stage::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #78866a; }
.portfolio-overview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4.2vw, 68px); align-items: start; }
.portfolio-story h2 { font: 400 clamp(38px, 4.2vw, 58px)/1.1 var(--serif); letter-spacing: -.03em; margin-bottom: 18px; }
.portfolio-summary { max-width: 64ch; font-size: 15px; line-height: 1.85; text-wrap: pretty; }
.portfolio-role { margin-top: 16px; font-size: 12px; color: #78616b; }
.portfolio-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 23px; margin-top: 22px; }
.portfolio-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 12px; }
.portfolio-links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.portfolio-primary { background: #a84f70; color: #fffaf8; padding: 11px 18px; border-radius: 6px; transition: background .2s; }
.portfolio-primary:hover { background: #8e3d5b; }
.portfolio-secondary { color: #994663; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #cfa8b5; }
.portfolio-secondary:hover { text-decoration-color: currentColor; }
.portfolio-flow { padding: 25px 26px; background: #f6e9eb; }
.portfolio-flow h3 { font: 26px/1.25 var(--serif); margin-bottom: 24px; }
.portfolio-flow ol { margin: 0; padding: 0; list-style: none; }
.portfolio-flow li { position: relative; padding: 0 0 24px 23px; border-left: 1px solid #c8a0ad; margin-left: 3px; }
.portfolio-flow li:last-child { padding-bottom: 0; border-left-color: transparent; }
.portfolio-flow li::before { content: ''; position: absolute; left: -4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #ab6c82; }
.portfolio-flow h4 { margin: 0 0 5px; font: 600 13px/1.5 'Segoe UI', Arial, sans-serif; }
.portfolio-flow p { font-size: 13px; line-height: 1.7; color: #78616b; }
.portfolio-delivery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 35px; padding-top: 26px; border-top: 1px solid var(--line); }
.portfolio-delivery h3 { font: 24px/1.3 var(--serif); margin-bottom: 8px; }
.portfolio-delivery p { max-width: 44ch; font-size: 13px; line-height: 1.75; color: #78616b; }
.portfolio-motivation { max-width: 64ch; margin-top: 34px; font: italic 20px/1.65 var(--serif); color: #78616b; }
.portfolio-details { margin-top: 26px; }
.portfolio-details details { border-bottom: 1px solid var(--line); }
.portfolio-details summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 15px 0; cursor: pointer; list-style: none; font-size: 14px; }
.portfolio-details summary::-webkit-details-marker { display: none; }
.portfolio-details summary:hover { color: #994663; }
.portfolio-details summary:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
.portfolio-details summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; transition: transform .2s; }
.portfolio-details [open] summary svg { transform: rotate(180deg); }
.portfolio-details details > p { max-width: 70ch; padding: 0 28px 24px 0; font-size: 14px; line-height: 1.85; }
.portfolio-stage-note { margin-top: 24px; font-size: 11px; color: #78616b; }
.projects-view .section-nav { margin-top: 42px; }

@media (max-width: 900px) {
  .portfolio-overview { grid-template-columns: 1fr; gap: 30px; }
  .portfolio-summary { max-width: 70ch; }
  .portfolio-flow ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .portfolio-flow li { padding-bottom: 0; border-left-color: #c8a0ad; }
  .portfolio-flow li:last-child { border-left-color: #c8a0ad; }
}
@media (max-width: 600px) {
  .projects-view { padding: 22px 7% 40px; }
  .projects-view .section-heading { margin-bottom: 36px; }
  .projects-view .section-heading h1 { font-size: clamp(36px, 9vw, 46px); }
  .portfolio-folder { padding: 8px; }
  .portfolio-sheet { padding: 22px 18px; }
  .portfolio-tab { min-width: 146px; padding: 13px 18px 11px; font-size: 12px; }
  .portfolio-meta { font-size: 11px; margin-bottom: 22px; }
  .portfolio-story h2 { font-size: 38px; }
  .portfolio-summary { font-size: 14px; line-height: 1.8; }
  .portfolio-links { gap: 8px 18px; }
  .portfolio-flow { padding: 23px 20px; }
  .portfolio-flow h3 { font-size: 24px; }
  .portfolio-flow ol { display: block; }
  .portfolio-flow li { padding-bottom: 22px; }
  .portfolio-flow li:last-child { padding-bottom: 0; border-left-color: transparent; }
  .portfolio-delivery { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .portfolio-motivation { font-size: 19px; }
  .portfolio-details details > p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-tab, .portfolio-links a, .portfolio-details summary svg { transition: none; }
}
