/* The second pass keeps the approved DimaExcel typeface and the white canvas. */
:root { --radius: 11px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fffffff5; backdrop-filter: blur(12px); }
.scroll-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: #00bd50; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.nav-login-mobile { display: none; }
.nav .nav-login { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 11px 15px; border: 1px solid #dcdedc; border-radius: 999px; background: #f4f5f4; color: #222; white-space: nowrap; }
.nav .nav-login:hover { background: #e9eeea; text-decoration: none; }
html { scroll-padding-top: 94px; }

.hero h1 { max-width: 780px; font-size: clamp(48px, 5.55vw, 82px); line-height: 1.03; letter-spacing: -.055em; }
.hero-name-line { display: block; width: max-content; max-width: none; white-space: nowrap; font-size: clamp(30px, 3.7vw, 54px); line-height: 1.17; }
.hero .lead { max-width: 690px; font-size: clamp(18px, 1.38vw, 21px); line-height: 1.52; }
.hero { padding-bottom: 68px; }
.portrait-shell { border-radius: 13px; }
.photo-caption { border-radius: 9px; }

.projects-section { padding-top: 50px; }
.project-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 17px; }
.project-card { grid-column: span 6; min-width: 0; min-height: 0; padding: 29px; border-radius: 11px; border: 1px solid #dedfe0; background: #fff; color: var(--ink); cursor: default; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.project-card:hover { border-color: #cbd0cc; transform: translateY(-3px); box-shadow: 0 15px 32px rgba(10, 16, 14, .07); }
.project-card h3 { margin: 16px 0 11px; font-size: clamp(29px, 2.35vw, 38px); line-height: 1.06; letter-spacing: -.045em; font-weight: 700; }
.project-card p { max-width: 610px; margin: 0 0 21px; color: #555b60; font-size: 15px; line-height: 1.52; }
.project-card .project-tag { color: #087d3a; font-size: 11px; letter-spacing: .1em; font-weight: 700; }
.project-card-wide { grid-column: span 7; }
.club-card, .series-card, .architect-card { grid-column: span 5; }
.cup-card { grid-column: span 7; }
.project-card .accent { color: #00bd50; }
.project-link { align-self: flex-start; display: inline-flex; align-items: center; justify-content: space-between; gap: 27px; margin-top: auto; padding: 11px 15px; border: 1px solid #e3e5e4; border-radius: 7px; background: #eef0ef; color: #222; font-size: 13px; line-height: 1.2; font-weight: 700; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.project-link:hover { background: #e2e8e3; border-color: #cad3cc; transform: translateY(-2px); }
.project-link span:last-child { font-size: 18px; line-height: 1; }

.academy-visual { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 15px; align-items: center; width: 100%; min-height: 178px; margin: auto 0 21px; padding: 16px; border: 1px solid #e2e8e3; border-radius: 8px; background: #f5f8f5; }
.academy-emblem { position: relative; display: grid; place-items: center; width: 106px; height: 106px; border-radius: 9px; background: #111c16; color: #fff; font-size: 36px; font-weight: 700; letter-spacing: -.09em; transform: rotate(-5deg); transition: transform .3s ease, background .3s ease; }
.academy-emblem span { position: relative; z-index: 1; }
.academy-emblem i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #00bd50; transition: transform .3s ease; }
.academy-emblem i:nth-of-type(1) { top: 9px; left: 12px; }
.academy-emblem i:nth-of-type(2) { bottom: 12px; right: 11px; }
.academy-emblem i:nth-of-type(3) { top: 13px; right: 13px; width: 5px; height: 5px; }
.academy-card:hover .academy-emblem, .academy-emblem:hover { transform: rotate(2deg) scale(1.06); background: #173626; }
.academy-card:hover .academy-emblem i:nth-of-type(1) { transform: translate(-4px, -6px); }
.academy-card:hover .academy-emblem i:nth-of-type(2) { transform: translate(6px, 5px); }
.academy-card:hover .academy-emblem i:nth-of-type(3) { transform: translate(5px, -4px); }
.course-stack { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.course-stack li { display: flex; align-items: baseline; gap: 11px; padding: 5px 8px; border-radius: 4px; background: #fff; border: 1px solid #e8ece8; transform: translateX(0); transition: transform .2s ease, border-color .2s ease; }
.course-stack li:hover { transform: translateX(4px); border-color: #a9cbb3; }
.course-stack b { min-width: 94px; color: #1b1b1b; font-size: 12px; }
.course-stack span { color: #676e69; font-size: 12px; }

.chat-visual { width: 100%; display: grid; gap: 10px; margin: auto 0 21px; padding: 12px 0 0; }
.chat-line { display: flex; align-items: center; gap: 8px; width: 88%; padding: 10px; border: 1px solid #e2e6e4; border-radius: 8px; background: #f4f5f4; color: #333; font-size: 12px; line-height: 1.35; transition: transform .25s ease; }
.chat-line.answer { justify-self: end; background: #e8f8ec; border-color: #c9e9d1; }
.club-card:hover .chat-line.question { transform: translateX(-3px); }
.club-card:hover .chat-line.answer { transform: translateX(3px); }
.chat-avatar { display: grid; place-items: center; flex: none; width: 25px; height: 25px; border-radius: 50%; background: #dce1de; font-weight: 700; }
.answer .chat-avatar { background: #00bd50; color: #fff; }
.club-price { justify-self: end; margin-top: 1px; color: #0b7733; font-size: 19px; font-weight: 700; }
.club-price small { font-size: 11px; font-weight: 400; color: #6b726e; }

.playlist-visual { width: 100%; margin: auto 0 21px; padding: 11px; border: 1px solid #e1e2e2; border-radius: 8px; background: #f7f7f7; }
.playlist-head { display: flex; align-items: center; gap: 8px; padding: 7px 5px 11px; font-size: 13px; font-weight: 700; }
.playlist-head small { margin-left: auto; color: #737373; font-size: 11px; font-weight: 400; }
.play-symbol { display: grid; place-items: center; width: 24px; height: 19px; border-radius: 4px; background: #e33730; color: white; font-size: 11px; }
.episode { display: flex; align-items: center; gap: 9px; padding: 6px 5px; border-radius: 5px; color: #333; font-size: 12px; transition: background .2s ease, transform .2s ease; }
.episode:hover, .series-card:hover .episode:first-of-type { background: #ebeeec; transform: translateX(2px); }
.episode-number { width: 17px; color: #969a98; font-size: 10px; }
.episode-thumb { position: relative; display: grid; place-items: center; flex: none; width: 58px; height: 35px; border-radius: 3px; background: #173526; color: #fff; font-size: 9px; overflow: hidden; }
.episode-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.66); }
.episode-thumb b { position: relative; font-weight: 700; }
.episode small { margin-left: auto; color: #8b908d; font-size: 10px; white-space: nowrap; }

.cup-visual { position: relative; display: grid; place-items: center; width: 100%; min-height: 222px; margin: auto 0 21px; border: 1px solid #e2e6e3; border-radius: 8px; background: #f3f6f3; overflow: hidden; }
.cup-grid { position: absolute; inset: 0; background-image: linear-gradient(#e3e9e3 1px, transparent 1px), linear-gradient(90deg, #e3e9e3 1px, transparent 1px); background-size: 31px 31px; opacity: .8; }
.cup-visual svg { position: relative; width: 175px; height: 175px; filter: drop-shadow(9px 13px 0 #c7e8cf); transform: rotate(-6deg); transition: transform .3s ease; }
.cup-card:hover svg { transform: rotate(2deg) scale(1.08); }
.cup-stamp { position: absolute; right: 24px; bottom: 20px; padding: 6px 9px; background: #111c16; color: #fff; font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: .08em; transform: rotate(6deg); }

.conference-card { min-height: 505px; }
.conference-visual { display: grid; gap: 14px; margin: auto 0 20px; padding: 15px; border: 1px solid #e3e8e4; border-radius: 8px; background: #f8faf8; }
.conference-years { display: flex; flex-wrap: wrap; gap: 7px; }
.year-chip { padding: 7px 10px; border: 1px solid #d4dbd5; border-radius: 5px; background: #fff; color: #26362a; font-size: 12px; font-weight: 700; transition: background .2s ease, color .2s ease; }
.year-chip:hover, .year-chip:focus-visible, .year-chip[aria-pressed="true"] { border-color: #0a8a3b; background: #e5f8e9; color: #087833; }
.year-detail { min-height: 19px; margin: 0 !important; font-size: 12px !important; color: #57635a !important; }
.speaker-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.speaker { display: grid; justify-items: center; align-content: start; gap: 7px; flex: 1; min-width: 0; padding: 0 2px; border: 0; background: none; color: #303a32; font-size: 11px; line-height: 1.12; text-align: center; cursor: pointer; }
.speaker-photo { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border: 2px solid #fff; border-radius: 50%; background: #d9e6dc; box-shadow: 0 0 0 1px #cbd8ce; color: #1c6d39; font-size: 16px; font-weight: 700; overflow: hidden; filter: grayscale(1); animation: speaker-float 4s ease-in-out infinite; transition: filter .25s ease, transform .25s ease, box-shadow .25s ease; }
.speaker:nth-child(2) .speaker-photo { animation-delay: -.9s; }
.speaker:nth-child(3) .speaker-photo { animation-delay: -1.8s; }
.speaker:nth-child(4) .speaker-photo { animation-delay: -2.6s; }
.speaker-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.speaker:hover .speaker-photo, .speaker:focus-visible .speaker-photo, .speaker[aria-pressed="true"] .speaker-photo { filter: grayscale(0); transform: translateY(-4px) scale(1.06); box-shadow: 0 0 0 2px #22ad55, 0 8px 12px #17392322; animation-play-state: paused; }
.speaker-detail { min-height: 36px; margin: 0 !important; padding-top: 9px; border-top: 1px solid #e1e8e2; color: #3e4c41 !important; font-size: 12px !important; }
@keyframes speaker-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

.architect-card { background: #00b94c; border-color: #00b94c; color: #fff; }
.architect-card:hover { border-color: #079c45; background: #00b94c; }
.architect-card .project-tag, .architect-card p { color: #fff; }
.architect-card h3 { font-size: clamp(39px, 3.5vw, 53px); }
.architect-visual { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 22px; padding-top: 18px; }
.architect-visual > span { padding: 5px 8px; border: 1px solid #ffffff9c; border-radius: 3px; font-size: 10px; letter-spacing: .06em; }
.architect-flow { width: 100%; margin-top: 10px; font-size: 42px; line-height: 1; letter-spacing: -.1em; }
.architect-flow i { display: inline-block; width: 35px; height: 2px; margin: 0 9px 11px; background: #fff; }
.architect-card .project-link { border-color: #fff; background: #fff; color: #0c5c2b; }
.architect-card .project-link:hover { background: #e9ffee; }

.mini-visual, .materials-visual { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: auto 0 22px; min-height: 102px; padding: 14px; border: 1px solid #e3e7e3; border-radius: 8px; background: #f6f8f6; }
.mini-visual span { padding: 8px 10px; border: 1px solid #c8d9cb; border-radius: 4px; background: #fff; color: #146b35; font-size: 12px; font-weight: 700; transform: rotate(-3deg); transition: transform .2s ease; }
.mini-visual span:nth-child(2) { transform: rotate(2deg); }
.mini-visual span:nth-child(3) { transform: rotate(-1deg); }
.mini-card:hover .mini-visual span { transform: rotate(0) translateY(-3px); }
.materials-visual span { min-width: 39px; padding: 8px 9px; border: 1px solid #b8bdbc; border-bottom-width: 3px; border-radius: 5px; background: #fff; color: #303834; font-size: 12px; font-weight: 700; text-align: center; }
.materials-visual b { color: #89a394; font-size: 13px; }
.materials-visual i { width: 100%; margin-top: 4px; color: #0a7835; font-size: 11px; font-style: normal; font-weight: 700; }

@media (max-width: 1040px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card, .project-card-wide, .club-card, .series-card, .cup-card, .architect-card { grid-column: auto; }
  .conference-card { grid-column: span 2; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(45px, 10.4vw, 64px); }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .project-card, .conference-card { grid-column: 1; padding: 22px; }
  .projects-section { padding-top: 28px; }
  .conference-card { min-height: 0; }
  .speaker-photo { width: 56px; height: 56px; }
}
@media (max-width: 420px) {
  .academy-visual { grid-template-columns: 1fr; }
  .academy-emblem { width: 85px; height: 85px; }
  .speaker { font-size: 9px; }
  .speaker-photo { width: 49px; height: 49px; font-size: 12px; }
  .episode small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .speaker-photo { animation: none; }
  .project-card, .project-link, .academy-emblem, .academy-emblem i, .cup-visual svg { transition: none; }
}

/* Layout comparison: the same content in a mixed, two-column or three-column grid. */
.layout-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; color: #647069; font-size: 12px; }
.mobile-project-title { display: none; }
.layout-switch span { margin-right: 7px; }
.layout-switch button { padding: 8px 11px; border: 1px solid #dbe1dc; border-radius: 6px; background: #f5f7f5; color: #344039; font-size: 12px; font-weight: 600; }
.layout-switch button:hover, .layout-switch button[aria-pressed="true"] { border-color: #8ec5a1; background: #e5f7e9; color: #076c31; }
.project-grid[data-layout="mixed"] .academy-card { grid-column: span 5; }
.project-grid[data-layout="mixed"] .corporate-card { grid-column: span 7; }
.project-grid[data-layout="mixed"] .club-card, .project-grid[data-layout="mixed"] .series-card, .project-grid[data-layout="mixed"] .cup-card { grid-column: span 4; }
.project-grid[data-layout="mixed"] .conference-card { grid-column: span 8; }
.project-grid[data-layout="mixed"] .architect-card { grid-column: span 4; }
.project-grid[data-layout="mixed"] .mini-card { grid-column: span 4; }
.project-grid[data-layout="mixed"] .materials-card { grid-column: span 8; }
.project-grid[data-layout="two"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-grid[data-layout="three"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-grid[data-layout="two"] .project-card, .project-grid[data-layout="three"] .project-card { grid-column: auto; }
.project-grid[data-layout="two"] .project-card:last-child { grid-column: span 2; }
.project-grid[data-layout="three"] .project-card { padding: 23px; }
.project-grid[data-layout="three"] .project-card h3 { font-size: clamp(26px, 2vw, 32px); }
.project-grid[data-layout="three"] .architect-card h3 { font-size: 36px; }
.project-grid[data-layout="three"] .academy-visual { grid-template-columns: 1fr; }
.project-grid[data-layout="three"] .academy-emblem { width: 70px; height: 70px; font-size: 26px; }
.project-grid[data-layout="three"] .course-stack li { flex-wrap: wrap; gap: 0 5px; }
.project-grid[data-layout="three"] .course-stack b { min-width: 0; }

.corporate-visual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: auto 0 21px; }
.corporate-visual img { width: 100%; height: 66px; padding: 10px; border: 1px solid #e4e7e4; border-radius: 6px; background: #fff; object-fit: contain; filter: grayscale(1); transition: filter .25s ease, transform .25s ease; }
.corporate-visual img:hover { filter: grayscale(0); transform: translateY(-3px); }
.project-grid[data-layout="three"] .corporate-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.club-questions { display: grid; gap: 5px; margin: auto 0 8px; }
.club-questions details { border: 1px solid #e4e9e4; border-radius: 6px; background: #f7f9f7; }
.club-questions summary { padding: 8px 10px; color: #2e3931; font-size: 12px; line-height: 1.3; cursor: pointer; }
.club-questions summary:hover { color: #078239; }
.club-questions details[open] { border-color: #baddc3; background: #edf9ef; }
.club-questions details p { margin: 0 !important; padding: 0 11px 10px 25px; color: #42554a !important; font-size: 12px !important; line-height: 1.35 !important; }
.club-price { margin: 0 0 18px; }

.cup-visual { min-height: 235px; margin: auto 0 13px; background: #e9ece8; }
.cup-visual img { display: block; width: 100%; height: 235px; object-fit: cover; object-position: center 36%; }
.cup-stamp { z-index: 1; }
.cup-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; }
.cup-facts span { padding: 7px 9px; border: 1px solid #dae6dd; border-radius: 5px; background: #f1f7f2; color: #425149; font-size: 11px; line-height: 1.3; }
.cup-facts b { color: #087934; font-size: 15px; }
.project-card .cup-next { margin-bottom: 19px; font-size: 12px; }

.conference-card { min-height: 0; }
.conference-visual { margin: auto 0 19px; }
.speaker-gallery { display: flex; align-items: end; flex-wrap: wrap; gap: 13px 10px; max-height: 340px; padding: 4px 2px 9px; overflow-y: auto; scrollbar-color: #b4cdb9 #f4f7f4; }
.speaker-gallery .speaker { display: grid; flex: 0 0 75px; justify-items: center; gap: 6px; max-width: 75px; padding: 2px; }
.speaker-gallery .speaker-photo { width: var(--speaker-size, 56px); height: var(--speaker-size, 56px); max-width: 73px; max-height: 73px; animation: speaker-float 4s ease-in-out infinite; }
.speaker-gallery .speaker:nth-child(3n) .speaker-photo { animation-delay: -1.5s; }
.speaker-gallery .speaker:nth-child(4n) .speaker-photo { animation-delay: -2.7s; }
.speaker-gallery .speaker-name { max-width: 75px; overflow-wrap: anywhere; font-size: 10px; line-height: 1.12; }
.speaker-detail { min-height: 31px; }

.architect-visual { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.05fr); gap: 8px; align-items: center; margin: auto 0 24px; padding: 15px 0 0; }
.architect-inputs { display: grid; gap: 5px; }
.architect-inputs span { padding: 7px; border: 1px solid #ffffffab; border-radius: 3px; font-size: 10px; line-height: 1.15; }
.architect-arrow { font-size: 24px; }
.architect-output { display: grid; gap: 6px; min-height: 100px; padding: 10px; border: 1px solid #fff; border-radius: 4px; background: #f6fff8; color: #075529; }
.architect-output strong { font-size: 15px; }
.architect-output small { font-size: 9px; }
.architect-bars { display: flex; align-items: end; gap: 4px; height: 39px; }
.architect-bars em { width: 18%; background: #00ad48; border-radius: 2px 2px 0 0; }
.architect-bars em:nth-child(1) { height: 35%; }.architect-bars em:nth-child(2) { height: 68%; }.architect-bars em:nth-child(3) { height: 48%; }.architect-bars em:nth-child(4) { height: 91%; }

.mini-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0; margin: auto 0 19px; }
.mini-list li { display: grid; gap: 3px; padding: 9px; border: 1px solid #e2e8e2; border-radius: 5px; background: #f8faf8; }
.mini-list b { color: #087a37; font-size: 12px; }.mini-list span { color: #5f6b62; font-size: 11px; line-height: 1.25; }
.project-grid[data-layout="three"] .mini-list { grid-template-columns: 1fr; }

@media (max-width: 1040px) {
  .project-grid[data-layout="mixed"], .project-grid[data-layout="two"], .project-grid[data-layout="three"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid[data-layout="mixed"] .project-card, .project-grid[data-layout="two"] .project-card, .project-grid[data-layout="three"] .project-card { grid-column: auto; }
  .project-grid[data-layout="mixed"] .project-card:last-child, .project-grid[data-layout="two"] .project-card:last-child, .project-grid[data-layout="three"] .project-card:last-child { grid-column: span 2; }
}
@media (max-width: 720px) {
  .project-grid[data-layout="mixed"], .project-grid[data-layout="two"], .project-grid[data-layout="three"] { grid-template-columns: minmax(0, 1fr); }
  .project-grid[data-layout="mixed"] .project-card, .project-grid[data-layout="two"] .project-card, .project-grid[data-layout="three"] .project-card { grid-column: 1; }
  .layout-switch span { width: 100%; }
  .corporate-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .speaker-gallery { max-height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
  .speaker-gallery .speaker-photo { animation: none; }
}

/* Fourth pass: card content and visuals from Dmitry's review. */
.academy-visual { display: block; height: 282px; min-height: 0; margin: auto 0 21px; padding: 12px; overflow: auto; }
.academy-visual .course-stack { min-height: 100%; align-content: space-between; gap: 3px; }
.academy-visual .course-stack li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 1px 6px; align-items: baseline; min-height: 0; padding: 4px 6px; }
.academy-visual .course-stack b { min-width: 0; }
.academy-visual .course-stack em { display: none; grid-column: 2; color: #6c746d; font-size: 11px; font-style: italic; line-height: 1.2; }
.academy-visual[data-academy-view="details"] .course-stack li { min-height: 0; }
.academy-visual[data-academy-view="details"] .course-stack em { display: block; }
.project-grid[data-layout="three"] .academy-visual .course-stack li { grid-template-columns: 62px minmax(0, 1fr); }
.project-grid[data-layout="three"] .academy-visual .course-stack em { grid-column: 2; }

.corporate-visual, .project-grid[data-layout="three"] .corporate-visual { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 9px 5px; }
.corporate-visual img { height: 56px; padding: 7px 4px; border: 0; background: transparent; animation: logo-float 5s ease-in-out infinite; }
.corporate-visual img:nth-child(3n) { animation-delay: -1.8s; }
.corporate-visual img:nth-child(4n) { animation-delay: -3.2s; }
.corporate-visual:hover img, .corporate-visual:hover .megafon-mark { animation-play-state: paused; }
.corporate-visual img:hover { filter: grayscale(0); transform: translateY(-4px) scale(1.07); animation-play-state: paused; }
@keyframes logo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

.club-questions { position: relative; display: block; width: 100%; height: 275px; margin: auto 0 8px; border: 1px solid #e4e6e4; border-radius: 8px; background: #fcfdfc; overflow: hidden; }
.chat-note { position: absolute; display: block; max-width: 66%; padding: 9px 12px; border-radius: 13px 13px 13px 4px; background: #f0f1f0; color: #1f2722; font-size: 12px; line-height: 1.25; box-shadow: 0 2px 5px #172a1a12; transition: transform .25s ease; }
.chat-note.answer { max-width: 65%; border-radius: 13px 13px 4px 13px; background: #00b94c; color: #fff; }
.chat-note:nth-child(1) { top: 10%; left: 3%; transform: rotate(-13deg); }
.chat-note:nth-child(2) { top: 18%; right: 3%; transform: rotate(8deg); }
.chat-note:nth-child(3) { top: 43%; left: 2%; transform: rotate(7deg); }
.chat-note:nth-child(4) { top: 49%; right: 2%; transform: rotate(-9deg); }
.chat-note:nth-child(5) { bottom: 12%; left: 5%; transform: rotate(-6deg); }
.chat-note:nth-child(6) { bottom: 6%; right: 3%; transform: rotate(6deg); }
.chat-note:hover { z-index: 2; transform: rotate(0) scale(1.05); }

.episode { color: #252c27; text-decoration: none; }
.episode:hover, .episode:focus-visible { background: #ebeeec; transform: translateX(2px); }
.episode-thumb img { filter: grayscale(1); transition: filter .25s ease; }
.episode:hover img, .episode:focus-visible img { filter: grayscale(0); }
.episode > span:last-child { line-height: 1.2; }
.episode-copy { display: grid; gap: 3px; min-width: 0; }
.episode-copy { flex: 1; padding: 6px 8px; background: #f0f1f0; }
.episode-copy strong { font-size: 12px; line-height: 1.2; font-weight: 700; }
.episode { min-height: 57px; }
.episode:hover .episode-copy, .episode:focus-visible .episode-copy { background: #e4ece6; }
.episode .episode-copy small { display: block; margin: 0; color: #606962; font-size: 10px; line-height: 1.25; white-space: normal; }
.cup-visual { min-height: 0; background: #151826; }
.cup-visual img { height: 250px; object-fit: cover; object-position: center 32%; }

.project-grid[data-layout="mixed"] .conference-card, .project-grid[data-layout="mixed"] .architect-card { grid-column: span 6; }
.conference-visual { position: relative; }
.speaker-popover { position: absolute; z-index: 5; width: min(320px, calc(100% - 16px)); max-height: min(360px, 75vh); padding: 15px 18px; overflow-y: auto; border: 1px solid #bbd8c3; border-radius: 10px; background: #fff; box-shadow: 0 13px 30px #17392330; color: #26392b; }
.speaker-popover[hidden] { display: none; }
.speaker-popover::after { content: ""; position: absolute; bottom: -8px; left: 25px; width: 13px; height: 13px; border-right: 1px solid #bbd8c3; border-bottom: 1px solid #bbd8c3; background: #fff; transform: rotate(45deg); }
.speaker-popover strong { display: block; padding-right: 22px; font-size: 15px; }
.speaker-popover > span, .speaker-popover small { display: block; margin-top: 4px; color: #58705e; font-size: 11px; }
.speaker-popover p { margin: 9px 0 !important; color: #303e33 !important; font-size: 12px !important; line-height: 1.35 !important; }
.speaker-popover-topics { padding-top: 8px; border-top: 1px solid #e3e9e4; }
.speaker-popover-topics span { color: #58705e; font-size: 11px; font-weight: 700; }
.speaker-popover-topics ul { display: grid; gap: 4px; margin: 6px 0 0; padding-left: 17px; color: #303e33; font-size: 12px; line-height: 1.35; }
.speaker-popover-close { position: absolute; top: 7px; right: 8px; border: 0; background: transparent; color: #55705d; font-size: 21px; cursor: pointer; }
.speaker.is-memorial .speaker-photo::before { content: ""; position: absolute; z-index: 2; right: 3px; bottom: 12px; width: 13px; height: 17px; border: 3px solid #171717; border-bottom: 0; border-radius: 50% 50% 0 0; transform: rotate(-12deg); filter: drop-shadow(0 0 1px #fff); }
.speaker.is-memorial .speaker-photo::after { content: ""; position: absolute; z-index: 2; right: 1px; bottom: 0; width: 21px; height: 20px; background: #171717; clip-path: polygon(38% 0, 62% 0, 74% 35%, 100% 100%, 66% 100%, 50% 64%, 34% 100%, 0 100%, 26% 35%); }

.architect-visual { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.12fr); }
.architect-inputs span { display: flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 5px; background: #ffffff16; font-size: 10px; }
.file-icon { display: grid; place-items: center; flex: none; width: 25px; height: 22px; border-radius: 3px; color: #fff; font-size: 9px; font-style: normal; }
.icon-1c { background: #e63737; color: #fff; }.icon-xls { background: #13753a; }.icon-folder { background: #f0b62c; color: #513a0b; }.icon-csv { background: #187948; font-size: 7px; }.icon-pdf { background: #dd4b38; font-size: 7px; }
.architect-merge { display: flex; align-items: center; color: #fff; }
.architect-merge i { display: block; width: 8px; height: 80px; border: 2px solid #ffffffa8; border-left: 0; border-radius: 0 13px 13px 0; }
.architect-merge b { font-size: 22px; }
.report-table { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 1px; border: 1px solid #d7e9db; background: #d7e9db; font-size: 8px; }
.report-table > * { padding: 4px 2px; background: #fff; color: #275433; font-size: inherit; font-style: normal; }
.report-table > :nth-child(-n+3) { background: #dff1e3; font-weight: 700; }
.report-table em { color: #079b44; }
.architect-bars { height: 25px; }

.materials-showcase { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr); gap: 12px; align-items: stretch; margin: auto 0 19px; }
.materials-list { display: grid; gap: 6px; min-width: 0; }
.materials-list button { display: grid; gap: 3px; width: 100%; padding: 9px 11px; border: 1px solid #e4e9e5; border-radius: 5px; background: #f8faf8; text-align: left; cursor: pointer; }
.materials-list button:hover, .materials-list button[aria-pressed="true"] { border-color: #a2cfad; background: #eef8f0; }
.materials-list b { color: #087a37; font-size: 12px; }.materials-list span { color: #5f6b62; font-size: 11px; line-height: 1.2; }
.material-previews { position: relative; min-width: 0; min-height: 265px; border: 1px solid #d8ded9; border-radius: 5px; background: #f5f7f5; overflow: hidden; }
.material-preview { position: absolute; inset: 0; padding: 9px; }
.material-preview[hidden] { display: none; }
.chart-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5px; }
.chart-collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; border: 1px solid #e1e5e1; border-radius: 3px; background: #fff; }
.lesson-preview { display: grid; grid-template-rows: 1.5fr 1fr; gap: 9px; }
.mock-player { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 12px; border-radius: 5px; background: linear-gradient(145deg,#1e2a26,#0d1411); color: #fff; }
.mock-player small { color: #a7d7b6; font-size: 9px; letter-spacing: .08em; }.mock-player b { max-width: 170px; font-size: 15px; line-height: 1.14; }.mock-player i { position: absolute; top: 50%; right: 17%; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #ffffff8a; border-radius: 50%; font-size: 13px; font-style: normal; }.mock-player span { margin-top: auto; padding-top: 6px; border-top: 1px solid #ffffff6b; font-size: 8px; }
.mock-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }.mock-files span { padding: 7px; border: 1px solid #d7e0d8; border-radius: 4px; background: #fff; color: #445046; font-size: 9px; line-height: 1.25; overflow-wrap: anywhere; }.mock-files b { display: block; width: fit-content; margin-bottom: 5px; padding: 3px 5px; border-radius: 2px; background: #138246; color: #fff; font-size: 9px; }.mock-files .mock-pdf b { background: #c94737; }
.gantt-preview { display: block; padding: 8px; }.gantt-preview img { display: block; width: 100%; height: 100%; object-fit: contain; border: 1px solid #d6dcd6; background: #fff; }
.megafon-mark { display: block; width: 46px; height: 46px; justify-self: center; background-image: url("corporate/megafon.png"); background-repeat: no-repeat; background-size: 200px 200px; background-position: -7px -77px; filter: grayscale(1); transition: filter .25s ease, transform .25s ease; animation: logo-float 5s ease-in-out infinite; }
.megafon-mark:hover { filter: grayscale(0); transform: translateY(-4px) scale(1.07); animation-play-state: paused; }
.mini-list li { min-height: 83px; }
.mini-list li { padding: 0; transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.mini-list li:hover, .mini-list li:focus-within { transform: translateY(-4px); border-color: #8fc9a0; background: #ebf8ef; box-shadow: 0 8px 16px #0b5c2919; }
.mini-list li:has(.mini-item[aria-pressed="true"]) { border-color: #43b86a; background: #dbf3e2; box-shadow: inset 3px 0 #00bd50; }
.mini-item { display: grid; align-content: start; gap: 3px; width: 100%; height: 100%; min-height: 83px; padding: 9px; border: 0; background: transparent; text-align: left; cursor: pointer; }

@media (max-width: 720px) {
  .header-inner { gap: 8px; }
  .logo { font-size: 19px; }
  .nav { gap: 7px; }
  .nav a:not(.nav-cta):not(.nav-login) { display: none; }
  .nav .nav-cta { padding: 10px 11px; font-size: 11px; white-space: nowrap; }
  .nav a.nav-login { display: inline-flex; min-height: 44px; padding: 10px 12px; font-size: 11px; }
  .nav-login-desktop { display: none; }
  .nav-login-mobile { display: inline; }
  html { scroll-padding-top: 76px; }
  .hero-name-line { width: auto; max-width: 100%; white-space: normal; font-size: inherit; }
  .project-grid[data-layout="mixed"], .project-grid[data-layout="two"], .project-grid[data-layout="three"] { grid-template-columns: minmax(0, 1fr); }
  .project-grid[data-layout="mixed"] .project-card, .project-grid[data-layout="mixed"] .project-card:last-child,
  .project-grid[data-layout="two"] .project-card, .project-grid[data-layout="two"] .project-card:last-child,
  .project-grid[data-layout="three"] .project-card, .project-grid[data-layout="three"] .project-card:last-child { grid-column: 1 / -1; }
  .layout-switch { display: none; }
  .projects-section .mobile-project-title { display: block; margin: 0 0 22px; font-size: clamp(34px, 9vw, 44px); line-height: 1.05; letter-spacing: -.045em; }
  .project-card, .project-grid[data-layout="three"] .project-card { padding: 21px; }
  .project-card h3, .project-grid[data-layout="three"] .project-card h3 { font-size: clamp(29px, 8vw, 36px); }
  .academy-visual { height: auto; overflow: visible; }
  .academy-visual .course-stack { min-height: 0; }
  .club-questions { display: grid; height: auto; gap: 9px; padding: 17px 10px; }
  .club-questions .chat-note { position: static; max-width: 88%; }
  .club-questions .chat-note.question { justify-self: start; transform: rotate(-2deg); }
  .club-questions .chat-note.answer { justify-self: end; transform: rotate(2deg); }
  .corporate-visual, .project-grid[data-layout="three"] .corporate-visual { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .corporate-visual img { height: 50px; }
  .mini-list { grid-template-columns: 1fr; }
  .architect-visual { grid-template-columns: 1fr; gap: 10px; }
  .architect-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architect-inputs span:last-child { grid-column: 1 / -1; }
  .architect-merge { justify-content: center; height: 20px; }
  .architect-merge i { display: none; }
  .architect-merge b { transform: rotate(90deg); }
  .materials-showcase { grid-template-columns: 1fr; }
  .material-previews { min-height: 280px; }
  .materials-list button { min-height: 57px; }
  .project-link, .mode, .nav .nav-cta, .reset { min-height: 44px; }
  .reset { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .corporate-visual img { animation: none; }
  .chat-note, .episode-thumb img { transition: none; }
  .mini-list li { transition: none; }
}
