/* ============================================================
   НАСТЕНЬКА · ВИЗАЖИСТ — дизайн-система
   Палитра: тёплый крем, пудрово-розовый, карамельный, глубокий шоколад
   ============================================================ */

/* ---------- Токены (переменные) ---------- */
:root {
  /* цвета */
  --cream:        #fdf9f5;
  --cream-deep:   #f7ede6;
  --blush:        #f6e3e1;
  --blush-soft:   #fbf1ef;
  --rose:         #d98e86;
  --rose-deep:    #c06f66;
  --caramel:      #b98a63;
  --ink:          #38281f;
  --ink-soft:     #6f5a4e;
  --white:        #ffffff;

  /* градиенты и тени */
  --gradient-hero:   linear-gradient(135deg, var(--cream) 0%, var(--blush) 100%);
  --gradient-btn:    linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  --shadow-card:     0 18px 45px -18px rgba(192, 111, 102, 0.35);
  --shadow-soft:     0 8px 30px -12px rgba(56, 40, 31, 0.15);

  /* шрифты */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Manrope', sans-serif;

  /* радиусы и переходы */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Сброс и база ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* на десктопе прячем системный курсор — вместо него волшебная мышка */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, select, textarea, label { cursor: none; }
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ---------- Волшебный курсор ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px; height: 8px;
  background: var(--rose-deep);
}

.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--rose);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

/* курсор «расцветает» над кликабельными элементами */
.cursor-ring.is-hover {
  width: 58px; height: 58px;
  background: rgba(217, 142, 134, 0.15);
  border-color: var(--rose-deep);
}

/* искорка, летящая за мышкой */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 14px;
  animation: sparkle-fade 0.9s ease-out forwards;
}

@keyframes sparkle-fade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(0.2) rotate(40deg); }
}

/* на телефонах волшебный курсор не нужен */
@media (hover: none) {
  .cursor-dot, .cursor-ring, .sparkle { display: none; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.btn--primary {
  background: var(--gradient-btn);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -18px rgba(192, 111, 102, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(56, 40, 31, 0.25);
}

.btn--ghost:hover {
  border-color: var(--rose-deep);
  color: var(--rose-deep);
  transform: translateY(-3px);
}

.btn--wide { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(253, 249, 245, 0.85);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease;
}

.header.is-scrolled { box-shadow: var(--shadow-soft); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo__dot { color: var(--rose); margin-left: 4px; font-size: 18px; }

.nav { display: flex; gap: 32px; }

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.header__cta { padding: 12px 26px; }

/* бургер и мобильное меню */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}

.burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

.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); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 12px 4% 28px;
  background: var(--cream);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu__link { font-size: 17px; font-weight: 500; }

/* ---------- Главный экран ---------- */
.hero {
  padding: 150px 0 90px;
  background: var(--gradient-hero);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__tag {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.hero__title {
  margin: 24px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 600;
  line-height: 1.08;
}

.hero__title em {
  font-style: italic;
  color: var(--rose-deep);
}

.hero__text {
  max-width: 480px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__stats {
  display: flex;
  gap: 44px;
  margin-top: 48px;
}

.stat { display: flex; flex-direction: column; }

.stat__num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--rose-deep);
  line-height: 1;
}

.stat__label { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

.hero__media { position: relative; }

.hero__blob {
  position: absolute;
  inset: -8% -6% -4% -10%;
  background: radial-gradient(closest-side, var(--blush) 60%, transparent 100%);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  z-index: 0;
}

.hero__img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hero__card {
  position: absolute;
  z-index: 2;
  left: -28px; bottom: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  animation: float 4s ease-in-out infinite;
}

.hero__card-icon { font-size: 26px; }
.hero__card strong { display: block; font-size: 14px; }
.hero__card span { font-size: 12px; color: var(--ink-soft); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- Бегущая строка ---------- */
.marquee {
  overflow: hidden;
  padding: 16px 0;
  background: var(--ink);
  color: var(--blush);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-right: 12px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Общие секции ---------- */
.section { padding: 96px 0; }

.section__tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section__tag--light { color: var(--blush); }

.section__title {
  max-width: 640px;
  margin-bottom: 52px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.12;
}

/* ---------- Услуги ---------- */
.services { background: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--blush-soft);
  border-color: var(--blush);
  box-shadow: var(--shadow-card);
}

.service-card--featured {
  background: var(--gradient-btn);
  color: var(--white);
}

.service-card--featured:hover { background: var(--gradient-btn); border-color: transparent; }
.service-card--featured p { color: rgba(255, 255, 255, 0.85); }
.service-card--featured .service-card__link { color: var(--white); }

.service-card__badge {
  position: absolute;
  top: 18px; right: 18px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.service-card__icon { font-size: 32px; margin-bottom: 18px; }

.service-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
}

.service-card p {
  flex: 1;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(56, 40, 31, 0.15);
}

.service-card--featured .service-card__footer { border-color: rgba(255, 255, 255, 0.3); }

.service-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.service-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--rose-deep);
  transition: transform 0.25s ease;
}

.service-card__link:hover { transform: translateX(4px); }

/* ---------- Портфолио ---------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.work {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.work img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.work:hover img { transform: scale(1.06); }

.work figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 24px 22px;
  background: linear-gradient(to top, rgba(40, 24, 16, 0.78), transparent);
  color: var(--white);
  transform: translateY(8px);
  opacity: 0.92;
  transition: var(--transition);
}

.work:hover figcaption { transform: translateY(0); opacity: 1; }

.work figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
}

.work figcaption span { font-size: 13px; opacity: 0.85; }

.portfolio__more {
  margin-top: 40px;
  text-align: center;
  color: var(--ink-soft);
}

.portfolio__more a { color: var(--rose-deep); font-weight: 600; }
.portfolio__more a:hover { text-decoration: underline; }

/* ---------- Обо мне ---------- */
.about { background: var(--white); }

.about__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text { margin-bottom: 18px; color: var(--ink-soft); font-size: 16px; }

.about__list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
  list-style: none;
}

.about__list li {
  position: relative;
  padding-left: 36px;
  font-size: 15px;
}

.about__list li::before {
  content: '✦';
  position: absolute;
  left: 0; top: 0;
  color: var(--rose);
  font-size: 18px;
}

.about__card { position: relative; }

.about__img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about__quote {
  margin-top: -34px;
  margin-left: 24px;
  position: relative;
  padding: 22px 26px;
  background: var(--blush-soft);
  border-left: 4px solid var(--rose);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
  box-shadow: var(--shadow-soft);
}

/* ---------- Отзывы ---------- */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--blush-soft);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.review:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.review__stars {
  margin-bottom: 14px;
  color: var(--caramel);
  font-size: 18px;
  letter-spacing: 3px;
}

.review p {
  flex: 1;
  font-size: 15px;
  color: var(--ink-soft);
}

.review footer { margin-top: 20px; }
.review footer strong { display: block; font-size: 15px; }
.review footer span { font-size: 13px; color: var(--rose-deep); }

/* ---------- Запись ---------- */
.booking { background: var(--gradient-hero); }

.booking__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.booking__text { margin-bottom: 26px; color: var(--ink-soft); }

.booking__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.contact-chip {
  padding: 12px 20px;
  background: var(--white);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.contact-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.booking__address { font-size: 14px; color: var(--ink-soft); }

.booking__form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; }

.field input,
.field select,
.field textarea {
  padding: 13px 16px;
  border: 1.5px solid rgba(56, 40, 31, 0.14);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(217, 142, 134, 0.18);
}

.field.is-invalid input,
.field.is-invalid select { border-color: #d64545; }

.field__error {
  display: none;
  font-size: 12px;
  color: #d64545;
}

.field.is-invalid .field__error { display: block; }

.booking__note {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.form-success {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 30px;
}

.form-success span { font-size: 44px; }
.form-success strong { font-family: var(--font-display); font-size: 28px; }
.form-success p { color: var(--ink-soft); }

.booking__form.is-sent .form-success { display: flex; animation: fade-in 0.5s ease; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Подвал ---------- */
.footer {
  padding: 48px 0;
  background: var(--ink);
  color: var(--blush);
  text-align: center;
}

.logo--light { color: var(--white); }

.footer p { margin-top: 12px; font-size: 14px; opacity: 0.8; }
.footer__copy { font-size: 12.5px; opacity: 0.55; }

/* ---------- Анимация появления при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: 36px; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }

  .hero { padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 420px; margin-inline: auto; }
  .hero__card { left: 10px; }

  .about__inner,
  .booking__inner { grid-template-columns: 1fr; gap: 44px; }

  .portfolio__grid,
  .reviews__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .booking__form { grid-template-columns: 1fr; padding: 26px; }
  .hero__stats { gap: 26px; flex-wrap: wrap; }
}
