/* ============ Студия косметологии Ольги Бобровой — v2 ============ */
:root {
  --bg: #faf7f5;
  --bg-soft: #f3ebe7;
  --card: #ffffff;
  --ink: #2b2826;
  --ink-soft: #6b625c;
  --accent: #9d4458;
  --accent-dark: #7e3346;
  --accent-soft: #f6e8ec;
  --sage: #8a948a;
  --line: #e9dfd9;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(43, 40, 38, .07);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section-sub { color: var(--ink-soft); max-width: 640px; margin-bottom: 36px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--small { padding: 9px 20px; font-size: 14px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 245, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.logo { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.logo small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.header-phone { font-weight: 700; color: var(--ink); white-space: nowrap; }
.header .btn { white-space: nowrap; }
.burger { display: none; background: none; border: none; width: 42px; height: 42px; margin-left: auto; cursor: pointer; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative; margin: 0 auto; transition: .2s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none;
}
.hero::before { width: 480px; height: 480px; background: #f0d4dc; top: -160px; right: -120px; }
.hero::after { width: 360px; height: 360px; background: #e4e9e2; bottom: -140px; left: -100px; }
.hero-in { position: relative; max-width: 720px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 18px; color: var(--ink-soft); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-facts { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-soft); }
.hero-facts b { display: block; color: var(--ink); font-size: 16px; }

/* ---------- Карточки услуг ---------- */
.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid rgba(233, 223, 217, .6);
  display: flex; flex-direction: column;
}
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.card-price { font-weight: 700; color: var(--accent); margin: 14px 0 4px; font-size: 17px; }

/* ---------- Популярные процедуры ---------- */
.proc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.proc {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
}
.proc b { font-weight: 600; font-size: 15px; }
.proc small { display: block; color: var(--ink-soft); font-size: 13px; }
.proc-price { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---------- О специалисте ---------- */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text p { margin-bottom: 14px; color: var(--ink-soft); }
.about-text p strong { color: var(--ink); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 600;
}

/* ---------- Сертификаты галерея ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.certs a { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.certs img { aspect-ratio: 4/3; object-fit: cover; transition: transform .25s; }
.certs a:hover img { transform: scale(1.04); }

/* ---------- Почему мы ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.why-item { background: var(--card); border-radius: 14px; padding: 22px; border: 1px solid var(--line); }
.why-item b { display: block; margin-bottom: 6px; font-size: 15.5px; }
.why-item span { color: var(--ink-soft); font-size: 14px; }
.why-num { font-family: var(--font-display); font-size: 30px; color: var(--accent); line-height: 1; margin-bottom: 10px; display: block; }

/* ---------- Таблицы цен ---------- */
.price-cat { margin-bottom: 40px; }
.price-cat h3 { font-size: 24px; margin-bottom: 14px; }
.price-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.price-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--accent); white-space: nowrap; width: 1%; }
.price-note { color: var(--ink-soft); font-size: 14px; margin-top: 24px; }

/* ---------- Прайс: вкладки и поиск ---------- */
.price-controls {
  position: sticky; top: 71px; z-index: 40;
  background: var(--bg); padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.price-search {
  width: 100%; max-width: 420px; display: block;
  padding: 11px 18px; margin-bottom: 12px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--card); outline: none; transition: border-color .2s;
}
.price-search:focus { border-color: var(--accent); }
.price-search::placeholder { color: #b6aaa2; }
.price-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.price-tab {
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--card); border: 1.5px solid var(--line);
  transition: all .15s; white-space: nowrap; user-select: none;
}
.price-tab:hover { border-color: var(--accent); color: var(--accent); }
.price-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.price-empty { display: none; color: var(--ink-soft); padding: 28px 0; font-size: 15px; }
@media (max-width: 900px) {
  .price-controls { top: 62px; }
  .price-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .price-tabs::-webkit-scrollbar { display: none; }
}

/* ---------- Акции ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.promo {
  background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 100%);
  border: 1px solid #eccdd6; border-radius: 14px; padding: 20px;
}
.promo b { font-size: 15px; display: block; margin-bottom: 4px; }
.promo .promo-price { color: var(--accent-dark); font-weight: 800; font-size: 18px; }

/* ---------- Сертификат подарочный ---------- */
.gift {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 44px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.gift h2 { color: #fff; margin-bottom: 8px; }
.gift p { opacity: .9; max-width: 520px; }
.gift .btn { background: #fff; color: var(--accent-dark); border: none; }
.gift .btn:hover { background: var(--accent-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 10px;
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); font-size: 14.5px; margin-top: 10px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 16px; }
.contact-list .lbl { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-bottom: 2px; }
.contact-list a, .contact-list span.val { font-size: 17px; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--accent); }
.contact-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Футер ---------- */
.footer { background: #272220; color: #b7aca5; padding: 36px 0 110px; font-size: 14px; }
.footer a { color: #d9cdc5; }
.footer a:hover { color: #fff; }
.footer-in { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.footer-note { font-size: 12px; opacity: .7; margin-top: 14px; max-width: 640px; }

/* ---------- Плавающая кнопка Telegram ---------- */
.tg-float {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
  z-index: 70; display: flex; align-items: center; height: 56px; width: 56px;
  border-radius: 999px; background: #229ED9; color: #fff;
  box-shadow: 0 6px 20px rgba(34, 158, 217, .45);
  overflow: hidden; text-decoration: none;
  transition: width .25s ease, box-shadow .2s;
  animation: tg-pulse 2.6s ease-out infinite;
}
.tg-float .tg-ico { flex: 0 0 56px; display: flex; align-items: center; justify-content: center; }
.tg-float .tg-ico svg { width: 28px; height: 28px; }
.tg-float .tg-float-label { white-space: nowrap; font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .2s; padding-right: 20px; }
.tg-float:hover { width: 232px; color: #fff; animation: none; box-shadow: 0 8px 28px rgba(34, 158, 217, .6); }
.tg-float:hover .tg-float-label { opacity: 1; }
@keyframes tg-pulse {
  0%   { box-shadow: 0 6px 20px rgba(34,158,217,.45), 0 0 0 0 rgba(34,158,217,.5); }
  70%  { box-shadow: 0 6px 20px rgba(34,158,217,.45), 0 0 0 16px rgba(34,158,217,0); }
  100% { box-shadow: 0 6px 20px rgba(34,158,217,.45), 0 0 0 0 rgba(34,158,217,0); }
}
@media (max-width: 900px) {
  .tg-float { left: 14px; top: auto; bottom: 80px; transform: none; width: 50px; height: 50px; }
  .tg-float .tg-ico { flex-basis: 50px; }
  .tg-float .tg-ico svg { width: 26px; height: 26px; }
  .tg-float:hover { width: 50px; }
  .tg-float .tg-float-label { display: none; }
}

/* ---------- Мобильная панель ---------- */
.mobilebar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none; gap: 1px; background: var(--line);
  border-top: 1px solid var(--line);
}
.mobilebar a {
  flex: 1; text-align: center; padding: 13px 6px 15px; background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.mobilebar a.accent { background: var(--accent); color: #fff; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 22px; gap: 14px;
  }
  .burger { display: block; }
  .header-phone, .header .btn { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .contacts { grid-template-columns: 1fr; }
  .mobilebar { display: flex; }
  .section { padding: 48px 0; }
  .gift { padding: 30px 24px; }
}
