/* ===== ADELIYA Architectural Design — v2 dynamic ===== */
:root {
  --purple: #61456E;
  --purple-dark: #4E3759;
  --purple-deep: #3B2946;
  --purple-night: #2B1D34;
  --cream: #F7DBB3;
  --cream-soft: #FBF0DC;
  --paper: #FAF7F2;
  --ink: #322639;
  --muted: #6E6276;
  --radius-arch: 999px 999px 0 0;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ===== Прелоадер ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-night) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.preloader__mark {
  width: 86px;
  animation: preloaderPulse 1.4s var(--ease-out) infinite alternate;
}

.preloader__line {
  width: 120px; height: 1.5px;
  background: rgba(247, 219, 179, 0.25);
  position: relative;
  overflow: hidden;
}

.preloader__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: translateX(-100%);
  animation: preloaderLine 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
  from { transform: scale(1); opacity: 0.85; }
  to { transform: scale(1.08); opacity: 1; }
}

@keyframes preloaderLine {
  to { transform: translateX(100%); }
}

body.is-loaded .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===== Кастомный курсор ===== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 150;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 7px; height: 7px;
  background: var(--cream);
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(247, 219, 179, 0.65);
  mix-blend-mode: difference;
  transition: width 0.25s, height 0.25s, border-color 0.25s, opacity 0.25s;
}

.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: var(--cream);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== Зерно ===== */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 120;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(4) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ===== Типографика секций ===== */
.section { padding: clamp(76px, 10vw, 140px) 0; position: relative; }

.section__eyebrow {
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section__eyebrow::before {
  content: '';
  width: 34px; height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}

.section--purple .section__eyebrow { color: var(--cream); opacity: 0.9; }

.section__title {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: clamp(31px, 4.4vw, 50px);
  line-height: 1.12;
  margin-bottom: 28px;
  max-width: 19em;
}

.section__title em { color: var(--purple); }
.section--purple .section__title em { color: var(--cream); }

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 16px 38px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn:hover::after { left: 130%; }

.btn--cream {
  background: var(--cream);
  color: var(--purple-deep);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.btn--cream:hover { background: #fce8c4; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }

.btn--purple {
  background: var(--purple);
  color: var(--cream);
  box-shadow: 0 10px 30px rgba(97, 69, 110, 0.35);
}
.btn--purple:hover { background: var(--purple-dark); }

.btn--ghost {
  border: 1px solid rgba(247, 219, 179, 0.55);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--cream); background: rgba(247, 219, 179, 0.08); }

.btn--outline {
  border: 1px solid rgba(247, 219, 179, 0.6);
  color: var(--cream);
  padding: 10px 26px;
  font-size: 14px;
}
.btn--outline:hover { background: var(--cream); color: var(--purple-deep); }

.btn--big { padding: 20px 52px; font-size: 17px; }

/* ===== Шапка ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, transform 0.4s var(--ease-out);
}

.header.is-scrolled {
  background: rgba(43, 29, 52, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.header.is-hidden { transform: translateY(-110%); }

.header__progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cream), #d9a85f);
  transition: width 0.1s linear;
}

.header__inner { display: flex; align-items: center; gap: 28px; }

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.header__mark {
  width: 34px; height: 34px;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out);
}

.header__logo:hover .header__mark { transform: rotate(-8deg) scale(1.08); }

.header__name {
  font-family: 'Cormorant', serif;
  font-size: 21px;
  letter-spacing: 0.18em;
  color: var(--cream);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.header__name small {
  font-family: 'Manrope', sans-serif;
  font-size: 8.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav { display: flex; gap: 24px; }

.nav a {
  color: var(--cream);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  opacity: 0.8;
  transition: opacity 0.2s;
  position: relative;
  white-space: nowrap;
  padding: 4px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--cream);
  transition: right 0.3s var(--ease-out);
}

.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { right: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  width: 24px; height: 2px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Главный экран ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 55%, var(--purple-night) 100%);
  color: var(--cream);
  overflow: hidden;
  text-align: center;
  padding: 130px 0 110px;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.hero__blob--1 {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, #8a63a0 0%, transparent 70%);
  top: -16vw; left: -12vw;
  animation: blobDrift1 14s ease-in-out infinite alternate;
}

.hero__blob--2 {
  width: 38vw; height: 38vw;
  background: radial-gradient(circle, rgba(247, 219, 179, 0.35) 0%, transparent 70%);
  bottom: -14vw; right: -10vw;
  animation: blobDrift2 17s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(7vw, 5vh) scale(1.15); }
}

@keyframes blobDrift2 {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-6vw, -6vh) scale(0.95); }
}

.hero__arch {
  position: absolute;
  border: 1px solid rgba(247, 219, 179, 0.16);
  border-radius: var(--radius-arch);
  will-change: transform;
}

.hero__arch--1 {
  width: 40vw; height: 74vh;
  left: -11vw; bottom: -18vh;
  animation: archFloat 9s ease-in-out infinite alternate;
}

.hero__arch--2 {
  width: 34vw; height: 62vh;
  right: -9vw; bottom: -22vh;
  animation: archFloat 11s ease-in-out infinite alternate-reverse;
}

.hero__arch--3 {
  width: 17vw; height: 34vh;
  right: 16vw; top: 9vh;
  opacity: 0.6;
  animation: archFloat 13s ease-in-out infinite alternate;
}

@keyframes archFloat {
  from { margin-bottom: 0; }
  to { margin-bottom: 26px; }
}

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

.hero__logo {
  width: min(430px, 70vw);
  margin: 0 auto 44px;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 1s var(--ease-out) 0.15s, transform 1s var(--ease-out) 0.15s;
}

body.is-loaded .hero__logo { opacity: 1; transform: none; }

.hero__title {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: clamp(36px, 5.8vw, 66px);
  line-height: 1.1;
  max-width: 16em;
  margin: 0 auto 24px;
}

.hero__title em { color: #fff; }

/* слова заголовка появляются по очереди */
[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

[data-split] .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 90ms + 350ms);
}

[data-split].is-visible .word > span, body.is-loaded .hero__title .word > span { transform: none; }

.hero__subtitle {
  max-width: 42em;
  margin: 0 auto 42px;
  font-size: clamp(15px, 1.6vw, 17.5px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease 1.15s, transform 0.9s var(--ease-out) 1.15s;
}

body.is-loaded .hero__subtitle { opacity: 0.88; transform: none; }

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease 1.35s, transform 0.9s var(--ease-out) 1.35s;
}

body.is-loaded .hero__actions { opacity: 1; transform: none; }

/* ===== Бегущая строка ===== */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(247, 219, 179, 0.18);
  border-bottom: 1px solid rgba(247, 219, 179, 0.18);
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.12);
}

.hero__marquee {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
}

.marquee--light {
  background: var(--purple-deep);
  border-color: rgba(247, 219, 179, 0.12);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marqueeMove 26s linear infinite;
}

.marquee__track--reverse { animation-direction: reverse; }

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee span {
  font-family: 'Cormorant', serif;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}

.marquee span.is-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 219, 179, 0.65);
}

.marquee i {
  font-style: normal;
  color: var(--cream);
  opacity: 0.55;
  font-size: 14px;
}

/* ===== О дизайнере ===== */
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about__visual { position: relative; }

.about__arch {
  background: linear-gradient(170deg, var(--purple) 10%, var(--purple-night) 100%);
  border-radius: var(--radius-arch);
  aspect-ratio: 3 / 4.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 12px 0;
  box-shadow: 28px 28px 0 rgba(97, 69, 110, 0.12);
  position: relative;
  will-change: transform;
}

.about__photo {
  width: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.about__mark {
  width: 30%;
  margin: auto 0;
  opacity: 0.9;
}

.about__orbit {
  position: absolute;
  right: -56px; top: -56px;
  width: 150px; height: 150px;
}

.about__orbit svg {
  width: 100%; height: 100%;
  animation: spin 16s linear infinite;
}

.about__orbit text {
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  letter-spacing: 0.32em;
  fill: var(--purple);
}

@keyframes spin { to { transform: rotate(360deg); } }

.about__text p { margin-bottom: 18px; max-width: 54ch; }

.about__points {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.about__points li {
  padding-left: 34px;
  position: relative;
  font-weight: 400;
}

.about__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--purple);
  border-radius: 999px 999px 0 0;
  transition: background 0.3s;
}

.about__points li:hover::before { background: var(--purple); }

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat b {
  font-family: 'Cormorant', serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--purple);
  display: block;
  line-height: 1;
}

.stat span { font-size: 14px; color: var(--muted); }

/* ===== Направления ===== */
.section--purple {
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-night) 100%);
  color: var(--cream-soft);
}

.section--purple .section__title { color: var(--cream); }

.directions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 46px;
}

.direction {
  position: relative;
  border: 1px solid rgba(247, 219, 179, 0.18);
  border-radius: 22px;
  padding: 36px 30px 34px;
  background: rgba(247, 219, 179, 0.05);
  overflow: hidden;
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s;
  will-change: transform;
}

.direction:hover {
  border-color: rgba(247, 219, 179, 0.45);
  background: rgba(247, 219, 179, 0.09);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.direction__num {
  font-family: 'Cormorant', serif;
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 219, 179, 0.5);
  display: block;
  margin-bottom: 50px;
  transition: -webkit-text-stroke-color 0.35s, color 0.35s;
}

.direction:hover .direction__num { color: rgba(247, 219, 179, 0.9); -webkit-text-stroke-color: transparent; }

.direction__arch {
  position: absolute;
  top: 24px; right: 24px;
  width: 64px; height: 86px;
  border-radius: var(--radius-arch);
  transition: transform 0.45s var(--ease-out);
}

.direction:hover .direction__arch { transform: translateY(-7px) rotate(4deg); }

.direction__arch--1 { background: linear-gradient(200deg, #8a6b99, #4E3759); }
.direction__arch--2 { background: linear-gradient(160deg, var(--cream), #c79a6a); }
.direction__arch--3 { background: linear-gradient(200deg, #6d5180, #2e2038); border: 1px solid rgba(247,219,179,0.35); }

.direction h3 {
  font-family: 'Cormorant', serif;
  font-weight: 600;
  font-size: 30px;
  color: var(--cream);
  margin-bottom: 10px;
}

.direction p { font-size: 15.5px; opacity: 0.85; max-width: 30ch; }

/* ===== Услуги ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.service {
  background: #fff;
  border: 1px solid rgba(97, 69, 110, 0.14);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}

.service::before {
  content: '';
  position: absolute;
  top: 0; left: -90%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(97, 69, 110, 0.07), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
}

.service:hover::before { left: 140%; }

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(97, 69, 110, 0.18);
  border-color: rgba(97, 69, 110, 0.35);
}

.service__num {
  font-family: 'Cormorant', serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--purple);
  opacity: 0.7;
  margin-bottom: 16px;
}

.service h3 {
  font-family: 'Cormorant', serif;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.25;
  color: var(--purple-deep);
  margin-bottom: 10px;
}

.service p { font-size: 15px; color: var(--muted); }

/* ===== Этапы ===== */
.process__list {
  list-style: none;
  margin-top: 46px;
  position: relative;
  display: grid;
}

.process__line {
  position: absolute;
  left: 27px; top: 0; bottom: 0;
  width: 1.5px;
  background: rgba(247, 219, 179, 0.18);
}

.process__line i {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 0;
  background: var(--cream);
  transition: height 0.2s linear;
}

.step {
  display: flex;
  gap: 30px;
  padding: 26px 0;
  align-items: flex-start;
  position: relative;
}

.step__num {
  flex: 0 0 56px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-deep);
  border: 1px solid rgba(247, 219, 179, 0.45);
  color: var(--cream);
  font-family: 'Cormorant', serif;
  font-size: 26px;
  border-radius: var(--radius-arch);
  position: relative;
  z-index: 2;
  transition: background 0.3s, transform 0.3s;
}

.step:hover .step__num { background: var(--purple); transform: translateY(-3px); }

.step h3 {
  font-family: 'Cormorant', serif;
  font-weight: 600;
  font-size: 25px;
  margin-bottom: 4px;
  color: var(--cream);
}

.step p { max-width: 60ch; opacity: 0.82; }

/* ===== Проекты ===== */
.portfolio__note { opacity: 0.85; margin-bottom: 40px; color: var(--muted); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1100px;
}

.tile {
  position: relative;
  border-radius: var(--radius-arch);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px;
  transition: box-shadow 0.4s ease;
  will-change: transform;
}

.tile:hover { box-shadow: 0 30px 60px rgba(59, 41, 70, 0.4); }

.tile--1 { background: linear-gradient(200deg, #8a6b99 0%, #61456E 55%, #3B2946 100%); }
.tile--2 { background: linear-gradient(160deg, #F7DBB3 0%, #d9b07f 60%, #b98d5f 100%); }
.tile--3 { background: linear-gradient(200deg, #74578a 0%, #4E3759 60%, #2e2038 100%); }

.tile::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px 999px 0 0;
  opacity: 0.5;
  transition: opacity 0.3s, inset 0.3s;
}

.tile:hover::before { opacity: 1; inset: 18px; }

.tile::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 60%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(18deg);
  transition: left 0.7s ease;
}

.tile:hover::after { left: 150%; }

.tile__label {
  position: relative;
  z-index: 2;
  background: rgba(30, 18, 38, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  padding: 10px 22px;
  border-radius: 999px;
  text-align: center;
}

.tile--2 .tile__label { background: rgba(78, 55, 89, 0.75); }

.portfolio__cta { text-align: center; margin-top: 48px; }

/* ===== Большой призыв ===== */
.cta {
  padding: clamp(90px, 12vw, 160px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  left: 50%; bottom: -38vw;
  transform: translateX(-50%);
  width: 76vw; height: 76vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 219, 179, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

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

.cta__badge {
  position: relative;
  width: 130px; height: 130px;
  margin: 0 auto 36px;
}

.cta__badge img {
  position: absolute;
  inset: 32px;
  width: calc(100% - 64px);
  object-fit: contain;
}

.cta__rotor {
  width: 100%; height: 100%;
  animation: spin 14s linear infinite;
}

.cta__rotor text {
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  fill: rgba(247, 219, 179, 0.8);
}

.cta__title {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.12;
  color: var(--cream);
  max-width: 15em;
  margin: 0 auto 18px;
}

.cta__title em { color: #fff; }

.cta__sub {
  max-width: 36em;
  margin: 0 auto 40px;
  opacity: 0.85;
}

/* ===== Контакты ===== */
.contacts__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.contacts__inner > div > p { max-width: 46ch; }

.contacts__links { margin-top: 36px; display: grid; gap: 18px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid rgba(97, 69, 110, 0.14);
  border-radius: 16px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
  max-width: 420px;
}

a.contact-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(97, 69, 110, 0.16);
  border-color: rgba(97, 69, 110, 0.4);
}

.contact-link__icon {
  flex: 0 0 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: var(--cream);
  border-radius: 14px;
  transition: transform 0.3s;
}

a.contact-link:hover .contact-link__icon { transform: rotate(-6deg) scale(1.06); }

.contact-link__icon svg { width: 24px; height: 24px; }

.contact-link b { font-weight: 600; }
.contact-link span:last-child { font-size: 15px; color: var(--muted); }
.contact-link span:last-child b { color: var(--ink); }

.contacts__visual {
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-night) 100%);
  border-radius: var(--radius-arch);
  padding: clamp(40px, 5vw, 70px) clamp(28px, 4vw, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  will-change: transform;
}

.contacts__visual img { width: 100%; max-width: 360px; }

/* ===== Подвал ===== */
.footer {
  background: var(--purple-night);
  color: rgba(247, 219, 179, 0.8);
  padding: 40px 0;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer__logo { width: 180px; opacity: 0.9; }

.footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Появление при скролле ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ступенчатая задержка внутри сеток */
.services__grid .reveal:nth-child(2), .directions__grid .reveal:nth-child(2), .portfolio__grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.services__grid .reveal:nth-child(3), .directions__grid .reveal:nth-child(3), .portfolio__grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.services__grid .reveal:nth-child(4) { transition-delay: 0.06s; }
.services__grid .reveal:nth-child(5) { transition-delay: 0.18s; }
.services__grid .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== Доступность: меньше движения ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { display: none; }
}

/* ===== Адаптив ===== */
@media (max-width: 1060px) {
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(43, 29, 52, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 40;
  }

  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 19px; }
  .burger { display: flex; position: relative; z-index: 45; }
}

@media (max-width: 920px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .directions__grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { max-width: 320px; margin: 0 auto; }
  .about__orbit { right: -34px; top: -34px; width: 110px; height: 110px; }
  .contacts__inner { grid-template-columns: 1fr; }
  .contacts__visual { max-width: 420px; margin: 0 auto; width: 100%; }
}

@media (max-width: 760px) {
  .header__cta { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .step { gap: 18px; }
  .step__num { flex-basis: 46px; height: 54px; font-size: 22px; }
  .process__line { left: 22px; }
  .hero { padding-bottom: 130px; }
}
