/* =========================================
   price.css — только для страницы price
   ========================================= */

/* База */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --header-h: 56px;
  --text: #eaeef7;
  --text-dim: #c9d2e6;
  --bg: #0f0f0f;
  --btn: #2b64ff;
  --btn-hover: #3b73ff;
}
@media (max-width: 640px){ :root{ --header-h: 52px; } }

/* ===== Каркас страницы ===== */
body[data-page="price"]{
  background: var(--bg);
  color: var(--text);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji",sans-serif;

  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: hidden;

  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
}

/* ===== Шапка ===== */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  height:60px;
  padding:12px 20px;
  display:flex;
  align-items:center;
  backdrop-filter: blur(8px) saturate(140%);
  background: rgba(6,6,6,0.45);
  z-index:80;
  border-bottom:1px solid rgba(255,255,255,0.02);
}
.header-inner{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand-name{ color:#fff; text-decoration:none; font-weight:600; letter-spacing:.6px; }
.header-nav{ display:flex; gap:16px; align-items:center; }
.nav-btn{ color:#cfe0ff; text-decoration:none; font-size:14px; opacity:.9; }


/* --- Универсальный футер Mikhail Brynn --- */

.mb-footer {
  width: 100%;
  background: #0a0a0c;
  padding: 32px 20px;
  margin-top: auto; /* футер прилипает к низу окна, если контента мало */
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.mb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #e6e6ea;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.mb-footer-inner p {
  margin: 4px 0;
}

/* ===== Заголовок раздела услуг ===== */
body[data-page="price"] .services-heading {
  text-align: center;
  margin-top: clamp(40px, 8vh, 80px);
  margin-bottom: clamp(20px, 5vh, 40px);
}

body[data-page="price"] .services-heading h2 {
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.6px;
  text-shadow: 0 3px 18px rgba(0,0,0,0.45);
  background: linear-gradient(90deg, #ffffff, #9bb6ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====== Калькулятор стоимости ====== */
body[data-page="price"] .services-grid{
  width: 100%;
  min-width: 0;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  /* небольшой отступ от краёв экрана */
}

/* Ограничиваем ширину карточки — на больших экранах не растягиваем на весь экран */
.calc-card{
  background: #121212;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.03);
  border-radius: 28px;
  padding: clamp(16px, 3.2vw, 28px);
  color: var(--text);

  max-width: 720px;      /* ключ: не растягивается на всю ширину */
  width: min(720px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.calc-title{
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 600;
  margin-bottom: clamp(12px, 2.2vw, 16px);
}

.calc-row{
  min-width: 0;
  margin-top: clamp(14px, 2.4vw, 18px);
}
.calc-label{
  margin-bottom: 10px;
  color: var(--text);
  opacity: .9;
  font-weight: 500;
  letter-spacing: .2px;
}
.calc-hint{
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 8px;
  opacity: .8;
}

/* Группа «пилюль» как на референсе */
.segmented{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  gap: clamp(8px, 1.6vw, 14px);
  padding: 10px;
  background: #1a1a1a;
  border-radius: 48px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 16px 40px rgba(0,0,0,.35);
  overflow-x: auto;
}

.seg-btn{
  position: relative;
  appearance: none;
  border: none;
  background: #242424;
  color: #cfd5e6;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: clamp(14px,1.8vw,16px);
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, opacity .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  white-space: nowrap;
}
.seg-btn:hover{ transform: translateY(-1px); opacity: .95; }
.seg-btn:active{ transform: translateY(0); opacity: .9; }

/* Активная «пилюля»: белая, как на скрине */
.seg-btn.is-active{
  background: #ffffff;
  color: #141414;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.06),
    0 6px 18px rgba(255,255,255,.12);
}

.segmented--format {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
}

.segmented--format .seg-btn {
  width: 100%;
  padding-block: 14px;
  font-weight: 700;
}

/* Итог и CTA */
.calc-total-row{
  margin-top: clamp(18px, 3vw, 24px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

/* Группа действий (кнопки) — отдельный контейнер справа */
.actions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Текст итоговой суммы */
.total-label{
  font-size: clamp(13px, 1.6vw, 14px);
  color: var(--text-dim);
  margin-bottom: 6px;
}
.total-value{
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 700;
  letter-spacing: .3px;
}
.total-prices {
  display: grid;
  gap: 3px;
}
.total-old {
  width: max-content;
  color: rgba(255,255,255,0.48);
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255,255,255,0.55);
}
.discount-badge {
  width: max-content;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 199, 106, 0.16);
  border: 1px solid rgba(37, 199, 106, 0.34);
  color: #8cf0b5;
  font-size: 12px;
  font-weight: 700;
}

/* Основная синяя кнопка - Telegram */
.primary-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: clamp(14px,1.8vw,16px);
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(180deg, var(--btn), var(--btn-hover));
  box-shadow:
    0 20px 48px rgba(43,100,255,.18),
    inset 0 -2px 0 rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.primary-cta:hover{ transform: translateY(-1px); }
.primary-cta:active{ transform: translateY(0); opacity: .95; }

/* Вторая кнопка — копировать */
.secondary-cta{
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: clamp(13px,1.6vw,14px);
  font-weight: 600;
  color: #0b1a3a;
  background: linear-gradient(180deg, #ffffff, #e7ecff);
  box-shadow:
    0 12px 28px rgba(0,0,0,.25),
    inset 0 -2px 0 rgba(0,0,0,.06);
  cursor: pointer;
  transition: transform .12s ease;
}
.secondary-cta:hover{ transform: translateY(-1px); }

/* Небольшая подпись под «Визажист» */
.calc-note{
  margin-top: 10px;
  color: var(--text-dim);
  font-size: clamp(12px,1.6vw,13px);
}

/* Мобильные правки */
@media (max-width: 700px){
  .calc-total-row{
    grid-template-columns: 1fr;
  }
  .actions{ width: 100%; justify-content: stretch; gap: 12px; }
  .primary-cta{ width: 100%; justify-content:center; }
  .secondary-cta{ width: 100%; }
}


/* ===============================
   ОБЩИЕ ДОП. ЭЛЕМЕНТЫ КАЛЬКУЛЯТОРА
   =============================== */

/* Инпут "Предложить стоимость" */
.calc-input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;

  font-size: 14px;
  color: #fff;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;

  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.calc-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.calc-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(100, 140, 255, 0.45);
}


/* Подпись под "Предложить стоимость" */
.calc-hint {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}


/* ===============================
   КОММЕНТАРИЙ (БЕЗ КАРТОЧКИ)
   =============================== */

.calc-comment {
  max-width: 760px;
  margin: 14px auto 0;
  padding: 0 18px;
}

.calc-comment-label {
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
}

/* Текстовое поле комментария */
.calc-comment-textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;

  font-size: 13px;
  line-height: 1.35;
  color: #fff;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;

  resize: vertical;
  outline: none;

  transition: border-color 0.2s ease, background 0.2s ease;
}

.calc-comment-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.calc-comment-textarea:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(100, 140, 255, 0.4);
}


/* ===============================
   МЕЛКИЕ ВИЗУАЛЬНЫЕ УТОЧНЕНИЯ
   =============================== */

/* Чуть компактнее строки с доп. полями */
.calc-row + .calc-row {
  margin-top: 14px;
}

/* Чтобы "Предложить стоимость" визуально не спорило с ценой */
.calc-total-row + .calc-row {
  margin-top: 16px;
}

/* Адаптив */
@media (max-width: 480px) {
  .calc-comment {
    padding: 0 14px;
  }

  .calc-input {
    font-size: 13px;
  }

  .calc-comment-textarea {
    font-size: 12.5px;
  }
}

/* Комментарий как условия (НЕ поле ввода) */
.calc-comment{
  max-width: 760px;
  margin: 14px auto 0;
  padding: 0 18px;
}

.calc-comment-text{
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.60);
}

/* Если хочешь чуть сильнее “как подпись/условия” */
@media (max-width: 480px){
  .calc-comment{
    padding: 0 14px;
  }
  .calc-comment-text{
    font-size: 12px;
  }
}
