/* =============================================================================
   Переменные и база
   ============================================================================= */

:root {
  /* Тёмная минималистичная палитра + black glass */
  --color-bg: #0a0a0a;
  --color-bg-elevated: #0c0c0c;
  --color-surface: #0e0e0e;
  --color-text: #ffffff;
  --color-text-muted: #bdbdbd;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-strong: rgba(255, 255, 255, 0.14);
  --color-dark: #0a0a0a;
  --color-white: #ffffff;
  --color-accent: #ffffff;
  --color-accent-hover: #e0e0e0;
  --color-on-light: #121212;
  --hero-bg: #0a0a0a;
  --hero-text: #ffffff;
  --hero-text-muted: #bdbdbd;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-hero-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-hero-playfair: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-size-body: 1rem;
  --font-size-body-sm: 0.9375rem;
  --font-size-caption: 0.75rem;
  --font-size-overline: 0.6875rem;
  --leading-body: 1.65;
  --leading-tight: 1.3;
  --letter-ui: 0.06em;
  --letter-overline: 0.12em;
  --transition: 0.25s ease;
  --transition-slow: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-glass: clamp(1.125rem, 2.2vw, 1.5rem);
  --glass-bg: rgba(255, 255, 255, 0.048);
  --glass-bg-strong: rgba(255, 255, 255, 0.074);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-border-soft: rgba(255, 255, 255, 0.095);
  --glass-blur: 18px;
  --glass-shadow: 0 14px 44px rgba(0, 0, 0, 0.52), 0 4px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-card: none;
  --section-space: clamp(4rem, 8vw, 5.5rem);
  --section-padding-y: clamp(3.5rem, 8vw, 5.5rem);
  --section-title-space-below: clamp(1.75rem, 4vw, 2.5rem);
  --grid-gap: 1.25rem;
  --grid-gap-tight: 1rem;
  --media-aspect-portrait: 3 / 4;
  --reveal-duration: 1.1s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --photo-glow-duration: 0.85s;
  --photo-glow-ease: cubic-bezier(0.33, 1, 0.68, 1);
  /* Hover у фото в портфолио / обо мне: scale + подсветка снизу без оверлея */
  --photo-hover-duration: 0.62s;
  --hover-ui-duration: 0.55s;
  --hover-ui-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --child-reveal-duration: 0.72s;
  /* Мобильное поэтапное появление при скролле (≤768px) */
  --m-reveal-duration: 1.22s;
  --m-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --m-reveal-y: 30px;
  --m-reveal-stagger: 0.12s;
  --announcement-bar-duration: 72s;
  --site-bg-base: #050505;
  --hero-halo-pulse: 26s;
  --site-bg-alive-cycle: 160s;
  /* Apple-style: мягкое свечение снизу внутри карточки (как «Услуги») */
  --apple-glow-inner: linear-gradient(
    to top,
    rgba(244, 244, 250, 0.44) 0%,
    rgba(228, 228, 236, 0.22) 46%,
    transparent 100%
  );
  --apple-glow-shadow-strong:
    0 16px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 40px rgba(255, 255, 255, 0.12),
    0 22px 58px rgba(255, 255, 255, 0.07);
  --apple-glow-lift: translateY(-3px);
}

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

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--site-bg-base);
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html {
    overflow-x: hidden;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: 0.01em;
  color: var(--color-text);
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background-color: var(--site-bg-base);
  background-image: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

/* Живой тёмный фон: глубокий чёрный / графит, очень медленный дрейф (десктоп + мобильный) */
.site-bg-parallax {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--site-bg-base);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.site-bg-parallax::before {
  content: "";
  position: absolute;
  left: -32%;
  top: -32%;
  width: 164%;
  height: 164%;
  background:
    radial-gradient(ellipse 52% 48% at 30% 24%, rgba(20, 20, 24, 0.38) 0%, transparent 58%),
    radial-gradient(ellipse 46% 42% at 76% 70%, rgba(7, 7, 10, 0.52) 0%, transparent 56%),
    radial-gradient(ellipse 54% 44% at 48% 88%, rgba(11, 11, 15, 0.36) 0%, transparent 54%);
  animation: site-bg-alive-drift var(--site-bg-alive-cycle) ease-in-out infinite alternate;
}

.site-bg-parallax::after {
  content: "";
  position: absolute;
  left: -28%;
  top: -28%;
  width: 156%;
  height: 156%;
  background: radial-gradient(ellipse 38% 34% at 64% 20%, rgba(15, 15, 19, 0.26) 0%, transparent 52%);
  animation: site-bg-alive-drift-alt calc(var(--site-bg-alive-cycle) * 1.28) ease-in-out infinite alternate-reverse;
  opacity: 0.9;
}

@keyframes site-bg-alive-drift {
  0% {
    transform: translate3d(-1.6%, -1.1%, 0) scale(1.02);
  }

  100% {
    transform: translate3d(1.6%, 1.1%, 0) scale(1.055);
  }
}

@keyframes site-bg-alive-drift-alt {
  0% {
    transform: translate3d(1.2%, -0.9%, 0) scale(1.03);
  }

  100% {
    transform: translate3d(-1.2%, 0.9%, 0) scale(1.04);
  }
}

@media (max-width: 768px) {
  .site-bg-parallax {
    top: -8vh;
    height: 118vh;
    height: 118dvh;
    min-height: 0;
  }

  main {
    position: relative;
    z-index: 1;
  }

  .site-footer {
    position: relative;
    z-index: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-bg-parallax::before,
  .site-bg-parallax::after {
    animation: none;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  main,
  .site-footer {
    position: relative;
    z-index: 1;
  }
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  main {
    overflow-x: hidden;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition),
    border-color var(--transition), opacity var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 1.5rem);
  padding-right: clamp(1rem, 4vw, 1.5rem);
}

/* Общие отступы секций: без собственного фона — единое чёрное пространство */
main > section {
  padding: var(--section-padding-y) 0;
  background-color: transparent;
}

main > section.hero {
  padding-top: clamp(2.75rem, 7.5vh, 4.75rem);
  padding-bottom: clamp(1.25rem, 4vh, 2.25rem);
}

/* Бесшовный стык с первым экраном: меньше «воздуха», чем у остальных секций */
main > section.about {
  padding-top: clamp(0.5rem, 1.8vw, 1.25rem);
  padding-bottom: var(--section-padding-y);
}

/* =============================================================================
   Верх сайта: полоса объявления + шапка (один sticky-блок)
   ============================================================================= */

.site-top {
  position: sticky;
  top: 0;
  z-index: 200;
  padding-top: max(env(safe-area-inset-top, 0px), clamp(0.5rem, 1.5vw, 1rem));
  box-sizing: border-box;
}

.announcement-bar {
  background-color: rgba(7, 7, 10, 0.48);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  border-bottom: 1px solid var(--glass-border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.announcement-bar__track {
  overflow: hidden;
  padding-block: 0.3125rem;
  min-height: 1.375rem;
}

.announcement-bar__marquee {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  animation: announcement-marquee var(--announcement-bar-duration) linear infinite;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.announcement-bar__repeat {
  flex: 0 0 auto;
}

.announcement-bar__segment {
  display: block;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 248, 0.85);
}

@keyframes announcement-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes about-reveal-piece {
  from {
    opacity: 0;
    transform: translateY(1.05rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes about-photo-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes about-photo-float-img {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-3.5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar__marquee {
    animation: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .announcement-bar__repeat:not(:only-child):last-of-type {
    display: none;
  }

  .announcement-bar__repeat:first-of-type .announcement-bar__segment {
    text-align: center;
    white-space: normal;
    padding-inline: 0.75rem;
    letter-spacing: 0.1em;
  }
}

/* =============================================================================
   Шапка
   ============================================================================= */

.site-header {
  background-color: rgba(7, 7, 10, 0.46);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  border-bottom: 1px solid var(--glass-border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 1.625rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 0;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.logo__img {
  display: block;
  width: auto;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  /* Увеличиваем визуально логотип, не меняя высоту шапки (transform не влияет на flow) */
  transform: scale(1.12);
  transform-origin: left center;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  vertical-align: middle;
  transition: filter var(--hover-ui-duration) var(--hover-ui-ease);
}

@media (min-width: 769px) {
  .logo {
    max-width: min(62%, 26rem);
  }

  .logo__img {
    height: 80px;
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  .logo {
    max-width: calc(100% - 3.25rem);
  }

  .logo__img {
    transform: scale(1.15);
  }
}

@media (min-width: 769px) and (max-width: 960px) {
  .logo {
    max-width: min(44%, 17rem);
  }

  .main-nav ul {
    gap: 0.5rem 0.7rem;
  }
}

.logo:hover .logo__img,
.logo:focus-visible .logo__img {
  filter: brightness(1.1);
}

.logo:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  color: var(--color-text);
  transition:
    background-color var(--hover-ui-duration) var(--hover-ui-ease),
    color var(--hover-ui-duration) var(--hover-ui-ease),
    box-shadow var(--hover-ui-duration) var(--hover-ui-ease);
}

.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 28px rgba(255, 255, 255, 0.14);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0 auto;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.site-header.nav-open .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.main-nav {
  font-family: var(--font-ui);
  flex: 0 0 auto;
  min-width: 0;
}

.main-nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1.125rem;
}

.main-nav a {
  font-size: var(--font-size-caption);
  font-weight: 600;
  letter-spacing: var(--letter-ui);
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.35rem 0;
  transition:
    color var(--hover-ui-duration) var(--hover-ui-ease),
    text-shadow var(--hover-ui-duration) var(--hover-ui-ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  transform: scaleX(0);
  transform-origin: left;
  transition:
    transform var(--hover-ui-duration) var(--hover-ui-ease),
    box-shadow var(--hover-ui-duration) var(--hover-ui-ease);
}

.main-nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.42);
}

.main-nav a:hover::after {
  transform: scaleX(1);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
  header {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Mobile: компактнее sticky-блок (marquee + header) */
  .site-top {
    padding-top: env(safe-area-inset-top, 0px);
  }

  /* Мягче стык sticky header → первый экран (без “жёсткой” линии) */
  .announcement-bar {
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .announcement-bar__track {
    padding-block: 0.25rem;
    min-height: 1.25rem;
  }

  .site-header {
    background-color: rgba(7, 7, 10, 0.28);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .header-inner {
    padding-top: 0.95rem;
    padding-bottom: 0.8rem;
  }

  .logo__img {
    height: 46px;
  }

  .nav-toggle {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background-color: rgba(5, 5, 6, 0.72);
    backdrop-filter: blur(28px) saturate(1.08);
    -webkit-backdrop-filter: blur(28px) saturate(1.08);
    border-bottom: 1px solid var(--glass-border-soft);
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
    /* Совпадает с .container: пункты не прилипают к краю экрана, ряд с логотипом */
    padding-left: max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(1rem, 4vw, 1.5rem), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  .site-header.nav-open .main-nav {
    max-height: min(36rem, calc(100dvh - 5rem));
    opacity: 1;
    pointer-events: auto;
    box-shadow: var(--shadow-soft);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 0 1.35rem;
    box-sizing: border-box;
  }

  .main-nav li {
    border-top: 1px solid var(--glass-border-soft);
  }

  .main-nav a {
    display: block;
    padding: 0.9rem 0;
    font-size: 0.8rem;
  }

  .main-nav a::after {
    display: none;
  }
}

@media (hover: none) and (max-width: 768px) {
  .main-nav a:active {
    color: #ffffff;
    text-shadow: 0 0 22px rgba(255, 255, 255, 0.42);
  }
}

/* =============================================================================
   Кнопки
   ============================================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-ui);
  font-size: var(--font-size-caption);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--letter-ui);
  text-transform: uppercase;
  text-align: center;
  color: var(--color-on-light);
  background-color: var(--color-white);
  border: 1px solid var(--color-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--hover-ui-duration) var(--hover-ui-ease),
    border-color var(--hover-ui-duration) var(--hover-ui-ease),
    color var(--hover-ui-duration) var(--hover-ui-ease),
    transform var(--hover-ui-duration) var(--hover-ui-ease),
    box-shadow var(--hover-ui-duration) var(--hover-ui-ease),
    filter var(--hover-ui-duration) var(--hover-ui-ease);
}

.button:hover {
  background-color: #f5f5f7;
  border-color: #ffffff;
  color: var(--color-on-light);
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 6px 28px rgba(255, 255, 255, 0.22),
    0 16px 48px rgba(255, 255, 255, 0.1);
}

@media (hover: hover) {
  .button:active {
    transform: translateY(0);
  }
}

@media (hover: none) {
  .button:active {
    background-color: #f5f5f7;
    border-color: #ffffff;
    color: var(--color-on-light);
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.08);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.4),
      0 8px 32px rgba(255, 255, 255, 0.28),
      0 18px 52px rgba(255, 255, 255, 0.14);
    transition-duration: 0.45s;
  }
}

.button-outline {
  color: var(--color-text);
  background-color: transparent;
  border-color: var(--color-border);
  box-shadow: none;
  transition:
    background-color var(--hover-ui-duration) var(--hover-ui-ease),
    border-color var(--hover-ui-duration) var(--hover-ui-ease),
    color var(--hover-ui-duration) var(--hover-ui-ease),
    transform var(--hover-ui-duration) var(--hover-ui-ease),
    box-shadow var(--hover-ui-duration) var(--hover-ui-ease),
    filter var(--hover-ui-duration) var(--hover-ui-ease);
}

.button-outline:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 4px 32px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (hover: none) {
  .button-outline:active {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.22),
      0 6px 36px rgba(255, 255, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition-duration: 0.45s;
  }
}

.button--hero,
.button--hero-secondary {
  font-family: var(--font-ui);
  font-size: var(--font-size-caption);
  font-weight: 600;
  letter-spacing: var(--letter-ui);
  text-transform: uppercase;
  border-radius: var(--radius-md);
  padding: 0.875rem 1.35rem;
  min-height: 2.75rem;
  border-width: 1px;
  border-style: solid;
  box-shadow: none;
}

/* Hero: те же приёмы, что у .button-outline — подъём, свечение, яркость (десктоп + тач) */
.hero .button--hero,
.hero .button--hero-secondary {
  position: relative;
  isolation: isolate;
  z-index: 1;
  transform: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 9999px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  filter: none;
  transition:
    background-color var(--hover-ui-duration) var(--hover-ui-ease),
    border-color var(--hover-ui-duration) var(--hover-ui-ease),
    color var(--hover-ui-duration) var(--hover-ui-ease),
    transform var(--hover-ui-duration) var(--hover-ui-ease),
    box-shadow var(--hover-ui-duration) var(--hover-ui-ease),
    filter var(--hover-ui-duration) var(--hover-ui-ease);
}

/* Широкое серебристое свечение под кнопкой (центр снизу); на тач — заметнее в покое */
.hero .button--hero::after,
.hero .button--hero-secondary::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.65rem;
  z-index: -1;
  width: min(124%, calc(100% + 2.25rem));
  height: 2.5rem;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse 78% 100% at 50% 100%,
    rgba(238, 238, 246, 0.62) 0%,
    rgba(210, 210, 220, 0.28) 38%,
    transparent 72%
  );
  filter: blur(16px);
  opacity: 0.38;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero .button--hero {
  color: rgba(255, 255, 255, 0.95);
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.88);
}

.hero .button--hero-secondary {
  color: rgba(255, 255, 255, 0.95);
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.88);
}

@media (hover: hover) {
  .hero .button--hero:hover,
  .hero .button--hero-secondary:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
    border-color: #ffffff;
    transform: var(--apple-glow-lift);
    filter: brightness(1.08);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.14),
      0 4px 32px rgba(255, 255, 255, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 22px rgba(255, 255, 255, 0.1),
      0 0 48px rgba(228, 228, 236, 0.06);
  }

  .hero .button--hero:hover::after,
  .hero .button--hero-secondary:hover::after {
    opacity: 0.78;
    filter: blur(20px);
    transform: translateX(-50%) translateY(-2px);
  }

  .hero .button--hero:active,
  .hero .button--hero-secondary:active {
    transform: translateY(0);
    filter: brightness(1.02);
  }

  .hero .button--hero:active::after,
  .hero .button--hero-secondary:active::after {
    opacity: 0.45;
    filter: blur(14px);
    transform: translateX(-50%);
  }
}

.hero .button--hero:focus-visible,
.hero .button--hero-secondary:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

/* Мобильная / тач: как .button-outline:active — подсветка и лёгкий «пресс» */
@media (hover: none) {
  .hero .button--hero::after,
  .hero .button--hero-secondary::after {
    opacity: 0.58;
    filter: blur(18px);
  }

  .hero .button--hero:active,
  .hero .button--hero-secondary:active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.38);
    transform: var(--apple-glow-lift) scale(1.02);
    filter: brightness(1.1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.22),
      0 6px 36px rgba(255, 255, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 28px rgba(255, 255, 255, 0.12),
      0 0 52px rgba(255, 255, 255, 0.08);
    transition-duration: 0.45s;
  }

  .hero .button--hero:active::after,
  .hero .button--hero-secondary:active::after {
    opacity: 0.92;
    filter: blur(22px);
    transform: translateX(-50%) translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .button--hero:hover,
  .hero .button--hero-secondary:hover,
  .hero .button--hero:active,
  .hero .button--hero-secondary:active {
    transform: none;
  }

  .hero .button--hero:hover::after,
  .hero .button--hero-secondary:hover::after,
  .hero .button--hero:active::after,
  .hero .button--hero-secondary:active::after {
    transform: translateX(-50%);
  }
}

button.button--hero,
button.button--hero-secondary {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
}

@media (max-width: 768px) {
  .hero-actions {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero .button--hero,
  .hero .button--hero-secondary {
    font-size: 14px;
    justify-content: center;
  }
}

/* =============================================================================
   Модальное окно «Написать мне»
   ============================================================================= */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
}

.contact-modal.contact-modal--open {
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.32s var(--reveal-ease);
}

.contact-modal.contact-modal--open .contact-modal__backdrop {
  opacity: 1;
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(26rem, 100%);
  max-height: min(90vh, 100% - 2rem);
  max-height: min(90dvh, 100% - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin: auto;
  padding: clamp(1.35rem, 4vw, 1.85rem) clamp(1.25rem, 4vw, 1.65rem) clamp(1.5rem, 4vw, 1.85rem);
  background: rgba(12, 12, 14, 0.52);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-glass);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(0.375rem) scale(0.95);
  transform-origin: center center;
  opacity: 0;
  transition:
    opacity 0.32s var(--reveal-ease),
    transform 0.32s var(--reveal-ease);
  will-change: transform, opacity;
}

.contact-modal.contact-modal--open .contact-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  will-change: auto;
}

.contact-modal__close {
  position: absolute;
  top: clamp(0.75rem, 2.5vw, 1rem);
  right: clamp(0.75rem, 2.5vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 0 0 0.5px rgba(255, 255, 255, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.28);
  transition:
    background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

.contact-modal__close:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 0 28px rgba(255, 255, 255, 0.14),
    0 0 52px rgba(236, 236, 246, 0.12),
    0 6px 22px rgba(0, 0, 0, 0.32);
  transform: scale(1.04);
}

.contact-modal__close:active {
  transform: scale(0.98);
}

.contact-modal__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.contact-modal__close-lines {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
}

.contact-modal__close-lines::before,
.contact-modal__close-lines::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1.25px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 18%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.55) 82%,
    transparent 100%
  );
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.contact-modal__close-lines::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.contact-modal__close-lines::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-modal__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 2.75rem 1.25rem 0;
  padding: 0;
  color: var(--color-text);
  line-height: 1.2;
}

.contact-modal__feedback {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  line-height: var(--leading-body);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 255, 255, 0.045);
  color: var(--color-text-muted);
}

.contact-modal__feedback--success {
  color: rgba(210, 235, 218, 0.96);
  border-color: rgba(130, 200, 150, 0.38);
  background: rgba(80, 160, 100, 0.12);
}

.contact-modal__feedback--error {
  color: rgba(255, 210, 205, 0.96);
  border-color: rgba(210, 100, 95, 0.4);
  background: rgba(180, 60, 55, 0.14);
}

.contact-modal__main {
  min-width: 0;
}

.contact-modal__success-view:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem) 0.25rem;
  min-height: min(16rem, 52vh);
  box-sizing: border-box;
}

.contact-modal__success-inner {
  width: 100%;
  max-width: 21rem;
  margin: 0 auto;
  text-align: center;
}

.contact-modal__success-line {
  margin: 0 0 0.6rem;
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
  text-wrap: balance;
}

.contact-modal__success-line:last-of-type {
  margin-bottom: 0;
}

.contact-modal__success-line--lead {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--color-text);
}

.contact-modal__success-close {
  margin-top: 1.4rem;
  min-width: 14rem;
  border-radius: 9999px;
}

.contact-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-modal__field {
  display: flex;
  flex-direction: column;
}

.contact-modal__control {
  position: relative;
  display: block;
}

.contact-modal__float-label {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: rgba(168, 168, 178, 0.82);
  pointer-events: none;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    font-size 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: calc(100% - 1.9rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-modal__textarea + .contact-modal__float-label {
  top: 1.2rem;
  transform: translateY(0);
}

.contact-modal__control:focus-within .contact-modal__float-label,
.contact-modal__control.is-filled .contact-modal__float-label,
.contact-modal__input:not(:placeholder-shown) + .contact-modal__float-label,
.contact-modal__textarea:not(:placeholder-shown) + .contact-modal__float-label {
  top: 0.5rem;
  transform: translateY(0) scale(0.82);
  font-size: 0.6875rem;
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(210, 210, 220, 0.92);
}

.contact-modal__textarea + .contact-modal__float-label {
  transform-origin: left top;
}

.contact-modal__control:focus-within .contact-modal__textarea + .contact-modal__float-label,
.contact-modal__control.is-filled .contact-modal__textarea + .contact-modal__float-label,
.contact-modal__textarea:not(:placeholder-shown) + .contact-modal__float-label {
  transform: translateY(0) scale(0.82);
}

.contact-modal__input,
.contact-modal__textarea {
  width: 100%;
  margin: 0;
  padding: 1.1rem 0.95rem 0.55rem;
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  line-height: 1.45;
  color: var(--color-text);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.035) 48%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: clamp(0.55rem, 1.3vw, 0.7rem);
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 -18px 36px -12px rgba(255, 255, 255, 0.05),
    inset 0 0 48px rgba(248, 248, 252, 0.04),
    0 0 0 0.5px rgba(255, 255, 255, 0.05),
    0 2px 14px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal__textarea {
  resize: vertical;
  min-height: 7rem;
  padding-top: 1.35rem;
}

.contact-modal__input::placeholder,
.contact-modal__textarea::placeholder {
  color: transparent;
}

.contact-modal__input:hover,
.contact-modal__textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.045) 50%,
    rgba(255, 255, 255, 0.028) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -18px 40px -10px rgba(255, 255, 255, 0.06),
    inset 0 0 56px rgba(248, 248, 252, 0.055),
    0 0 0 0.5px rgba(255, 255, 255, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.26);
}

.contact-modal__input:focus,
.contact-modal__textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.055) 45%,
    rgba(255, 255, 255, 0.035) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 64px rgba(244, 244, 252, 0.09),
    inset 0 -12px 32px -8px rgba(255, 255, 255, 0.06),
    0 0 0 0.5px rgba(255, 255, 255, 0.14),
    0 0 20px rgba(255, 255, 255, 0.1),
    0 0 48px rgba(236, 236, 246, 0.1),
    0 6px 28px rgba(0, 0, 0, 0.28);
}

.contact-modal__field--checkbox {
  margin-top: 0.15rem;
}

.contact-modal__legal-note {
  margin: -0.45rem 0 0;
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.contact-modal__legal-note a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-modal__legal-note a:hover {
  color: #ffffff;
}

.contact-modal__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--font-size-caption);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.contact-modal__checkbox-text a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-modal__checkbox-text a:hover {
  color: #ffffff;
}

.contact-modal__checkbox {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.contact-modal__submit {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  margin-top: 0.45rem;
  width: 100%;
  min-height: 3.05rem;
  padding: 0.88rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #07070b;
  background: linear-gradient(
    175deg,
    #ffffff 0%,
    #f6f6fa 22%,
    #ebebf2 52%,
    #f4f4f9 78%,
    #fafafc 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 9999px;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    inset 0 0 24px rgba(255, 255, 255, 0.35),
    0 0 0 0.5px rgba(255, 255, 255, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.32),
    0 0 48px rgba(255, 255, 255, 0.1),
    0 0 80px rgba(238, 238, 248, 0.14);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

.contact-modal__submit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 38%, transparent 62%);
  opacity: 0.9;
  pointer-events: none;
}

.contact-modal__submit:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.78);
  filter: brightness(1.04) saturate(1.02);
  background: linear-gradient(
    175deg,
    #ffffff 0%,
    #fafafc 25%,
    #f0f0f7 50%,
    #f8f8fc 75%,
    #ffffff 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    inset 0 0 32px rgba(255, 255, 255, 0.45),
    0 0 0 0.5px rgba(255, 255, 255, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.14),
    0 16px 48px rgba(0, 0, 0, 0.36),
    0 0 56px rgba(255, 255, 255, 0.16),
    0 0 100px rgba(240, 240, 252, 0.22);
}

.contact-modal__submit:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.contact-modal__submit:active {
  transform: translateY(-1px);
  filter: brightness(0.99);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 0 0 0.5px rgba(255, 255, 255, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(255, 255, 255, 0.08);
}

.contact-modal__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
  pointer-events: none;
}

.contact-modal__submit:disabled:hover,
.contact-modal__submit:disabled:active {
  transform: none;
  filter: none;
  border-color: rgba(255, 255, 255, 0.58);
  background: linear-gradient(
    175deg,
    #ffffff 0%,
    #f6f6fa 22%,
    #ebebf2 52%,
    #f4f4f9 78%,
    #fafafc 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    inset 0 0 24px rgba(255, 255, 255, 0.35),
    0 0 0 0.5px rgba(255, 255, 255, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.32),
    0 0 48px rgba(255, 255, 255, 0.1),
    0 0 80px rgba(238, 238, 248, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal {
    transition: none;
  }

  .contact-modal__backdrop {
    transition-duration: 0.01ms;
  }

  .contact-modal__panel {
    transition-duration: 0.01ms;
    transition-delay: 0s;
    transform: none;
    will-change: auto;
  }

  .contact-modal.contact-modal--open .contact-modal__panel {
    transform: none;
  }

  .contact-modal__float-label {
    transition-duration: 0.01ms;
  }

  .contact-modal__submit:hover,
  .contact-modal__submit:active {
    transform: none;
  }

  .contact-modal__close:hover,
  .contact-modal__close:active {
    transform: none;
  }
}

body.contact-modal-open {
  overflow: hidden;
}

/* =============================================================================
   Hero — типографика слева, портрет справа; на узких экранах — колонка
   ============================================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  background-color: transparent;
  background-image: none;
  color: var(--hero-text);
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  display: block;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: clamp(2rem, 5.5vw, 3.25rem);
  width: 100%;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: min(16.5rem, 72vw);
  justify-self: center;
}

/* Мягкое серебристое свечение за портретом — только позади кадра, лёгкая «дыхание» */
.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 122%;
  height: 112%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse 72% 80% at 44% 46%,
    rgba(242, 242, 248, 0.11) 0%,
    rgba(220, 220, 230, 0.045) 46%,
    transparent 72%
  );
  filter: blur(40px);
  opacity: 0.7;
  animation: hero-halo-breathe var(--hero-halo-pulse) ease-in-out infinite;
}

@keyframes hero-halo-breathe {
  0%,
  100% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(40px);
  }

  50% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(1.035);
    filter: blur(44px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual::before {
    animation: none;
    opacity: 0.68;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(40px);
  }
}

.hero-visual__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: 42% 28%;
  border-radius: 0;
  transform: translate(0, 0);
  transform-origin: 50% 50%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(48rem, 100%);
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: min(42rem, 100%);
  padding-inline: clamp(0.5rem, 2.5vw, 1.25rem);
  min-width: 0;
}

.hero-name {
  max-width: 100%;
  margin: 0 0 clamp(1.75rem, 4.5vw, 2.75rem);
  padding: 0;
  font-weight: 400;
  color: #ffffff;
  overflow: visible;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-name-line {
  display: block;
  text-align: center;
}

/* Первая строка: «льга» — Playfair; «О» — отдельный декоративный инициал */
.hero-name-line--first {
  display: block;
  text-align: center;
  font-family: var(--font-hero-playfair);
  font-style: normal;
  font-weight: 400;
  /* ≈60% от размера строки «Грачёва» (те же vw/rem в пропорции 0.6) */
  font-size: clamp(2rem, 6.9vw + 0.81rem, 4.05rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-name-line--first .initial {
  font-family: var(--font-hero-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.78em;
  line-height: 0.78;
  letter-spacing: 0;
  display: inline-block;
  vertical-align: -0.1em;
  margin-right: 0.04em;
}

/* Вторая строка: «Грачёва» — близко к «Ольга», ритм задаёт отступ блока имени → подзаголовок */
.hero-name-line--surname {
  font-family: var(--font-hero-playfair);
  font-style: normal;
  font-weight: 400;
  margin-top: clamp(0.2rem, 0.55vw, 0.5rem);
  font-size: clamp(3.15rem, 11.5vw + 1.35rem, 6.75rem);
  line-height: 1.02;
  letter-spacing: 0.025em;
}

/* Анимированный градиент имени (аналог @react-bits/GradientText, без React) */
.hero-name-gradient-text {
  background-image: linear-gradient(
    90deg,
    #ffffff,
    #62616b,
    #343232,
    #ffffff
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hero-gradient-text-shift 8s ease-in-out infinite alternate;
}

.hero-name-line--first.hero-name-gradient-text .initial {
  -webkit-text-fill-color: transparent;
}

@keyframes hero-gradient-text-shift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-name-gradient-text {
    animation: none;
    background: none;
    background-image: none;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
  }

  .hero-name-line--first.hero-name-gradient-text .initial {
    -webkit-text-fill-color: #ffffff;
  }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-name-gradient-text {
    background: none;
    animation: none;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
  }

  .hero-name-line--first.hero-name-gradient-text .initial {
    -webkit-text-fill-color: #ffffff;
  }
}

.hero-kicker,
.hero .hero-subtitle {
  position: relative;
  align-self: stretch;
  width: 100%;
  margin: 0 0 clamp(2.85rem, 7.5vw, 4.5rem);
  padding: 0 0 0.06em;
  font-family: var(--font-ui);
  font-size: clamp(0.6875rem, 0.55rem + 1.35vw, 0.8125rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  color: rgba(189, 189, 198, 0.92);
  text-wrap: balance;
}

.hero .hero-subtitle {
  text-wrap: unset;
}

.hero .hero-subtitle__tail {
  margin-top: 7px;
}

.hero .hero-location {
  align-self: center;
  width: max-content;
  max-width: 100%;
  margin: calc(-1 * clamp(0.85rem, 2.2vw, 1.35rem)) 0 calc(clamp(0.65rem, 1.8vw, 1rem) + 8px);
  padding: 0;
  font-family: var(--font-ui);
  font-size: clamp(0.8125rem, 0.7rem + 1vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  color: rgba(203, 203, 212, 0.95);
}

/* Мобильная вёрстка подписи: 2 строки, вторая под точкой между «Фотограф» и «Ретушёр» */
.hero-kicker__mobile-grid {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  row-gap: 0.28em;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  text-wrap: unset;
}

.hero-kicker__c1 {
  grid-column: 1;
  grid-row: 1;
}

.hero-kicker__c2 {
  grid-column: 2;
  grid-row: 1;
}

.hero-kicker__c3 {
  grid-column: 2;
  grid-row: 2;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0;
  justify-content: center;
  width: 100%;
  max-width: min(100%, 26rem);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.hero .hero-actions a,
.hero .hero-actions button {
  width: 220px;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  main > section.hero {
    padding-top: clamp(2.5rem, 4.5vh, 3.75rem);
    padding-bottom: clamp(1rem, 2.5vh, 1.75rem);
    min-height: 100vh;
    box-sizing: border-box;
  }

  .hero {
    min-height: 100vh;
    align-items: stretch;
    box-sizing: border-box;
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-height: 100vh;
    box-sizing: border-box;
  }

  .hero-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    min-height: 100vh;
    align-items: center;
    justify-items: stretch;
    gap: clamp(1.75rem, 3.25vw, 2.85rem);
    box-sizing: border-box;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    justify-content: center;
    align-self: center;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 0;
  }

  .hero-visual {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: none;
    width: 100%;
    justify-self: stretch;
    align-self: center;
    min-height: 0;
  }

  .hero-visual__img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 87.5vh;
    object-fit: contain;
    object-position: 38% 50%;
    margin-left: auto;
    margin-right: 0;
  }

  .hero-text {
    align-items: flex-start;
    text-align: left;
    max-width: min(100%, 36rem);
    width: 100%;
    margin: 0;
    padding-inline: 0;
  }

  .hero-name-line,
  .hero-name-line--first {
    text-align: left;
  }

  /* Ритм: ~30px под заголовком, ~48px перед кнопками */
  .hero-name {
    margin: 0 0 1.875rem;
  }

  /* Локация: не центрировать блок — выравнивание по левому краю колонки + отступ под «Гр…» в «Грачёва» */
  .hero .hero-text .hero-location {
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    box-sizing: border-box !important;
    margin: calc(-0.85rem + 8px) 0 calc(0.75rem + 15px) !important;
    margin-left: calc(0.45rem + 28px) !important;
    margin-right: 0 !important;
    padding-left: clamp(0.65rem, 1.65vw, 1.2rem) !important;
    padding-right: 0 !important;
  }

  .hero-name-line--first {
    font-size: clamp(2.4rem, 3.3vw + 1.35rem, 4.95rem);
    line-height: 1.16;
  }

  .hero-name-line--first .initial {
    font-size: 1.88em;
    vertical-align: -0.09em;
  }

  .hero-name-line--surname {
    margin-top: clamp(0.25rem, 0.5vw, 0.55rem);
    font-size: clamp(4rem, 5.5vw + 2.25rem, 8.25rem);
    line-height: 1;
  }

  .hero-kicker,
  .hero .hero-subtitle {
    margin: 0 0 3rem;
    font-size: clamp(0.75rem, 0.5rem + 0.55vw, 0.875rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.62;
    text-align: left;
    text-wrap: balance;
  }

  .hero .hero-subtitle {
    text-wrap: unset;
  }

  .hero-kicker__mobile-grid {
    display: inline;
    width: auto;
    max-width: none;
    margin: 0;
    text-align: inherit;
    text-wrap: inherit;
  }

  .hero-kicker__c1,
  .hero-kicker__c2,
  .hero-kicker__c3 {
    display: inline;
  }

  .hero-kicker__lead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero-actions {
    margin-left: 0;
    margin-right: 0;
    max-width: min(100%, 28rem);
    gap: 0.85rem 1.15rem;
    justify-content: flex-start;
  }

  .hero .button--hero,
  .hero .button--hero-secondary {
    min-height: 3.35rem;
    padding: 0.95rem 1rem;
    font-size: 0.8125rem;
    letter-spacing: 0.085em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Порядок: портрет → имя → подпись → кнопки; fade + лёгкий подъём ~0.55s */
  .hero-visual,
  .hero-name,
  .hero-kicker,
  .hero .hero-location,
  .hero .hero-subtitle,
  .hero-actions {
    opacity: 0;
    transform: translateY(14px);
    animation: hero-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero-visual {
    animation-delay: 0s;
  }

  .hero-name {
    animation-delay: 0.12s;
  }

  .hero-kicker,
  .hero .hero-location,
  .hero .hero-subtitle {
    animation-delay: 0.28s;
  }

  .hero-actions {
    animation-delay: 0.44s;
  }
}

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Узкий экран: первый экран — то же fade + 30px, но медленнее и по скроллу (класс ставит JS) */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero-visual,
  .hero-kicker,
  .hero .hero-location,
  .hero .hero-subtitle,
  .hero-actions {
    animation: none;
    opacity: 0;
    transform: translateY(var(--m-reveal-y));
    transition:
      opacity var(--m-reveal-duration) var(--m-reveal-ease),
      transform var(--m-reveal-duration) var(--m-reveal-ease);
  }

  .hero-name {
    animation: none;
    opacity: 0;
    transform: translate(6px, var(--m-reveal-y));
    transition:
      opacity var(--m-reveal-duration) var(--m-reveal-ease),
      transform var(--m-reveal-duration) var(--m-reveal-ease);
  }

  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-visual,
  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-kicker,
  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-location,
  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-subtitle,
  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-actions {
    opacity: 1;
    transform: translateY(0);
  }

  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-name {
    opacity: 1;
    transform: translate(6px, 0);
  }

  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-visual {
    transition-delay: 0s;
  }

  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-name {
    transition-delay: calc(var(--m-reveal-stagger) * 1);
  }

  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-kicker,
  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-location,
  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-subtitle {
    transition-delay: calc(var(--m-reveal-stagger) * 2.25);
  }

  section.hero[data-m-reveal-section].m-reveal-section--visible .hero-actions {
    transition-delay: calc(var(--m-reveal-stagger) * 3.6);
  }
}

@media (max-width: 768px) {
  .hero .hero-visual__img {
    border-radius: 18px;
    overflow: hidden;
  }

  .hero .hero-content,
  .hero .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Mobile hero: всё важное на первом экране без скролла */
  :root {
    --site-top-mobile: calc(env(safe-area-inset-top, 0px) + 5.75rem);
  }

  .hero {
    min-height: calc(100dvh - var(--site-top-mobile));
    min-height: calc(100vh - var(--site-top-mobile));
    align-items: flex-start;
  }

  /* Едва заметный тёмный градиент сверху hero — “склейка” с шапкой */
  .hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: clamp(92px, 18vh, 170px);
    pointer-events: none;
    z-index: 5;
    background: linear-gradient(
      to bottom,
      rgba(5, 5, 5, 0.55) 0%,
      rgba(5, 5, 5, 0.22) 42%,
      rgba(5, 5, 5, 0) 100%
    );
  }

  .hero-layout {
    gap: clamp(1.15rem, 3.4vw, 1.6rem);
  }

  .hero-visual {
    /* Чуть компактнее фото: цель ~60% экрана под визуал */
    max-width: min(13.25rem, 56vw);
    margin-bottom: 0.55rem;
  }

  .hero-visual__img {
    max-height: 52dvh;
  }

  .hero-content {
    margin-top: -0.35rem;
  }

  main > section.hero,
  .hero-content {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .hero h1 {
    margin-bottom: 18px;
    text-align: center;
  }

  .hero .hero-location {
    margin-top: calc(-1 * clamp(0.85rem, 2.2vw, 1.35rem) + 12px);
  }

  .hero .hero-subtitle__tail {
    display: block;
  }

  .hero .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    width: 100%;
    max-width: min(100%, 26rem);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual,
  .hero-name,
  .hero-kicker,
  .hero .hero-location,
  .hero .hero-subtitle,
  .hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .about .about-heading,
  .about .about-text,
  .about .about-photo,
  .about .about-photo img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .hero h1.hero-name {
    transform: translateX(6px) !important;
  }
}

/* =============================================================================
   About — сетка, типографика; модификаторы: .about--magazine, .about--soft
   ============================================================================= */

.about {
  background-color: transparent;
}

.about--soft {
  background-color: transparent;
}

.about-inner {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.about-heading {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6.5vw + 1rem, 4.5rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-align: center;
  color: var(--color-text);
}

.about-heading::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: clamp(0.85rem, 2vw, 1.1rem) auto 0;
  background-color: var(--color-border);
  transform: scaleX(1);
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .about .about-photo img {
    animation: about-photo-float-img 20s ease-in-out 1.15s infinite alternate;
  }
}

.about--magazine .about-heading {
  text-align: left;
}

.about--magazine .about-heading::after {
  margin-left: 0;
  margin-right: auto;
  transform-origin: left;
}

/* Сетка: мобильная — фото сверху, текст и карточки снизу; десктоп — фото слева, колонка справа */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "figure"
    "main";
  align-items: start;
  justify-items: stretch;
  column-gap: clamp(1.5rem, 3vw, 2.25rem);
  row-gap: clamp(1.5rem, 4vw, 2.25rem);
}

.about-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vw, 2.35rem);
  width: 100%;
  min-width: 0;
  justify-self: center;
  max-width: 40rem;
}

.about-text {
  max-width: none;
  width: 100%;
  min-width: 0;
}

.about-text p {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.15vw + 0.85rem, 1.3125rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-lead {
  font-size: clamp(1.35rem, 2vw + 0.85rem, 1.6875rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.about-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.25rem);
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-benefit-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(1.35rem, 2.8vw, 1.65rem) clamp(1.25rem, 2.5vw, 1.5rem);
  background: rgba(255, 255, 255, 0.034);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-glass);
  box-shadow:
    0 6px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 14px 44px rgba(255, 255, 255, 0.06);
  transform: translateY(0);
  transform-origin: center center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color var(--hover-ui-duration) var(--hover-ui-ease),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color var(--hover-ui-duration) var(--hover-ui-ease);
}

.about-benefit-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 58%;
  pointer-events: none;
  background: var(--apple-glow-inner);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-benefit-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.1vw + 0.82rem, 1.3125rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--color-text);
}

.about-benefit-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  line-height: var(--leading-body);
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-benefit-card:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.22);
    transform: var(--apple-glow-lift);
    box-shadow: var(--apple-glow-shadow-strong);
  }

  .about-benefit-card:hover::before {
    opacity: 1;
  }
}

@media (hover: none) {
  .about-benefit-card {
    -webkit-tap-highlight-color: transparent;
  }

  .about-benefit-card::before {
    opacity: 0.52;
  }

  .about-benefit-card:active {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.22);
    transform: var(--apple-glow-lift);
    box-shadow: var(--apple-glow-shadow-strong);
  }

  .about-benefit-card:active::before {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-benefit-card:hover,
  .about-benefit-card:active {
    transform: none;
  }

  .about-benefit-card:hover::before,
  .about-benefit-card:active::before {
    opacity: 0.75;
  }
}

.about-photo {
  position: relative;
  isolation: isolate;
  grid-area: figure;
  margin: 0;
  width: 100%;
  max-width: min(100%, 22rem);
  justify-self: center;
  overflow: visible;
  border-radius: var(--radius-glass);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  box-shadow: var(--glass-shadow);
}

.about-photo img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 0;
  box-shadow: none;
  border: none;
  background-color: #0a0a0a;
  clip-path: inset(0 round var(--radius-glass));
  transform: scale(1);
  transform-origin: center center;
  transition: transform var(--photo-hover-duration) var(--photo-glow-ease);
}

/* Свечение только под фото (z-index: -1), без градиента поверх кадра */
.about-photo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  width: min(94%, 18rem);
  height: clamp(2.5rem, 32%, 4rem);
  transform: translateX(-50%) translateY(0.65rem) scale(0.82, 0.62);
  transform-origin: 50% 0%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 115% 95% at 50% 0%,
    rgba(252, 252, 255, 0.58) 0%,
    rgba(235, 236, 244, 0.28) 38%,
    transparent 68%
  );
  filter: blur(14px);
  opacity: 0;
  transition:
    opacity var(--photo-hover-duration) var(--photo-glow-ease),
    transform var(--photo-hover-duration) var(--photo-glow-ease),
    filter var(--photo-hover-duration) var(--photo-glow-ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-photo:hover img {
    transform: scale(1.025);
    animation-play-state: paused;
  }

  .about-photo:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0.2rem) scale(1.14, 1.02);
    filter: blur(34px);
  }
}

@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .about-photo {
    -webkit-tap-highlight-color: transparent;
  }

  .about-photo:active img {
    transform: scale(1.025);
  }

  .about-photo:active::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0.2rem) scale(1.14, 1.02);
    filter: blur(34px);
  }
}

@media (min-width: 901px) {
  .about-heading {
    text-align: left;
    margin-bottom: clamp(1.1rem, 2vw, 1.5rem);
  }

  .about-heading::after {
    margin-left: 0;
    margin-right: auto;
    transform-origin: left;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "figure main";
    column-gap: clamp(1.5rem, 3vw, 2.35rem);
    row-gap: 0;
    align-items: center;
  }

  .about-main {
    max-width: none;
    justify-self: stretch;
    align-self: center;
    padding-left: clamp(0.35rem, 1.2vw, 0.85rem);
    gap: clamp(1.65rem, 2.8vw, 2.15rem);
  }

  .about-benefits {
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 1.8vw, 1.25rem);
  }

  .about-photo {
    max-width: none;
    justify-self: stretch;
    align-self: stretch;
  }

  .about-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 25%;
  }

  .about-text {
    max-width: none;
  }

  .about--magazine .about-content {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .about-heading {
    margin-bottom: clamp(1rem, 3vw, 1.35rem);
  }

  .about-main {
    max-width: min(40rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-inline: clamp(0.15rem, 1vw, 0.35rem);
  }

  .about-text {
    text-align: center;
  }

  .about-benefits {
    text-align: left;
  }
}

/* =============================================================================
   Portfolio
   ============================================================================= */

/* =============================================================================
   Отзывы — центральный слайдер, без автопрокрутки
   ============================================================================= */

.testimonials {
  background-color: transparent;
}

.testimonials__heading {
  margin: 0 0 var(--section-title-space-below);
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5.5vw + 0.85rem, 3.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: var(--color-text);
}

.testimonials-slider {
  display: grid;
  align-items: center;
  gap: clamp(0.35rem, 2vw, 1rem);
  width: 100%;
  max-width: min(68rem, 100%);
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto;
  grid-template-areas: "prev main next";
}

.testimonials-slider__viewport {
  grid-area: main;
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding-block: 0.25rem;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.testimonials-slider__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(0.85rem, 2.2vw, 1.35rem);
  transform: translate3d(0, 0, 0);
  transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-slider__track {
    transition-duration: 0.01ms;
  }

  .testimonials-card {
    transition-duration: 0.01ms;
  }
}

.testimonials-slider__btn--prev {
  grid-area: prev;
}

.testimonials-slider__btn--next {
  grid-area: next;
}

.testimonials-slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

.testimonials-slider__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 4px 28px rgba(255, 255, 255, 0.1),
    0 0 36px rgba(232, 232, 240, 0.06);
}

.testimonials-slider__btn:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

.testimonials-slider__btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.testimonials-slider__icon {
  display: block;
  margin: 0;
}

.testimonials-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 auto;
  width: min(36rem, 82vw);
  box-sizing: border-box;
  margin: 0;
  padding: clamp(1.75rem, 4.5vw, 2.65rem) clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    #111114;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(1.25rem, 2.8vw, 1.65rem);
  box-shadow:
    0 12px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 32px rgba(255, 255, 255, 0.03);
  opacity: 0.5;
  transform: translateY(0);
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonials-card.is-active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 18px 56px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 8px 36px rgba(255, 255, 255, 0.08),
    0 0 56px rgba(232, 232, 244, 0.09),
    0 0 96px rgba(255, 255, 255, 0.045);
}

/* Внутреннее свечение снизу (как «Услуги»); кавычка остаётся в ::before */
.testimonials-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 58%;
  pointer-events: none;
  background: var(--apple-glow-inner);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonials-card.is-active::after {
  opacity: 0;
}

@media (hover: none) {
  /* У карточки opacity < 1 у неактивных — усиливаем ::after, чтобы свечение читалось */
  .testimonials-card::after {
    opacity: 0.44;
  }

  .testimonials-card.is-active::after {
    opacity: 0.58;
  }

  .testimonials-card.is-active:active {
    transform: var(--apple-glow-lift);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: var(--apple-glow-shadow-strong);
  }

  .testimonials-card.is-active:active::after {
    opacity: 1;
  }
}

/* Декоративная кавычка — едва заметная */
.testimonials-card::before {
  content: "\201c";
  position: absolute;
  top: clamp(0.5rem, 1.8vw, 1rem);
  right: clamp(0.75rem, 2.2vw, 1.5rem);
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 18vw, 9.5rem);
  font-weight: 500;
  line-height: 0.55;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  transition: color 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonials-card.is-active::before {
  color: rgba(255, 255, 255, 0.055);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .testimonials-card.is-active:hover {
    transform: var(--apple-glow-lift);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: var(--apple-glow-shadow-strong);
  }

  .testimonials-card.is-active:hover::after {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-card.is-active:hover,
  .testimonials-card.is-active:active {
    transform: none;
  }

  .testimonials-card.is-active:hover::after,
  .testimonials-card.is-active:active::after {
    opacity: 0.82;
  }
}

.testimonials-card__body {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: none;
}

.testimonials-card__quote {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.35vw + 0.88rem, 1.375rem);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0.01em;
  color: rgba(248, 248, 250, 0.94);
}

.testimonials-card__author {
  position: relative;
  z-index: 2;
  margin: clamp(1.35rem, 3vw, 1.85rem) 0 0;
  font-family: var(--font-ui);
  font-size: clamp(0.75rem, 0.55rem + 0.9vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(180, 180, 190, 0.88);
}

@media (max-width: 600px) {
  .testimonials-slider {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "main main"
      "prev next";
    gap: 1.1rem 1rem;
  }

  .testimonials-slider__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .testimonials-slider__btn--prev {
    justify-self: start;
  }

  .testimonials-slider__btn--next {
    justify-self: end;
  }

  .testimonials-card {
    width: min(100%, calc(100vw - 2.75rem));
    max-width: 100%;
  }
}

.portfolio {
  background-color: transparent;
}

.portfolio h2 {
  text-align: center;
  margin-bottom: var(--section-title-space-below);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.portfolio-item {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border-radius: var(--radius-glass);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  aspect-ratio: 3 / 4;
}

.portfolio-item img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: inset(0 round var(--radius-glass));
  transform: scale(1);
  transform-origin: center center;
  transition: transform var(--photo-hover-duration) var(--photo-glow-ease);
}

.portfolio-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  width: min(96%, 22rem);
  height: clamp(2.75rem, 30%, 4.25rem);
  transform: translateX(-50%) translateY(0.65rem) scale(0.82, 0.62);
  transform-origin: 50% 0%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 115% 95% at 50% 0%,
    rgba(252, 252, 255, 0.58) 0%,
    rgba(235, 236, 244, 0.28) 38%,
    transparent 68%
  );
  filter: blur(14px);
  opacity: 0;
  transition:
    opacity var(--photo-hover-duration) var(--photo-glow-ease),
    transform var(--photo-hover-duration) var(--photo-glow-ease),
    filter var(--photo-hover-duration) var(--photo-glow-ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .portfolio-item:not(.scroll-reveal-child):hover img,
  .portfolio-item.scroll-reveal-child.scroll-reveal-child--visible:hover img {
    transform: scale(1.025);
  }

  .portfolio-item:not(.scroll-reveal-child):hover::after,
  .portfolio-item.scroll-reveal-child.scroll-reveal-child--visible:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0.2rem) scale(1.14, 1.02);
    filter: blur(34px);
  }
}

@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .portfolio-item {
    -webkit-tap-highlight-color: transparent;
  }

  .portfolio-item:not(.scroll-reveal-child).touch-pressed img,
  .portfolio-item.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed img {
    transform: scale(1.025);
  }

  .portfolio-item:not(.scroll-reveal-child).touch-pressed::after,
  .portfolio-item.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0.2rem) scale(1.14, 1.02);
    filter: blur(34px);
  }
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   AI Portfolio
   ============================================================================= */

.ai-portfolio {
  background-color: transparent;
  border-top: none;
}

.ai-portfolio h2 {
  text-align: center;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text);
}

.ai-portfolio-intro {
  max-width: 36rem;
  margin: 0 auto var(--section-title-space-below);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--leading-body);
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

.ai-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  width: 100%;
}

.ai-portfolio-item {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 0;
  overflow: visible;
  border-radius: var(--radius-glass);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  aspect-ratio: var(--media-aspect-portrait);
  display: block;
}

.ai-portfolio-item img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  clip-path: inset(0 round var(--radius-glass));
  transform: scale(1);
  transform-origin: center center;
  transition: transform var(--photo-hover-duration) var(--photo-glow-ease);
}

/* Портреты 3 и 5: якорь по верху — лишнее уходит снизу при cover */
.ai-portfolio-item:nth-child(3) img,
.ai-portfolio-item:nth-child(5) img {
  object-position: center top;
}

.ai-portfolio-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  width: min(96%, 22rem);
  height: clamp(2.75rem, 30%, 4.25rem);
  transform: translateX(-50%) translateY(0.65rem) scale(0.82, 0.62);
  transform-origin: 50% 0%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 115% 95% at 50% 0%,
    rgba(252, 252, 255, 0.58) 0%,
    rgba(235, 236, 244, 0.28) 38%,
    transparent 68%
  );
  filter: blur(14px);
  opacity: 0;
  transition:
    opacity var(--photo-hover-duration) var(--photo-glow-ease),
    transform var(--photo-hover-duration) var(--photo-glow-ease),
    filter var(--photo-hover-duration) var(--photo-glow-ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ai-portfolio-item:not(.scroll-reveal-child):hover img,
  .ai-portfolio-item.scroll-reveal-child.scroll-reveal-child--visible:hover img {
    transform: scale(1.025);
  }

  .ai-portfolio-item:not(.scroll-reveal-child):hover::after,
  .ai-portfolio-item.scroll-reveal-child.scroll-reveal-child--visible:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0.2rem) scale(1.14, 1.02);
    filter: blur(34px);
  }
}

@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .ai-portfolio-item {
    -webkit-tap-highlight-color: transparent;
  }

  .ai-portfolio-item:not(.scroll-reveal-child).touch-pressed img,
  .ai-portfolio-item.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed img {
    transform: scale(1.025);
  }

  .ai-portfolio-item:not(.scroll-reveal-child).touch-pressed::after,
  .ai-portfolio-item.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0.2rem) scale(1.14, 1.02);
    filter: blur(34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-item img,
  .ai-portfolio-item img,
  .about-photo img {
    transition: none;
    transform: none !important;
  }

  .portfolio-item::after,
  .ai-portfolio-item::after,
  .about-photo::after,
  .before-after-item::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .ai-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .ai-portfolio-intro {
    margin-bottom: clamp(1.75rem, 5vw, 2.25rem);
  }
}

/* =============================================================================
   Services
   ============================================================================= */

.services {
  background-color: transparent;
  border-top: none;
}

.services h2 {
  text-align: center;
  margin-bottom: var(--section-title-space-below);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.5rem 1.35rem;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-glass);
  box-shadow: var(--glass-shadow);
  transition:
    transform var(--hover-ui-duration) var(--hover-ui-ease),
    border-color var(--hover-ui-duration) var(--hover-ui-ease),
    box-shadow var(--hover-ui-duration) var(--hover-ui-ease);
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 58%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(244, 244, 250, 0.38) 0%,
    rgba(228, 228, 236, 0.16) 42%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--hover-ui-duration) var(--hover-ui-ease);
}

.service-card:not(.scroll-reveal-child):hover,
.service-card:not(.scroll-reveal-child).touch-pressed {
  transform: scale(1.05) translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 40px rgba(255, 255, 255, 0.1),
    0 20px 56px rgba(255, 255, 255, 0.05);
}

.service-card:not(.scroll-reveal-child):hover::before,
.service-card:not(.scroll-reveal-child).touch-pressed::before {
  opacity: 1;
}

.service-card.scroll-reveal-child.scroll-reveal-child--visible:hover,
.service-card.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed {
  transform: scale(1.05) translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 40px rgba(255, 255, 255, 0.1),
    0 20px 56px rgba(255, 255, 255, 0.05);
}

.service-card.scroll-reveal-child.scroll-reveal-child--visible:hover::before,
.service-card.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed::before {
  opacity: 1;
}

@media (hover: none) {
  .service-card {
    -webkit-tap-highlight-color: transparent;
  }
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.service-card p {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card:hover,
  .service-card.touch-pressed {
    transform: none;
  }

  .service-card::before {
    transition: none;
    opacity: 0;
  }

  .service-card:hover::before,
  .service-card.touch-pressed::before {
    opacity: 0.5;
  }
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card h3,
  .service-card p {
    text-align: center;
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================================================================
   Как проходит съёмка
   ============================================================================= */

.shooting-flow {
  background-color: transparent;
  border-top: none;
}

.shooting-flow__heading {
  margin: 0 0 var(--section-title-space-below);
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--color-text);
}

.shooting-flow__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .shooting-flow__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.shooting-flow__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(1.35rem, 2.5vw, 1.55rem) clamp(1.15rem, 2.2vw, 1.35rem);
  border-radius: var(--radius-glass);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  box-shadow: var(--glass-shadow);
  transition:
    transform var(--hover-ui-duration) var(--hover-ui-ease),
    border-color var(--hover-ui-duration) var(--hover-ui-ease),
    box-shadow var(--hover-ui-duration) var(--hover-ui-ease);
}

.shooting-flow__card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 58%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(244, 244, 250, 0.38) 0%,
    rgba(228, 228, 236, 0.16) 42%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--hover-ui-duration) var(--hover-ui-ease);
}

.shooting-flow__step {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: var(--font-size-overline);
  font-weight: 600;
  letter-spacing: var(--letter-ui);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.shooting-flow__card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: clamp(1.0625rem, 1vw + 0.75rem, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--color-text);
}

.shooting-flow__card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  line-height: var(--leading-body);
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .shooting-flow__card:not(.scroll-reveal-child):hover,
  .shooting-flow__card.scroll-reveal-child.scroll-reveal-child--visible:hover {
    transform: scale(1.05) translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 10px 40px rgba(255, 255, 255, 0.1),
      0 20px 56px rgba(255, 255, 255, 0.05);
  }

  .shooting-flow__card:not(.scroll-reveal-child):hover::before,
  .shooting-flow__card.scroll-reveal-child.scroll-reveal-child--visible:hover::before {
    opacity: 1;
  }
}

@media (hover: none) {
  .shooting-flow__card {
    -webkit-tap-highlight-color: transparent;
  }

  .shooting-flow__card:not(.scroll-reveal-child):active,
  .shooting-flow__card.scroll-reveal-child.scroll-reveal-child--visible:active {
    transform: scale(1.05) translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 10px 40px rgba(255, 255, 255, 0.1),
      0 20px 56px rgba(255, 255, 255, 0.05);
  }

  .shooting-flow__card:not(.scroll-reveal-child):active::before,
  .shooting-flow__card.scroll-reveal-child.scroll-reveal-child--visible:active::before {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shooting-flow__card:hover,
  .shooting-flow__card:active {
    transform: none;
  }

  .shooting-flow__card::before {
    transition: none;
    opacity: 0;
  }

  .shooting-flow__card:hover::before,
  .shooting-flow__card:active::before {
    opacity: 0.5;
  }
}

@media (max-width: 1023px) {
  .shooting-flow__card h3,
  .shooting-flow__card p,
  .shooting-flow__step {
    text-align: center;
  }
}

/* =============================================================================
   Before After
   ============================================================================= */

.before-after {
  background-color: transparent;
  color: var(--color-text);
  border-top: none;
}

.before-after h2,
.before-after h3 {
  color: var(--color-text);
}

.before-after h2 {
  text-align: center;
  margin-bottom: var(--section-title-space-below);
}

/* Две работы в ряд на desktop, одна колонка на узких экранах */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: start;
}

@media (min-width: 768px) {
  .before-after-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
  }
}

.before-after-item {
  position: relative;
  z-index: 0;
  -webkit-tap-highlight-color: transparent;
}

.before-after-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: min(92%, 26rem);
  height: clamp(2.5rem, 32%, 4rem);
  transform: translateX(-50%) translateY(55%) scale(0.9, 0.65);
  transform-origin: 50% 0%;
  pointer-events: none;
  background: radial-gradient(
    ellipse 118% 100% at 50% 0%,
    rgba(252, 252, 255, 0.5) 0%,
    rgba(235, 236, 244, 0.24) 42%,
    transparent 72%
  );
  filter: blur(16px);
  opacity: 0;
  transition:
    opacity var(--photo-hover-duration) var(--photo-glow-ease),
    transform var(--photo-hover-duration) var(--photo-glow-ease),
    filter var(--photo-hover-duration) var(--photo-glow-ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .before-after-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(72%) scale(1.08, 0.95);
    filter: blur(28px);
  }
}

.before-after-item h3 {
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-family: var(--font-heading);
}

/* Вертикальный зазор под заголовок у слота-плейсхолдера (как у соседней карточки с h3) */
/* ≈ одна строка заголовка h3 + отступ как у .before-after-item h3 */
.before-after-item__heading-spacer {
  min-height: 2.75rem;
  margin-bottom: 1.25rem;
}

.before-after-item--slot .before-after-placeholder {
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 4 / 5;
  min-height: 12rem;
  box-sizing: border-box;
}

/* Интерактивный слайдер «до / после» */
.before-after-slider {
  --ba-pos: 50;
  width: 100%;
  max-width: min(42rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.before-after-slider__viewport {
  position: relative;
  container-type: inline-size;
  container-name: baslider;
  aspect-ratio: 4 / 5;
  max-height: min(85vh, 52rem);
  border-radius: var(--radius-glass);
  overflow: hidden;
  background: rgba(8, 8, 10, 0.42);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.12);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.12);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  user-select: none;
  touch-action: none;
}

.before-after-slider__img--before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
}

.before-after-slider__clip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--ba-pos) * 1%);
  max-width: 100%;
  overflow: hidden;
  transition: width 0.2s ease;
  pointer-events: none;
}

.before-after-slider.is-dragging .before-after-slider__clip {
  transition: none;
}

.before-after-slider__img--after {
  position: absolute;
  left: 0;
  top: 0;
  width: 100cqi;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
}

.before-after-slider__badge {
  position: absolute;
  z-index: 4;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-ui);
  font-size: var(--font-size-overline);
  font-weight: 600;
  letter-spacing: var(--letter-overline);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background-color: rgba(4, 4, 5, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  pointer-events: none;
}

.before-after-slider__badge--before {
  left: 0.75rem;
  top: 0.75rem;
}

.before-after-slider__badge--after {
  right: 0.75rem;
  top: 0.75rem;
}

/* До/после без слайдера: две фотографии в одной карточке (подстраницы) */
.before-after-static {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1rem);
  width: 100%;
  max-width: min(42rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.before-after-static--triple {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 768px) {
  .before-after-static {
    flex-direction: row;
    align-items: stretch;
  }

  .before-after-static__cell {
    flex: 1 1 0;
    min-width: 0;
  }

  .before-after-static--triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .before-after-static--triple .before-after-static__cell {
    min-width: 0;
  }

  .before-after-static__cell--extra {
    grid-column: 1 / -1;
  }
}

.before-after-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.before-after-more:hover,
.before-after-more:focus-visible {
  color: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.32);
}

.before-after-more:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
}

.before-after-static__viewport {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: min(85vh, 52rem);
  border-radius: var(--radius-glass);
  overflow: hidden;
  background: rgba(8, 8, 10, 0.42);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.12);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.12);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.before-after-static__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Restoration subpage: fill cards without поля */
#subpage-restoration-title + .gallery .before-after-static__img {
  object-fit: cover;
  object-position: center;
}

.before-after-slider__divider {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.before-after-slider__line {
  position: absolute;
  left: calc(var(--ba-pos) * 1%);
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.9) 12%,
    rgba(255, 255, 255, 0.9) 88%,
    rgba(255, 255, 255, 0.15) 100%
  );
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
}

.before-after-slider__handle {
  position: absolute;
  left: calc(var(--ba-pos) * 1%);
  top: 50%;
  width: 2.75rem;
  height: 2.75rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  pointer-events: auto;
  cursor: ew-resize;
  touch-action: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.before-after-slider__handle:hover {
  transform: translate(-50%, -50%) scale(1.05);
  border-color: #ffffff;
}

.before-after-slider.is-dragging .before-after-slider__handle {
  transform: translate(-50%, -50%) scale(1.08);
  transition: none;
}

.before-after-slider__range-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  cursor: ew-resize;
}

.before-after-slider__range {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.before-after-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2.75rem;
  height: 2.75rem;
  cursor: ew-resize;
}

.before-after-slider__range::-moz-range-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: ew-resize;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.before-after-placeholder {
  min-height: 220px;
  border-radius: var(--radius-glass);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  border: 1px dashed var(--glass-border-soft);
  box-shadow: var(--glass-shadow);
  transition: border-color var(--transition), background-color var(--transition);
}

.before-after-item:hover .before-after-placeholder {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border);
}

@media (max-width: 480px) {
  .before-after-slider__handle {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* =============================================================================
   Contact
   ============================================================================= */

.contact {
  background-color: transparent;
  border-top: none;
}

.contact h2 {
  text-align: center;
  margin-bottom: var(--section-title-space-below);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  margin-bottom: 0;
}

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  list-style: none;
  border-radius: var(--radius-glass);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  box-shadow: var(--glass-shadow);
  transition:
    transform var(--hover-ui-duration) var(--hover-ui-ease),
    border-color var(--hover-ui-duration) var(--hover-ui-ease),
    box-shadow var(--hover-ui-duration) var(--hover-ui-ease);
}

.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 58%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(244, 244, 250, 0.38) 0%,
    rgba(228, 228, 236, 0.16) 42%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--hover-ui-duration) var(--hover-ui-ease);
}

.contact-card:not(.scroll-reveal-child):hover,
.contact-card:not(.scroll-reveal-child).touch-pressed {
  transform: scale(1.05) translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 40px rgba(255, 255, 255, 0.1),
    0 20px 56px rgba(255, 255, 255, 0.05);
}

.contact-card:not(.scroll-reveal-child):hover::before,
.contact-card:not(.scroll-reveal-child).touch-pressed::before {
  opacity: 1;
}

.contact-card.scroll-reveal-child.scroll-reveal-child--visible:hover,
.contact-card.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed {
  transform: scale(1.05) translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 40px rgba(255, 255, 255, 0.1),
    0 20px 56px rgba(255, 255, 255, 0.05);
}

.contact-card.scroll-reveal-child.scroll-reveal-child--visible:hover::before,
.contact-card.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed::before {
  opacity: 1;
}

@media (hover: none) {
  .contact-card {
    -webkit-tap-highlight-color: transparent;
  }
}

.contact-card a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 1.35rem 1.15rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--font-size-body-sm);
  line-height: var(--leading-tight);
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--color-text);
  transition:
    color var(--hover-ui-duration) var(--hover-ui-ease),
    text-shadow var(--hover-ui-duration) var(--hover-ui-ease);
}

.contact-card:hover a,
.contact-card.touch-pressed a,
.contact-card a:hover {
  color: #ffffff;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .contact-card:hover,
  .contact-card.touch-pressed {
    transform: none;
  }

  .contact-card::before {
    transition: none;
    opacity: 0;
  }

  .contact-card:hover::before,
  .contact-card.touch-pressed::before {
    opacity: 0.5;
  }
}

.contact .button,
.site-footer .button {
  min-width: 14rem;
  border-radius: 9999px;
}

@media (max-width: 900px) {
  .contact-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* =============================================================================
   Footer
   ============================================================================= */

.site-footer {
  position: relative;
  z-index: 1;
  padding: clamp(1.35rem, 3.2vw, 2rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background-color: transparent;
  color: var(--color-text);
  text-align: center;
  border-top: none;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer--client-page {
  padding-top: clamp(0.5rem, 1.2vw, 0.85rem);
}

.site-footer--client-page .footer-cta {
  margin-top: 0;
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
}

.footer-cta {
  margin: 0 0 clamp(3rem, 5vw, 3.5rem);
  text-align: center;
  width: 100%;
}

.footer-brand {
  margin: 0 auto clamp(1rem, 2.5vw, 1.5rem);
  line-height: 0;
  background: none;
  background-color: transparent;
  width: 100%;
  text-align: center;
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: filter var(--hover-ui-duration) var(--hover-ui-ease);
}

.footer-brand__link:hover .footer-brand__img,
.footer-brand__link:focus-visible .footer-brand__img {
  filter: brightness(1.08);
}

.footer-brand__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-brand__img {
  display: block;
  width: clamp(160px, 48vw, 200px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 769px) {
  .footer-brand__img {
    width: clamp(220px, 22vw, 260px);
  }
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
  margin: 0 auto 1rem;
  text-align: center;
}

.footer-tagline.footer-byline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.55rem, 2vw, 0.7rem);
  width: min(100%, 36rem);
  box-sizing: border-box;
}

.footer-byline__row {
  margin: 0;
  padding: 0;
  font-family: inherit;
  line-height: var(--leading-body);
  color: inherit;
  text-align: center;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-byline__row--name {
  font-size: 1.0625rem;
}

.footer-byline__row--main {
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  white-space: nowrap;
}

.footer-byline__row--place {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-byline__row--name {
    font-size: 1.125rem;
  }

  .footer-byline__row--main {
    font-size: clamp(0.5625rem, 3.35vw, 0.8125rem);
  }

  .footer-byline__row--place {
    font-size: 0.8125rem;
  }
}

.footer-self-employed {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--color-text-muted);
  opacity: 0.72;
  margin: 0 0 0.65rem;
  text-align: center;
  max-width: 36rem;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  font-family: var(--font-ui);
  font-size: var(--font-size-caption);
  color: var(--color-text-muted);
  opacity: 0.75;
  margin: 0;
  text-align: center;
}

.footer-copy__sep {
  opacity: 0.55;
  user-select: none;
}

.footer-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copy a:hover {
  color: var(--color-text);
  opacity: 1;
}

/* =============================================================================
   Ссылка «Смотреть больше» под секциями главной
   ============================================================================= */

.section-more-wrap {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.section-more-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--font-size-caption);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(189, 189, 198, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.15em;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.section-more-link:hover,
.section-more-link:focus-visible {
  color: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.32);
}

.section-more-link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
}

/* =============================================================================
   Подстраницы: заголовок + галерея дополнительных работ
   ============================================================================= */

.subpage-gallery {
  background-color: transparent;
}

.subpage-gallery__title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-align: center;
  text-wrap: balance;
  margin: 0 0 0.65rem;
}

.subpage-gallery__intro {
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  line-height: var(--leading-body);
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 34rem;
  margin: 0 auto clamp(2rem, 4.5vw, 2.85rem);
}

/* Пустой контейнер на подстраницах; внутрь — например .portfolio-grid или .ai-portfolio-grid с карточками */
.subpage-gallery .gallery {
  width: 100%;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  padding: 0;
}

/* Портфолио «ещё работы»: заполнение ячейки 3:4; первая работа — смещение по вертикали под композицию */
.subpage-gallery .gallery .portfolio-item img {
  object-fit: cover;
  object-position: center 42%;
}

.subpage-gallery .gallery .portfolio-grid .portfolio-item:first-child img {
  object-position: center 58%;
}

.subpage-back-wrap {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  text-align: center;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .subpage-gallery .ai-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================================================
   Текстовые страницы (политика конфиденциальности и т.п.)
   ============================================================================= */

.legal-section {
  background-color: transparent;
}

.legal-doc {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
  text-align: left;
}

.legal-doc h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-align: center;
  text-wrap: balance;
  margin: 0 0 1.25rem;
}

.legal-doc h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.6vw, 1.625rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-align: center;
  text-wrap: balance;
  margin: 0 0 1.75rem;
}

.legal-doc h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-align: left;
  margin: 1.5rem 0 0.65rem;
}

.legal-doc h3:first-of-type {
  margin-top: 0;
}

.legal-doc p {
  margin-bottom: 1.125rem;
}

.legal-doc p:last-child {
  margin-bottom: 0;
}

.legal-doc__list {
  list-style: none;
  margin: 0 0 1.125rem;
  padding: 0;
}

.legal-doc__list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.4rem;
}

.legal-doc__list li:last-child {
  margin-bottom: 0;
}

.legal-doc__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

/* =============================================================================
   Страница «Клиентам»
   ============================================================================= */

main > section.client-section {
  padding-top: var(--section-padding-y);
  padding-bottom: clamp(0.65rem, 1.5vw, 1.1rem);
}

.client-section {
  background-color: transparent;
}

.client-card {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  border-radius: var(--radius-glass);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  box-shadow: var(--glass-shadow);
}

.client-card h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.client-card p {
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.client-card p:last-child {
  margin-bottom: 0;
}

/* Подпись hero на мобильной: блок по центру экрана, внутри — выравнивание по колонкам,
   чтобы «ИИ-креатор» начинался под точкой после «Фотограф» (левый край 2-й колонки) */
@media (max-width: 1023px) {
  .hero-kicker__mobile-grid {
    text-align: left;
    justify-items: start;
  }
}

/* Мобильные боковые поля + выравнивание (safe area на iPhone) */
@media (max-width: 768px) {
  .container {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  }

  .before-after-item h3 {
    text-align: center;
  }
}

/* =============================================================================
   Появление при скролле
   ============================================================================= */

.scroll-reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

.scroll-reveal.scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Единый premium reveal для заголовков секций (desktop + mobile): сверху вниз + лёгкий blur */
:root {
  --section-heading-reveal-duration: 0.8s;
  --section-heading-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-heading-reveal-y: -24px;
  --section-heading-reveal-blur: 8px;
}

/* Базовое (до появления) состояние */
.section-heading-reveal {
  opacity: 0;
  transform: translateY(var(--section-heading-reveal-y));
  filter: blur(var(--section-heading-reveal-blur));
  will-change: opacity, transform, filter;
  transition:
    opacity var(--section-heading-reveal-duration) var(--section-heading-reveal-ease),
    transform var(--section-heading-reveal-duration) var(--section-heading-reveal-ease),
    filter var(--section-heading-reveal-duration) var(--section-heading-reveal-ease);
}

/* Финальное состояние (после входа в viewport) */
.section-heading-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Мобильное поэтапное появление: opacity + translateY(30px), медленно, по очереди (класс m-reveal-section--visible — JS) */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  section.about[data-m-reveal-section]:not(.m-reveal-section--visible) .about-heading:not(.section-heading-reveal),
  section.about[data-m-reveal-section]:not(.m-reveal-section--visible) .about-photo,
  section.about[data-m-reveal-section]:not(.m-reveal-section--visible) .about-text,
  section.about[data-m-reveal-section]:not(.m-reveal-section--visible) .about-benefit-card {
    opacity: 0;
    transform: translateY(var(--m-reveal-y));
    transition:
      opacity var(--m-reveal-duration) var(--m-reveal-ease),
      transform var(--m-reveal-duration) var(--m-reveal-ease);
  }

  section.about[data-m-reveal-section].m-reveal-section--visible .about-heading:not(.section-heading-reveal),
  section.about[data-m-reveal-section].m-reveal-section--visible .about-photo,
  section.about[data-m-reveal-section].m-reveal-section--visible .about-text,
  section.about[data-m-reveal-section].m-reveal-section--visible .about-benefit-card {
    opacity: 1;
    transform: translateY(0);
  }

  section.about[data-m-reveal-section].m-reveal-section--visible .about-heading {
    transition-delay: 0s;
  }

  section.about[data-m-reveal-section].m-reveal-section--visible .about-photo {
    transition-delay: calc(var(--m-reveal-stagger) * 1);
  }

  section.about[data-m-reveal-section].m-reveal-section--visible .about-text {
    transition-delay: calc(var(--m-reveal-stagger) * 2);
  }

  section.about[data-m-reveal-section].m-reveal-section--visible .about-benefits .about-benefit-card:nth-child(1) {
    transition-delay: calc(var(--m-reveal-stagger) * 3);
  }

  section.about[data-m-reveal-section].m-reveal-section--visible .about-benefits .about-benefit-card:nth-child(2) {
    transition-delay: calc(var(--m-reveal-stagger) * 4);
  }

  /* Секция целиком не «прыгает» — анимируем заголовок и сетку отдельно */
  .services.scroll-reveal[data-m-reveal-section],
  .testimonials.scroll-reveal[data-m-reveal-section] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .services[data-m-reveal-section]:not(.m-reveal-section--visible) .service-card {
    opacity: 0;
    transform: translateY(var(--m-reveal-y));
    transition:
      opacity var(--m-reveal-duration) var(--m-reveal-ease),
      transform var(--m-reveal-duration) var(--m-reveal-ease);
    pointer-events: none;
  }

  .services[data-m-reveal-section].m-reveal-section--visible .service-card {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .services[data-m-reveal-section].m-reveal-section--visible .services-grid .service-card:nth-child(1) {
    transition-delay: calc(var(--m-reveal-stagger) * 1);
  }

  .services[data-m-reveal-section].m-reveal-section--visible .services-grid .service-card:nth-child(2) {
    transition-delay: calc(var(--m-reveal-stagger) * 2);
  }

  .services[data-m-reveal-section].m-reveal-section--visible .services-grid .service-card:nth-child(3) {
    transition-delay: calc(var(--m-reveal-stagger) * 3);
  }

  .services[data-m-reveal-section].m-reveal-section--visible .services-grid .service-card:nth-child(4) {
    transition-delay: calc(var(--m-reveal-stagger) * 4);
  }

  .testimonials[data-m-reveal-section]:not(.m-reveal-section--visible) .testimonials-slider {
    opacity: 0;
    transform: translateY(var(--m-reveal-y));
    transition:
      opacity var(--m-reveal-duration) var(--m-reveal-ease),
      transform var(--m-reveal-duration) var(--m-reveal-ease);
  }

  .testimonials[data-m-reveal-section].m-reveal-section--visible .testimonials-slider {
    opacity: 1;
    transform: translateY(0);
  }

  .testimonials[data-m-reveal-section].m-reveal-section--visible .testimonials-slider {
    transition-delay: calc(var(--m-reveal-stagger) * 1.35);
  }
}

/* Дочерние карточки: короче и чуть компактнее, чем у секций */
.service-card.scroll-reveal-child,
.contact-card.scroll-reveal-child,
.shooting-flow__card.scroll-reveal-child {
  opacity: 0;
  transform: translateY(1.15rem) scale(0.988);
  pointer-events: none;
  transition:
    opacity var(--child-reveal-duration) var(--reveal-ease),
    transform var(--child-reveal-duration) var(--reveal-ease),
    border-color var(--hover-ui-duration) var(--hover-ui-ease),
    box-shadow var(--hover-ui-duration) var(--hover-ui-ease);
}

.service-card.scroll-reveal-child.scroll-reveal-child--visible,
.contact-card.scroll-reveal-child.scroll-reveal-child--visible,
.shooting-flow__card.scroll-reveal-child.scroll-reveal-child--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.portfolio-item.scroll-reveal-child,
.ai-portfolio-item.scroll-reveal-child {
  opacity: 0;
  transform: translateY(1.15rem) scale(0.988);
  pointer-events: none;
  transition:
    opacity var(--child-reveal-duration) var(--reveal-ease),
    transform var(--child-reveal-duration) var(--reveal-ease);
}

.portfolio-item.scroll-reveal-child.scroll-reveal-child--visible,
.ai-portfolio-item.scroll-reveal-child.scroll-reveal-child--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.services-grid > .scroll-reveal-child:nth-child(1),
.contact-list > .scroll-reveal-child:nth-child(1),
.portfolio-grid > .scroll-reveal-child:nth-child(1),
.ai-portfolio-grid > .scroll-reveal-child:nth-child(1),
.shooting-flow__grid > .scroll-reveal-child:nth-child(1) {
  transition-delay: 0s;
}

.services-grid > .scroll-reveal-child:nth-child(2),
.contact-list > .scroll-reveal-child:nth-child(2),
.portfolio-grid > .scroll-reveal-child:nth-child(2),
.ai-portfolio-grid > .scroll-reveal-child:nth-child(2),
.shooting-flow__grid > .scroll-reveal-child:nth-child(2) {
  transition-delay: 0.06s;
}

.services-grid > .scroll-reveal-child:nth-child(3),
.contact-list > .scroll-reveal-child:nth-child(3),
.portfolio-grid > .scroll-reveal-child:nth-child(3),
.ai-portfolio-grid > .scroll-reveal-child:nth-child(3),
.shooting-flow__grid > .scroll-reveal-child:nth-child(3) {
  transition-delay: 0.12s;
}

.services-grid > .scroll-reveal-child:nth-child(4),
.contact-list > .scroll-reveal-child:nth-child(4),
.portfolio-grid > .scroll-reveal-child:nth-child(4),
.ai-portfolio-grid > .scroll-reveal-child:nth-child(4),
.shooting-flow__grid > .scroll-reveal-child:nth-child(4) {
  transition-delay: 0.18s;
}

.services-grid > .scroll-reveal-child:nth-child(5),
.portfolio-grid > .scroll-reveal-child:nth-child(5),
.ai-portfolio-grid > .scroll-reveal-child:nth-child(5) {
  transition-delay: 0.24s;
}

.portfolio-grid > .scroll-reveal-child:nth-child(6),
.ai-portfolio-grid > .scroll-reveal-child:nth-child(6) {
  transition-delay: 0.3s;
}

/* Мобильный tap (≤768px, touch): scale 1.02 + мягкое серебристое свечение, плавный сброс */
@media (max-width: 768px) and (hover: none) and (prefers-reduced-motion: no-preference) {
  .portfolio-item img,
  .ai-portfolio-item img {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .portfolio-item::after,
  .ai-portfolio-item::after {
    transition:
      opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .portfolio-item:not(.scroll-reveal-child).touch-pressed img,
  .portfolio-item.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed img,
  .ai-portfolio-item:not(.scroll-reveal-child).touch-pressed img,
  .ai-portfolio-item.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed img {
    transform: scale(1.02);
  }

  .portfolio-item:not(.scroll-reveal-child).touch-pressed::after,
  .portfolio-item.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed::after,
  .ai-portfolio-item:not(.scroll-reveal-child).touch-pressed::after,
  .ai-portfolio-item.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0.2rem) scale(1.12, 1);
    filter: blur(30px);
  }

  .service-card,
  .contact-card {
    transition:
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .service-card:not(.scroll-reveal-child).touch-pressed,
  .service-card.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed,
  .contact-card:not(.scroll-reveal-child).touch-pressed,
  .contact-card.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 8px 32px rgba(0, 0, 0, 0.38),
      0 6px 28px rgba(255, 255, 255, 0.1),
      0 0 40px rgba(232, 232, 240, 0.08),
      0 0 56px rgba(255, 255, 255, 0.04);
  }

  .service-card:not(.scroll-reveal-child).touch-pressed::before,
  .service-card.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed::before,
  .contact-card:not(.scroll-reveal-child).touch-pressed::before,
  .contact-card.scroll-reveal-child.scroll-reveal-child--visible.touch-pressed::before {
    opacity: 0.85;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .about-photo {
    transition:
      border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .about-photo img {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .about-photo.touch-pressed {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
      var(--glass-shadow),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 6px 28px rgba(255, 255, 255, 0.09),
      0 0 44px rgba(236, 236, 244, 0.08);
  }

  .about-photo.touch-pressed img {
    transform: scale(1.02);
    animation-play-state: paused;
  }

  .about-photo.touch-pressed::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0.2rem) scale(1.12, 1);
    filter: blur(30px);
  }

  .about-benefit-card {
    transition:
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .about-benefit-card.touch-pressed,
  .about-benefit-card:active {
    transform: var(--apple-glow-lift);
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: var(--apple-glow-shadow-strong);
  }

  .about-benefit-card.touch-pressed::before,
  .about-benefit-card:active::before {
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero-visual {
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero-visual__img {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero-visual.touch-pressed {
    filter: drop-shadow(0 0 20px rgba(240, 240, 248, 0.12)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.06));
  }

  .hero-visual.touch-pressed .hero-visual__img {
    transform: scale(1.02);
  }

  .before-after-slider__viewport {
    transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .before-after-item.touch-pressed::after {
    opacity: 1;
    transform: translateX(-50%) translateY(72%) scale(1.08, 0.95);
    filter: blur(28px);
  }
}

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

  .section-heading-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .service-card.scroll-reveal-child,
  .contact-card.scroll-reveal-child,
  .portfolio-item.scroll-reveal-child,
  .ai-portfolio-item.scroll-reveal-child,
  .shooting-flow__card.scroll-reveal-child {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
    transition-delay: 0s !important;
  }

  .about-heading::after,
  .portfolio h2::after,
  .testimonials__heading::after,
  .ai-portfolio h2::after,
  .services h2::after,
  .shooting-flow__heading::after,
  .before-after h2::after,
  .contact h2::after {
    transform: scaleX(1);
    transition: none;
  }
}

/* =============================================================================
   Линии под заголовками: дорисовываются при появлении секции
   ============================================================================= */

.portfolio h2::after,
.testimonials__heading::after,
.ai-portfolio h2::after,
.services h2::after,
.shooting-flow__heading::after,
.before-after h2::after,
.contact h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 0.75rem auto 0;
  background-color: var(--color-border);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.15s var(--reveal-ease);
  transition-delay: 0.22s;
}

.portfolio.scroll-reveal.scroll-reveal--visible h2::after,
.testimonials.scroll-reveal.scroll-reveal--visible .testimonials__heading::after,
.ai-portfolio.scroll-reveal.scroll-reveal--visible h2::after,
.services.scroll-reveal.scroll-reveal--visible h2::after,
.shooting-flow.scroll-reveal.scroll-reveal--visible .shooting-flow__heading::after,
.before-after.scroll-reveal.scroll-reveal--visible h2::after,
.contact.scroll-reveal.scroll-reveal--visible h2::after,
.services[data-m-reveal-section].m-reveal-section--visible h2::after,
.testimonials[data-m-reveal-section].m-reveal-section--visible .testimonials__heading::after {
  transform: scaleX(1);
}
