/*
Theme Name: VittaNeiro Art Catalog
Theme URI: https://vk.ru/vittaneiro
Author: VittaNeiro
Description: Тёмно-золотая тема WordPress для каталога артов, обложек, баннеров и портфолио ВиттаНейро.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: vittaneiro
*/

:root {
  --font-ui: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --bg: #050301;
  --bg-soft: #0d0703;
  --brown: #2a1207;
  --brown-2: #3b1a08;
  --gold: #f4b94b;
  --gold-2: #ffe2a1;
  --gold-3: #b66a1d;
  --cream: #fff3ce;
  --text: #f0d8a6;
  --muted: #b99a70;
  --line: rgba(255, 195, 86, 0.26);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
  --radius: 28px;
  --container: 1468px;
  --header-height: 97px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

body::selection {
  background: rgba(244, 185, 75, 0.28);
  color: var(--cream);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: #120803;
  color: var(--cream);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 76% 24%, rgba(171, 83, 21, 0.36), transparent 32%),
    radial-gradient(circle at 18% 38%, rgba(124, 61, 16, 0.24), transparent 34%),
    linear-gradient(180deg, #090402 0%, #070301 64%, #030201 100%);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - clamp(36px, 12vw, 200px)), var(--container));
  min-height: var(--header-height);
  padding: 13px 0 11px;
  display: grid;
  grid-template-columns: 250px 1fr 200px;
  align-items: center;
  gap: 12px;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  width: 58px;
  height: auto;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(232, 143, 37, 0.28));
}

.brand__text {
  display: grid;
  gap: 1px;
  align-content: center;
}

.brand__name {
  color: transparent;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff2bf 0%, #f2c86f 38%, #cc832b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 18px rgba(232, 143, 37, 0.18);
}

.brand__sub {
  color: #d8a858;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}


.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  color: #f1d39a;
}

.main-nav__link {
  position: relative;
  padding: 8px 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: rgba(253, 225, 173, 0.84);
  transition: color 0.24s ease, text-shadow 0.24s ease;
}

.main-nav__link:hover,
.main-nav__link.is-active {
  color: var(--gold-2);
  text-shadow:
    0 0 10px rgba(255, 196, 92, 0.55),
    0 0 22px rgba(255, 177, 52, 0.42),
    0 0 36px rgba(255, 143, 36, 0.22);
}

.main-nav__link.is-active {   
    background: radial-gradient(ellipse at 50% 50%, rgb(255 175 48 / 17%) 40%, rgb(255 175 48 / 16%) 36%, rgb(255 175 48 / 4%) 72%);
    background-repeat: no-repeat;
    background-position: center center;
}

.main-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 54px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 12px rgba(244, 185, 75, 0.9);
}

.main-nav__link.is-active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 5px;
  height: 5px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 14px rgba(244, 185, 75, 0.9);
}

.header-button {
  min-width: 182px;
  min-height: 35px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 207, 121, 0.55);
  border-radius: 999px;
  color: var(--gold-2);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  background: rgba(10, 4, 1, 0.3);
  box-shadow: inset 0 0 18px rgba(244, 185, 75, 0.04);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.header-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 219, 142, 0.86);
  background: rgba(244, 185, 75, 0.08);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 940px;
  padding: calc(var(--header-height) + 36px) 32px 0;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(90deg, rgba(3, 2, 1, 0.90) 0%, rgba(5, 3, 1, 0.50) 34%, rgba(5, 3, 1, 0.18) 58%, rgba(3, 2, 1, 0.38) 78%, rgba(3, 2, 1, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 3, 1, 0.36) 0%, rgba(5, 3, 1, 0.06) 26%, rgba(5, 3, 1, 0.12) 72%, rgba(5, 3, 1, 0.70) 100%),
    url("assets/hero-background-clean.webp");
  background-size: auto, auto, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, transparent 70%, rgba(5, 3, 1, 0.18) 80%, rgba(5, 3, 1, 0.9) 100%),
    radial-gradient(circle at 50% 110%, rgba(0, 0, 0, 0.95), transparent 30%);
}

.hero__noise,
.hero__glow {
  position: absolute;
  pointer-events: none;
}

.hero__noise {
  inset: 0;
  z-index: -2;
  opacity: 0.72;
  background:
    radial-gradient(circle at 19% 20%, rgba(255, 195, 78, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 28%, rgba(255, 168, 48, 0.38) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 18%, rgba(255, 224, 154, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 65%, rgba(255, 175, 46, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 90% 70%, rgba(255, 195, 78, 0.3) 0 1px, transparent 2px);
  background-size: 160px 160px, 220px 220px, 300px 300px, 260px 260px, 180px 180px;
}

.hero__glow--left {
  z-index: -1;
  left: 4%;
  top: 25%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 91, 15, 0.26), transparent 67%);
}

.hero__glow--right {
  z-index: -1;
  right: 8%;
  top: 18%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 146, 32, 0.28), transparent 67%);
}

.hero__inner {
  position: relative;
  z-index: 10;
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 920px) minmax(420px, 1fr);
  align-items: end;
  min-height: 744px;
}

.hero__content {
  align-self: center;
  padding: 38px 0 120px;
}

.eyebrow {
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.37em;
  font-size: clamp(12px, 1.1vw, 17px);
  line-height: 1.35;
  text-shadow: 0 0 16px rgba(244, 185, 75, 0.38);
}

.eyebrow span {
  width: 38px;
  height: 14px;
  display: inline-block;
  flex: 0 0 auto;
  transform: translateY(1px);
  background: url("assets/eyebrow-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 7px rgba(244, 185, 75, 0.28));
}

.hero__title {
  margin: 0;
  max-width: none;
  color: transparent;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 4.9vw, 102px);
  line-height: 0.96;
  letter-spacing: 0.045em;
  text-transform: none;
  background:
    linear-gradient(180deg, #fff8d9 0%, #f7d180 29%, #d78b28 58%, #fff0bd 77%, #8f4e17 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 6px 22px rgba(255, 156, 43, 0.18)) drop-shadow(0 2px 1px rgba(22, 8, 1, 0.8));
}

.hero__title span {
  display: block;
  white-space: nowrap;
}

.ornament {
  width: min(580px, 100%);
  height: 78px;
  margin: 10px 0 18px;
  background: url("assets/title-vignette-exact-h1tone-fixed-2x.png") center / contain no-repeat;
  filter:
    drop-shadow(0 3px 9px rgba(22, 8, 1, 0.78))
    drop-shadow(0 0 4px rgba(255, 198, 92, 0.14));
}

.hero__lead {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 236, 202, 0.78);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.62;
  text-wrap: balance;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 300px;
  min-height: 74px;
  padding: 0 44px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button::before,
.button::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: rgba(255, 238, 180, 0.5);
  pointer-events: none;
}

.button::before {
  left: 4px;
  bottom: 4px;
  border-left: 1px solid;
  border-bottom: 1px solid;
  border-radius: 0 0 0 8px;
}

.button::after {
  right: 4px;
  top: 4px;
  border-right: 1px solid;
  border-top: 1px solid;
  border-radius: 0 8px 0 0;
}

.button:hover {
  transform: translateY(-2px);
}

.button--gold {
  color: #321605;
  background:
    linear-gradient(180deg, #fff0b3, #f4b849 43%, #c97922 100%);
  box-shadow: 0 14px 34px rgba(191, 91, 17, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button--gold:hover {
  box-shadow: 0 20px 44px rgba(220, 114, 24, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button--ghost {
  color: var(--gold-2);
  border: 1px solid rgba(255, 196, 88, 0.56);
  background: rgba(8, 3, 1, 0.34);
  box-shadow: inset 0 0 24px rgba(244, 185, 75, 0.05);
}

.button--ghost:hover {
  border-color: rgba(255, 222, 157, 0.9);
  box-shadow: 0 16px 34px rgba(158, 75, 17, 0.18), inset 0 0 24px rgba(244, 185, 75, 0.1);
}

.benefits {
  list-style: none;
  margin: 54px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.benefit {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  min-height: 70px;
  padding: 0 34px;
}

.benefit:first-child {
  padding-left: 0;
}

.benefit:not(:first-child) {
  border-left: 1px solid rgba(255, 198, 92, 0.30);
}

.benefit__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  filter: drop-shadow(0 0 12px rgba(244, 185, 75, 0.34));
}

.benefit__icon svg {
  width: 48px;
  height: 48px;
  display: block;
  overflow: visible;
}

.benefit__icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit__icon-stroke--soft {
  opacity: 0.72;
}

.benefit__icon-fill {
  fill: currentColor;
  opacity: 0.92;
}

.benefit__icon--fleur svg {
  width: 46px;
  height: 46px;
}

.benefit__icon--book svg {
  width: 50px;
  height: 50px;
}

.benefit__icon--laurel svg {
  width: 50px;
  height: 50px;
}

.benefit strong {
    display: block;
    color: var(--gold-2);
    font-size: 14px;
    font-weight: 200;
    letter-spacing: 0.105em;
    line-height: 1.28;
    text-transform: uppercase;
}

.benefit small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 228, 177, 0.66);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.hero__figure {
  position: absolute;
  right: -70px;
  bottom: 0;
  z-index: -1;
  width: min(52vw, 760px);
  aspect-ratio: 747 / 753;
  margin: 0;
  filter: drop-shadow(-30px 20px 65px rgba(0, 0, 0, 0.58));
}

.hero__figure::before {
  content: "";
  position: absolute;
  inset: 7% 8% 2% 16%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 168, 44, 0.26), transparent 68%);
  filter: blur(2px);
}

.hero__girl-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
  pointer-events: none;
}

.hero__girl-slide.is-active {
  z-index: 2;
  opacity: 1;
}

.hero__girl-slide.is-fading-in {
  z-index: 3;
  opacity: 1;
}

.hero__girl-slide.is-fading-out {
  z-index: 2;
  opacity: 0;
}

@keyframes cue {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(8px) rotate(45deg); }
}

.portfolio-strip {
  position: relative;
  z-index: 20;
  width: min(100% - 64px, var(--container));
  margin: -90px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.portfolio-preview {
  position: relative;
  min-height: 146px;
  border: 1px solid rgba(255, 200, 91, 0.32);
  border-radius: 18px;
  overflow: hidden;
  background: var(--brown);
  box-shadow: var(--shadow);
}

.portfolio-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 3, 1, 0.84));
}

.portfolio-preview img {
  width: 100%;
  height: 100%;
  min-height: 146px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-preview:hover img {
  transform: scale(1.08);
}

.portfolio-preview span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 21px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.section {
  width: min(100% - 64px, var(--container));
  margin: 0 auto;
  padding: 112px 0 0;
}

.section__head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 42px;
}

.section__kicker {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
}

.section h2 {
  margin: 0;
  color: transparent;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: 1.05;
  background: linear-gradient(180deg, #fff4c8, #df9940 72%, #a65f22);
  -webkit-background-clip: text;
  background-clip: text;
  text-wrap: balance;
}

.cards {
  display: grid;
  gap: 22px;
}

.cards--services {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  min-height: 230px;
  padding: 32px;
  border: 1px solid rgba(255, 203, 105, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 196, 88, 0.08), rgba(255, 196, 88, 0.02)),
    rgba(13, 7, 3, 0.72);
  box-shadow: 0 16px 70px rgba(0, 0, 0, 0.34);
}

.card__icon {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 42px;
  opacity: 0.92;
}

.card h3 {
  margin: 22px 0 12px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}

.card p {
  margin: 0;
  color: rgba(255, 226, 174, 0.7);
  line-height: 1.7;
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-auto-rows: 245px;
  gap: 22px;
}

.gallery__item {
  position: relative;
  border: 1px solid rgba(255, 203, 105, 0.24);
  border-radius: 24px;
  overflow: hidden;
  background: var(--brown);
  box-shadow: var(--shadow);
}

.gallery__item--large {
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 0.55s ease;
}

.gallery__item:hover img {
  transform: scale(1.07);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 3, 1, 0.9));
}

.gallery__item div {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 8px;
}

.gallery__item strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}

.gallery__item span {
  color: rgba(255, 231, 190, 0.72);
}

.section--split {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 64px;
  align-items: center;
}

.section--split p:last-child {
  margin: 0;
  color: rgba(255, 226, 174, 0.72);
  font-size: 20px;
  line-height: 1.85;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.quote-grid blockquote {
  margin: 0;
  min-height: 190px;
  padding: 30px;
  border: 1px solid rgba(255, 203, 105, 0.2);
  border-radius: 24px;
  background: rgba(13, 7, 3, 0.72);
  color: rgba(255, 233, 191, 0.78);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.5;
  box-shadow: 0 16px 70px rgba(0, 0, 0, 0.28);
}

.contact {
  margin-bottom: 100px;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid rgba(255, 203, 105, 0.24);
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 185, 75, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 196, 88, 0.08), rgba(255, 196, 88, 0.02)),
    rgba(13, 7, 3, 0.84);
  box-shadow: var(--shadow);
}

.contact p:not(.section__kicker) {
  margin: 18px 0 0;
  max-width: 720px;
  color: rgba(255, 226, 174, 0.72);
  font-size: 19px;
  line-height: 1.7;
}

/* Stable desktop refinements. */
.benefit__icon--laurel .benefit__icon-fill {
  opacity: 0.88;
}

.benefit__icon--laurel .benefit__icon-stroke {
  stroke-width: 1.9;
}

.hero__actions {
  gap: 28px;
}

.button {
  min-width: 300px;
  min-height: 74px;
  padding: 0 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.button span {
  font-size: 18px;
  line-height: 1;
}

.button--gold {
  box-shadow:
    0 0 0 1px rgba(255, 220, 142, 0.72) inset,
    0 12px 30px rgba(198, 113, 24, 0.34),
    0 0 28px rgba(255, 193, 84, 0.18);
}

.button--ghost {
  border-color: rgba(244, 185, 75, 0.78);
}


/* Clean responsive layout. */
@media (max-width: 1280px) {
  :root {
    --header-height: 88px;
  }

  .site-header {
    width: min(calc(100% - 48px), var(--container));
    min-height: var(--header-height);
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
  }

  .header-button {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: fixed;
    z-index: 70;
    top: calc(var(--header-height) - 4px);
    right: 24px;
    width: min(320px, calc(100vw - 48px));
    padding: 16px;
    display: grid;
    justify-content: stretch;
    gap: 6px;
    border: 1px solid rgba(255, 203, 105, 0.24);
    border-radius: 20px;
    background: rgba(10, 5, 2, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav__link {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
  }

  .main-nav__link.is-active::before,
  .main-nav__link.is-active::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 34px) 24px 64px;
  }

  .hero__inner {
    width: min(100%, 1020px);
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    min-height: 0;
  }

  .hero__content {
    max-width: 760px;
    padding: 38px 0 0;
  }

  .hero__figure {
    right: -120px;
    bottom: 0;
    width: min(58vw, 600px);
    opacity: 0.72;
  }

  .hero__title {
    font-size: clamp(52px, 8.4vw, 86px);
    line-height: 0.98;
  }

  .hero__title span {
    white-space: normal;
  }

  .ornament {
    width: min(500px, 100%);
    height: 68px;
  }

  .hero__lead {
    max-width: 620px;
    font-size: clamp(17px, 2.2vw, 22px);
  }

  .benefits {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .benefit {
    padding: 0 20px;
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }

  .benefit:first-child {
    padding-left: 0;
  }

  .benefit__icon,
  .benefit__icon svg {
    width: 42px;
    height: 42px;
  }

  .benefit strong {
    font-size: 12px;
    letter-spacing: 0.095em;
  }

  .benefit small {
    font-size: 10.5px;
  }

  .portfolio-strip {
    width: min(100% - 48px, var(--container));
    margin-top: 0;
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    width: min(100% - 48px, var(--container));
    padding-top: 84px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 78px;
  }

  body {
    min-width: 320px;
  }

  .site-header {
    width: calc(100% - 32px);
    min-height: var(--header-height);
    padding: 10px 0;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 46px;
  }

  .brand__name {
    font-size: 20px;
  }

  .brand__sub {
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .main-nav {
    top: calc(var(--header-height) + 4px);
    right: 16px;
    width: min(300px, calc(100vw - 32px));
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 22px) 18px 54px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 2, 1, 0.94) 0%, rgba(5, 3, 1, 0.82) 42%, rgba(5, 3, 1, 0.48) 72%, rgba(3, 2, 1, 0.80) 100%),
      linear-gradient(180deg, rgba(5, 3, 1, 0.32) 0%, rgba(5, 3, 1, 0.20) 46%, rgba(5, 3, 1, 0.82) 100%),
      url("assets/hero-background-clean.webp");
    background-size: auto, auto, cover;
    background-position: center, center, 64% center;
  }

  .hero__content {
    max-width: 100%;
    padding: 28px 0 0;
  }

  .eyebrow {
    margin-bottom: 18px;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .eyebrow span {
    width: 30px;
    height: 11px;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(38px, 12.4vw, 64px);
    line-height: 1.02;
    letter-spacing: 0.032em;
  }

  .ornament {
    width: min(360px, 100%);
    height: 50px;
    margin: 8px 0 16px;
  }

  .hero__lead {
    max-width: 92%;
    font-size: 17px;
    line-height: 1.55;
  }

  .hero__actions {
    width: 100%;
    margin-top: 26px;
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: min(100%, 360px);
    min-width: 0;
    min-height: 62px;
    padding: 0 26px;
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .button span {
    font-size: 16px;
  }

  .benefits {
    margin-top: 38px;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 520px;
  }

  .benefit,
  .benefit:first-child,
  .benefit:not(:first-child) {
    padding: 0;
    border-left: 0;
  }

  .benefit {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    min-height: 0;
  }

  .benefit__icon,
  .benefit__icon svg {
    width: 40px;
    height: 40px;
  }

  .benefit strong {
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.09em;
  }

  .benefit small {
    margin-top: 5px;
    font-size: 10.5px;
  }

  .hero__figure {
    right: -110px;
    bottom: -4px;
    width: min(74vw, 420px);
    opacity: 0.36;
    filter: drop-shadow(-20px 12px 46px rgba(0, 0, 0, 0.64));
  }

  .hero__figure::before {
    opacity: 0.55;
  }

  .portfolio-strip {
    width: calc(100% - 36px);
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 0;
  }

  .portfolio-preview {
    min-height: 128px;
    border-radius: 14px;
  }

  .portfolio-preview img {
    min-height: 128px;
  }

  .portfolio-preview span {
    left: 14px;
    bottom: 12px;
    font-size: 18px;
  }

  .section {
    width: calc(100% - 36px);
    padding-top: 74px;
  }

  .portfolio-grid,
  .reviews {
    grid-template-columns: 1fr;
  }

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

  .contact {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    width: calc(100% - 24px);
  }

  .brand__mark {
    width: 40px;
  }

  .brand__name {
    font-size: 18px;
  }

  .brand__sub {
    font-size: 8px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding: calc(var(--header-height) + 18px) 14px 46px;
  }

  .hero__content {
    padding-top: 22px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 10px;
    letter-spacing: 0.16em;
    line-height: 1.45;
  }

  .hero__title {
    font-size: clamp(34px, 14vw, 50px);
    line-height: 1.02;
    letter-spacing: 0.018em;
  }

  .ornament {
    width: min(300px, 100%);
    height: 42px;
  }

  .hero__lead {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.5;
  }

  .button {
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .benefits {
    margin-top: 34px;
    gap: 16px;
  }

  .hero__figure {
    right: -120px;
    bottom: 10px;
    width: min(90vw, 360px);
    opacity: 0.24;
  }

  .portfolio-strip {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  .section {
    width: calc(100% - 28px);
    padding-top: 62px;
  }

  .section__title {
    font-size: clamp(34px, 12vw, 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__girl-slide {
    transition: opacity 1.8s ease-in-out;
  }
}


/* FINAL MOBILE PATCH v2 */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Нормальный бургер вместо белого квадрата */
.menu-toggle {
  border: 1px solid rgba(244, 185, 75, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 204, 105, 0.18), transparent 56%),
    rgba(11, 6, 3, 0.72);
  color: var(--gold-2);
  box-shadow:
    0 0 0 1px rgba(255, 238, 180, 0.06) inset,
    0 0 18px rgba(244, 185, 75, 0.14);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  background: currentColor;
}

@media (max-width: 860px) {
  .site-header {
    z-index: 80;
  }

  .main-nav {
    z-index: 90;
  }

  .hero {
    min-height: auto;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 44px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 2, 1, 0.95) 0%, rgba(5, 3, 1, 0.86) 45%, rgba(5, 3, 1, 0.66) 72%, rgba(3, 2, 1, 0.88) 100%),
      linear-gradient(180deg, rgba(5, 3, 1, 0.30) 0%, rgba(5, 3, 1, 0.20) 45%, rgba(5, 3, 1, 0.88) 100%),
      url("assets/hero-background-clean.webp");
    background-size: auto, auto, cover;
    background-position: center, center, 58% center;
  }

  .hero__inner {
    width: 100%;
    max-width: 100%;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
  }

  .eyebrow {
    width: 100%;
    flex-wrap: nowrap;
  }

  .hero__title {
    width: 100%;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero__title span {
    display: block;
    white-space: normal;
    max-width: 100%;
  }

  .hero__lead {
    position: relative;
    z-index: 3;
  }

  .hero__actions {
    position: relative;
    z-index: 4;
  }

  .benefits {
    position: relative;
    z-index: 4;
  }

  /* На мобильном девушка не должна перекрывать кнопки и преимущества */
  .hero__figure {
    right: -110px;
    bottom: 170px;
    width: min(82vw, 390px);
    opacity: 0.20;
    z-index: 0;
    pointer-events: none;
  }

  .hero__figure::before {
    opacity: 0.32;
  }

  .hero__girl-slide {
    transform: scale(1.02);
  }

  .button {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: calc(100% - 22px);
  }

  .brand__mark {
    width: 38px;
  }

  .brand__name {
    font-size: 17px;
  }

  .brand__sub {
    font-size: 7.5px;
  }

  .hero {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 40px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    gap: 8px;
  }

  .eyebrow span {
    width: 28px;
    height: 10px;
  }

  .hero__title {
    font-size: clamp(32px, 13.1vw, 46px);
    line-height: 1.05;
    letter-spacing: 0.012em;
  }

  .ornament {
    width: min(284px, 100%);
    height: 40px;
    margin: 7px 0 14px;
  }

  .hero__lead {
    font-size: 14.5px;
    line-height: 1.46;
  }

  .hero__actions {
    margin-top: 22px;
  }

  .button {
    min-height: 54px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    padding: 0 16px;
  }

  .button span {
    font-size: 14px;
  }

  .benefits {
    margin-top: 30px;
    gap: 14px;
  }

  .benefit {
    grid-template-columns: 34px 1fr;
    gap: 11px;
  }

  .benefit__icon,
  .benefit__icon svg {
    width: 31px;
    height: 31px;
  }

  .benefit strong {
    font-size: 9.8px;
    line-height: 1.25;
    letter-spacing: 0.065em;
  }

  .benefit small {
    margin-top: 4px;
    font-size: 8.5px;
    line-height: 1.25;
  }

  .hero__figure {
    right: -118px;
    bottom: 195px;
    width: min(92vw, 340px);
    opacity: 0.16;
  }

  .portfolio-strip {
    width: calc(100% - 24px);
    gap: 12px;
  }

  .portfolio-preview {
    min-height: 112px;
    border-radius: 12px;
  }

  .portfolio-preview img {
    min-height: 112px;
  }

  .portfolio-preview span {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: clamp(30px, 12.6vw, 42px);
  }

  .hero__lead {
    font-size: 13.5px;
  }

  .button {
    min-height: 52px;
    font-size: 9.5px;
    letter-spacing: 0.105em;
  }

  .benefit strong {
    font-size: 9.2px;
  }

  .benefit small {
    font-size: 8px;
  }
}


/* FINAL MOBILE PATCH v3: фиксация обрезания слева и белой полосы справа. */
@media (max-width: 560px) {
  html,
  body,
  .site-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    min-height: var(--header-height);
    padding: 10px 12px;
    box-sizing: border-box;
  }

  .brand {
    min-width: 0;
    max-width: calc(100vw - 76px);
    overflow: hidden;
  }

  .brand__mark {
    width: 36px;
  }

  .brand__name {
    font-size: 16px;
  }

  .brand__sub {
    font-size: 7px;
    white-space: nowrap;
  }

  .menu-toggle {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin-left: auto;
  }

  .main-nav {
    right: 12px;
    width: calc(100vw - 24px);
    box-sizing: border-box;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }

  .hero__inner {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .eyebrow,
  .hero__title,
  .ornament,
  .hero__lead,
  .hero__actions,
  .benefits {
    max-width: 100%;
    box-sizing: border-box;
  }

  .eyebrow {
    overflow: hidden;
  }

  .hero__title {
    font-size: clamp(29px, 11.4vw, 42px);
    line-height: 1.06;
    letter-spacing: 0.006em;
    overflow: visible;
  }

  .hero__title span {
    display: block;
    white-space: normal;
    max-width: 100%;
  }

  .ornament {
    width: min(270px, 100%);
    height: 38px;
  }

  .hero__lead {
    font-size: 13.8px;
    line-height: 1.45;
  }

  .hero__actions {
    width: 100%;
  }

  .button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 52px;
    padding: 0 14px;
    font-size: 9.8px;
    letter-spacing: 0.105em;
    box-sizing: border-box;
  }

  .benefits {
    width: 100%;
    margin-top: 28px;
  }

  .benefit {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .benefit strong,
  .benefit small {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .benefit__icon,
  .benefit__icon svg {
    width: 29px;
    height: 29px;
  }

  .benefit strong {
    font-size: 9px;
    letter-spacing: 0.045em;
  }

  .benefit small {
    font-size: 7.8px;
  }

  .hero__figure {
    right: -125px;
    bottom: 218px;
    width: min(92vw, 320px);
    opacity: 0.13;
  }

  .portfolio-strip {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

@media (max-width: 360px) {
  .hero__inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero__title {
    font-size: clamp(28px, 10.9vw, 38px);
    letter-spacing: 0;
  }

  .hero__lead {
    font-size: 13px;
  }

  .button {
    font-size: 9px;
    letter-spacing: 0.095em;
  }
}


/* MOBILE HORIZONTAL SCROLL FIX: hamburger/menu containment */
@media (max-width: 560px) {
  html,
  body {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

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

  .site-shell,
  .site-header,
  .hero,
  main {
    max-width: 100vw;
    overflow-x: clip;
  }

  @supports not (overflow-x: clip) {
    .site-shell,
    .site-header,
    .hero,
    main {
      overflow-x: hidden;
    }
  }

  .site-header {
    left: 0;
    right: 0;
    transform: none;
    width: 100vw;
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
    grid-template-columns: minmax(0, 1fr) 42px;
    justify-content: stretch;
    box-sizing: border-box;
  }

  .brand {
    min-width: 0;
    max-width: 100%;
  }

  .menu-toggle {
    position: relative;
    right: auto;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    justify-self: end;
    overflow: hidden;
    transform: none;
  }

  .menu-toggle::before,
  .menu-toggle::after,
  .menu-toggle span {
    left: 50%;
    right: auto;
    width: 18px;
    max-width: 18px;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  .menu-toggle::before {
    top: 13px;
  }

  .menu-toggle span {
    top: 20px;
  }

  .menu-toggle::after {
    top: 27px;
  }

  .menu-toggle.is-open::before {
    top: 20px;
    transform: translateX(-50%) rotate(45deg);
  }

  .menu-toggle.is-open span {
    opacity: 0;
  }

  .menu-toggle.is-open::after {
    top: 20px;
    transform: translateX(-50%) rotate(-45deg);
  }

  .main-nav {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    transform: translateY(-12px);
  }

  .main-nav.is-open {
    transform: translateY(0);
  }
}


/* MOBILE MENU VISIBILITY FIX */
@media (max-width: 560px) {
  .site-header {
    overflow: visible;
  }

  .menu-toggle {
    position: relative;
    z-index: 120;
    display: grid;
    place-items: center;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(244, 185, 75, 0.86);
    border-radius: 0;
    background:
      radial-gradient(circle at 50% 50%, rgba(255, 206, 106, 0.18), transparent 64%),
      rgba(8, 4, 2, 0.74);
    color: #ffd98a;
    box-shadow:
      0 0 0 1px rgba(255, 235, 174, 0.08) inset,
      0 0 14px rgba(244, 185, 75, 0.22);
    opacity: 1;
    visibility: visible;
    overflow: visible;
    -webkit-appearance: none;
    appearance: none;
  }

  .menu-toggle span,
  .menu-toggle::before,
  .menu-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #ffd98a;
    box-shadow: 0 0 8px rgba(255, 205, 105, 0.48);
    opacity: 1;
    transform: translateX(-50%);
    transform-origin: center;
  }

  .menu-toggle::before {
    top: 14px;
  }

  .menu-toggle span {
    top: 22px;
  }

  .menu-toggle::after {
    top: 30px;
  }

  .menu-toggle.is-open::before {
    top: 22px;
    transform: translateX(-50%) rotate(45deg);
  }

  .menu-toggle.is-open span {
    opacity: 0;
  }

  .menu-toggle.is-open::after {
    top: 22px;
    transform: translateX(-50%) rotate(-45deg);
  }

  .main-nav {
    left: 16px;
    right: 16px;
    top: calc(var(--header-height) + 12px);
    width: auto;
    max-width: none;
    padding: 18px;
    gap: 8px;
    border-radius: 20px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 186, 73, 0.12), transparent 56%),
      rgba(8, 4, 2, 0.97);
    border: 1px solid rgba(255, 203, 105, 0.34);
    box-shadow:
      0 22px 60px rgba(0, 0, 0, 0.72),
      0 0 28px rgba(255, 174, 52, 0.10);
    box-sizing: border-box;
    backdrop-filter: blur(14px);
  }

  .main-nav__link {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 15px;
    color: rgba(255, 229, 178, 0.88);
    box-sizing: border-box;
  }

  .main-nav__link:hover,
  .main-nav__link.is-active {
    color: #fff1c3;
    background:
      radial-gradient(ellipse at 50% 50%, rgba(255, 177, 54, 0.20), rgba(255, 177, 54, 0.06) 62%, transparent 100%);
    text-shadow:
      0 0 10px rgba(255, 196, 92, 0.55),
      0 0 22px rgba(255, 177, 52, 0.28);
  }

  .main-nav__link.is-active::before,
  .main-nav__link.is-active::after {
    display: none;
  }
}

@media (max-width: 380px) {
  .main-nav {
    left: 12px;
    right: 12px;
    padding: 16px;
  }

  .main-nav__link {
    min-height: 46px;
    font-size: 14px;
  }

  .menu-toggle {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
  }
}


/* HERO TO CARDS DARK BLEND v3 — убирает коричневую горизонтальную полосу за карточками. */
.hero {
  padding-bottom: 150px;
  margin-bottom: -150px;
}

.hero::after {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 56%,
      rgba(5, 3, 1, 0.20) 70%,
      rgba(5, 3, 1, 0.78) 90%,
      rgba(5, 3, 1, 0.98) 100%
    ),
    radial-gradient(circle at 50% 108%, rgba(0, 0, 0, 0.96), transparent 42%);
}

.portfolio-strip {
    position: relative;
    z-index: 30;
    isolation: isolate;
    margin-top: -220px;
}

/* Тёмная подложка только за зоной карточек, с мягкими краями.
   Она перекрывает коричневый фон секции, но не даёт грубой полосы. */
.portfolio-strip::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  width: 100vw;
  height: calc(100% + 190px);
  transform: translateX(-50%);
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(5, 3, 1, 0) 0%,
      rgba(5, 3, 1, 0.92) 22%,
      rgba(5, 3, 1, 0.98) 58%,
      rgba(5, 3, 1, 0.86) 82%,
      rgba(5, 3, 1, 0) 100%
    ),
    radial-gradient(circle at 22% 22%, rgba(255, 176, 60, 0.08), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(255, 126, 32, 0.07), transparent 36%);
}

.portfolio-strip::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -88px;
  width: 100vw;
  height: 130px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 3, 1, 0) 0%,
    rgba(5, 3, 1, 0.62) 48%,
    rgba(5, 3, 1, 0) 100%
  );
  filter: blur(12px);
}

.portfolio-preview {
  box-shadow:
    0 22px 62px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 217, 130, 0.06) inset;
}

@media (max-width: 980px) {
  .hero {
    padding-bottom: 82px;
    margin-bottom: -82px;
  }

  .portfolio-strip {
    margin-top: 0;
  }

  .portfolio-strip::before,
  .portfolio-strip::after {
    display: none;
  }
}


/* Portfolio ornate vignette */
.section__head--ornate {
  gap: 12px;
}

.section-vignette {
  position: relative;
  width: min(420px, 70vw);
  height: 22px;
  margin-top: 4px;
  color: rgba(244, 185, 75, 0.72);
  pointer-events: none;
  filter:
    drop-shadow(0 0 5px rgba(244, 185, 75, 0.20))
    drop-shadow(0 0 12px rgba(255, 164, 45, 0.10));
}

.section-vignette::before,
.section-vignette::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 34px);
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 42%, rgba(255, 236, 177, 0.56));
  opacity: 0.78;
}

.section-vignette::before {
  left: 0;
}

.section-vignette::after {
  right: 0;
  transform: scaleX(-1);
}

.section-vignette span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 18px;
  transform: translate(-50%, -50%);
}

.section-vignette span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 8px rgba(244, 185, 75, 0.22);
}

.section-vignette span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 12px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%, currentColor 0 1.7px, transparent 2px),
    radial-gradient(circle at 17% 50%, currentColor 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 83% 50%, currentColor 0 1.2px, transparent 1.8px);
}

#services {
  display: none !important;
}


/* Portfolio five mixed layout:
   5 блоков: 1 почти квадратный, 1 горизонтальный, 3 вертикальных. */
.section--portfolio .gallery--five {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  grid-template-rows: 300px 510px;
  gap: 24px;
  align-items: stretch;
}

/* Общие карточки */
.section--portfolio .gallery--five .gallery__item {
  position: relative;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  grid-column: auto;
  grid-row: auto;
}

/* Почти квадратная карточка */
.section--portfolio .gallery--five .gallery__item--covers {
  grid-column: 1;
  grid-row: 1;
}

/* Горизонтальная карточка */
.section--portfolio .gallery--five .gallery__item--characters {
  grid-column: 2 / span 3;
  grid-row: 1;
}

/* Три вертикальные карточки */
.section--portfolio .gallery--five .gallery__item--romance {
  grid-column: 1;
  grid-row: 2;
}

.section--portfolio .gallery--five .gallery__item--banners {
  grid-column: 2;
  grid-row: 2;
}

.section--portfolio .gallery--five .gallery__item--illustrations {
  grid-column: 3 / span 2;
  grid-row: 2;
}

/* Последний блок шире вертикального, но визуально сохраняет книжную подачу */
.section--portfolio .gallery--five .gallery__item--illustrations img {
  object-position: center top;
}

.section--portfolio .gallery--five .gallery__item img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.section--portfolio .gallery--five .gallery__item--covers img,
.section--portfolio .gallery--five .gallery__item--romance img,
.section--portfolio .gallery--five .gallery__item--banners img {
  object-position: center top;
}

.section--portfolio .gallery--five .gallery__item--characters img {
  object-position: center 38%;
}

.section--portfolio .gallery--five .gallery__item::after {
  background:
    linear-gradient(180deg, rgba(5, 3, 1, 0.02) 0%, rgba(5, 3, 1, 0.10) 44%, rgba(5, 3, 1, 0.88) 100%),
    radial-gradient(circle at 50% 8%, rgba(255, 218, 139, 0.10), transparent 34%);
}

.section--portfolio .gallery--five .gallery__item div {
  left: 22px;
  right: 22px;
  bottom: 20px;
}

.section--portfolio .gallery--five .gallery__item strong {
  font-size: clamp(20px, 1.32vw, 28px);
  line-height: 1.05;
}

.section--portfolio .gallery--five .gallery__item span {
  margin-top: 7px;
  font-size: clamp(12px, 0.82vw, 15px);
  line-height: 1.32;
}

.section--portfolio .gallery--five .gallery__item--covers strong,
.section--portfolio .gallery--five .gallery__item--characters strong {
  font-size: clamp(23px, 1.55vw, 32px);
}

/* Планшет: квадрат + горизонтальная сверху, остальные ниже */
@media (max-width: 1180px) {
  .section--portfolio .gallery--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 18px;
  }

  .section--portfolio .gallery--five .gallery__item--covers,
  .section--portfolio .gallery--five .gallery__item--characters,
  .section--portfolio .gallery--five .gallery__item--romance,
  .section--portfolio .gallery--five .gallery__item--banners,
  .section--portfolio .gallery--five .gallery__item--illustrations {
    grid-column: auto;
    grid-row: auto;
  }

  .section--portfolio .gallery--five .gallery__item--covers {
    aspect-ratio: 1 / 1;
  }

  .section--portfolio .gallery--five .gallery__item--characters {
    grid-column: 1 / span 2;
    aspect-ratio: 16 / 7;
  }

  .section--portfolio .gallery--five .gallery__item--romance,
  .section--portfolio .gallery--five .gallery__item--banners {
    aspect-ratio: 2 / 3;
  }

  .section--portfolio .gallery--five .gallery__item--illustrations {
    grid-column: 1 / span 2;
    aspect-ratio: 16 / 8;
  }
}

/* Мобильный: 5 карточек одной колонкой с разными пропорциями */
@media (max-width: 680px) {
  .section--portfolio .gallery--five {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section--portfolio .gallery--five .gallery__item--characters,
  .section--portfolio .gallery--five .gallery__item--illustrations {
    grid-column: auto;
  }

  .section--portfolio .gallery--five .gallery__item--covers {
    aspect-ratio: 1 / 1;
  }

  .section--portfolio .gallery--five .gallery__item--characters,
  .section--portfolio .gallery--five .gallery__item--illustrations {
    aspect-ratio: 16 / 9;
  }

  .section--portfolio .gallery--five .gallery__item--romance,
  .section--portfolio .gallery--five .gallery__item--banners {
    aspect-ratio: 2 / 3;
  }

  .section--portfolio .gallery--five .gallery__item {
    border-radius: 18px;
  }

  .section--portfolio .gallery--five .gallery__item div {
    left: 16px;
    right: 16px;
    bottom: 15px;
  }

  .section--portfolio .gallery--five .gallery__item strong {
    font-size: 20px;
  }

  .section--portfolio .gallery--five .gallery__item span {
    margin-top: 5px;
    font-size: 13px;
  }
}


/* LOWER SECTIONS REFINED */
.section--about-polished {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.72fr);
  gap: 58px;
  align-items: center;
  padding-top: 118px;
}

.section--about-polished::before {
  content: "";
  position: absolute;
  inset: 36px -7% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 185, 75, 0.22), transparent);
}

.about-polished__text p:not(.section__kicker) {
  margin: 22px 0 0;
  max-width: 740px;
  color: rgba(255, 226, 174, 0.72);
  font-size: 19px;
  line-height: 1.82;
}

.about-polished__panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 203, 105, 0.20);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(244, 185, 75, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 196, 88, 0.07), rgba(255, 196, 88, 0.015)),
    rgba(9, 4, 2, 0.70);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 238, 180, 0.04) inset;
}

.about-polished__panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 203, 105, 0.10);
  border-radius: 22px;
  pointer-events: none;
}

.about-polished__item {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 18px 18px 18px 0;
}

.about-polished__item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 203, 105, 0.12);
}

.about-polished__item span {
  color: rgba(244, 185, 75, 0.72);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

.about-polished__item strong {
  display: block;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.about-polished__item small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 226, 174, 0.62);
  font-size: 14px;
  line-height: 1.45;
}

.section--workflow {
  padding-top: 108px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.workflow-card {
  position: relative;
  min-height: 226px;
  padding: 34px 30px 30px;
  border: 1px solid rgba(255, 203, 105, 0.20);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 0%, rgba(244, 185, 75, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 196, 88, 0.06), rgba(255, 196, 88, 0.012)),
    rgba(9, 4, 2, 0.76);
  box-shadow:
    0 20px 64px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 238, 180, 0.04) inset;
}

.workflow-card::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 185, 75, 0.48), transparent);
}

.workflow-card__number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border: 1px solid rgba(244, 185, 75, 0.35);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  box-shadow: 0 0 18px rgba(244, 185, 75, 0.10);
}

.workflow-card h3 {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.05;
}

.workflow-card p {
  margin: 16px 0 0;
  color: rgba(255, 226, 174, 0.66);
  font-size: 16px;
  line-height: 1.65;
}

.contact--polished {
  position: relative;
  margin-top: 108px;
  margin-bottom: 100px;
  padding: 42px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 18%, rgba(244, 185, 75, 0.18), transparent 34%),
    radial-gradient(circle at 16% 100%, rgba(180, 76, 18, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 196, 88, 0.07), rgba(255, 196, 88, 0.018)),
    rgba(10, 5, 2, 0.86);
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 203, 105, 0.22) inset;
}

.contact--polished::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 203, 105, 0.12);
  border-radius: 23px;
  pointer-events: none;
}

.contact--polished .contact__ornament {
  position: absolute;
  left: 28px;
  top: 22px;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 185, 75, 0.62), transparent);
  pointer-events: none;
}

.contact--polished h2 {
  font-size: clamp(34px, 3vw, 52px);
}

.contact--polished p:not(.section__kicker) {
  margin: 16px 0 0;
  max-width: 760px;
  color: rgba(255, 226, 174, 0.70);
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .section--about-polished {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 82px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .contact--polished {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .contact--polished .button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .section--about-polished {
    padding-top: 62px;
  }

  .about-polished__text p:not(.section__kicker) {
    font-size: 15.5px;
    line-height: 1.65;
  }

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

  .about-polished__item {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .about-polished__item strong {
    font-size: 22px;
  }

  .about-polished__item small {
    font-size: 12.5px;
  }

  .workflow-card {
    min-height: 0;
    padding: 28px 24px 26px;
    border-radius: 22px;
  }

  .workflow-card h3 {
    font-size: 25px;
  }

  .workflow-card p {
    font-size: 14px;
  }

  .contact--polished {
    margin-top: 70px;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .contact--polished p:not(.section__kicker) {
    font-size: 14px;
  }
}


/* ABOUT RIGHT FIX CLEAN SHOWCASE */
.section--about-polished {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 0.86fr);
  gap: 64px;
  align-items: center;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
}

.section--about-polished::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 36px -7% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 185, 75, 0.26), transparent);
}

.section--about-polished::after {
  content: "";
  position: absolute;
  z-index: -2;
  right: -8%;
  top: 5%;
  width: 54%;
  height: 90%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 185, 75, 0.12), transparent 42%),
    radial-gradient(circle at 70% 20%, rgba(180, 76, 18, 0.16), transparent 38%);
  opacity: 0.82;
}

.about-polished__text {
  position: relative;
  z-index: 2;
}

.about-polished__vignette {
  justify-self: start;
  width: min(360px, 80%);
  margin: 18px 0 0;
  opacity: 0.78;
}

.about-polished__text p:not(.section__kicker) {
  margin: 22px 0 0;
  max-width: 760px;
  color: rgba(255, 226, 174, 0.74);
  font-size: 18px;
  line-height: 1.78;
}

.about-format-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.about-format-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 226, 174, 0.68);
  font-size: 15px;
  line-height: 1.55;
}

.about-format-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.08em;
  color: var(--gold);
  font-size: 13px;
  text-shadow: 0 0 12px rgba(244, 185, 75, 0.46);
}

.about-format-list span {
  color: var(--gold-2);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.about-showcase {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.88fr;
  grid-template-rows: 265px 265px;
  gap: 18px;
  min-height: 548px;
}

.about-showcase__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 203, 105, 0.25);
  background: rgba(12, 6, 3, 0.78);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 238, 180, 0.05) inset;
}

.about-showcase__item--main {
  grid-column: 1;
  grid-row: 1 / span 2;
  border-radius: 28px;
}

.about-showcase__item--top {
  grid-column: 2;
  grid-row: 1;
  border-radius: 24px;
}

.about-showcase__item--bottom {
  grid-column: 2;
  grid-row: 2;
  border-radius: 24px;
}

.about-showcase__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 3, 1, 0.02) 0%, rgba(5, 3, 1, 0.08) 42%, rgba(5, 3, 1, 0.86) 100%),
    radial-gradient(circle at 50% 8%, rgba(255, 218, 139, 0.10), transparent 34%);
}

.about-showcase__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}

.about-showcase__item--main img {
  object-position: center top;
}

.about-showcase__item--top img {
  object-position: center 35%;
}

.about-showcase__item--bottom img {
  object-position: center;
}

.about-showcase__item figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.82);
}

.about-showcase__item--main figcaption {
  font-size: 28px;
}

@media (max-width: 1080px) {
  .section--about-polished {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: 0;
  }

  .about-showcase {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .section--about-polished {
    gap: 28px;
  }

  .about-polished__text p:not(.section__kicker) {
    font-size: 15.5px;
    line-height: 1.65;
  }

  .about-format-list li {
    font-size: 13.5px;
  }

  .about-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 14px;
    min-height: 0;
  }

  .about-showcase__item--main,
  .about-showcase__item--top,
  .about-showcase__item--bottom {
    grid-column: auto;
    grid-row: auto;
    border-radius: 18px;
  }

  .about-showcase__item--main {
    aspect-ratio: 2 / 3;
  }

  .about-showcase__item--top,
  .about-showcase__item--bottom {
    aspect-ratio: 16 / 9;
  }

  .about-showcase__item figcaption,
  .about-showcase__item--main figcaption {
    left: 14px;
    right: 14px;
    bottom: 12px;
    font-size: 19px;
  }
}


/* WORKFLOW SECTION REFINED */
.section--workflow-polished {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section--workflow-polished::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 42px;
  width: 100vw;
  height: calc(100% + 80px);
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 44%, rgba(244, 185, 75, 0.12), transparent 32%),
    radial-gradient(circle at 78% 52%, rgba(173, 73, 19, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(5, 3, 1, 0) 0%, rgba(15, 6, 2, 0.56) 48%, rgba(5, 3, 1, 0) 100%);
}

.workflow-polished {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.workflow-polished::before {
  content: "";
  position: absolute;
  left: 31%;
  top: 32px;
  bottom: 32px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(244, 185, 75, 0.28), transparent);
  pointer-events: none;
}

.workflow-polished__visual {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 203, 105, 0.25);
  border-radius: 30px;
  background: rgba(11, 5, 2, 0.78);
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 238, 180, 0.05) inset;
}

.workflow-polished__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 3, 1, 0.02) 0%, rgba(5, 3, 1, 0.10) 42%, rgba(5, 3, 1, 0.88) 100%),
    radial-gradient(circle at 50% 8%, rgba(255, 218, 139, 0.11), transparent 34%);
}

.workflow-polished__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.06) contrast(1.04);
}

.workflow-polished__visual figcaption {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 26px;
  display: grid;
  gap: 8px;
}

.workflow-polished__visual strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(26px, 2vw, 38px);
  font-weight: 400;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.82);
}

.workflow-polished__visual span {
  color: rgba(255, 226, 174, 0.72);
  font-size: 15px;
  line-height: 1.45;
}

.workflow-polished__steps {
  display: grid;
  gap: 18px;
  align-content: center;
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  min-height: 158px;
  padding: 30px;
  border: 1px solid rgba(255, 203, 105, 0.20);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(244, 185, 75, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 196, 88, 0.055), rgba(255, 196, 88, 0.012)),
    rgba(9, 4, 2, 0.78);
  box-shadow:
    0 20px 64px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 238, 180, 0.04) inset;
}

.workflow-step::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 185, 75, 0.42), transparent);
}

.workflow-step__number {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  align-self: start;
  border: 1px solid rgba(244, 185, 75, 0.36);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 238, 180, 0.04) inset,
    0 0 22px rgba(244, 185, 75, 0.10);
}

.workflow-step h3 {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(28px, 2vw, 38px);
  font-weight: 400;
  line-height: 1.04;
}

.workflow-step p {
  margin: 16px 0 0;
  max-width: 680px;
  color: rgba(255, 226, 174, 0.68);
  font-size: 16px;
  line-height: 1.66;
}

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

  .workflow-polished::before {
    display: none;
  }

  .workflow-polished__visual {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .workflow-polished__visual {
    min-height: 0;
    aspect-ratio: 2 / 3;
    border-radius: 22px;
  }

  .workflow-polished__visual figcaption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .workflow-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    min-height: 0;
    padding: 24px 20px;
    border-radius: 22px;
  }

  .workflow-step__number {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .workflow-step h3 {
    font-size: 25px;
  }

  .workflow-step p {
    margin-top: 10px;
    font-size: 14px;
  }
}


/* WORKFLOW BALANCED HEIGHT + PROPER VIGNETTE */
.section--workflow-polished .section__head--ornate {
  margin-bottom: 54px;
}

/* Нормальная тонкая виньетка в блоке процесса */
.section--workflow-polished .section-vignette {
  width: min(430px, 72vw);
  height: 26px;
  margin-top: 10px;
  color: rgba(244, 185, 75, 0.78);
  opacity: 1;
  filter:
    drop-shadow(0 0 5px rgba(244, 185, 75, 0.22))
    drop-shadow(0 0 14px rgba(255, 164, 45, 0.12));
}

.section--workflow-polished .section-vignette::before,
.section--workflow-polished .section-vignette::after {
  top: 50%;
  width: calc(50% - 42px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(244, 185, 75, 0.28) 24%,
    rgba(255, 229, 157, 0.74) 66%,
    rgba(244, 185, 75, 0.40) 100%
  );
}

.section--workflow-polished .section-vignette span {
  width: 72px;
  height: 22px;
}

.section--workflow-polished .section-vignette span::before {
  width: 14px;
  height: 14px;
  border-color: rgba(255, 221, 139, 0.86);
  background: rgba(244, 185, 75, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 238, 180, 0.08) inset,
    0 0 10px rgba(244, 185, 75, 0.32);
}

.section--workflow-polished .section-vignette span::after {
  width: 60px;
  height: 14px;
 }

/* Выравнивание левого и правого блока по высоте */
.workflow-polished {
  align-items: stretch;
  min-height: 560px;
}

.workflow-polished__visual {
  height: 100%;
  min-height: 560px;
}

.workflow-polished__steps {
  height: 100%;
  min-height: 560px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 18px;
  align-content: stretch;
}

.workflow-step {
  min-height: 0;
  height: 100%;
  display: grid;
  align-items: center;
  grid-template-columns: 72px 1fr;
}

.workflow-step h3 {
  font-size: clamp(28px, 1.75vw, 35px);
}

.workflow-step p {
  max-width: 720px;
}

/* Делаем левую карточку чуть менее тяжёлой и ровной по визуальному весу */
.workflow-polished__visual {
  border-radius: 28px;
}

.workflow-polished__visual figcaption {
  bottom: 28px;
}

@media (max-width: 980px) {
  .workflow-polished {
    min-height: 0;
  }

  .workflow-polished__visual,
  .workflow-polished__steps {
    min-height: 0;
    height: auto;
  }

  .workflow-polished__visual {
    aspect-ratio: 16 / 10;
  }

  .workflow-polished__steps {
    grid-template-rows: auto;
  }

  .workflow-step {
    min-height: 150px;
  }
}

@media (max-width: 560px) {
  .section--workflow-polished .section-vignette {
    width: min(310px, 84vw);
    height: 20px;
  }

  .section--workflow-polished .section-vignette::before,
  .section--workflow-polished .section-vignette::after {
    width: calc(50% - 32px);
  }

  .section--workflow-polished .section-vignette span {
    width: 54px;
  }

  .workflow-polished__visual {
    aspect-ratio: 2 / 3;
  }

  .workflow-step {
    min-height: 0;
    height: auto;
    align-items: start;
  }
}


/* WORKFLOW TEXT FILLED */
.workflow-step {
  padding: 28px 34px;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
}

.workflow-step p {
  max-width: 820px;
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.72;
}

.workflow-step h3 {
  line-height: 1.02;
}

@media (max-width: 560px) {
  .workflow-step {
    padding: 24px 20px;
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .workflow-step p {
    font-size: 13.5px;
    line-height: 1.58;
  }
}


/* CONTACT VK REFINED */
.contact--vk {
  position: relative;
  margin-top: 108px;
  margin-bottom: 110px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 42px;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 203, 105, 0.30);
  background:
    linear-gradient(90deg, rgba(5, 3, 1, 0.94) 0%, rgba(12, 6, 3, 0.88) 48%, rgba(39, 16, 5, 0.76) 100%),
    radial-gradient(circle at 86% 42%, rgba(244, 185, 75, 0.20), transparent 36%),
    radial-gradient(circle at 8% 100%, rgba(180, 76, 18, 0.18), transparent 40%);
  box-shadow:
    0 28px 82px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 238, 180, 0.05) inset;
}

.contact--vk::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 203, 105, 0.14);
  border-radius: 24px;
  pointer-events: none;
}

.contact--vk::after {
  content: "";
  position: absolute;
  right: -5%;
  top: -18%;
  width: 42%;
  height: 150%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 198, 92, 0.16), transparent 44%),
    url("assets/portfolio-4.jpg");
  background-size: auto, cover;
  background-position: center, center;
  opacity: 0.16;
  filter: saturate(0.9) contrast(1.05);
  mix-blend-mode: screen;
}

.contact--vk .contact__ornament {
  position: absolute;
  left: 32px;
  top: 24px;
  width: 98px;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 185, 75, 0.64), transparent);
  pointer-events: none;
}

.contact__content {
  position: relative;
  z-index: 2;
}

.contact--vk h2 {
  max-width: 720px;
  font-size: clamp(36px, 3.15vw, 56px);
  line-height: 1.04;
}

.contact--vk p:not(.section__kicker) {
  margin: 18px 0 0;
  max-width: 800px;
  color: rgba(255, 226, 174, 0.74);
  font-size: 17px;
  line-height: 1.72;
}

.contact__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(244, 185, 75, 0.24);
  border-radius: 999px;
  color: rgba(255, 229, 178, 0.78);
  background: rgba(7, 3, 1, 0.34);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact__button {
  position: relative;
  z-index: 2;
  min-width: 340px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .contact--vk {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 34px;
  }

  .contact__button {
    justify-self: start;
    min-width: min(340px, 100%);
  }
}

@media (max-width: 560px) {
  .contact--vk {
    margin-top: 72px;
    margin-bottom: 72px;
    padding: 30px 22px;
    border-radius: 24px;
  }

  .contact--vk::before {
    inset: 9px;
    border-radius: 18px;
  }

  .contact--vk h2 {
    font-size: clamp(30px, 11vw, 42px);
  }

  .contact--vk p:not(.section__kicker) {
    font-size: 14px;
    line-height: 1.62;
  }

  .contact__meta {
    gap: 8px;
  }

  .contact__meta span {
    min-height: 28px;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  .contact__button {
    width: 100%;
    min-width: 0;
  }
}


/* SITE FOOTER */
.site-footer {
  position: relative;
  width: min(100% - 64px, var(--container));
  margin: 0 auto;
  padding: 0 0 46px;
  color: rgba(255, 226, 174, 0.72);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -34px;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(244, 185, 75, 0.24), transparent);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(220px, 0.7fr) minmax(260px, 0.75fr);
  gap: 48px;
  padding: 34px 0 30px;
  border-top: 1px solid rgba(255, 203, 105, 0.16);
}

.site-footer__brand {
  display: grid;
  gap: 16px;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.site-footer__logo img {
  width: 48px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(244, 185, 75, 0.20));
}

.site-footer__logo span {
  display: grid;
  gap: 2px;
}

.site-footer__logo strong {
  color: transparent;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff2bf 0%, #f2c86f 42%, #cc832b 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-footer__logo small {
  color: rgba(216, 168, 88, 0.92);
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer__brand p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 226, 174, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer__nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-footer__nav a {
  width: fit-content;
  color: rgba(255, 229, 178, 0.70);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.22s ease, text-shadow 0.22s ease, transform 0.22s ease;
}

.site-footer__nav a:hover {
  color: var(--gold-2);
  text-shadow: 0 0 14px rgba(244, 185, 75, 0.36);
  transform: translateX(3px);
}

.site-footer__contacts {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
}

.site-footer__contacts span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-footer__contacts a {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
  text-decoration: none;
  transition: color 0.22s ease, text-shadow 0.22s ease;
}

.site-footer__contacts a:hover {
  color: var(--gold-2);
  text-shadow: 0 0 16px rgba(244, 185, 75, 0.36);
}

.site-footer__contacts small {
  color: rgba(255, 226, 174, 0.58);
  font-size: 13px;
  line-height: 1.55;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 203, 105, 0.12);
  color: rgba(255, 226, 174, 0.46);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .site-footer {
    width: calc(100% - 48px);
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .site-footer {
    width: calc(100% - 28px);
    padding-bottom: 34px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
  }

  .site-footer__contacts a {
    font-size: 21px;
  }

  .site-footer__bottom {
    font-size: 11px;
  }
}


/* SOFT INTERACTIONS AND REVEAL */

/* Плавное появление при скролле */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.58s ease,
    transform 0.58s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* ART LIGHTBOX */
.taxonomy-leaf-gallery img,
.taxonomy-work-preview img {
  cursor: zoom-in;
}

html.vitta-lightbox-open {
  overflow: hidden;
}

.vitta-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(3, 2, 1, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.vitta-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vitta-lightbox__figure {
  margin: 0;
  max-width: min(92vw, 1500px);
  max-height: 88vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  justify-items: center;
}

.vitta-lightbox__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(88vh - 54px);
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(255, 220, 145, 0.16);
}

.vitta-lightbox__caption {
  max-width: 900px;
  color: rgba(255, 236, 194, 0.86);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.vitta-lightbox__close,
.vitta-lightbox__nav {
  position: fixed;
  z-index: 2;
  border: 1px solid rgba(255, 218, 137, 0.35);
  color: #ffe2a1;
  background: rgba(18, 8, 3, 0.74);
  box-shadow: 0 0 22px rgba(244, 185, 75, 0.10);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.vitta-lightbox__close:hover,
.vitta-lightbox__nav:hover {
  border-color: rgba(255, 226, 161, 0.72);
  background: rgba(49, 22, 7, 0.88);
}

.vitta-lightbox__close:focus-visible,
.vitta-lightbox__nav:focus-visible {
  outline: 2px solid #ffe2a1;
  outline-offset: 3px;
}

.vitta-lightbox__close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font: 300 34px/1 var(--font-ui);
}

.vitta-lightbox__nav {
  top: 50%;
  width: 50px;
  height: 72px;
  border-radius: 18px;
  transform: translateY(-50%);
  font: 300 42px/1 var(--font-display);
}

.vitta-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.vitta-lightbox__nav--prev { left: 18px; }
.vitta-lightbox__nav--next { right: 18px; }

.vitta-lightbox {
  overflow: hidden;
}

.vitta-lightbox__image {
  transform-origin: center center;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  cursor: zoom-in;
}

.vitta-lightbox__image.is-zoomed { cursor: grab; }
.vitta-lightbox__image.is-dragging { cursor: grabbing; }

.vitta-lightbox__toolbar {
  position: fixed;
  z-index: 3;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 218, 137, 0.28);
  border-radius: 14px;
  background: rgba(18, 8, 3, 0.80);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
}

.vitta-lightbox__toolbar button {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 218, 137, 0.24);
  border-radius: 9px;
  color: #ffe2a1;
  background: rgba(49, 22, 7, 0.72);
  font: 600 12px/1 var(--font-ui);
  cursor: pointer;
}

.vitta-lightbox__toolbar button:hover:not(:disabled) {
  border-color: rgba(255, 226, 161, 0.70);
  background: rgba(82, 38, 11, 0.88);
}

.vitta-lightbox__toolbar button:focus-visible {
  outline: 2px solid #ffe2a1;
  outline-offset: 2px;
}

.vitta-lightbox__toolbar button:disabled {
  opacity: 0.38;
  cursor: default;
}

.vitta-lightbox__zoom-status {
  min-width: 58px;
  padding: 0 6px;
  color: rgba(255, 236, 194, 0.82);
  font: 600 11px/1 var(--font-ui);
  text-align: center;
}

@media (max-width: 680px) {
  .vitta-lightbox__toolbar {
    top: 10px;
    left: 10px;
    transform: none;
    gap: 4px;
    padding: 4px;
  }
  .vitta-lightbox__toolbar button {
    min-width: 34px;
    height: 32px;
    padding: 0 7px;
    font-size: 11px;
  }
  .vitta-lightbox__zoom-status { display: none; }
}

/* 404 */
.vitta-404 {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: clamp(150px, 17vh, 220px) 24px 110px;
  text-align: center;
  overflow: hidden;
}

.vitta-404__inner {
  position: relative;
  width: min(780px, 100%);
  margin: 0 auto;
}

.vitta-404__code {
  position: absolute;
  z-index: -1;
  top: 45%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: rgba(244, 185, 75, 0.055);
  font-family: var(--font-display);
  font-size: clamp(180px, 36vw, 420px);
  font-weight: 600;
  line-height: 0.72;
  letter-spacing: -0.07em;
  user-select: none;
}

.vitta-404 .section-title-like {
  margin: 12px auto 0;
  max-width: 720px;
}

.vitta-404 .section-vignette {
  margin: 18px auto 0;
}

.vitta-404__lead {
  max-width: 650px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
}

.vitta-404__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.vitta-404__actions .button {
  min-width: 200px;
}

@media (max-width: 560px) {
  .vitta-404 { padding-inline: 16px; }
  .vitta-404__actions { flex-direction: column; }
  .vitta-404__actions .button { width: 100%; }
}

@media (max-width: 680px) {
  .vitta-lightbox { padding: 58px 12px 66px; }
  .vitta-lightbox__close { top: 10px; right: 10px; width: 42px; height: 42px; }
  .vitta-lightbox__nav {
    top: auto;
    bottom: 10px;
    width: 54px;
    height: 44px;
    transform: none;
  }
  .vitta-lightbox__nav:hover { transform: none; }
  .vitta-lightbox__nav--prev { left: calc(50% - 62px); }
  .vitta-lightbox__nav--next { right: calc(50% - 62px); }
  .vitta-lightbox__image { max-height: calc(82vh - 72px); border-radius: 10px; }
}

/* Шапка при скролле */
.site-header {
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    backdrop-filter 0.28s ease,
    padding 0.28s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(244, 185, 75, 0.54), transparent);
  box-shadow: 0 0 14px rgba(244, 185, 75, 0.28);
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.site-header.is-scrolled {
  background:
    linear-gradient(180deg, rgba(8, 4, 2, 0.82), rgba(8, 4, 2, 0.54));
  border-radius: 0 0 22px 22px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.is-scrolled::after {
  opacity: 1;
}

/* Мягкий световой блик на карточках */
.hover-shine {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.hover-shine::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -60%;
  left: -70%;
  width: 46%;
  height: 220%;
  pointer-events: none;
  opacity: 0;
  transform: rotate(24deg) translateX(-40%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 236, 178, 0.10) 34%,
    rgba(255, 236, 178, 0.34) 50%,
    rgba(255, 186, 74, 0.12) 66%,
    transparent 100%
  );
  transition:
    opacity 0.38s ease,
    transform 0.72s ease;
}

.hover-shine:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 211, 119, 0.52);
  box-shadow:
    0 22px 72px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 238, 180, 0.06) inset,
    0 0 30px rgba(244, 185, 75, 0.10);
}

.hover-shine:hover::before {
  opacity: 1;
  transform: rotate(24deg) translateX(420%);
}

/* Чтобы подписи и затемнение карточек были выше блика/фона */
.gallery__item::after,
.portfolio-preview::after,
.about-showcase__item::after,
.about-art::after,
.workflow-polished__visual::after {
  z-index: 1;
}

.gallery__item div,
.portfolio-preview span,
.about-showcase__item figcaption,
.about-art figcaption,
.workflow-polished__visual figcaption {
  z-index: 4;
}

/* Кнопки: золотой проходящий блик и мягкое свечение при наведении */
.button {
  isolation: isolate;
}

.button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -40%;
  left: -55%;
  width: 38%;
  height: 180%;
  opacity: 0;
  pointer-events: none;
  transform: rotate(22deg) translateX(-35%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 248, 222, 0.12) 30%,
    rgba(255, 248, 222, 0.55) 50%,
    rgba(255, 194, 83, 0.18) 70%,
    transparent 100%
  );
  transition:
    opacity 0.24s ease,
    transform 0.68s ease;
}

.button > * {
  position: relative;
  z-index: 2;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::before {
  opacity: 1;
  transform: rotate(22deg) translateX(430%);
}

.button--gold:hover {
  box-shadow:
    0 0 0 1px rgba(255, 239, 186, 0.90) inset,
    0 14px 34px rgba(220, 127, 28, 0.42),
    0 0 34px rgba(255, 196, 92, 0.28);
}

.button--ghost:hover {
  border-color: rgba(255, 221, 139, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 238, 180, 0.08) inset,
    0 0 28px rgba(244, 185, 75, 0.18);
}

/* Блок процесса: последовательное появление, подсветка номера и тонкий внутренний свет */
.workflow-step {
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.workflow-step:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 214, 128, 0.44);
  box-shadow:
    0 24px 74px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 238, 180, 0.06) inset,
    0 0 34px rgba(244, 185, 75, 0.12);
}

.workflow-step__number,
.workflow-card__number {
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.workflow-step:hover .workflow-step__number,
.workflow-card:hover .workflow-card__number {
  color: #fff0bd;
  border-color: rgba(255, 223, 143, 0.72);
  background: rgba(244, 185, 75, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 238, 180, 0.06) inset,
    0 0 22px rgba(244, 185, 75, 0.28);
}

/* CTA: чуть заметнее фоновый арт, ярче кнопка, подсветка тегов */
.contact--vk::after {
  opacity: 0.22;
}

.contact--vk .button--gold:hover,
.contact__button:hover {
  box-shadow:
    0 0 0 1px rgba(255, 244, 205, 0.94) inset,
    0 16px 42px rgba(229, 132, 28, 0.48),
    0 0 46px rgba(255, 196, 92, 0.34);
}

.contact__meta span {
  transition:
    color 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

.contact__meta span:hover {
  color: #fff0bd;
  border-color: rgba(255, 223, 143, 0.48);
  background: rgba(244, 185, 75, 0.08);
  box-shadow: 0 0 18px rgba(244, 185, 75, 0.12);
  transform: translateY(-2px);
}

/* Безопасность для пользователей с отключённой анимацией */
@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .hover-shine,
  .hover-shine::before,
  .button,
  .button::before,
  .workflow-step,
  .workflow-step__number,
  .workflow-card__number,
  .contact__meta span,
  .site-header {
    transition: none !important;
    animation: none !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }

  .hover-shine:hover,
  .button:hover,
  .workflow-step:hover,
  .contact__meta span:hover {
    transform: none;
  }
}




/* WORDPRESS INTEGRATION */
.admin-bar .site-header {
  top: 32px;
}

.vitta-page-main {
  min-height: 70vh;
  padding-top: calc(var(--header-height) + 70px);
}

.catalog-archive {
  min-height: 70vh;
}

.catalog-archive .section__head {
  margin-bottom: 54px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.catalog-card {
  min-height: 420px;
}

.catalog-card .gallery__item {
  height: 100%;
}

.portfolio-entry {
  width: min(100% - 64px, 1120px);
  margin: 0 auto;
  padding: calc(var(--header-height) + 78px) 0 90px;
}

.portfolio-entry__head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 44px;
}

.portfolio-entry__terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.portfolio-entry__terms a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(244, 185, 75, 0.26);
  border-radius: 999px;
  color: rgba(255, 229, 178, 0.78);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.portfolio-entry__hero {
  margin: 0 0 34px;
  border: 1px solid rgba(255, 203, 105, 0.24);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(11, 5, 2, 0.84);
  box-shadow: var(--shadow);
}

.portfolio-entry__hero img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: cover;
}

.portfolio-entry__content {
  color: rgba(255, 226, 174, 0.76);
  font-size: 17px;
  line-height: 1.75;
}

.portfolio-entry__content > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.portfolio-entry__content h2,
.portfolio-entry__content h3 {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 400;
}

.portfolio-entry__content a {
  color: var(--gold-2);
}

.portfolio-entry__content h2.wp-block-heading {
  margin: 72px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 203, 105, 0.20);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
}

.portfolio-entry__content h2.wp-block-heading:first-child {
  margin-top: 36px;
}

.portfolio-entry__content .wp-block-gallery,
.portfolio-entry__content .gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin: 0 0 22px;
}

.portfolio-entry__content .wp-block-image,
.portfolio-entry__content .gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 203, 105, 0.20);
  border-radius: 18px;
  background: rgba(13, 7, 3, 0.72);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.portfolio-entry__content .wp-block-image:hover,
.portfolio-entry__content .gallery-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 211, 125, 0.46);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.40);
}

.portfolio-entry__content .wp-block-image img,
.portfolio-entry__content .gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Уникальная подпись каждого арта поверх изображения на мягком градиентном затемнении. */
.portfolio-entry__content .wp-block-image,
.portfolio-entry__content .gallery-item {
  position: relative;
}

.portfolio-entry__content .wp-block-image figcaption,
.portfolio-entry__content .gallery-item .gallery-caption {
  position: absolute !important;
  z-index: 3;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  display: block !important;
  width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 46px 16px 15px !important;
  background: linear-gradient(180deg, rgba(5, 3, 1, 0) 0%, rgba(5, 3, 1, 0.50) 42%, rgba(5, 3, 1, 0.88) 100%) !important;
  color: #fff3ce !important;
  font-family: var(--font-ui);
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
  pointer-events: none;
}

.portfolio-entry__content .wp-block-image figcaption::before,
.portfolio-entry__content .gallery-item .gallery-caption::before,
.portfolio-entry__content .wp-block-image figcaption::after,
.portfolio-entry__content .gallery-item .gallery-caption::after {
  content: none !important;
}

.vitta-art-id {
  white-space: nowrap;
  color: var(--gold-2);
}

@media (max-width: 560px) {
  .portfolio-entry__content .wp-block-image figcaption,
  .portfolio-entry__content .gallery-item .gallery-caption {
    padding: 40px 13px 13px !important;
    font-size: 14px !important;
  }
}

.taxonomy-work-preview .vitta-art-caption {
  display: block;
  margin-top: 6px;
  color: var(--gold-2);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.portfolio-entry__content .wp-block-image[hidden],
.portfolio-entry__content .gallery-item[hidden] {
  display: none !important;
}

.portfolio-gallery-more {
  margin: 8px auto 28px;
  min-width: 210px;
  min-height: 46px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 207, 121, 0.52);
  border-radius: 999px;
  color: var(--gold-2);
  font: 600 14px/1 var(--font-ui);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(83, 41, 12, 0.72), rgba(25, 11, 3, 0.80));
  box-shadow: inset 0 0 22px rgba(244, 185, 75, 0.05), 0 12px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.portfolio-gallery-more:hover,
.portfolio-gallery-more:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 222, 151, 0.88);
  background: linear-gradient(180deg, rgba(111, 57, 17, 0.78), rgba(34, 14, 4, 0.88));
}

.portfolio-gallery-more:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.no-portfolio {
  padding: 34px;
  border: 1px solid rgba(255, 203, 105, 0.20);
  border-radius: 26px;
  background: rgba(13, 7, 3, 0.72);
  color: rgba(255, 226, 174, 0.72);
  text-align: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 1180px) {
  .portfolio-entry__content .wp-block-gallery,
  .portfolio-entry__content .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .catalog-grid,
  .portfolio-entry__content .wp-block-gallery,
  .portfolio-entry__content .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-entry {
    width: calc(100% - 48px);
  }
}

@media (max-width: 560px) {
  .catalog-grid,
  .portfolio-entry__content .wp-block-gallery,
  .portfolio-entry__content .gallery {
    grid-template-columns: 1fr;
  }

  .portfolio-entry {
    width: calc(100% - 28px);
    padding-top: calc(var(--header-height) + 48px);
  }

  .portfolio-entry__content {
    font-size: 15px;
  }
}

/* PORTFOLIO DENSE SHOWCASE */
.portfolio-entry__content h2 {
  margin: 44px 0 18px;
  font-size: clamp(28px, 2.15vw, 34px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.portfolio-entry__content h2:first-child {
  margin-top: 22px;
}

.portfolio-entry__content .wp-block-gallery,
.portfolio-entry__content .gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-items: start;
  gap: 28px;
  margin: 22px 0 48px;
}

.portfolio-entry__content .wp-block-image,
.portfolio-entry__content .gallery-item {
  width: 100% !important;
  max-width: 100%;
  flex-basis: auto !important;
  border-radius: 14px;
}

.portfolio-entry__content .wp-block-image img,
.portfolio-entry__content .gallery-item img {
  width: 100%;
  height: auto;
}

@media (max-width: 1180px) {
  .portfolio-entry__content .wp-block-gallery,
  .portfolio-entry__content .gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .portfolio-entry__content h2 {
    margin: 38px 0 12px;
    font-size: clamp(26px, 9vw, 32px);
  }

  .portfolio-entry__content .wp-block-gallery,
  .portfolio-entry__content .gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 18px 0 36px;
  }
}

/* WORDPRESS ACTIVE MENU FIX */
.main-nav__link.is-active,
.main-nav__link[aria-current="page"],
.main-nav__link.current-menu-item,
.main-nav__link.current_page_item,
.main-nav__link.current-menu-ancestor,
.main-nav__link.current-menu-parent {
  color: var(--gold-2);
  text-shadow:
    0 0 10px rgba(255, 196, 92, 0.55),
    0 0 22px rgba(255, 177, 52, 0.42),
    0 0 36px rgba(255, 143, 36, 0.22);
  background: radial-gradient(ellipse at 50% 50%, rgb(255 175 48 / 17%) 40%, rgb(255 175 48 / 16%) 36%, rgb(255 175 48 / 4%) 72%);
  background-repeat: no-repeat;
  background-position: center center;
}

.main-nav__link.is-active::after,
.main-nav__link[aria-current="page"]::after,
.main-nav__link.current-menu-item::after,
.main-nav__link.current_page_item::after,
.main-nav__link.current-menu-ancestor::after,
.main-nav__link.current-menu-parent::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 54px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 12px rgba(244, 185, 75, 0.9);
}

.main-nav__link.is-active::before,
.main-nav__link[aria-current="page"]::before,
.main-nav__link.current-menu-item::before,
.main-nav__link.current_page_item::before,
.main-nav__link.current-menu-ancestor::before,
.main-nav__link.current-menu-parent::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 5px;
  height: 5px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 14px rgba(244, 185, 75, 0.9);
}


/* VITTA COVER SUBCATEGORY OVERVIEW */
.cover-subcategories { margin: 18px 0 56px; }
.cover-subcategories__title { margin: 0 0 28px; font-size: clamp(30px, 3vw, 42px); line-height: 1.12; }
.cover-subcategory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.cover-subcategory-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid rgba(255,203,105,.22); border-radius: 18px; background: rgba(31,10,2,.28); color: inherit; text-decoration: none; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.cover-subcategory-card:hover { transform: translateY(-4px); border-color: rgba(255,211,125,.55); box-shadow: 0 18px 42px rgba(0,0,0,.28); }
.cover-subcategory-card:focus-visible { outline: 2px solid #ffd27a; outline-offset: 4px; }
.cover-subcategory-card__media { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: rgba(0,0,0,.18); }
.cover-subcategory-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-subcategory-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 18px; }
.cover-subcategory-card__body strong { font-size: 21px; line-height: 1.18; font-weight: 500; }
.cover-subcategory-card__body small { font-size: 14px; opacity: .72; }
@media (max-width: 980px) { .cover-subcategory-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; } }
@media (max-width: 560px) { .cover-subcategories { margin-bottom: 40px; } .cover-subcategory-grid { grid-template-columns: 1fr; gap: 18px; } .cover-subcategory-card__body strong { font-size: 20px; } }
/* /VITTA COVER SUBCATEGORY OVERVIEW */

/* VITTA COVER OVERVIEW CATALOG CARDS START */
.cover-subcategories{margin-top:34px}
.cover-subcategories__title{margin:0 0 34px;text-align:center;font-family:var(--font-display,serif);font-size:clamp(28px,3vw,40px);font-weight:600;color:#f4d88f}
.cover-subcategory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;align-items:stretch}
.cover-subcategory-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid rgba(197,145,38,.65);border-radius:18px;background:linear-gradient(180deg,rgba(40,16,4,.96),rgba(24,9,2,.98));color:inherit;text-decoration:none;box-shadow:0 14px 34px rgba(0,0,0,.18);transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.cover-subcategory-card:hover,.cover-subcategory-card:focus-visible{transform:translateY(-4px);border-color:#d9aa43;box-shadow:0 18px 42px rgba(0,0,0,.3),0 0 24px rgba(201,151,48,.12)}
.cover-subcategory-card:focus-visible{outline:2px solid #e6bd63;outline-offset:4px}
.cover-subcategory-card__media{display:block;position:relative;aspect-ratio:3/4;overflow:hidden;background:#160801}
.cover-subcategory-card__media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .35s ease}
.cover-subcategory-card:hover .cover-subcategory-card__media img{transform:scale(1.025)}
.cover-subcategory-card__body{display:flex;flex-direction:column;gap:8px;padding:18px 20px 20px;min-height:88px}
.cover-subcategory-card__body strong{font-family:var(--font-display,serif);font-size:clamp(20px,1.6vw,28px);line-height:1.08;font-weight:600;color:#f2d27d}
.cover-subcategory-card__body small{font-size:14px;line-height:1.35;color:rgba(239,211,150,.72)}
@media (max-width:980px){.cover-subcategory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}}
@media (max-width:620px){.cover-subcategory-grid{grid-template-columns:1fr;gap:20px}.cover-subcategories__title{margin-bottom:24px}.cover-subcategory-card__body{padding:16px 18px 18px}}
/* VITTA COVER OVERVIEW CATALOG CARDS END */


/* VITTA HOME TAXONOMY GRID 3+2 */
.home .gallery--taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
}
.home .gallery--taxonomy-grid .gallery__taxonomy-item {
    grid-column: span 2;
    width: 100%;
    height: 430px;
    min-height: 0;
    aspect-ratio: auto;
}
.home .gallery--taxonomy-grid .gallery__taxonomy-item:nth-child(4),
.home .gallery--taxonomy-grid .gallery__taxonomy-item:nth-child(5) {
    grid-column: span 3;
    height: 230px;
}
.home .gallery--taxonomy-grid .gallery__taxonomy-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 900px) {
    .home .gallery--taxonomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home .gallery--taxonomy-grid .gallery__taxonomy-item,
    .home .gallery--taxonomy-grid .gallery__taxonomy-item:nth-child(4),
    .home .gallery--taxonomy-grid .gallery__taxonomy-item:nth-child(5) {
        grid-column: auto;
        height: 300px;
    }
}
@media (max-width: 600px) {
    .home .gallery--taxonomy-grid { grid-template-columns: 1fr; }
    .home .gallery--taxonomy-grid .gallery__taxonomy-item,
    .home .gallery--taxonomy-grid .gallery__taxonomy-item:nth-child(4),
    .home .gallery--taxonomy-grid .gallery__taxonomy-item:nth-child(5) {
        height: 260px;
    }
}
/* VITTA HOME TAXONOMY STRIP 3+2 */
.home .portfolio-strip--taxonomy-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.home .portfolio-strip--taxonomy-grid .portfolio-preview {
  grid-column: span 2;
  width: 100%;
  height: 320px;
  min-height: 0;
}
.home .portfolio-strip--taxonomy-grid .portfolio-preview:nth-child(4),
.home .portfolio-strip--taxonomy-grid .portfolio-preview:nth-child(5) {
  grid-column: span 3;
  height: 180px;
}
.home .portfolio-strip--taxonomy-grid .portfolio-preview img {
  width: 100%; height: 100%; min-height: 0; object-fit: cover;
}
@media (max-width: 900px) {
  .home .portfolio-strip--taxonomy-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home .portfolio-strip--taxonomy-grid .portfolio-preview,
  .home .portfolio-strip--taxonomy-grid .portfolio-preview:nth-child(4),
  .home .portfolio-strip--taxonomy-grid .portfolio-preview:nth-child(5) { grid-column:auto; height:240px; }
}
@media (max-width: 600px) {
  .home .portfolio-strip--taxonomy-grid { grid-template-columns: 1fr; }
  .home .portfolio-strip--taxonomy-grid .portfolio-preview,
  .home .portfolio-strip--taxonomy-grid .portfolio-preview:nth-child(4),
  .home .portfolio-strip--taxonomy-grid .portfolio-preview:nth-child(5) { height:200px; }
}
/* VITTA HOME TAXONOMY STRIP 3+2 END */

/* VITTA MAIN CATALOG SECTIONS */
.home .portfolio-strip--taxonomy-grid .portfolio-preview {
  isolation: isolate;
  border-color: rgba(255, 199, 91, .34);
  background: #120803;
  box-shadow: 0 18px 52px rgba(0,0,0,.46), 0 0 0 1px rgba(255,226,161,.035) inset;
}
.home .portfolio-strip--taxonomy-grid .portfolio-preview img {
  filter: none;
  transform: scale(1.03);
  transition: transform .5s ease, filter .35s ease;
}
.home .portfolio-strip--taxonomy-grid .portfolio-preview::after {
  z-index: 1;
  inset: 8% 2%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(45, 30, 22, .58) 0%, rgba(54, 34, 22, .36) 32%, rgba(73, 43, 22, .14) 60%, transparent 86%);
  filter: blur(16px);
  pointer-events: none;
}
.home .portfolio-strip--taxonomy-grid .portfolio-preview span {
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(29px, 2.2vw, 42px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: .01em;
  -webkit-text-stroke: .55px rgba(31, 12, 3, .92);
  text-shadow:
    0 2px 2px rgba(0, 0, 0, .98),
    0 4px 10px rgba(0, 0, 0, .96),
    0 0 24px rgba(0, 0, 0, .82),
    0 0 7px rgba(255, 226, 161, .20);
  inset: auto;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 34px);
  padding: 24px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.home .portfolio-strip--taxonomy-grid .portfolio-preview span::before {
  content: none;
  display: block;
  margin-bottom: 11px;
  color: rgba(244,185,75,.82);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,.9);
}
.home .portfolio-strip--taxonomy-grid .portfolio-preview span::after {
  content: "";
  width: 42px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent, rgba(255,205,103,.9), transparent);
  box-shadow: 0 0 10px rgba(244,185,75,.42);
}
.home .portfolio-strip--taxonomy-grid .portfolio-preview:hover img {
  filter: none;
  transform: scale(1.08);
}
@media (max-width: 900px) {
  .home .portfolio-strip--taxonomy-grid .portfolio-preview span {
    padding: 20px;
    font-size: clamp(25px, 4vw, 34px);
  }
}
@media (max-width: 520px) {
  .home .portfolio-strip--taxonomy-grid .portfolio-preview span {
    padding: 16px;
    font-size: 26px;
  }
  .home .portfolio-strip--taxonomy-grid .portfolio-preview span::before {
    margin-bottom: 9px;
    font-size: 9px;
  }
}

/* VITTA POPULAR CATEGORIES */
.home #popular-categories.section--popular {
  position: relative;
  isolation: isolate;
  padding-top: 104px;
}
.home #popular-categories.section--popular::before {
  content: "";
  position: absolute;
  top: 36px;
  left: -7%;
  right: -7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,185,75,.24), transparent);
}
.home #popular-categories.section--popular::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 76px;
  width: min(1100px, 86vw);
  height: 430px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(151,72,17,.13), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}
.home #popular-categories .popular-categories__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.home #popular-categories .popular-categories__head {
  margin-bottom: 46px;
}
.home #popular-categories .popular-categories__head .section__kicker {
  margin: 0;
}
.home #popular-categories .popular-categories__head .section-vignette {
  width: min(390px, 72vw);
  margin-top: 6px;
}
.home #popular-categories .popular-categories-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, 210px);
  gap: 18px;
  width: 100%;
  margin: 0;
}
.home #popular-categories .popular-category-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,200,91,.30);
  border-radius: 20px;
  background: rgba(24,10,4,.74);
  box-shadow: 0 18px 48px rgba(0,0,0,.42), 0 0 0 1px rgba(255,225,153,.035) inset;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.home #popular-categories .popular-category-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,3,1,.02) 28%, rgba(5,3,1,.16) 58%, rgba(5,3,1,.92) 100%);
  pointer-events: none;
}
.home #popular-categories .popular-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform .5s ease;
}
.home #popular-categories .popular-category-card span {
  position: absolute;
  z-index: 4;
  left: 18px;
  right: 16px;
  bottom: 16px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(18px,1.3vw,23px);
  line-height: 1.04;
  text-shadow: 0 2px 16px rgba(0,0,0,.95);
}
.home #popular-categories .popular-category-card:hover {
  transform: none;
  border-color: rgba(255, 211, 119, 0.52);
  box-shadow:
    0 22px 72px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 238, 180, 0.06) inset,
    0 0 30px rgba(244, 185, 75, 0.10);
}
.home #popular-categories .popular-category-card:hover img {
  transform: scale(1.08);
}
@media (min-width:1181px) {
  .home #popular-categories .popular-category-card:nth-child(1) { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .home #popular-categories .popular-category-card:nth-child(2) { grid-column: 6 / span 4; grid-row: 1; }
  .home #popular-categories .popular-category-card:nth-child(3) { grid-column: 10 / span 3; grid-row: 1; }
  .home #popular-categories .popular-category-card:nth-child(4) { grid-column: 6 / span 3; grid-row: 2; }
  .home #popular-categories .popular-category-card:nth-child(5) { grid-column: 9 / span 4; grid-row: 2; }
  .home #popular-categories .popular-category-card:nth-child(6) { grid-column: 1 / span 7; grid-row: 3; }
  .home #popular-categories .popular-category-card:nth-child(7) { grid-column: 8 / span 5; grid-row: 3; }
  .home #popular-categories .popular-category-card:nth-child(1) span,
  .home #popular-categories .popular-category-card:nth-child(6) span,
  .home #popular-categories .popular-category-card:nth-child(7) span { font-size: clamp(22px,1.55vw,28px); }
}
@media (max-width:1180px) {
  .home #popular-categories.section--popular { padding-top: 88px; }
  .home #popular-categories .popular-categories-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; grid-auto-rows: 230px; gap: 16px; }
  .home #popular-categories .popular-category-card:nth-child(7) { grid-column: 1 / -1; }
}
@media (max-width:760px) {
  .home #popular-categories.section--popular { padding-top: 72px; }
  .home #popular-categories.section--popular::before { top: 28px; left: -4%; right: -4%; }
  .home #popular-categories .popular-categories__head { margin-bottom: 34px; }
  .home #popular-categories .popular-categories-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 210px; gap: 14px; }
}
@media (max-width:520px) {
  .home #popular-categories .popular-categories-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .home #popular-categories .popular-category-card,
  .home #popular-categories .popular-category-card:nth-child(7) { grid-column: auto; height: auto; aspect-ratio: 16 / 10; border-radius: 17px; }
  .home #popular-categories .popular-category-card span { left: 16px; bottom: 14px; font-size: 20px; }
}

/* VITTA ART CATALOG INDEX */
.art-catalog-index {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height) + 86px) 0 120px;
  isolation: isolate;
}

.art-catalog-index::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 90px 0 auto;
  height: 520px;
  background: radial-gradient(ellipse at 50% 20%, rgba(154, 73, 17, 0.18), transparent 68%);
  pointer-events: none;
}

.art-catalog-index__head {
  width: min(100% - 64px, 920px);
  margin: 0 auto 54px;
}

.art-catalog-index__lead {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(240, 216, 166, 0.76);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.art-catalog-index__grid {
  width: min(100% - 64px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.art-catalog-index__card {
  position: relative;
  grid-column: span 2;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 203, 105, 0.28);
  border-radius: 24px;
  background: #170a04;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.34);
}

.art-catalog-index__card:nth-child(4),
.art-catalog-index__card:nth-child(5) {
  grid-column: span 3;
  min-height: 350px;
}

.art-catalog-index__card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.76) saturate(0.92);
  transition: transform 0.55s ease, filter 0.45s ease;
}

.art-catalog-index__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 2, 1, 0.08) 0%, rgba(5, 2, 1, 0.18) 35%, rgba(5, 2, 1, 0.84) 100%);
  pointer-events: none;
}

.art-catalog-index__content {
  position: absolute;
  z-index: 2;
  inset: auto 30px 28px;
  display: grid;
  gap: 9px;
}

.art-catalog-index__content small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.art-catalog-index__content strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(29px, 2.2vw, 42px);
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.72);
}

.art-catalog-index__content em {
  max-width: 580px;
  color: rgba(255, 238, 202, 0.78);
  font-family: var(--font-ui);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.art-catalog-index__content b {
  margin-top: 5px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 600;
}

.art-catalog-index__card:hover {
  transform: none;
  border-color: rgba(255, 211, 119, 0.58);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.46), 0 0 30px rgba(244, 185, 75, 0.10);
}

.art-catalog-index__card:hover > img {
  transform: scale(1.045);
  filter: brightness(0.9) saturate(1);
}

@media (max-width: 980px) {
  .art-catalog-index {
    padding-top: calc(var(--header-height) + 64px);
  }

  .art-catalog-index__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-catalog-index__card,
  .art-catalog-index__card:nth-child(4),
  .art-catalog-index__card:nth-child(5) {
    grid-column: span 1;
    min-height: 330px;
  }

  .art-catalog-index__card:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .art-catalog-index {
    padding: calc(var(--header-height) + 46px) 0 82px;
  }

  .art-catalog-index__head,
  .art-catalog-index__grid {
    width: calc(100% - 36px);
  }

  .art-catalog-index__head {
    margin-bottom: 38px;
  }

  .art-catalog-index__lead {
    font-size: 14px;
  }

  .art-catalog-index__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .art-catalog-index__card,
  .art-catalog-index__card:nth-child(4),
  .art-catalog-index__card:nth-child(5) {
    grid-column: auto;
    min-height: 300px;
    border-radius: 18px;
  }

  .art-catalog-index__content {
    inset: auto 20px 20px;
  }

  .art-catalog-index__content strong {
    font-size: 30px;
  }
}

/* VITTA SEO STAGE 2 */
.catalog-breadcrumbs {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,.64);
}
.catalog-breadcrumbs a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .2s ease;
}
.catalog-breadcrumbs a:hover,
.catalog-breadcrumbs a:focus-visible {
  color: #f1cf83;
}
.catalog-breadcrumbs [aria-current="page"] {
  color: #f1cf83;
}
.catalog-seo-intro {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.catalog-seo-intro p:last-child {
  margin-bottom: 0;
}
.taxonomy-leaf-gallery .wp-block-image,
.taxonomy-leaf-gallery .gallery-item {
  content-visibility: auto;
  contain-intrinsic-size: 420px 620px;
}
.catalog-related {
  width: min(1180px, calc(100% - 48px));
  margin: 42px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(229,181,91,.22);
}
.catalog-related > strong {
  display: block;
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}
.catalog-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.catalog-related__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(229,181,91,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.86);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.catalog-related__links a:hover,
.catalog-related__links a:focus-visible {
  border-color: rgba(241,207,131,.7);
  background: rgba(229,181,91,.08);
  color: #fff;
}
@media (max-width: 560px) {
  .catalog-breadcrumbs,
  .catalog-related {
    width: calc(100% - 30px);
  }
  .catalog-breadcrumbs {
    margin-bottom: 12px;
    font-size: 12px;
  }
  .catalog-related {
    margin-top: 30px;
  }
  .catalog-related > strong {
    font-size: 21px;
  }
  .catalog-related__links {
    gap: 8px;
  }
  .catalog-related__links a {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
  }
}
