@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Unbounded:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #101216;
  --bg-deep: #0d0f12;
  --panel: #191c21;
  --panel-raised: #20242a;
  --border: #30353d;
  --text: #f3f4f3;
  --muted: #a5aab1;
  --soft: #858b95;
  --white: #edf0ef;
  --page-width: 1240px;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Inter', -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: #101216; background: #e9ebeb; }
:focus-visible { outline: 2px solid #e5e7e9; outline-offset: 5px; }
.container { width: min(calc(100% - 64px), var(--page-width)); margin: 0 auto; }
.skip-link { position: fixed; top: -90px; left: 20px; z-index: 50; padding: 10px 20px; background: white; color: #111; border-radius: 4px; }
.skip-link:focus { top: 12px; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 30; background: #101216; border-bottom: 1px solid #2b3037; }
.header-inner { min-height: 89px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.wordmark { display: inline-flex; align-items: center; font: 600 24px/1 var(--display); letter-spacing: -.055em; white-space: nowrap; }
.wordmark-dot { display: none; }
.desktop-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(25px, 3.4vw, 58px); }
.nav-link { color: var(--muted); position: relative; padding: 12px 0; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .16s ease; }
.nav-link:hover, .nav-link.is-current { color: var(--text); }
.nav-link.is-current::after { position: absolute; content: ''; bottom: -20px; left: 0; width: 100%; height: 2px; background: var(--white); }
.nav-contact { border: 1px solid #626a74; border-radius: 8px; padding: 12px 25px; color: var(--text); font-size: 14px; font-weight: 600; transition: border-color .16s ease, background .16s ease; }
.nav-contact:hover { border-color: var(--white); background: #22262c; }
.nav-contact.is-current { background: var(--white); color: #15171a; border-color: var(--white); }
.mobile-toggle, .mobile-nav { display: none; }

/* Foundation */
.section { padding: 98px 0; }
.section-intro, .page-lead-small, .hero-greeting { color: #bdc1c5; font-size: 13px; line-height: 1.5; font-weight: 600; letter-spacing: .02em; margin: 0 0 24px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { overflow-wrap: normal; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.055em; }
h3 { font-family: var(--display); letter-spacing: -.04em; font-weight: 500; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 25px; min-height: 56px; padding: 14px 22px; font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; border-radius: 8px; border: 1px solid transparent; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary, .button-light { background: var(--white); color: #111418; }
.button-primary:hover, .button-light:hover { background: #fff; }
.button-ghost { border-color: #515860; color: var(--text); }
.button-ghost:hover { background: #20242a; border-color: #9099a4; }
.arrow-icon { width: 18px; height: 18px; flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; gap: 15px; font-size: 14px; font-weight: 600; line-height: 1.5; color: #e8eaeb; white-space: nowrap; }
.text-link:hover, .back-link:hover { color: #fff; }
.text-link .arrow-icon { transition: transform .16s ease; }
.text-link:hover .arrow-icon { transform: translateX(3px); }

/* Homepage hero */
.hero { border-bottom: 1px solid var(--border); padding: 96px 0 105px; background: var(--bg-deep); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(360px, .86fr); gap: min(7vw, 94px); align-items: center; }
.hero-content { padding: 24px 0 33px; }
.hero-greeting { margin-bottom: 25px; }
.hero h1 { font-size: clamp(48px, 5.4vw, 77px); line-height: 1.14; letter-spacing: -.07em; margin-bottom: 34px; }
.hero-point { color: #a7adb5; }
.hero-lead { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.55; max-width: 660px; font-weight: 500; color: #ebecec; margin-bottom: 22px; }
.hero-detail { font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 610px; margin-bottom: 39px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
/* Clean brand portrait: deep dark backdrop and restrained halo. */
.hero-portrait {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 500px;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #2b3037;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.09), rgba(255,255,255,0) 34%),
    radial-gradient(circle at 50% 50%, rgba(160,170,185,0.08), rgba(16,18,22,0) 52%),
    linear-gradient(180deg, #171a1f 0%, #111318 100%);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.hero-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(237,240,239,0.10), rgba(237,240,239,0.03) 22%, rgba(237,240,239,0) 56%);
}
.hero-portrait::after {
  content: '';
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 38%, rgba(255,255,255,0) 68%);
  filter: blur(8px);
  pointer-events: none;
}
.portrait-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.portrait-inner::before {
  content: '';
  position: absolute;
  width: 68%;
  height: 68%;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 30px rgba(0,0,0,0.22);
}
.portrait-inner img {
  position: relative;
  z-index: 2;
  display: block;
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter:
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 18px rgba(255,255,255,0.06));
}

/* Project cards */
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.section-heading .section-intro { margin-bottom: 13px; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 3vw, 39px); line-height: 1.32; }
.section-heading .text-link { margin-bottom: 8px; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0, 1fr)); gap: 24px; }
.project-card { background: var(--panel); border: 1px solid #31363d; border-radius: 12px; min-width: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .18s ease, transform .18s ease; }
.project-card:hover { border-color: #777f89; transform: translateY(-3px); }
.card-image-link { display: block; overflow: hidden; aspect-ratio: 1.54; border-bottom: 1px solid #30343b; }
.project-art { width: 100%; height: 100%; background: #1b1f25; }
.project-art svg { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 25px 25px 23px; display: flex; flex: 1; flex-direction: column; }
.card-category { color: #a9afb8; font-size: 12px; line-height: 1.5; font-weight: 500; margin-bottom: 15px; }
.project-card h3 { font-size: clamp(18px,1.62vw,22px); line-height: 1.5; margin-bottom: 14px; overflow-wrap: anywhere; }
.project-card h3 a:hover { color: #fff; }
.card-copy { font-size: 14px; line-height: 1.78; color: var(--muted); margin-bottom: 28px; }
.card-bottom { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: auto; padding-top: 19px; border-top: 1px solid #353940; }
.card-stage { display: inline-block; color: #bfc3c8; font-size: 12px; line-height: 1.45; max-width: 60%; }
.card-more { font-size: 12px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.card-more:hover { color: white; }
.card-more span { font-size: 15px; }

/* Homepage lower sections */
.about-preview { border-top: 1px solid #30343a; border-bottom: 1px solid #30343a; background: #15181d; }
.about-preview-grid { display: grid; grid-template-columns: 1.15fr .75fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.about-preview h2 { font-size: clamp(24px,2.6vw,35px); line-height: 1.55; margin-bottom: 0; max-width: 720px; }
.about-preview-aside { padding-top: 46px; }
.about-preview-aside p { color: var(--muted); font-size: 16px; line-height: 1.95; margin: 0 0 26px; }
.contact-preview { background: #111318; }
.contact-preview-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.contact-preview h2 { font-size: 37px; margin: 0 0 8px; }
.contact-preview .section-intro { margin-bottom: 11px; }
.contact-preview p:not(.section-intro) { margin: 0; color: var(--muted); }

/* Page headings and catalog */
.page-heading { padding-top: 110px; padding-bottom: 62px; }
.page-lead-small { margin-bottom: 27px; }
.page-heading h1 { font-size: clamp(43px, 5.2vw, 75px); line-height: 1.18; margin-bottom: 32px; }
.heading-period { color: #a6adb5; }
.page-subtitle { max-width: 810px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.portfolio-list { padding-top: 18px; padding-bottom: 118px; }
.project-grid-catalog { row-gap: 28px; }
.portfolio-cases-notice { margin-top: 46px; padding: 28px 32px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.portfolio-cases-notice h2 { margin: 0 0 10px; font: 500 clamp(22px, 3vw, 29px)/1.35 var(--display); }
.portfolio-cases-notice p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* Project detail pages */
.detail-top { padding-top: 44px; }
.back-link { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 13px; }
.back-link span { font-size: 19px; }
.detail-hero { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(370px,.94fr); gap: 65px; padding-top: 69px; padding-bottom: 96px; align-items: center; }
.detail-topic { color: #c6c9ce; font-size: 14px; margin-bottom: 25px; }
.detail-hero h1 { font-size: clamp(40px, 4.35vw, 63px); line-height: 1.27; margin: 0 0 29px; overflow-wrap: anywhere; }
.detail-description { font-size: 19px; line-height: 1.86; color: #c3c8ce; max-width: 650px; margin: 0 0 33px; }
.detail-stage { display: inline-flex; align-items: center; gap: 11px; color: #d3d6da; font-size: 13px; font-weight: 500; margin: 0; }
.stage-circle { display: block; width: 7px; height: 7px; border-radius: 50%; background: #d2d5da; }
.detail-artwork { aspect-ratio: 1.34; border-radius: 14px; overflow: hidden; border: 1px solid #384049; background: #1b1f25; }
.detail-content { border-top: 1px solid var(--border); padding-top: 78px; padding-bottom: 72px; display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(60px, 9vw, 170px); }
.detail-content h2, .result-card h2 { font: 500 clamp(23px,2.2vw,29px)/1.45 var(--display); letter-spacing: -.04em; margin-bottom: 30px; }
.detail-problem p { color: #bec3c9; font-size: 17px; line-height: 1.95; }
.feature-list { padding: 0; list-style: none; margin: 0; }
.feature-list li { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 21px; padding: 15px 0; border-bottom: 1px solid #31363d; color: #dee1e5; font-size: 16px; line-height: 1.8; }
.feature-list li:first-child { border-top: 1px solid #31363d; }
.feature-check { width: 9px; height: 9px; display: block; margin-top: 10px; background: #bfc4cb; border-radius: 2px; transform: rotate(45deg); }
.detail-results { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-bottom: 93px; }
.result-card { border-radius: 12px; padding: 36px; background: #20242a; border: 1px solid #363c45; min-height: 260px; }
.result-card-muted { background: #16191e; }
.result-card h2 { font-size: 22px; margin-bottom: 20px; }
.result-card p { color: #bdc3ca; font-size: 15px; line-height: 1.9; margin: 0; }
.project-next { border-top: 1px solid var(--border); padding-top: 43px; padding-bottom: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.project-next div { display: flex; flex-direction: column; align-items: start; gap: 10px; }
.project-next div span { color: var(--soft); font-size: 13px; }
.project-next div a { display: inline-flex; align-items: center; gap: 13px; font-family: var(--display); font-size: clamp(19px, 2.1vw, 27px); line-height: 1.4; font-weight: 500; }
.project-next div a:hover { color: #fff; }

/* About */
.about-area { padding-bottom: 126px; }
.tablist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 38px; }
.tab { padding: 20px 26px; background: #191c21; border: 1px solid #333941; border-radius: 8px; color: #a5adb6; text-align: left; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .16s ease, color .16s ease; }
.tab:hover { background: #24282f; color: #e6e8ea; }
.tab.is-active { background: var(--white); border-color: var(--white); color: #17191d; }
.tab.is-active:hover { background: #fff; color: #17191d; }
.tab-panel { min-height: 435px; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(310px,.73fr); gap: 26px; }
.profile-main, .profile-sidebar { background: var(--panel); border: 1px solid #32373f; border-radius: 12px; padding: 42px; }
.profile-main h2 { font-size: 36px; margin-bottom: 3px; }
.profile-role { color: #e0e2e5 !important; font-size: 18px !important; margin-bottom: 35px !important; }
.profile-main p { max-width: 730px; color: var(--muted); line-height: 2; font-size: 16px; margin-bottom: 20px; }
.profile-main p:last-child { margin-bottom: 0; }
.profile-sidebar h3 { font-size: 23px; margin-bottom: 25px; }
.profile-sidebar p { color: var(--muted); line-height: 1.9; margin-bottom: 38px; }
.achievements-title { font-size: 27px; margin: 19px 0 36px; }
.achievement-list { display: grid; gap: 17px; }
.achievement { min-height: 148px; padding: 30px 34px; border: 1px solid #343941; border-radius: 12px; display: grid; grid-template-columns: 185px 1fr 32px; align-items: center; gap: 27px; background: var(--panel); }
.achievement-year { font: 500 21px/1.45 var(--display); margin: 0; }
.achievement h3 { margin: 0 0 9px; font-size: clamp(17px,2vw,22px); }
.achievement p:not(.achievement-year) { color: var(--muted); margin: 0; font-size: 15px; }
.achievement-symbol { justify-self: end; color: #7f858e; font-size: 23px; }

/* Contacts */
.contacts-area { padding: 8px 0 158px; }
.contact-card { border-radius: 14px; border: 1px solid #363b43; background: var(--panel); min-height: 410px; padding: clamp(32px,5vw,68px); display: flex; justify-content: space-between; gap: 45px; align-items: center; }
.contact-card h2 { font-size: clamp(30px,4vw,52px); margin-bottom: 6px; }
.contact-role { color: var(--muted); font-size: 19px; margin: 0; }
.contact-primary { min-width: 355px; display: flex; align-items: center; justify-content: space-between; gap: 36px; background: var(--white); color: #14171b; padding: 22px 25px; border-radius: 9px; transition: background .16s ease; }
.contact-primary:hover { background: #fff; }
.contact-primary span:first-child { display: flex; flex-direction: column; gap: 3px; }
.contact-primary small { font-size: 12px; font-weight: 500; color: #4b5159; }
.contact-primary strong { font-size: 24px; font-weight: 700; }
.contact-primary > span:last-child { font-size: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #0d0f12; }
.footer-inner { min-height: 205px; display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 35px; }
.footer-brand { display: inline-block; font: 600 24px/1.5 var(--display); letter-spacing: -.05em; margin-bottom: 6px; }
.footer-inner p { font-size: 12px; color: var(--soft); margin: 0; }
.footer-inner nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 27px; }
.footer-inner nav a, .footer-telegram { color: #c6c9ce; font-size: 13px; }
.footer-inner nav a:hover, .footer-telegram:hover { color: #fff; }
.footer-telegram { white-space: nowrap; }

@media (max-width: 1110px) {
  .container { width: min(calc(100% - 56px), var(--page-width)); }
  .hero-grid { gap: 40px; grid-template-columns: 1.1fr .82fr; }
  .hero h1 { font-size: clamp(40px, 5vw, 65px); }
  .desktop-nav { gap: 29px; }
  .detail-hero { gap: 35px; grid-template-columns: 1fr .92fr; }
  .project-card h3 { font-size: 18px; }
  .card-body { padding: 20px; }
}
@media (max-width: 850px) {
  .container { width: min(calc(100% - 44px), var(--page-width)); }
  .site-header { position: sticky; }
  .header-inner { min-height: 76px; }
  .wordmark { font-size: 21px; }
  .desktop-nav { display: none; }
  .mobile-toggle { width: 92px; height: 44px; border: 1px solid #434b55; border-radius: 7px; background: var(--panel); display: flex; align-items: center; flex-direction: row; gap: 5px; justify-content: center; color: white; cursor: pointer; }
  .mobile-toggle::after { content: 'Меню'; font-size: 13px; font-weight: 600; margin-left: 8px; }
  .mobile-toggle span { height: 1.5px; width: 13px; background: #eceded; display: block; position: absolute; transform: translateY(-3px); }
  .mobile-toggle span:nth-child(2) { transform: translateY(3px); }
  .mobile-toggle { position: relative; }
  .mobile-toggle span { left: 12px; }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; padding: 10px 22px 22px; background: #171a1e; border-top: 1px solid #30353d; }
  .mobile-nav a { border-bottom: 1px solid #333840; padding: 14px 5px; font-weight: 500; color: var(--muted); }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a[aria-current='page'] { color: var(--white); font-weight: 700; }
  .hero { padding: 60px 0 78px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .hero-content { padding: 0; }
  .hero h1 { font-size: clamp(36px, 5vw, 54px); }
  .hero-lead { font-size: 19px; }
  .hero-detail { font-size: 14px; }
  .hero-actions .button { min-height: 50px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-preview-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .detail-hero { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 58px; }
  .detail-artwork { max-width: 640px; }
  .detail-content { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 32px 0; gap: 24px; }
  .footer-inner nav { justify-content: flex-start; }
  .footer-telegram { justify-self: end; }
  .profile-layout { grid-template-columns: 1fr; }
  .contact-card { min-height: 330px; }
  .contact-primary { min-width: 295px; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 75px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 74px; }
  .section { padding: 70px 0; }
  .hero { padding: 51px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 39px; }
  .hero-greeting { font-size: 12px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(35px, 9.15vw, 56px); margin-bottom: 24px; }
  .hero-lead { font-size: 20px; line-height: 1.55; }
  .hero-detail { font-size: 15px; line-height: 1.8; margin-bottom: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; justify-content: space-between; min-height: 54px; }
  .hero-portrait {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: none;
    justify-self: stretch;
    border-radius: 18px;
  }
  .portrait-inner::before {
    width: 74%;
    height: 74%;
    border-radius: 20px;
  }
  .portrait-inner img {
    width: 66%;
    height: 66%;
  }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 19px; margin-bottom: 30px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading .text-link { margin: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-card { border-radius: 11px; }
  .card-image-link { aspect-ratio: 1.56; }
  .card-body { padding: 24px; }
  .project-card h3 { font-size: 20px; }
  .card-copy { font-size: 14px; }
  .card-bottom { gap: 12px; align-items: center; }
  .card-stage { font-size: 11px; }
  .about-preview-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-preview h2 { font-size: 23px; line-height: 1.62; }
  .about-preview-aside { padding: 0; }
  .contact-preview-inner { align-items: start; flex-direction: column; gap: 32px; }
  .contact-preview h2 { font-size: 29px; }
  .contact-preview .button { width: 100%; justify-content: space-between; }
  .page-heading { padding-top: 68px; padding-bottom: 43px; }
  .page-heading h1 { font-size: clamp(38px,10vw,54px); margin-bottom: 24px; }
  .page-subtitle { font-size: 16px; line-height: 1.85; }
  .portfolio-list { padding-bottom: 80px; }
  .detail-top { padding-top: 28px; }
  .detail-hero { padding-top: 45px; gap: 41px; padding-bottom: 59px; }
  .detail-topic { font-size: 13px; margin-bottom: 25px; }
  .detail-hero h1 { font-size: clamp(34px, 9vw, 46px); line-height: 1.35; }
  .detail-description { font-size: 16px; line-height: 1.9; margin-bottom: 28px; }
  .detail-artwork { aspect-ratio: 1.25; }
  .detail-content { padding-top: 57px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 42px; }
  .detail-content h2 { font-size: 22px; margin-bottom: 19px; }
  .detail-problem p { font-size: 15px; }
  .feature-list li { font-size: 15px; gap: 12px; }
  .detail-results { grid-template-columns: 1fr; gap: 14px; padding-bottom: 70px; }
  .result-card { min-height: 0; padding: 27px; }
  .result-card h2 { font-size: 21px; margin-bottom: 15px; }
  .result-card p { font-size: 14px; }
  .project-next { align-items: flex-start; flex-direction: column; padding-top: 40px; padding-bottom: 80px; }
  .project-next div a { font-size: 21px; }
  .about-area { padding-bottom: 85px; }
  .tablist { gap: 10px; margin-bottom: 20px; }
  .tab { padding: 14px 12px; font-size: 13px; text-align: center; }
  .profile-main, .profile-sidebar { padding: 28px 23px; }
  .profile-main h2 { font-size: 27px; }
  .profile-role { font-size: 16px !important; margin-bottom: 24px !important; }
  .profile-main p { font-size: 15px; line-height: 1.95; }
  .profile-sidebar h3 { font-size: 19px; }
  .achievements-title { font-size: 23px; }
  .achievement { padding: 24px; grid-template-columns: 1fr 21px; gap: 12px; min-height: 0; }
  .achievement-year { grid-column: 1 / -1; font-size: 18px; }
  .achievement h3 { font-size: 18px; }
  .achievement p:not(.achievement-year) { font-size: 13px; }
  .achievement-symbol { font-size: 18px; }
  .contacts-area { padding-top: 0; padding-bottom: 91px; }
  .contact-card { flex-direction: column; align-items: stretch; gap: 40px; min-height: 0; padding: 30px 24px; }
  .contact-card h2 { font-size: 31px; }
  .contact-role { font-size: 16px; }
  .contact-primary { min-width: 0; padding: 18px; width: 100%; }
  .contact-primary strong { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr; min-height: 0; gap: 22px; padding: 38px 0; }
  .footer-inner nav { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: 12px 32px; }
  .footer-telegram { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}




/* Personal profile homepage */
.focus-section { background: #111318; border-bottom: 1px solid var(--border); }
.focus-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.focus-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 32px 28px; }
.focus-index { color: #adb4bb; font-size: 12px; font-weight: 600; margin: 0 0 31px; }
.focus-card h3 { font-size: 20px; line-height: 1.45; margin: 0 0 15px; }
.focus-card p:last-child { color: var(--muted); line-height: 1.85; font-size: 14px; margin: 0; }
.journey-section { background: #171a1f; border-bottom: 1px solid var(--border); }
.journey-layout { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(35px,7vw,100px); align-items: start; }
.journey-layout h2 { font-size: clamp(25px,2.8vw,38px); line-height: 1.5; margin-bottom: 23px; }
.journey-intro { color: var(--muted); line-height: 1.9; margin-bottom: 25px; }
.journey-list { border-top: 1px solid #444a52; }
.journey-entry { display: grid; grid-template-columns: 85px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid #444a52; }
.journey-year { color: #bac0c7; font-size: 13px; font-weight: 600; }
.journey-entry h3 { font-size: 16px; line-height: 1.55; margin: 0 0 7px; }
.journey-entry p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.portfolio-empty { padding-bottom: 115px; min-height: 480px; }
.portfolio-empty .portfolio-cases-notice { max-width: 820px; }
@media (max-width:850px) {
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card { padding: 26px; }
  .focus-index { margin-bottom: 18px; }
  .journey-layout { grid-template-columns: 1fr; }
}
@media (max-width:620px) {
  .journey-entry { grid-template-columns: 65px 1fr; gap: 14px; }
  .portfolio-empty { min-height: 0; padding-bottom: 80px; }
  .portfolio-cases-notice { padding: 25px 23px; }
}
