* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.55 var(--body-font), sans-serif;
}
.anna {
  --background: #f7f2fd;
  --ink: #2d1f52;
  --muted: #655779;
  --accent: #653db1;
  --border: #dfd0ed;
  --panel: #fff;
  --header: #fbf7ff;
  --header-text: #432777;
  --body-font: Manrope;
  --display-font: "Cormorant Garamond";
}
.favori {
  --background: #f7ecdf;
  --ink: #382418;
  --muted: #6c503b;
  --accent: #805520;
  --border: #d9bc99;
  --panel: #fff8ef;
  --header: #1d120c;
  --header-text: #f3e7d2;
  --body-font: Inter;
  --display-font: "Playfair Display";
}
.anna.service-page {
  --service-wash: linear-gradient(118deg, #fbf5fa, #efe1fa 30%, #fdf3ef 57%, #e9dcf5 84%, #faf3fc);
  --wash-duration: 38s;
}
.favori.service-page {
  --service-wash: linear-gradient(112deg, #fff8ed, #f4dfc3 28%, #fff2df 55%, #ead0b5 81%, #fff8ee);
  --wash-duration: 46s;
}
.service-page {
  background-image: var(--service-wash);
  background-size: 235% 100%;
  background-position: 20% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .service-page { animation: service-wash var(--wash-duration) ease-in-out infinite alternate; }
}
@keyframes service-wash {
  from { background-position: 5% 50%; }
  to { background-position: 95% 50%; }
}
.wrap { width: min(100% - 40px, 1140px); margin-inline: auto; }
.site-header { background: var(--header); color: var(--header-text); border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.header-inner { min-height: 82px; padding-block: 12px; }
a { color: inherit; text-underline-offset: .22em; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.anna .logo .sprig { width: auto; height: 54px; flex: none; object-fit: contain; }
.anna .logo .wordmark { width: 118px; line-height: 1; text-align: center; }
.anna .logo .wordmark b {
  display: block;
  padding-left: .16em;
  color: #4e2f93;
  font: 700 30px/1 "Cormorant Garamond", serif;
  letter-spacing: .16em;
}
.anna .logo .lsw { display: block; width: 69%; height: auto; margin: 3px 3% 3px auto; color: #8e63d6; }
.anna .logo .wordmark span {
  display: block;
  padding-left: .34em;
  color: #8e63d6;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .26em;
  white-space: nowrap;
}
.favori .logo .wm { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.favori .logo .name { font: 36px/1 "Marck Script", cursive; letter-spacing: .5px; }
.favori .logo .swash { display: block; width: 168px; height: 11px; margin: 1px 0 4px; }
.favori .logo .swash svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #ddb97e;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.favori .logo .sub {
  align-self: center;
  color: #ddb97e;
  font-size: 10px;
  letter-spacing: .4em;
  text-transform: uppercase;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-nav a { font-size: .94rem; text-decoration: none; }
.site-nav a:is(:hover, [aria-current]) { text-decoration: underline; }
.phone { font-size: .94rem; font-weight: 700; white-space: nowrap; }
main { flex: 1; padding-block: 28px 64px; }
.crumbs { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
h1 {
  margin: 24px 0 8px;
  font: 700 clamp(2.3rem, 5vw, 4.25rem)/1.08 var(--display-font), serif;
  overflow-wrap: anywhere;
}
.intro { max-width: 62ch; margin: 0 0 28px; color: var(--muted); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}
a.card:hover { border-color: var(--accent); color: var(--accent); }
.arrow { color: var(--accent); font-size: 1.2rem; }
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.service-prices { grid-area: 1 / 1; }
.service-photo {
  grid-area: 1 / 2;
  aspect-ratio: 3 / 2;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.service-photo a { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.service-photo a:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.service-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--header);
  color: var(--header-text);
  font-size: 20px;
}
.service-call {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 12px 20px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.anna .service-call { background: #eadefa; border-radius: 999px; }
.anna .service-call:hover { background: #ddd0f2; }
.anna .card { border-radius: 24px; }
.anna .card .arrow {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: #eee3fa;
}
.anna .service-photo { border-radius: 24px; }
.anna .photo-zoom { border-radius: 50%; }
.favori .cards { display: block; border-top: 1px solid var(--border); }
.favori .card {
  min-height: 64px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  font: 600 clamp(1.06rem, 2vw, 1.35rem)/1.3 var(--display-font), serif;
}
.favori a.card:hover { background: var(--panel); }
.favori .card .arrow { font-size: 1.4rem; }
.favori .service-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.favori .service-prices { grid-area: 1 / 2; }
.favori .service-photo { grid-area: 1 / 1; border-radius: 2px; }
.favori .prices { border-radius: 0; border-top: 2px solid #99734f; }
.favori .service-call { border: 1px solid var(--accent); border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.favori .service-call:hover { color: #fff8ef; background: var(--accent); }
.policy-text { max-width: 76ch; white-space: pre-line; }
.prices { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.prices + .prices { margin-top: 16px; }
table { width: 100%; border-collapse: collapse; overflow-wrap: anywhere; }
caption { padding: 14px 16px; text-align: left; font-weight: 700; color: var(--accent); }
th, td { padding: 12px 16px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
th[scope="row"] { font-weight: 600; overflow-wrap: break-word; }
th:last-child:not([scope="row"]), .price { text-align: right; }
.price { width: 26%; color: var(--accent); font-weight: 700; overflow-wrap: normal; white-space: nowrap; }
.time { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 360px) { .price, .time { white-space: normal; } }
/* Акция в прайсе: прежняя цена зачёркнута, рядом акционная и пометка «по акции» */
td.price-sale { white-space: normal; }
.price-sale-inner { display: inline-flex; align-items: baseline; gap: 6px 8px; flex-wrap: wrap; justify-content: flex-end; text-decoration: none; color: inherit; }
.price-was { color: var(--muted); font-weight: 600; text-decoration: line-through; }
.price-now { color: var(--accent); font-weight: 700; }
.sale-badge { flex: none; align-self: center; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
a.price-sale-inner:hover .price-now { text-decoration: underline; }
a.price-sale-inner:hover .sale-badge { filter: brightness(1.1); }
.note { color: var(--muted); font-size: .94rem; }
.site-footer { padding-block: 24px; background: var(--header); color: var(--header-text); border-top: 1px solid var(--border); font-size: .94rem; }
@media (max-width: 800px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-detail, .favori .service-detail { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-prices, .service-photo, .favori .service-prices, .favori .service-photo { grid-area: auto; }
}
@media (max-width: 560px) {
  .header-inner { column-gap: 10px; }
  .site-nav { order: 1; width: 100%; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  th, td { padding: 10px 8px; font-size: .9rem; }
}
.license-scan {
  display: block;
  width: min(100%, 380px);
}
.license-scan img { display: block; width: 100%; height: auto; }
.document-details { display: grid; grid-template-columns: minmax(9rem, 1fr) 2fr; max-width: 78ch; }
.document-details dt, .document-details dd { margin: 0; padding: 10px; border-bottom: 1px solid var(--border); }
.document-details dt { font-weight: 700; }
.document-details dd { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .document-details { grid-template-columns: 1fr; }
  .document-details dt { border: 0; padding-bottom: 0; }
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-photo {
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--panel);
  text-decoration: none;
}
.work-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-photo span { padding: 12px 14px; }
.work-photo:hover span { text-decoration: underline; }
.work-dialog {
  width: min(980px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--header);
  color: var(--header-text);
  text-align: center;
}
.work-dialog::backdrop { background: rgb(24 14 9 / 85%); }
.work-dialog img { display: block; max-width: 100%; max-height: calc(100dvh - 130px); margin: 8px auto 0; object-fit: contain; }
.work-dialog p { margin: 6px 0 0; }
.work-controls { display: flex; gap: 8px; justify-content: flex-end; }
.work-controls button { min-height: 40px; padding: 5px 12px; border: 1px solid #ac895d; background: transparent; color: inherit; cursor: pointer; }
.card-label { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.card-media { display: block; overflow: hidden; }
.category-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.anna .catalog-cards .card { flex-direction: column; align-items: stretch; padding: 0; gap: 0; overflow: hidden; }
.anna .catalog-cards .card-media { width: 100%; aspect-ratio: 2 / 1; }
.anna .catalog-cards .card-label { padding: 14px 18px; }
.favori .catalog-cards .card { gap: 18px; padding-block: 10px; }
.favori .catalog-cards .card-media {
  flex: 0 0 clamp(104px, 22vw, 208px);
  aspect-ratio: 16 / 9;
  border-radius: clamp(10px, 1.4vw, 16px);
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .category-photo, .service-photo img { transition: transform .38s ease; }
  .card:hover .category-photo, .service-photo a:hover img { transform: scale(1.025); }
}
@media (max-width: 420px) {
  .favori .catalog-cards .card { padding-inline: 6px; gap: 10px; }
}
.catalog-cards .card, .work-photo { min-width: 0; overflow: hidden; }
.category-photo, .work-photo img { max-width: 100%; }
.service-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.anna .service-book { background: #653db1; color: #fff; }
.anna .service-book:hover { background: #56318c; }
.favori .service-book { background: #805520; color: #fff8ef; }
.favori .service-book:hover { background: #634019; }
.booking-heading { font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--display-font), serif; }
.booking-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: booking-step;
}
.booking-steps li {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  counter-increment: booking-step;
}
.anna .booking-steps li { border-radius: 18px; }
.booking-steps strong::before { content: counter(booking-step, decimal-leading-zero) " · "; color: var(--accent); }
.booking-steps span { color: var(--muted); }
