﻿/* ==========================================================================
   Кристина Насибуллина — косметология лица и тела
   Стили сайта
   ========================================================================== */

:root {
  --bg: #fbf6f2;
  --bg-alt: #f5ece7;
  --surface: #ffffff;
  --ink: #2b2027;
  --ink-soft: #4a3c43;
  --muted: #857077;
  --plum: #5b2c4e;
  --plum-dark: #3e1d35;
  --plum-soft: #8e4e75;
  --rose: #f3dde7;
  --rose-deep: #e2bfcf;
  --gold: #c08552;
  --line: #ead9d3;
  --shadow-sm: 0 2px 8px rgba(66, 32, 56, 0.06);
  --shadow-md: 0 18px 40px -24px rgba(66, 32, 56, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(66, 32, 56, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--plum-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--plum-dark);
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plum);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--plum);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(91, 44, 78, 0.9);
}
.btn--primary:hover { background: var(--plum-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--rose-deep);
}
.btn--ghost:hover { background: var(--rose); transform: translateY(-2px); }
.btn--small { padding: 10px 18px; font-size: 14px; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(251, 246, 242, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header.is-scrolled {
  padding: 8px 0;
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(66, 32, 56, 0.5);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--plum-dark);
}
.brand:hover { color: var(--plum-dark); }
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--plum);
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.03em;
  flex: none;
}
.brand__name {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.15;
}
.brand__role {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav { margin-left: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--plum);
  transition: width 0.25s ease;
}
.site-nav a:hover::after { width: 100%; }
.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--plum-dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -20% -10% 40% 45%;
  background: radial-gradient(circle at 70% 30%, rgba(226, 191, 207, 0.55), transparent 62%);
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum-soft);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--rose-deep);
}
.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--plum-soft);
}
.hero__lead {
  font-size: 18.5px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.hero__facts {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.fact__value {
  font-family: var(--serif);
  font-size: 27px;
  color: var(--plum-dark);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.fact__label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero__media {
  position: relative;
}
.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 58% 32%;
  border-radius: 220px 220px var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 44px;
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  max-width: 230px;
}
.hero__badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--plum-dark);
  margin-bottom: 4px;
}
.hero__badge span { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- бегущая строка направлений ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 16px 0;
  overflow: hidden;
}
.strip__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 34px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum-soft);
}
.strip__inner span { display: inline-flex; align-items: center; gap: 12px; }
.strip__inner span::after {
  content: "·";
  color: var(--rose-deep);
}
.strip__inner span:last-child::after { content: none; }

/* ---------- секции ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__head {
  max-width: 720px;
  margin-bottom: 52px;
}
.section__head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.section__head p { color: var(--ink-soft); font-size: 17.5px; }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------- о мастере ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about__media::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--rose-deep);
  border-radius: var(--radius);
  z-index: -1;
}
.about p { color: var(--ink-soft); }
.about__list { margin-top: 28px; display: grid; gap: 18px; }
.about__list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.about__list b { color: var(--plum-dark); font-weight: 600; }
.num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rose-deep);
  color: var(--plum-soft);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-family: var(--serif);
}

/* ---------- фильтр и услуги ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}
.chip {
  border: 1px solid var(--rose-deep);
  background: transparent;
  color: var(--plum);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.chip:hover { background: var(--rose); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}
.chip__count {
  font-size: 12px;
  opacity: 0.65;
  margin-left: 6px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card[hidden] { display: none; }
.card__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--plum-dark);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.card__photo-note {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(43, 32, 39, 0.45);
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__title {
  font-size: 22px;
  margin-bottom: 10px;
}
.card__text {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}
.card__zones {
  margin: 0 0 18px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}
.card__zones li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.card__zones b { font-weight: 600; white-space: nowrap; }
.card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.price {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--plum-dark);
  line-height: 1.1;
}
.price small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.duration {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.duration::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.55;
}
.card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--plum);
  border-bottom: 1px solid var(--rose-deep);
  padding-bottom: 2px;
}
.card__link:hover { border-color: var(--plum); }

.services__note {
  margin-top: 34px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- процесс ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 15px;
  color: var(--plum-soft);
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- запись ---------- */
.booking {
  background: var(--plum);
  color: #fff;
  border-radius: 32px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  position: relative;
  overflow: hidden;
}
.booking::after {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(226, 191, 207, 0.35), transparent 65%);
}
.booking h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.booking p { color: rgba(255, 255, 255, 0.78); }
.booking .btn--light {
  background: #fff;
  color: var(--plum-dark);
}
.booking .btn--light:hover { background: var(--rose); color: var(--plum-dark); }
.booking__contacts { position: relative; z-index: 1; display: grid; gap: 14px; align-content: start; }
.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 15px;
}
.contact-row span { color: rgba(255, 255, 255, 0.6); }
.contact-row b, .contact-row a { color: #fff; font-weight: 500; }
.contact-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: text-decoration-color 0.2s ease;
}
.contact-row a:hover { text-decoration-color: #fff; color: #fff; }

/* ---------- подвал ---------- */
.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 96px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--plum); }

/* ---------- появление при скролле (только сдвиг, без скрытия контента) ---------- */
.reveal {
  transition: transform 0.65s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.js .reveal {
  transform: translateY(14px);
}
.js .reveal.is-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .js .reveal { transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .hero::before { display: none; }
  .hero__grid,
  .about__grid,
  .booking { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero__media { order: -1; }
  .hero__media img {
    aspect-ratio: auto;
    height: clamp(300px, 58vw, 460px);
    border-radius: var(--radius);
    object-position: 55% 30%;
  }
  .hero__badge { left: 16px; bottom: 16px; }
  .booking { padding: 40px 28px; }
  .about__grid { gap: 44px; }
  .about__media::after { display: none; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 20px 22px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-cta { display: none; }
  .hero__facts { gap: 22px; }
  .hero__badge { position: static; margin-top: 16px; max-width: none; }
  .strip__inner { justify-content: flex-start; font-size: 11.5px; gap: 8px 18px; }
  .services__grid { grid-template-columns: 1fr; }
  .site-footer { margin-top: 64px; }
}

/* ---------- ссылка в кабинет ---------- */
.cabinet-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.cabinet-link svg { opacity: 0.75; }
.cabinet-link:hover {
  color: var(--plum);
  border-color: var(--rose-deep);
  background: var(--rose);
}
.nav-cabinet { display: none; }
@media (max-width: 780px) {
  .nav-cabinet { display: block; color: var(--muted) !important; font-size: 14px; }
}

@media (max-width: 780px) {
  .cabinet-link { display: none; }
}
