/* ===== INNER PAGE STYLES ===== */


/* =========================================================
   ШРИФТ MONTSERRAT
   ========================================================= */

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Regular.ttf')
    format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Medium.ttf')
    format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-SemiBold.ttf')
    format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Bold.ttf')
    format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-ExtraBold.ttf')
    format('truetype');
  font-weight: 800;
  font-style: normal;
}


/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */

:root {
  --primary: #38d2d4;
  --bg-dark: #1a1a1a;
  --bg-card: #2a2a2a;
  --text-light: #e8e8e8;
  --text-muted: #a0a0a0;
  --border: #3a3a3a;

  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
}


/* =========================================================
   БАЗОВЫЕ СТИЛИ
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  background: var(--bg-dark);
  color: var(--text-light);

  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

main {
  flex: 1;
  padding: var(--sp-3xl) var(--sp-md) var(--sp-2xl);
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}


/* =========================================================
   НАВИГАЦИЯ
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--bg-dark);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-logo {
  color: var(--text-light);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;

  transition: color 0.2s ease;
}

.site-logo:hover {
  color: var(--primary);
}


/* Бургер */

.menu-toggle {
  display: none;

  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;

  width: 28px;
  height: 3px;
  margin: 5px 0;

  background: var(--text-light);
  border-radius: 2px;

  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}


/* Основное меню */

.main-nav--inner .nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;

  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav--inner .nav-item {
  position: relative;
}

.main-nav--inner .nav-link {
  display: inline-block;

  padding: 8px 4px;

  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;

  transition: all 0.2s ease;
}

.main-nav--inner .nav-link:hover {
  color: var(--primary);
}

.main-nav--inner .nav-link--active {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
}

.main-nav--inner .nav-item.is-active > .nav-link {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
}


/* Подменю */

.main-nav--inner .nav-item--parent:hover .nav-submenu {
  display: block;
}

.main-nav--inner .nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;

  display: none;

  min-width: auto;
  margin: 0;
  padding: 0;

  background: var(--bg-dark);
  border: none;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

  list-style: none;
}

.main-nav--inner .nav-submenu-item {
  margin: 0;
}

.main-nav--inner .nav-submenu-link {
  display: block;

  padding: 12px 20px 12px 4px;

  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;

  transition: all 0.2s ease;
}

.main-nav--inner .nav-submenu-link:hover {
  color: var(--primary);
}

.main-nav--inner .nav-submenu-link--active {
  color: var(--primary);
  font-weight: 600;
}


/* =========================================================
   СТРАНИЦА «ОБО МНЕ»
   ========================================================= */

.about-main {
  padding: clamp(58px, 8vw, 88px) 24px 96px;
}

.about-main .about-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-page-title {
  position: absolute;

  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
  border: 0;
}

.about-main .section-title {
  margin: 0 0 26px;

  color: var(--primary);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-align: left;
}

.about-main .subsection-title {
  margin: 30px 0 13px;

  color: var(--text-light);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
}


/* Верхний блок страницы «Обо мне» */

.about-top {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);

  margin-bottom: clamp(72px, 9vw, 112px);
}

.about-top__side {
  display: grid;
  gap: 24px;
}

.about-portrait {
  justify-self: start;

  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;
}

.about-portrait__image {
  width: 100%;
  aspect-ratio: 4 / 5;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(56, 210, 212, 0.2),
      rgba(42, 42, 42, 0.9)
    );

  border: 1px solid var(--border);
  border-radius: 17px;
}

.about-portrait__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.about-portrait__caption {
  width: 100%;
  padding: 13px 0 0;

  color: var(--text-light);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: uppercase;
}

.about-card {
  padding: clamp(22px, 2.8vw, 32px);

  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.about-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-timeline li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 15px;

  padding: 16px 0;

  color: var(--text-light);
  font-size: 14px;
  line-height: 1.55;

  border-bottom: 1px solid var(--border);
}

.about-timeline li:first-child {
  padding-top: 2px;
}

.about-timeline li:last-child {
  padding-bottom: 2px;
  border-bottom: none;
}

.about-year {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}


/* Выставки и преподавание */

.about-lower {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);

  margin-bottom: clamp(76px, 9vw, 116px);
}

.about-main .about-exhibitions {
  align-self: start;

  padding: 0;

  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.exhibition-group + .exhibition-group {
  margin-top: 32px;
}

.exhibition-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exhibition-list li {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 13px;

  padding: 14px 0;

  color: var(--text-light);
  font-size: 14px;
  line-height: 1.55;

  border-bottom: 1px solid var(--border);
}

.exhibition-list li:last-child {
  border-bottom: none;
}

.exhibition-year {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.about-pedagogy .section-title {
  text-align: left;
}

.about-pedagogy .work-history {
  display: grid;
  gap: var(--sp-lg);
  margin: 0;
}

.about-pedagogy .work-item {
  margin: 0;
  padding: clamp(22px, 2.8vw, 32px);

  background: var(--bg-card);
  border-left: 3px solid var(--primary);
  border-radius: 8px;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.about-pedagogy .work-item:hover {
  background: rgba(56, 210, 212, 0.05);
  transform: translateX(4px);
}

.about-pedagogy .work-period {
  margin-bottom: 8px;

  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.about-pedagogy .work-organization {
  margin-bottom: var(--sp-md);

  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.about-pedagogy .work-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  list-style: none;
  padding: 0;
  margin: var(--sp-md) 0 0;
}

.about-pedagogy .work-disciplines li {
  padding: 6px 14px;

  background: rgba(56, 210, 212, 0.1);
  border: 1px solid var(--primary);
  border-radius: 16px;

  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}


/* Важные цифры */

.about-stats {
  width: 100%;
}

.about-stats > .section-title {
  margin-bottom: 30px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.stat-card {
  --stat-image:
    linear-gradient(
      135deg,
      rgba(56, 210, 212, 0.32),
      rgba(42, 42, 42, 0.2) 55%,
      rgba(0, 0, 0, 0.35)
    );

  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 4;

  overflow: hidden;
  padding: 26px 24px;

  background: #252525;
  border: 1px solid var(--border);
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.stat-card--teaching {
  --stat-image: url('/images/about/teaching.jpg');
}

.stat-card--drawing {
  --stat-image: url('/images/about/drawing.jpg');
}

.stat-card--design {
  --stat-image: url('/images/about/design.jpg');
}

.stat-card--nature {
  --stat-image: url('/images/about/nature.jpg');
}

.stat-card::before {
  content: '';

  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: var(--stat-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  opacity: 0.86;
  filter: brightness(1.1) saturate(1.08);

  transition:
    transform 0.5s ease,
    opacity 0.3s ease;
}

.stat-card::after {
  content: '';

  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    linear-gradient(
      to top,
      rgba(20, 20, 20, 0.52) 0%,
      rgba(20, 20, 20, 0.12) 45%,
      rgba(20, 20, 20, 0.02) 100%
    );
}

.stat-card > * {
  position: relative;
  z-index: 1;
}

.stat-card:hover {
  border-color: rgba(56, 210, 212, 0.75);
  transform: translateY(-5px);
}

.stat-card:hover::before {
  opacity: 0.96;
  transform: scale(1.05);
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 7px;

  margin-bottom: 13px;
}

.stat-number {
  display: inline-block;

  color: var(--primary);
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -3px;
  transform-origin: center bottom;
  will-change: transform;

  animation: stat-number-motion 4.8s ease-in-out infinite;
}

.stat-unit {
  color: var(--text-light);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.stat-label {
  max-width: 230px;

  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.stat-card:nth-child(2) .stat-number {
  animation-delay: -1.2s;
}

.stat-card:nth-child(3) .stat-number {
  animation-delay: -2.4s;
}

.stat-card:nth-child(4) .stat-number {
  animation-delay: -3.6s;
}

@keyframes stat-number-motion {
  0%,
  100% {
    transform: scale(1) rotate(-1.8deg);
  }

  25% {
    transform: scale(1.025) rotate(0.4deg);
  }

  50% {
    transform: scale(1.055) rotate(1.8deg);
  }

  75% {
    transform: scale(1.025) rotate(-0.4deg);
  }
}

.about-reveal {
  opacity: 0;
  transform: translate3d(0, 44px, 0);

  animation:
    about-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1)
    var(--delay, 0s) both;
}

@keyframes about-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 44px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


/* =========================================================
   СТРАНИЦА «КОНТАКТЫ»
   ========================================================= */

/* =========================================================
   СТРАНИЦА «КОНТАКТЫ»
   ========================================================= */

.contact-main {
  padding: clamp(58px, 8vw, 92px) 24px 96px;
}

.contact-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}


/* Текст и почта */

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 64px);

  margin-bottom: clamp(72px, 9vw, 112px);
}

.contact-message {
  padding: clamp(28px, 4vw, 48px);

  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
}

.contact-heading {
  margin: 0 0 24px;

  color: var(--primary);
  font-size: clamp(23px, 2.8vw, 31px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.contact-message p {
  max-width: 680px;
  margin-bottom: 18px;

  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

.contact-message p:last-child {
  margin-bottom: 0;
}


/* Почта */

.contact-links {
  display: flex;
  align-items: stretch;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 17px;

  width: 100%;
  min-height: 112px;
  padding: 22px 24px;

  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;

  color: var(--text-light);
  text-decoration: none;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.contact-link:hover {
  background: rgba(56, 210, 212, 0.06);
  border-color: rgba(56, 210, 212, 0.7);
  transform: translateY(-5px);
}

.contact-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  width: 48px;
  height: 48px;

  color: var(--bg-dark);
  background: var(--primary);
  border-radius: 50%;

  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.contact-link__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.contact-link__label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-link__value {
  overflow-wrap: anywhere;

  color: var(--text-light);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}


/* Профили */

.contact-profiles {
  margin-bottom: 0;
}

.contact-profiles > .contact-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.contact-profiles__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.contact-profile {
  position: relative;

  display: flex;
  flex-direction: column;

  min-height: 220px;
  padding: 22px 18px;

  background: transparent;
  border: 1px solid var(--border);
  border-radius: 17px;

  color: var(--text-light);
  text-decoration: none;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.contact-profile:hover {
  background: var(--bg-card);
  border-color: rgba(56, 210, 212, 0.7);
  transform: translateY(-6px);
}


/* Область логотипа */

.contact-profile__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;
  margin-bottom: auto;
  padding: 10px;

  color: var(--primary);
  background: rgba(56, 210, 212, 0.1);
  border: 1px solid rgba(56, 210, 212, 0.55);
  border-radius: 14px;

  line-height: 1;
}

.contact-profile__logo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;
}

.contact-profile__logo svg {
  display: block;

  width: 29px;
  height: 29px;

  fill: currentColor;
}


/* Текстовый логотип Behance */

.contact-profile__logo--behance {
  padding: 8px;

  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.12em;
}


/* Название и описание профиля */

.contact-profile__name {
  display: block;
  margin-bottom: 8px;

  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.contact-profile__description {
  display: block;
  max-width: 150px;

  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.contact-profile__arrow {
  position: absolute;
  top: 23px;
  right: 18px;

  color: var(--primary);
  font-size: 20px;
  line-height: 1;
}


/* Плавное появление */

.contact-reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);

  animation:
    contact-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1)
    var(--contact-delay, 0s) both;
}

@keyframes contact-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


/* Планшет */

@media (max-width: 980px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-links {
    max-width: 520px;
  }

  .contact-profiles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Мобильная версия */

@media (max-width: 768px) {
  .contact-main {
    padding: 46px 16px 68px;
  }

  .contact-content {
    gap: 18px;
    margin-bottom: 68px;
  }

  .contact-message {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .contact-heading {
    margin-bottom: 20px;
    font-size: 23px;
  }

  .contact-message p {
    font-size: 14px;
  }

  .contact-link {
    min-height: 92px;
    padding: 19px;
  }

  .contact-link__icon {
    width: 43px;
    height: 43px;
    font-size: 22px;
  }

  .contact-link__value {
    font-size: 14px;
  }

  .contact-profiles > .contact-heading {
    margin-bottom: 24px;
    font-size: 23px;
  }

  .contact-profiles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .contact-profile {
    min-height: 190px;
    padding: 19px 16px;
  }

  .contact-profile__logo {
    width: 48px;
    height: 48px;
    padding: 8px;
  }

  .contact-profile__name {
    font-size: 15px;
  }
}


/* Очень маленькие экраны */

@media (max-width: 460px) {
  .contact-profiles__grid {
    grid-template-columns: 1fr;
  }

  .contact-profile {
    min-height: 145px;
  }

  .contact-profile__description {
    max-width: none;
  }
}


/* Отключение анимации */

@media (prefers-reduced-motion: reduce) {
  .contact-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .contact-link,
  .contact-profile {
    transition: none;
  }
}
/* =========================================================
   ФУТЕР
   ========================================================= */

footer {
  margin-top: auto;
  padding: var(--sp-xl) var(--sp-md);

  background: var(--bg-card);
  border-top: 1px solid var(--border);

  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--sp-lg);

  margin-bottom: var(--sp-md);

  font-size: 13px;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;

  transition: color 0.3s ease;
}

.footer-links a.vk-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  color: var(--text-muted);
  border-radius: 6px;

  transition: all 0.3s ease;
}

.footer-links a.vk-link:hover {
  color: var(--primary);
  background: rgba(56, 210, 212, 0.1);
}

.footer-links a:nth-child(2) {
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: var(--sp-md);

  color: var(--text-muted);
  font-size: 13px;
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 980px) {
  .about-top,
  .about-lower {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    justify-self: center;
    max-width: 420px;
  }

  .about-top__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    width: 100%;
    max-width: 360px;
    justify-self: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-profiles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-services__grid {
    gap: 14px;
  }
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav--inner {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 999;

    width: 280px;
    height: 100vh;
    padding: 80px 24px 24px;

    overflow-y: auto;

    background: var(--bg-dark);
    border-left: 1px solid var(--border);

    transition: right 0.3s ease;
  }

  .main-nav--inner.active {
    right: 0;
  }

  .main-nav--inner .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav--inner .nav-item {
    border-bottom: 1px solid var(--border);
  }

  .main-nav--inner .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }

  .main-nav--inner .nav-link--active {
    font-size: 18px;
  }

  .main-nav--inner .nav-submenu {
    position: static;

    display: none;

    padding: 0;
    margin: 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .main-nav--inner .nav-item--parent.active .nav-submenu {
    display: block;
  }

  .main-nav--inner .nav-submenu-link {
    padding: 12px 0 12px 20px;
  }

  main {
    padding: var(--sp-2xl) var(--sp-md);
  }

  .about-main,
  .contact-main {
    padding: 46px 16px 68px;
  }

  .about-top {
    gap: 28px;
    margin-bottom: 72px;
  }

  .about-top__side {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-portrait {
    justify-self: center;
    max-width: 360px;
  }

  .about-portrait__image {
    border-radius: 15px;
  }

  .about-portrait__caption {
    padding-top: 12px;
    font-size: 12.5px;
    letter-spacing: 0.025em;
  }

  .about-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .about-main .section-title {
    margin-bottom: 21px;
    font-size: 23px;
  }

  .about-main .subsection-title {
    margin-top: 27px;
    font-size: 15.5px;
  }

  .about-timeline li {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;

    padding: 14px 0;

    font-size: 14px;
  }

  .exhibition-list li {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;

    font-size: 14px;
  }

  .about-lower {
    gap: 58px;
    margin-bottom: 78px;
  }

  .about-pedagogy .work-item {
    padding: 22px 18px;
  }

  .about-pedagogy .work-organization {
    font-size: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    width: 100%;
    max-width: 360px;
    min-height: 0;
    aspect-ratio: 3 / 4;
    justify-self: center;
    padding: 24px;
  }

  .stat-number {
    font-size: 68px;
  }


  /* Контакты */

  .contact-intro {
    margin-bottom: 52px;
  }

  .contact-kicker {
    margin-bottom: 13px;
    font-size: 12px;
  }

  .contact-title {
    margin-bottom: 20px;
    font-size: clamp(30px, 9vw, 42px);
    letter-spacing: -0.8px;
  }

  .contact-description {
    font-size: 15px;
    line-height: 1.6;
  }

  .contact-content {
    gap: 18px;
    margin-bottom: 72px;
  }

  .contact-message {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .contact-heading {
    margin-bottom: 20px;
    font-size: 23px;
  }

  .contact-message p {
    font-size: 14px;
  }

  .contact-links {
    display: flex;
    gap: 12px;
  }

  .contact-link {
    min-height: 86px;
    padding: 18px;
  }

  .contact-link__icon {
    width: 42px;
    height: 42px;
  }

  .contact-link__value {
    font-size: 14px;
  }

  .contact-profiles {
    margin-bottom: 72px;
  }

  .contact-section-heading {
    margin-bottom: 24px;
  }

  .contact-section-heading .contact-heading {
    text-align: left;
  }

  .contact-profiles__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-profile {
    min-height: 142px;
    padding: 20px;
  }

  .contact-profile__name {
    font-size: 17px;
  }

  .contact-services {
    margin-bottom: 68px;
  }

  .contact-services > .contact-heading {
    text-align: left;
  }

  .contact-services__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-service {
    min-height: auto;
    padding: 22px 20px;
  }

  .contact-service__number {
    margin-bottom: 18px;
  }

  .contact-final {
    font-size: 14px;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--sp-md);
  }
}


/* Очень маленькие экраны */

@media (max-width: 380px) {
  .about-portrait {
    max-width: 330px;
  }

  .about-portrait__caption {
    font-size: 11.5px;
  }

  .stat-card {
    padding: 21px;
  }

  .stat-number {
    font-size: 62px;
  }

  .contact-link {
    padding: 16px;
  }

  .contact-link__icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .contact-link__value {
    font-size: 13px;
  }
}


/* =========================================================
   ДОСТУПНОСТЬ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .about-reveal,
  .contact-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .stat-number {
    animation: none;
  }

  .stat-card,
  .stat-card::before,
  .about-pedagogy .work-item,
  .contact-link,
  .contact-profile,
  .contact-service {
    transition: none;
  }
}




/* =========================================================
   СТРАНИЦА «ХУДОЖНИК»
   ========================================================= */

.artist-main {
  padding: clamp(54px, 7vw, 82px) 24px 96px;
}

.artist-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}


/* Заголовок страницы */

.artist-page-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.artist-page-title {
  margin: 0 0 12px;

  color: var(--primary);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.artist-page-description {
  max-width: 650px;
  margin: 0;

  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}


/* Панель фильтров */

.artist-toolbar {
  position: sticky;
  top: 76px;
  z-index: 20;

  margin-bottom: clamp(54px, 7vw, 80px);
  padding: 8px 0 17px;

  background:
    linear-gradient(
      to bottom,
      var(--bg-dark) 0%,
      var(--bg-dark) 78%,
      rgba(26, 26, 26, 0) 100%
    );
}

.artist-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artist-filter__button {
  appearance: none;

  padding: 9px 14px;

  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;

  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.artist-filter__button:hover {
  color: var(--primary);
  border-color: rgba(56, 210, 212, 0.7);
  transform: translateY(-2px);
}

.artist-filter__button.is-active,
.artist-filter__button[aria-pressed='true'] {
  background: var(--primary);
  border-color: var(--primary);

  color: var(--bg-dark);
  font-weight: 600;
}

.artist-filter-mobile {
  display: none;
}


/* Разделы */

.artist-collection {
  margin-bottom: clamp(66px, 8vw, 104px);
}

.artist-collection.is-hidden,
.artist-project.is-hidden {
  display: none;
}

.artist-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 24px;
}

.artist-section-title {
  margin: 0;

  color: var(--primary);
  font-size: clamp(23px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.artist-section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;

  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.artist-section-link:hover {
  color: var(--primary);
  transform: translateX(3px);
}


/* Сетка превью */

.artist-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px 14px;
}

.artist-work-card {
  min-width: 0;

  color: var(--text-light);
}

.artist-work-card[hidden] {
  display: none !important;
}

.artist-work-card__figure {
  margin: 0;
}

.artist-work-card__image {
  aspect-ratio: 1 / 1;

  overflow: hidden;

  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.artist-work-card__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition:
    transform 0.5s ease,
    filter 0.35s ease;
}

.artist-work-card:hover .artist-work-card__image {
  border-color: rgba(56, 210, 212, 0.65);
}

.artist-work-card:hover .artist-work-card__image img {
  filter: brightness(1.06) saturate(1.05);
  transform: scale(1.045);
}

.artist-work-card__caption {
  display: flex;
  flex-direction: column;
  gap: 4px;

  padding: 11px 2px 0;
}

.artist-work-card__title {
  overflow: hidden;

  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-work-card__meta {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}


/* Проекты */

.artist-projects {
  margin-bottom: 0;
}

.artist-project {
  margin-top: 44px;
}

.artist-project + .artist-project {
  margin-top: 62px;
}

.artist-project__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 22px;
  padding-bottom: 15px;

  border-bottom: 1px solid var(--border);
}

.artist-project__title {
  margin: 0 0 5px;

  color: var(--text-light);
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 600;
  line-height: 1.25;
}

.artist-project__description {
  margin: 0;

  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}


/* Мобильная версия фильтров */

@media (max-width: 768px) {
  .artist-main {
    padding: 46px 16px 70px;
  }

  .artist-page-intro {
    margin-bottom: 25px;
  }

  .artist-page-title {
    font-size: 34px;
  }

  .artist-page-description {
    font-size: 14px;
  }

  .artist-toolbar {
    top: 69px;

    margin-bottom: 48px;
    padding: 5px 0 15px;
  }

  .artist-filter--desktop {
    display: none;
  }

  .artist-filter-mobile {
    display: block;

    width: 100%;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--bg-dark);
  }

  .artist-filter-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;

    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    list-style: none;
  }

  .artist-filter-mobile summary::-webkit-details-marker {
    display: none;
  }

  .artist-filter-mobile summary::after {
    content: '＋';

    color: var(--primary);
    font-size: 18px;
    font-weight: 400;
  }

  .artist-filter-mobile[open] summary::after {
    content: '−';
  }

  .artist-filter__current {
    margin-left: auto;
    margin-right: 14px;

    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
  }

  .artist-filter-mobile__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    padding: 0 12px 13px;

    border-top: 1px solid var(--border);
  }

  .artist-filter-mobile__options .artist-filter__button {
    margin-top: 10px;
  }

  .artist-section-heading {
    align-items: center;
    gap: 14px;
  }

  .artist-section-title {
    font-size: 24px;
  }

  .artist-section-link {
    font-size: 12px;
  }

  .artist-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 11px;
  }

  .artist-work-card__image {
    border-radius: 11px;
  }

  .artist-work-card__caption {
    padding-top: 9px;
  }

  .artist-work-card__title {
    font-size: 13px;
  }

  .artist-work-card__meta {
    font-size: 11px;
  }

  .artist-project__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;

    padding-bottom: 14px;
  }

  .artist-project__title {
    font-size: 20px;
  }

  .artist-project__description {
    font-size: 12px;
  }
}


/* Очень узкие экраны */

@media (max-width: 380px) {
  .artist-work-grid {
    gap: 17px 9px;
  }

  .artist-work-card__title {
    font-size: 12px;
  }

  .artist-work-card__meta {
    font-size: 10px;
  }
}


/* Отключение анимаций и плавных эффектов */

@media (prefers-reduced-motion: reduce) {
  .artist-filter__button,
  .artist-section-link,
  .artist-work-card__image img {
    transition: none;
  }
}