:root {
  --card: rgba(255,255,255,.86);
  --text: #2c2521;
  --muted: #756a64;
  --line: rgba(44,37,33,.14);
  --accent: #c6a46d;
  --accent-light: #f7dfb7;
  --accent-dark: #8c6a35;
  --soft: #fff8f1;
  --danger: #b95353;
  --shadow: 0 28px 80px rgba(70, 45, 30, .16);
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.95), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(198,164,109,.28), transparent 30%),
    linear-gradient(145deg, #f8f0e9, #efe0d3);
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 18px 14px 34px;
  display: flex;
  justify-content: center;
}

.shell {
  width: 100%;
  max-width: 520px;
}

/* ШАПКА */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 18px 20px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 12%, rgba(255,236,202,.34), transparent 30%),
    radial-gradient(circle at 92% 6%, rgba(255,255,255,.16), transparent 32%),
    radial-gradient(circle at 4% 94%, rgba(255,255,255,.10), transparent 28%),
    linear-gradient(180deg, rgba(25,18,14,.18), rgba(25,18,14,.62)),
    linear-gradient(135deg, #c49a7a, #4d3b31);
  box-shadow: var(--shadow);
}
.brand {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  column-gap: 2px;
  width: 100%;
  margin: 0 0 18px;
}

.brand-mark {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.22));
}

.brand-text {
  min-width: 0;
  text-align: left;
  padding-top: 4px;
}

.brand-name {
  color: var(--accent-light);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 31px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.4px;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0,0,0,.16);
}

.brand-line {
  width: 100%;
  height: 2px;
  margin: 8px 0 8px;
  background: linear-gradient(90deg, var(--accent-light), rgba(247,223,183,.25));
}

.brand-slogan {
  color: var(--accent-light);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0,0,0,.14);
}

.page-name {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: var(--accent-light);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.4px;
  text-shadow: 0 3px 14px rgba(0,0,0,.18);
}

.hero-note {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 10px 16px 11px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(247,223,183,.48);
  color: var(--accent-light);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

.hero-note strong {
  display: block;
  margin-top: 5px;
  color: var(--accent-light);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: none;
  white-space: nowrap;
}

/* КАРТОЧКА И ВЫБОР ПРОЦЕДУРЫ */

.card {
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-title {
  margin: 4px 0 14px;
  font-size: 20px;
  line-height: 1.25;
  text-align: center;
}

.category {
  border: 1px solid rgba(44,37,33,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  overflow: hidden;
  margin-bottom: 12px;
}

.category summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 850;
  font-size: 18px;
}

.category summary::-webkit-details-marker {
  display: none;
}

.category summary::after {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background-color: rgba(198,164,109,.18);
  flex: 0 0 38px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg width='38' height='38' viewBox='0 0 38 38' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 16L19 22.5L25.5 16' fill='none' stroke='%238c6a35' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 38px 38px;
  transition: transform .16s ease, background-color .16s ease;
}

.category[open] summary::after {
  transform: rotate(180deg);
  background-color: rgba(198,164,109,.24);
}

.service-list {
  padding: 0 12px 14px;
  display: grid;
  gap: 8px;
}

.service-btn {
  width: 100%;
  border: 1px solid rgba(44,37,33,.12);
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(255,255,255,.84);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: .16s ease;
}

.service-btn:hover {
  border-color: rgba(198,164,109,.65);
  background: #fffaf2;
}

.service-btn.active {
  border-color: rgba(198,164,109,.95);
  background: linear-gradient(135deg, #fffaf2, #fff);
  box-shadow: 0 10px 26px rgba(198,164,109,.20);
}

.service-name {
  font-weight: 750;
  font-size: 15px;
  line-height: 1.25;
}

.service-price {
  color: var(--accent-dark);
  font-weight: 850;
  font-size: 14px;
  white-space: nowrap;
}

/* БЛОК ВЫБРАННЫХ УСЛУГ */

.selected-box {
  display: none;
  position: relative;
  margin: 14px 0 0;
  padding: 13px 14px 14px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px dashed rgba(198,164,109,.75);
  color: var(--accent-dark);
  font-size: 14px;
  line-height: 1.35;
}

.selected-box strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 15px;
}

.selected-service-row {
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(44,37,33,.10);
}

.selected-service-row:last-of-type {
  border-bottom: 0;
}

.selected-service-remove {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(44,37,33,.10);
  color: var(--accent-dark);
  font-size: 19px;
  line-height: 26px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.selected-service-remove:active {
  transform: scale(.94);
}

.selected-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(198,164,109,.75);
  color: var(--text);
  font-weight: 850;
}

.clear-all-selected {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(198,164,109,.55);
  border-radius: 999px;
  padding: 11px 14px;
  background: rgba(255,255,255,.72);
  color: var(--accent-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: .16s ease;
}

.clear-all-selected:active {
  transform: scale(.98);
}

/* ФОРМА КЛИЕНТА */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label.field {
  display: block;
}

.field span {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 14px;
  background: rgba(255,255,255,.9);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: .15s ease;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(198,164,109,.9);
  box-shadow: 0 0 0 4px rgba(198,164,109,.16);
}

.promo {
  margin-top: 2px;
  padding: 14px;
  border-radius: 22px;
  background: var(--soft);
  border: 1px dashed rgba(198,164,109,.75);
}

.promo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--accent-dark);
  font-weight: 800;
}

.hint {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.submit {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 17px 20px;
  background: linear-gradient(135deg, #2c2521, #5a4535);
  color: white;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(44,37,33,.22);
  transition: .16s ease;
}

.submit:active {
  transform: translateY(1px);
  box-shadow: 0 10px 22px rgba(44,37,33,.18);
}

.success {
  display: none;
  margin-top: 16px;
  padding: 17px;
  border-radius: 22px;
  background: #f1fff3;
  border: 1px solid rgba(66,140,79,.28);
  color: #2d6b39;
  font-size: 14px;
  line-height: 1.45;
}

.error {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #fff1f1;
  border: 1px solid rgba(185,83,83,.22);
  color: var(--danger);
  font-size: 14px;
}

.footer {
  padding: 18px 8px 0;
  text-align: center;
  color: rgba(44,37,33,.58);
  font-size: 12px;
  line-height: 1.45;
}

.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* АДАПТАЦИЯ */

@media (max-width: 430px) {
  .page {
    padding: 18px 12px 34px;
  }

  .hero {
    border-radius: 30px;
    padding: 16px 16px 18px;
  }

  .brand {
    grid-template-columns: 124px 1fr;
    column-gap: 0;
    margin-bottom: 16px;
  }

  .brand-mark {
    width: 124px;
    height: 124px;
  }

  .brand-text {
    margin-left: -10px;
  }

  .brand-name {
    font-size: 28px;
  }

  .brand-slogan {
    font-size: 18px;
  }

  .page-name {
    font-size: 35px;
    margin-bottom: 14px;
  }

  .hero-note {
    font-size: 16px;
    padding: 9px 12px 10px;
    border-radius: 18px;
  }

  .hero-note strong {
    margin-top: 4px;
    font-size: 18px;
    white-space: nowrap;
  }

  .category summary::after {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    background-size: 38px 38px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding: 15px 13px 16px;
  }

  .brand {
    grid-template-columns: 108px 1fr;
    column-gap: 0;
    margin-bottom: 14px;
  }

  .brand-mark {
    width: 108px;
    height: 108px;
  }

  .brand-text {
    margin-left: -8px;
  }

  .brand-name {
    font-size: 24px;
  }

  .brand-slogan {
    font-size: 16px;
  }

  .brand-line {
    margin: 7px 0 7px;
  }

  .page-name {
    font-size: 31px;
    margin-bottom: 13px;
  }

  .hero-note {
    font-size: 15px;
    padding: 8px 10px 9px;
  }

  .hero-note strong {
    font-size: 16px;
    white-space: nowrap;
  }

  .service-btn {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .service-price {
    justify-self: start;
  }
}