/* ─────────────────────────────────────────────
   Нина Юшманова — стили сайта
   Палитра по референсам (море + песок + шалфей):
   cream #f5f0e8 · sand #d8c19c · sea #34576b · teal #4a7e8f
   mist #8ba3ad · sage #8c9a72 · ink #2b3a40
   ───────────────────────────────────────────── */

:root {
  --cream: #f5f0e8;
  --cream-dark: #ece3d4;
  --sand: #d8c19c;
  --sand-soft: #e7d7ba;
  --sea: #34576b;
  --teal: #4a7e8f;
  --mist: #8ba3ad;
  --sage: #8c9a72;
  --ink: #2b3a40;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); font-weight: 500;
}
.muted { color: rgba(43, 58, 64, 0.6); }

/* ─── Кнопки ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 13px 28px; font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; cursor: pointer; transition: all 0.3s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--sea); color: var(--cream); }
.btn-primary:hover { background: var(--teal); }
.btn-outline { border-color: rgba(43, 58, 64, 0.25); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--sea); color: var(--cream); border-color: var(--sea); }
.w-full { width: 100%; }

.link-arrow { color: var(--teal); font-size: 14px; letter-spacing: 0.02em; display: inline-flex; }
.link-arrow:hover { text-decoration: underline; }

/* ─── Бренд ─── */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--serif); font-size: 24px; letter-spacing: 0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, var(--teal), var(--sea) 55%, var(--sand));
  box-shadow: inset 0 0 0 3px var(--cream);
}
.brand-mark-light { box-shadow: inset 0 0 0 3px var(--ink); }

/* ─── Шапка ─── */
#site-header { min-height: 78px; display: block; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 232, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 58, 64, 0.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; color: rgba(43, 58, 64, 0.8); letter-spacing: 0.02em; transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--teal); }
.header-cta { padding: 10px 22px; }
.burger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: 0.3s; }

/* ─── Hero ─── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(74,126,143,0.22), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(216,193,156,0.35), transparent 60%),
    linear-gradient(160deg, var(--cream), var(--cream-dark));
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(43,58,64,0.12), transparent);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr 0.82fr; gap: 48px;
  align-items: center; padding: 56px 0 64px;
}
.hero-content { max-width: 600px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.05; margin: 16px 0 20px; }
.hero-lead { font-size: 18px; max-width: 540px; color: rgba(43,58,64,0.78); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-tags span {
  font-size: 13px; letter-spacing: 0.02em; color: var(--sea);
  border: 1px solid rgba(52,87,107,0.25); border-radius: 999px; padding: 7px 16px;
  background: rgba(255,255,255,0.35);
}
.hero-illu { position: relative; }
.hero-illu img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  /* мягкое растворение краёв — иллюстрация перетекает в фон сайта */
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 48%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 82% at 50% 46%, #000 48%, transparent 76%);
}
.illu-placeholder {
  aspect-ratio: 1/1; border-radius: 24px;
  border: 1.5px dashed rgba(52,87,107,0.4);
  background: linear-gradient(150deg, rgba(74,126,143,0.12), rgba(216,193,156,0.18));
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.illu-placeholder span {
  font-size: 14px; letter-spacing: 0.04em; color: rgba(43,58,64,0.45);
  text-transform: uppercase;
}

/* ─── Секции ─── */
.section { padding: 44px 0; }
.section-sm { padding: 22px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 48px); margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 36px; }

/* ─── О специалисте ─── */
.split { display: grid; grid-template-columns: 0.85fr 1fr; gap: 56px; align-items: center; }
.split-img { position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: var(--cream-dark); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(43,58,64,0.08);
}
.split h2 { font-size: clamp(34px, 5vw, 54px); margin-top: 12px; }
.split p { margin-top: 16px; color: rgba(43,58,64,0.82); }

/* ─── О специалисте: компактный круглый аватар ─── */
.about-section .split { grid-template-columns: 280px 1fr; gap: 52px; align-items: center; }
.about-section .split-img {
  aspect-ratio: 1/1; max-width: 280px; border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(255,255,255,0.55), 0 0 0 8px rgba(74,126,143,0.25), 0 18px 40px rgba(43,58,64,0.12);
}
.about-section .split-img::after { border-radius: 50%; box-shadow: none; }

/* ─── Направления ─── */
.directions { background: var(--cream-dark); border-top: 1px solid rgba(43,58,64,0.1); border-bottom: 1px solid rgba(43,58,64,0.1); }
.directions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.direction h4 { font-size: 15px; letter-spacing: 0.02em; color: var(--sea); }
.direction p { font-size: 13px; color: rgba(43,58,64,0.6); margin-top: 6px; }

/* ─── С чем приходят ─── */
.with-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.with-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 26px;
  border: 1px solid rgba(43,58,64,0.1); border-radius: 16px;
  background: rgba(255,255,255,0.4); transition: all 0.3s ease;
}
.with-item:hover { border-color: rgba(74,126,143,0.45); box-shadow: 0 16px 36px rgba(43,58,64,0.07); transform: translateY(-3px); }
.with-num { font-family: var(--serif); font-size: 30px; color: var(--sand); line-height: 1; flex-shrink: 0; }
.with-item h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.with-item p { font-size: 15px; color: rgba(43,58,64,0.72); margin-top: 8px; line-height: 1.55; }
.with-item p .muted { display: block; margin-top: 6px; font-size: 13px; }

/* ─── Карточки услуг ─── */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: stretch; }
.card {
  display: flex; flex-direction: column; border: 1px solid rgba(43,58,64,0.1);
  border-radius: 18px; overflow: hidden; background: rgba(255,255,255,0.45); transition: all 0.3s ease; position: relative;
}
.card:hover { transform: translateY(-4px); border-color: rgba(74,126,143,0.45); box-shadow: 0 20px 44px rgba(43,58,64,0.09); }
.card-body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 27px; margin: 10px 0 14px; transition: color 0.2s; }
.card:hover .card-body h3 { color: var(--teal); }
.card-body .excerpt { font-size: 15px; color: rgba(43,58,64,0.72); flex: 1; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.card-foot .price { font-family: var(--serif); font-size: 26px; color: var(--sea); }
.price-sub { font-family: var(--sans); font-size: 13px; color: rgba(43,58,64,0.6); }
.service-card.featured { border-color: rgba(74,126,143,0.5); background: linear-gradient(170deg, rgba(74,126,143,0.1), rgba(255,255,255,0.5)); }
.badge { position: absolute; top: 18px; right: 18px; background: var(--sea); color: var(--cream); padding: 5px 14px; border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.service-card.featured .eyebrow { padding-right: 108px; }

/* ─── Консультация-разбор: детально ─── */
.consult-detail {
  margin-top: 32px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
  background: var(--sea); color: rgba(245,240,232,0.86); border-radius: 22px; padding: 48px;
}
.consult-detail .eyebrow { color: var(--sand); }
.consult-text h3 { color: var(--cream); font-size: 34px; margin-top: 12px; }
.consult-text p { margin-top: 16px; color: rgba(245,240,232,0.82); }
.consult-list { list-style: none; align-self: center; }
.consult-list li {
  font-size: 16px; color: var(--cream); padding: 16px 0 16px 30px; position: relative;
  border-bottom: 1px solid rgba(245,240,232,0.15);
}
.consult-list li:last-child { border-bottom: none; }
.consult-list li::before { content: "✦"; position: absolute; left: 0; color: var(--sand); }

/* ─── Список услуг (расстановки) ─── */
.service-list { list-style: none; border-top: 1px solid rgba(43,58,64,0.12); }
.service-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid rgba(43,58,64,0.12);
}
.s-title { font-family: var(--serif); font-size: 22px; display: block; }
.s-short { font-size: 14px; color: rgba(43,58,64,0.55); margin-top: 2px; display: block; }
.s-right { flex-shrink: 0; }
.s-price { font-size: 16px; font-weight: 500; color: var(--sage); white-space: nowrap; }

/* ─── Сопровождение ─── */
.support { background: var(--cream-dark); border-top: 1px solid rgba(43,58,64,0.1); border-bottom: 1px solid rgba(43,58,64,0.1); }
.support-inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
.support-head h2 { font-size: clamp(34px, 5vw, 54px); margin-top: 12px; }
.support-lead { font-size: 18px; color: rgba(43,58,64,0.75); max-width: 560px; margin-top: 16px; }
.support-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.support-includes h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); }
.support-includes ul { list-style: none; margin-top: 18px; }
.support-includes li {
  font-size: 18px; padding: 16px 0 16px 30px; position: relative;
  border-bottom: 1px solid rgba(43,58,64,0.12); color: rgba(43,58,64,0.88);
}
.support-includes li::before { content: "✦"; position: absolute; left: 0; color: var(--sand); }
.support-prices {
  border: 1px solid rgba(43,58,64,0.12); border-radius: 18px; background: rgba(255,255,255,0.5); padding: 30px;
}
.sp-row { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(43,58,64,0.1); }
.sp-row:first-child { padding-top: 0; }
.sp-term { font-size: 16px; color: rgba(43,58,64,0.8); }
.sp-price { font-family: var(--serif); font-size: 28px; color: var(--sea); }

/* ─── Разделитель / слоган ─── */
.divider { display: flex; align-items: center; gap: 16px; color: var(--teal); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(74,126,143,0.5), transparent); }
.slogan { text-align: center; font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); color: rgba(43,58,64,0.82); margin-top: 18px; }

/* ─── Отзывы (карусель) ─── */
.rev-nav { display: flex; gap: 10px; }
.rev-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(43,58,64,0.2);
  background: rgba(255,255,255,0.5); color: var(--sea); font-size: 22px; line-height: 1;
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.rev-arrow:hover { background: var(--sea); color: var(--cream); border-color: var(--sea); }
.rev-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px;
  scrollbar-width: none;
}
.rev-track::-webkit-scrollbar { display: none; }
.rev-thumb {
  flex: 0 0 auto; width: 210px; height: 280px; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(43,58,64,0.1); background: var(--cream-dark); cursor: pointer;
  scroll-snap-align: start; transition: all 0.3s ease; position: relative;
}
.rev-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.rev-thumb:hover { border-color: rgba(74,126,143,0.5); box-shadow: 0 16px 36px rgba(43,58,64,0.1); transform: translateY(-3px); }
.rev-thumb:hover img { transform: scale(1.04); }
.rev-thumb::after {
  content: "↗"; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(52,87,107,0.85); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: 15px; opacity: 0; transition: opacity 0.2s;
}
.rev-thumb:hover::after { opacity: 1; }

/* Попап отзыва */
.rev-lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(43,58,64,0.88); backdrop-filter: blur(4px);
}
.rev-lightbox.open { display: flex; }
.rev-lb-img { max-width: min(92vw, 760px); max-height: 88vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.rev-lb-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--cream); border: none; font-size: 26px; cursor: pointer; line-height: 1;
  transition: background 0.2s;
}
.rev-lb-close:hover { background: rgba(255,255,255,0.25); }
.rev-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--cream); border: none; font-size: 30px; cursor: pointer; line-height: 1;
  transition: background 0.2s;
}
.rev-lb-nav:hover { background: rgba(255,255,255,0.28); }
.rev-lb-prev { left: 20px; }
.rev-lb-next { right: 20px; }

/* ─── Контакты ─── */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacts-text p { font-size: 17px; color: rgba(43,58,64,0.8); }
.contact-link { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; margin-top: 18px; }
.contact-link svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; }
.contact-link:hover { color: var(--teal); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social-pill {
  font-size: 14px; letter-spacing: 0.02em; color: var(--sea);
  border: 1px solid rgba(52,87,107,0.28); border-radius: 999px; padding: 8px 18px;
  background: rgba(255,255,255,0.4); transition: all 0.2s;
}
.social-pill:hover { background: var(--sea); color: var(--cream); border-color: var(--sea); }

/* ─── Форма ─── */
.form-card { border: 1px solid rgba(43,58,64,0.12); border-radius: 18px; background: rgba(255,255,255,0.55); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: rgba(43,58,64,0.7); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid rgba(43,58,64,0.18); background: var(--cream);
  border-radius: 12px; padding: 12px 16px; font-family: var(--sans); font-size: 15px; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field textarea { resize: vertical; }
.form-note { text-align: center; font-size: 12px; color: rgba(43,58,64,0.5); margin-top: 12px; }
.form-success { text-align: center; padding: 24px 0; }
.form-success h3 { font-size: 28px; color: var(--sea); }
.form-success p { margin-top: 10px; color: rgba(43,58,64,0.7); }

/* ─── Подвал ─── */
.site-footer { background: var(--ink); color: rgba(245,240,232,0.78); }
.site-footer .container { padding-top: 48px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer .brand-name { color: var(--cream); }
.footer-about { max-width: 320px; color: rgba(245,240,232,0.6); font-size: 14px; margin-top: 16px; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--sand); }
.site-footer ul { list-style: none; margin-top: 20px; }
.site-footer li { margin-bottom: 12px; font-size: 14px; }
.site-footer a:hover { color: var(--cream); }
.footer-tg {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  border: 1px solid rgba(216,193,156,0.5); border-radius: 999px; padding: 10px 20px;
  font-size: 14px; color: var(--cream); transition: all 0.2s;
}
.footer-tg:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.footer-tg svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 30px;
}
.footer-slogan { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(245,240,232,0.4); }
.dev-credit { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(245,240,232,0.5); transition: color 0.2s; }
.dev-credit img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.dev-credit b { font-weight: 600; color: rgba(245,240,232,0.75); }
.dev-credit:hover { color: var(--cream); }
.dev-credit:hover b { color: var(--cream); }
@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ─── 404 ─── */
.nf { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.nf h1 { font-size: 96px; color: var(--teal); }

/* ─── Адаптив ─── */
@media (max-width: 980px) {
  .directions-grid { grid-template-columns: repeat(3, 1fr); }
  .with-grid { grid-template-columns: repeat(2, 1fr); }
  .consult-detail { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column;
    background: var(--cream); border-bottom: 1px solid rgba(43,58,64,0.1); padding: 16px 24px; gap: 4px;
  }
  .nav.open a { padding: 12px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 44px; }
  .hero-illu { order: -1; }
  .illu-placeholder { aspect-ratio: 16/10; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-img { aspect-ratio: 4/4; max-width: 420px; }
  .about-section .split { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .about-section .split-img { max-width: 200px; }
  .about-section .split p { color: rgba(43,58,64,0.82); }
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
  .with-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .rev-thumb { width: 158px; height: 214px; }
  .rev-lb-nav { width: 44px; height: 44px; font-size: 26px; }
  .rev-lb-prev { left: 8px; }
  .rev-lb-next { right: 8px; }
  .support-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
