
/* =========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   Стили преподавателя находятся в teacher-styles.css.
   ========================================================= */


/* =========================================================
   ЛОКАЛЬНЫЙ ШРИФТ MONTSERRAT
   ========================================================= */

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

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

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

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

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


/* =========================================================
   ПЕРЕМЕННЫЕ
   По умолчанию внутренние страницы используют тёмную тему.
   ========================================================= */

:root {
  --primary: #099197;
  --primary-rgb: 9, 145, 151;

  --accent-on-dark: #b5decc;
  --accent-on-dark-rgb: 181, 222, 204;

  --accent-on-light: #762c19;
  --accent-on-light-rgb: 118, 44, 25;

  --accent: var(--accent-on-dark);
  --accent-rgb: var(--accent-on-dark-rgb);
  --on-accent: #1a1a1a;

  /* Совместимость с существующими отдельными CSS */
  --pink: var(--accent);

  --bg-dark: #1a1a1a;
  --bg-card: #2a2a2a;

  --text-light: #e8e8e8;
  --text-muted: #a0a0a0;
  --border: #3a3a3a;

  --focus: var(--accent);

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

  --header-height: 84px;
}


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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;

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

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

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

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

button,
input,
textarea,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}


/* =========================================================
   ШАПКА
   ========================================================= */

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

  flex-shrink: 0;
  height: var(--header-height);

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

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

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

.site-logo {
  display: block;
  min-width: 0;

  color: var(--text-light);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;

  transition: color 0.2s ease;
}

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


/* Кнопка мобильного меню */

.menu-toggle {
  position: relative;
  z-index: 1001;

  display: none;
  flex: 0 0 auto;

  width: 44px;
  height: 44px;
  padding: 0;

  appearance: none;
  background: transparent;
  border: none;

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

.menu-toggle span {
  position: absolute;
  left: 8px;
  top: calc(50% - 1.5px);

  display: block;
  width: 28px;
  height: 3px;

  background: currentColor;
  border-radius: 2px;

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

.menu-toggle span:nth-child(1) {
  transform: translateY(-8px);
}

.menu-toggle span:nth-child(2) {
  transform: translateY(0);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(8px);
}

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

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

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


/* =========================================================
   ОСНОВНОЕ МЕНЮ
   ========================================================= */

.main-nav--inner {
  min-width: 0;
}

.main-nav--inner .nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);

  list-style: none;
}

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

.main-nav--inner .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 8px 4px;

  color: var(--text-muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;

  transition: color 0.2s ease;
}

.main-nav--inner .nav-link:hover,
.main-nav--inner .nav-link:focus-visible {
  color: var(--accent);
}

.main-nav--inner .nav-link--active,
.main-nav--inner .nav-link[aria-current="page"],
.main-nav--inner .nav-item.is-active > .nav-link {
  color: var(--accent);
  font-weight: 600;
}


/* Кнопка «Портфолио» */

.main-nav--inner button.nav-dropdown-toggle {
  gap: 8px;

  -webkit-appearance: none;
  appearance: none;

  background: transparent;
  border: none;
  border-radius: 0;

  text-align: left;
  cursor: pointer;
}

.main-nav--inner .nav-dropdown-arrow {
  display: block;
  flex: 0 0 auto;

  width: 7px;
  height: 7px;

  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;

  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.main-nav--inner
.nav-dropdown-toggle[aria-expanded="true"]
.nav-dropdown-arrow {
  transform: translateY(2px) rotate(225deg);
}


/* Подменю: открытие управляется JavaScript через hidden */

.main-nav--inner .nav-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;

  min-width: 210px;
  padding: 6px 0;

  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);

  list-style: none;
}

.main-nav--inner .nav-submenu:not([hidden]) {
  display: block;
}

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

  min-height: 44px;
  padding: 12px 18px;

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

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.main-nav--inner .nav-submenu-link:hover,
.main-nav--inner .nav-submenu-link:focus-visible {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.main-nav--inner .nav-submenu-link--active,
.main-nav--inner .nav-submenu-link[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.main-nav--inner .nav-submenu-link:focus-visible {
  outline-offset: -3px;
}


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

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

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

.about-page-title {
  position: absolute;

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

  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);

  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;
  overflow-wrap: anywhere;
}

.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;
  min-width: 0;
  gap: 24px;
}

.about-portrait {
  justify-self: start;

  width: 100%;
  max-width: 420px;

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

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

  background: linear-gradient(
    135deg,
    rgba(var(--primary-rgb), 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 {
  min-width: 0;
  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;
}

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

  padding: 16px 0;

  color: var(--text-light);
  border-bottom: 1px solid var(--border);

  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

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

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

.about-year {
  color: var(--accent);
  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;
  min-width: 0;
  padding: 0;

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

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

.exhibition-list {
  list-style: none;
}

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

  padding: 14px 0;

  color: var(--text-light);
  border-bottom: 1px solid var(--border);

  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

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

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

.about-pedagogy {
  min-width: 0;
}

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

.about-pedagogy .work-item {
  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-color 0.3s ease;
}

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

  color: var(--accent);
  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;
  overflow-wrap: anywhere;
}

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

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

.about-pedagogy .work-disciplines li {
  max-width: 100%;
  padding: 6px 14px;

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

  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}


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

.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(var(--primary-rgb), 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-width: 0;
  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 {
  position: absolute;
  inset: 0;
  z-index: 0;

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

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

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

.stat-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;

  background: linear-gradient(
    to top,
    rgba(20, 20, 20, 0.78) 0%,
    rgba(20, 20, 20, 0.35) 45%,
    rgba(20, 20, 20, 0.02) 100%
  );

  content: '';
}

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

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

  margin-bottom: 13px;
}

.stat-number {
  display: inline-block;

  color: var(--accent-on-dark);
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -3px;

  transform-origin: center bottom;
  animation: stat-number-motion 4.8s ease-in-out infinite;
}

.stat-unit {
  color: #e8e8e8;
  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 {
  animation:
    about-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1)
    var(--delay, 0s) backwards;
}

@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;
  min-width: 0;
  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 {
  min-width: 0;
  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-bottom: 24px;

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

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

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

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

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;

  min-width: 0;
}

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

  width: 100%;
  min-width: 0;
  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-color 0.3s ease;
}

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

  width: 48px;
  height: 48px;

  background: var(--accent);
  border-radius: 50%;

  color: var(--on-accent);
  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 {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}


/* Профили */

.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-width: 0;
  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-color 0.3s ease,
    border-color 0.3s ease;
}

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

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

  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.7);
  border-radius: 14px;

  color: var(--accent);
  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;
}

.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: 16px 0 8px;

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

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

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

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

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

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

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

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


/* =========================================================
   ФУТЕР
   ========================================================= */

footer {
  margin-top: auto;
  padding: var(--sp-xl) var(--sp-md);
  padding-bottom: max(
    var(--sp-xl),
    env(safe-area-inset-bottom, 0px)
  );

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

  text-align: center;
}

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

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

  margin-bottom: var(--sp-md);
  font-size: 13px;
}

.footer-links a {
  max-width: 100%;

  color: var(--text-muted);
  font-weight: 400;
  text-decoration: none;
  overflow-wrap: anywhere;

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

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

  width: 44px;
  height: 44px;
  border-radius: 6px;
}

.footer-links .vk-link svg {
  display: block;
}

.footer-links a.vk-link:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

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

  min-height: 44px;
  font-weight: 600;
}

/* Совместимость со старой разметкой футера */
.footer-links a:nth-child(2) {
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

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

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


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

.artist-main {
  /* Старое имя переменной оставлено для совместимости */
  --artist-pink: var(--accent);

  padding: clamp(54px, 7vw, 84px) 24px 96px;
}

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

.artist-page-intro {
  margin-bottom: clamp(42px, 6vw, 64px);
}

.artist-page-title {
  color: var(--primary);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}

.artist-collection {
  width: 100%;
  min-width: 0;
}

.artist-collection + .artist-collection {
  margin-top: clamp(48px, 6vw, 76px);
}

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

  margin-bottom: 25px;
}

.artist-main .artist-section-title {
  color: var(--primary);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}

.artist-main .artist-section-title a {
  color: inherit;
  text-decoration: none;
}

.artist-main .artist-section-title a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}


/* «Смотреть все работы» */

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

  min-height: 44px;

  color: var(--artist-pink, var(--accent));
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;

  transition: transform 0.25s ease;
}

.artist-section-link::after {
  display: block;
  flex: 0 0 auto;

  width: 0;
  height: 0;

  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;

  content: '';
  transition: transform 0.25s ease;
}

.artist-section-link:visited {
  color: var(--artist-pink, var(--accent));
}

.artist-section-link:focus-visible {
  outline-color: var(--accent);
  outline-offset: 6px;
}


/* Квадратные превью */

.artist-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
}

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

  color: inherit;
  text-decoration: none;
}

.artist-work-card__image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;

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

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

.artist-work-card__image img {
  display: block;
  width: 100%;
  height: 100%;

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

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

.artist-work-card:focus-visible {
  outline-color: var(--accent);
  outline-offset: 6px;
}


/* =========================================================
   ПОЛНЫЕ РАЗДЕЛЫ ХУДОЖНИКА
   ========================================================= */

.artist-section-main {
  --artist-section-bg: var(--bg-dark);
  --artist-section-card: var(--bg-card);
  --artist-section-text: var(--text-light);
  --artist-section-muted: var(--text-muted);
  --artist-section-border: var(--border);
  --artist-section-primary: var(--primary);

  /* Старое имя переменной оставлено для совместимости */
  --artist-section-pink: var(--accent);

  padding: clamp(42px, 6vw, 76px) 24px 96px;

  background: var(--artist-section-bg);
  color: var(--artist-section-text);
}

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


/* Возврат */

.artist-section-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 44px;
  margin-bottom: 30px;

  color: var(--artist-section-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;

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

.artist-section-back span {
  color: var(--artist-section-pink);
  font-size: 19px;
  line-height: 1;
}

.artist-section-back:focus-visible {
  outline-color: var(--artist-section-pink);
}


/* Заголовок полного раздела */

.artist-section-header {
  max-width: 780px;
  margin-bottom: 35px;
}

.artist-section-main .artist-section-title {
  margin-bottom: 13px;

  color: var(--artist-section-primary);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
}

.artist-section-description {
  max-width: 680px;

  color: var(--artist-section-muted);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}


/* Вступление проекта */

.artist-section-container .artist-project-intro {
  width: 100%;
  max-width: none;
  margin: 32px 0 48px;

  color: var(--artist-section-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  text-align: left;
  overflow-wrap: break-word;
}

.artist-section-container .artist-project-intro p {
  margin: 0 0 24px;

  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.artist-section-container .artist-project-intro strong,
.artist-section-container .artist-project-intro b {
  color: inherit;
}

.artist-section-container .artist-project-intro a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.artist-section-container .artist-project-intro a:hover,
.artist-section-container .artist-project-intro a:focus-visible {
  color: var(--artist-section-pink);
}

.artist-section-container .artist-project-intro > :first-child {
  margin-top: 0;
}

.artist-section-container .artist-project-intro > :last-child {
  margin-bottom: 0;
}


/* Фильтры */

.artist-section-filters {
  position: sticky;
  top: var(--header-height);
  z-index: 10;

  margin-bottom: clamp(42px, 6vw, 64px);
  padding: 8px 0 16px;

  background: linear-gradient(
    to bottom,
    var(--artist-section-bg) 0%,
    var(--artist-section-bg) 78%,
    transparent 100%
  );
}

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

.artist-filter-button {
  min-height: 44px;
  max-width: 100%;
  padding: 9px 14px;

  appearance: none;
  background: transparent;
  border: 1px solid var(--artist-section-border);
  border-radius: 9px;

  color: var(--artist-section-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
  cursor: pointer;

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

.artist-filter-button.is-active {
  background: var(--artist-section-pink);
  border-color: var(--artist-section-pink);

  color: var(--on-accent);
  font-weight: 700;
}

.artist-filter-button:focus-visible {
  outline-color: var(--artist-section-pink);
  outline-offset: 3px;
}

.artist-section-filters__mobile {
  display: none;
}


/* =========================================================
   ГАЛЕРЕЯ ХУДОЖНИКА
   ========================================================= */

.artist-gallery {
  column-count: 3;
  column-gap: 18px;
}

.artist-gallery-card {
  display: block;
  break-inside: avoid;
  page-break-inside: avoid;

  margin-bottom: 28px;

  color: inherit;
  text-decoration: none;
}

.artist-gallery .artist-gallery-card {
  overflow: hidden;

  border: 1px solid var(
    --artist-section-border,
    rgba(255, 255, 255, 0.12)
  );
  border-radius: 14px;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.artist-gallery-card:focus-visible {
  outline-color: var(--artist-section-pink);
  outline-offset: 5px;
}

.artist-gallery-card__media {
  position: relative;
  display: block;
  overflow: hidden;

  background: var(--artist-section-card);
  border: 0;
  border-radius: 0;
}

.artist-gallery-card__media img {
  display: block;
  width: 100%;
  height: auto;

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


/* Подписи */

.artist-gallery-card__info {
  display: flex;
  flex-direction: column;
  gap: 5px;

  padding: 16px 18px 20px;
}

.artist-gallery-card__title {
  display: block;

  color: var(--artist-section-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.artist-gallery-card__details {
  display: block;

  color: var(--artist-section-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.artist-gallery .artist-gallery-card__description {
  display: block;

  width: 100%;
  height: auto;
  max-height: none;
  margin-top: 14px;

  color: var(--artist-section-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  text-align: left;

  white-space: pre-line;
  overflow-wrap: anywhere;
  overflow: visible;
  -webkit-line-clamp: unset;
}


/* Наличие работы */

.artist-availability {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 7px 10px;

  background: var(--artist-section-pink);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.25);

  color: var(--on-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.artist-availability > span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}


/* Статус фильтрации */

.artist-gallery-status {
  margin-bottom: 18px;

  color: var(--artist-section-muted);
  font-size: 12px;
  line-height: 1.5;
}


/* =========================================================
   ЭФФЕКТЫ НАВЕДЕНИЯ
   Только для устройств с мышью.
   ========================================================= */

@media (hover: hover) and (pointer: fine) {
  .about-pedagogy .work-item:hover {
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateX(4px);
  }

  .stat-card:hover {
    border-color: rgba(var(--primary-rgb), 0.85);
    transform: translateY(-5px);
  }

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

  .contact-link:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.7);
    transform: translateY(-5px);
  }

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

  .artist-section-link:hover {
    color: var(--artist-pink, var(--accent));
    transform: translateX(4px);
  }

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

  .artist-work-card:hover .artist-work-card__image {
    border-color: rgba(var(--accent-rgb), 0.8);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
  }

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

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

  .artist-filter-button:hover {
    border-color: var(--artist-section-pink);
    transform: translateY(-2px);
  }

  .artist-filter-button:not(.is-active):hover {
    color: var(--artist-section-pink);
  }

  .artist-gallery .artist-gallery-card:hover {
    border-color: rgba(var(--accent-rgb), 0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  }

  .artist-gallery-card:hover .artist-gallery-card__media img {
    filter: brightness(1.04) saturate(1.04);
    transform: scale(1.025);
  }
}


/* =========================================================
   PHOTOSWIPE: ПРОСМОТР РАБОТ
   Окно просмотра всегда использует тёмный фон.
   ========================================================= */

.pswp {
  --pswp-bg: #111111;
  --pswp-icon-color: #e8e8e8;
  --pswp-icon-color-secondary: #1a1a1a;

  font-family: 'Montserrat', Arial, sans-serif;
}


/* Нижняя область с подписью */

.pswp .pswp__artist-caption {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: 100%;
  height: 100px;
  margin: 0;
  padding: 12px 24px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));

  overflow-y: auto;

  background: #111111;
  color: #e8e8e8;

  text-align: center;
  cursor: default;
}

.pswp .pswp__artist-caption.has-description {
  justify-content: flex-start;
}


/* Название работы */

.pswp .pswp__artist-caption-title {
  flex-shrink: 0;

  width: 100%;
  max-width: 900px;
  margin: 0;

  color: #e8e8e8;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}


/* Техника, год и размер */

.pswp .pswp__artist-caption-details {
  flex-shrink: 0;

  width: 100%;
  max-width: 900px;
  margin: 0;

  color: #a0a0a0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}


/* Описание работы */

.pswp .pswp__artist-caption-description {
  flex-shrink: 0;

  width: 100%;
  max-width: 900px;
  margin: 4px 0 0;

  color: #a0a0a0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;

  white-space: pre-line;
  overflow-wrap: anywhere;
}

.pswp .pswp__button:focus-visible {
  outline: 2px solid var(--accent-on-dark);
  outline-offset: -5px;
}


/* =========================================================
   ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ
   ========================================================= */

.privacy-page {
  padding: 48px 24px 80px;
}

.privacy-document {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-document h1 {
  margin-bottom: 32px;

  color: var(--text-light);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.privacy-document__content {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.privacy-document__content h2 {
  margin: 32px 0 14px;

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

.privacy-document__content p,
.privacy-document__content ul,
.privacy-document__content ol {
  margin-bottom: 18px;
}

.privacy-document__content ul,
.privacy-document__content ol {
  padding-left: 24px;
}

.privacy-document__content li + li {
  margin-top: 8px;
}

.privacy-document__content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================================================
   ПЛАНШЕТ: ДО 980 PX
   ========================================================= */

@media (max-width: 980px) {
  .header-inner {
    gap: 16px;
    padding-inline: 24px;
  }

  .site-logo {
    font-size: 20px;
  }

  .main-nav--inner .nav-menu {
    gap: 16px;
  }

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


  /* Обо мне */

  .about-top,
  .about-lower {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    justify-self: center;
  }

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

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

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


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

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

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

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


  /* Художник */

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

  .artist-gallery {
    column-count: 2;
  }
}


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

@media (max-width: 768px) {
  :root {
    --header-height: 76px;
  }


  /* Шапка */

  .header-inner {
    padding-inline: 16px;
  }

  .site-logo {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: block;
  }


  /* Выезжающее меню */

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

    width: min(320px, 100%);
    height: 100vh;
    height: 100dvh;

    padding:
      calc(var(--header-height) + 12px)
      24px
      calc(24px + env(safe-area-inset-bottom, 0px));

    overflow-y: auto;
    overscroll-behavior: contain;

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

    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);

    transition:
      transform 0.3s ease,
      visibility 0s linear 0.3s;
  }

  .main-nav--inner.active {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);

    transition:
      transform 0.3s ease,
      visibility 0s;
  }

  .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: flex;
    justify-content: flex-start;

    width: 100%;
    min-height: 54px;
    padding: 16px 0;

    font-size: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .main-nav--inner button.nav-dropdown-toggle {
    justify-content: space-between;
  }

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

    width: 100%;
    min-width: 0;
    padding: 0 0 8px;

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

  .main-nav--inner .nav-submenu-link {
    padding: 12px 8px 12px 20px;
    white-space: normal;
    overflow-wrap: anywhere;
  }


  /* Общие отступы */

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


  /* Обо мне */

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

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

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

  .about-portrait {
    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;
  }

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

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

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

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

  .stat-card {
    padding: 24px;
  }

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


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

  .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;
  }


  /* Обзорная страница художника */

  .artist-main {
    padding: 46px 16px 70px;
  }

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

  .artist-page-title {
    font-size: clamp(26px, 5vw, 34px);
  }

  .artist-section-heading {
    gap: 16px;
    margin-bottom: 20px;
  }

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

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

  .artist-section-link::after {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 7px;
  }

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

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


  /* Полные разделы художника */

  .artist-section-main {
    padding: 40px 16px 70px;
  }

  .artist-section-back {
    margin-bottom: 24px;
  }

  .artist-section-header {
    margin-bottom: 26px;
  }

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

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

  .artist-section-filters {
    margin-bottom: 40px;
    padding: 5px 0 15px;
  }

  .artist-section-filters__desktop {
    display: none;
  }

  .artist-section-filters__mobile {
    display: block;

    background: var(--artist-section-bg);
    border: 1px solid var(--artist-section-border);
    border-radius: 10px;
  }

  .artist-section-filters__mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    min-height: 44px;
    padding: 12px 14px;

    color: var(--artist-section-text);
    font-size: 14px;
    font-weight: 600;

    list-style: none;
    cursor: pointer;
  }

  .artist-section-filters__mobile summary::-webkit-details-marker {
    display: none;
  }

  .artist-section-filters__mobile summary::marker {
    content: '';
  }

  .artist-section-filters__mobile summary::after {
    flex: 0 0 auto;

    color: var(--artist-section-pink);
    content: '+';

    font-size: 20px;
    font-weight: 400;
    line-height: 1;
  }

  .artist-section-filters__mobile[open] summary::after {
    content: '−';
  }

  .artist-section-filters__current {
    min-width: 0;
    margin-left: auto;

    color: var(--artist-section-pink);
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .artist-section-filters__mobile-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    padding: 12px;
    border-top: 1px solid var(--artist-section-border);
  }

  .artist-section-filters__mobile-options .artist-filter-button {
    min-height: 44px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .artist-gallery {
    column-count: 1;
  }

  .artist-gallery-card {
    margin-bottom: 30px;
  }

  .artist-gallery-card__title {
    font-size: 14px;
  }

  .artist-availability {
    top: 8px;
    right: 8px;

    padding: 6px 8px;
    font-size: 9px;
  }

  .artist-availability > span {
    font-size: 11px;
  }


  /* PhotoSwipe */

  .pswp .pswp__artist-caption {
    padding-inline: 16px;
  }

  .pswp .pswp__artist-caption-title {
    font-size: 14px;
  }

  .pswp .pswp__artist-caption-details {
    font-size: 12px;
  }


  /* Футер */

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


/* =========================================================
   ПОЛИТИКА: ДО 767 PX
   ========================================================= */

@media (max-width: 767px) {
  .privacy-page {
    padding: 32px 16px 56px;
  }

  .privacy-document__content {
    font-size: 15px;
  }
}


/* =========================================================
   ДОПОЛНИТЕЛЬНАЯ АДАПТАЦИЯ: ДО 600 PX
   ========================================================= */

@media (max-width: 600px) {
  .artist-section-container .artist-project-intro {
    margin: 24px 0 36px;
    font-size: 15px;
    line-height: 1.85;
  }

  .artist-section-container .artist-project-intro p {
    margin-bottom: 20px;
  }

  .artist-section-container .artist-project-intro > :last-child {
    margin-bottom: 0;
  }

  .artist-gallery .artist-gallery-card {
    border-radius: 12px;
  }

  .artist-gallery-card__info {
    padding: 14px 16px 18px;
  }

  .artist-gallery .artist-gallery-card__description {
    margin-top: 12px;
    line-height: 1.75;
  }

  .pswp .pswp__artist-caption-description {
    font-size: 13px;
  }
}


/* =========================================================
   НЕБОЛЬШИЕ ТЕЛЕФОНЫ
   ========================================================= */

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

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

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

@media (max-width: 390px) {
  .artist-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

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

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

@media (max-width: 380px) {
  .site-logo {
    font-size: 18px;
  }

  .about-portrait {
    max-width: 330px;
  }

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

  .stat-card {
    padding: 21px;
  }

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

  .contact-link {
    gap: 12px;
    padding: 16px;
  }

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

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


/* =========================================================
   ДОСТУПНОСТЬ: УМЕНЬШЕНИЕ ДВИЖЕНИЯ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .about-reveal,
  .contact-reveal {
    opacity: 1;
    transform: none;
  }

  .stat-card:hover,
  .stat-card:hover::before,
  .about-pedagogy .work-item:hover,
  .contact-link:hover,
  .contact-profile:hover,
  .artist-section-link:hover,
  .artist-section-link:hover::after,
  .artist-section-back:hover,
  .artist-filter-button:hover,
  .artist-work-card:hover .artist-work-card__image,
  .artist-work-card:hover .artist-work-card__image img,
  .artist-gallery-card:hover .artist-gallery-card__media img {
    transform: none;
  }
}

