:root {
  color-scheme: light;
  --ink: #2b2524;
  --muted: #756865;
  --line: #e7d7cf;
  --paper: #fffaf6;
  --rose: #d77f91;
  --sage: #7fa98f;
  --clay: #b78478;
  --silver: #c9cbd0;
  --shadow: 0 18px 50px rgba(71, 48, 43, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(231, 215, 207, 0.8);
  background: rgba(255, 250, 246, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 18%, transparent 19%),
    conic-gradient(from 35deg, var(--rose), #f2c8d0, var(--sage), var(--silver), var(--rose));
  box-shadow: 0 0 0 4px #fff;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 15px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lang-button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.lang-button.active {
  background: var(--ink);
  color: #fff;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 64px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 246, 0.94), rgba(255, 250, 246, 0.48) 47%, rgba(255, 250, 246, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 96px);
  padding: 84px 0 112px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 10ch;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: #5d504d;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.filter,
.slots button {
  border: 0;
  border-radius: 8px;
  min-height: 46px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary {
  background: var(--ink);
  color: #fff;
}

.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.quick-info article {
  padding: 24px clamp(18px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.quick-info article:last-child {
  border-right: 0;
}

.quick-info strong {
  display: block;
  font-size: 28px;
}

.quick-info span {
  color: var(--muted);
}

.section {
  padding: 82px clamp(18px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.filter.active {
  background: #2b2524;
  border-color: #2b2524;
  color: #fff;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.style-card,
.service-list article,
.booking-form,
.media-card,
.admin-panel,
.admin-result,
.share-media-wrap,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(71, 48, 43, 0.06);
}

.style-card {
  padding: 14px;
}

.style-card[hidden] {
  display: none;
}

.nail-preview {
  height: 190px;
  border-radius: 7px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  background: #f3e4dc;
}

.nail-preview::before {
  content: "";
  position: absolute;
  inset: 34px 26px;
  border-radius: 46% 46% 42% 42%;
  box-shadow:
    0 0 0 16px rgba(255, 255, 255, 0.65),
    52px 8px 0 8px rgba(255, 255, 255, 0.4),
    -52px 8px 0 8px rgba(255, 255, 255, 0.4);
}

.blush {
  background: linear-gradient(135deg, #f8d9df, #fff8f4);
}

.blush::before {
  background: linear-gradient(180deg, #f4aebd, #f9dde4);
}

.chrome {
  background: linear-gradient(135deg, #f7f6f2, #d9dbe0);
}

.chrome::before {
  background: linear-gradient(110deg, #eee, #9ea3ad 42%, #fff 48%, #cfd2d7);
}

.pearl {
  background: linear-gradient(135deg, #fff6ef, #eadde4);
}

.pearl::before {
  background:
    radial-gradient(circle at 55% 35%, #fff 0 8%, transparent 9%),
    radial-gradient(circle at 44% 60%, #fff 0 6%, transparent 7%),
    linear-gradient(180deg, #f7d7df, #fff3ee);
}

.sage {
  background: linear-gradient(135deg, #d9e8dc, #fff4ec);
}

.sage::before {
  background: linear-gradient(180deg, #90b89c, #d8e8dc);
}

.ribbon {
  background: linear-gradient(135deg, #f6d5dd, #fff);
}

.ribbon::before {
  background:
    radial-gradient(ellipse at 55% 24%, transparent 0 32%, #fff 33% 38%, transparent 39%),
    linear-gradient(180deg, #f7c6d1, #fff1f2);
}

.night {
  background: linear-gradient(135deg, #453645, #d6c0c6);
}

.night::before {
  background:
    radial-gradient(circle at 40% 24%, #fff 0 3%, transparent 4%),
    radial-gradient(circle at 62% 54%, #fff 0 4%, transparent 5%),
    linear-gradient(180deg, #6c556e, #d8aebb);
}

.style-card h3,
.service-list h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.style-card p,
.service-list p,
.booking-copy p,
details p,
footer p {
  color: var(--muted);
  line-height: 1.7;
}

.services {
  background: #f4ebe6;
}

.uploaded-gallery {
  background: #fffaf6;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  overflow: hidden;
}

.media-card a {
  display: grid;
  color: inherit;
}

.media-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #efe5de;
}

.media-card video.media-thumb {
  object-fit: cover;
}

.media-card-body {
  padding: 16px;
}

.media-card-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.media-card-body p,
.empty-gallery,
.admin-intro {
  color: var(--muted);
  line-height: 1.7;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-list article {
  padding: 24px;
}

.service-list strong {
  font-size: 24px;
  color: var(--rose);
}

.booking {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.booking-copy {
  position: sticky;
  top: 96px;
}

.booking-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: #fffaf7;
}

textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

progress {
  width: 100%;
  height: 14px;
  accent-color: var(--sage);
}

.admin-page,
.share-page {
  padding: 52px clamp(18px, 5vw, 72px) 84px;
}

.admin-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px);
}

.admin-panel h1,
.share-copy h1 {
  max-width: 12ch;
  font-size: clamp(40px, 7vw, 72px);
}

.upload-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.drop-zone {
  min-height: 160px;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--clay);
  border-radius: 8px;
  background: #fff6f2;
  text-align: center;
}

.drop-zone input {
  max-width: 360px;
  background: transparent;
  border: 0;
}

.upload-preview {
  display: grid;
  gap: 10px;
}

.upload-preview img,
.upload-preview video {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f4ebe6;
}

.admin-result {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
}

.admin-result[hidden] {
  display: none;
}

.share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.share-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.share-copy {
  position: sticky;
  top: 96px;
}

.share-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.share-media-wrap {
  overflow: hidden;
  padding: 12px;
}

.share-media {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 7px;
  background: #f4ebe6;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slots button {
  background: #fff5f1;
  border: 1px solid var(--line);
}

.slots button.selected {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--sage);
  font-weight: 800;
}

.faq {
  background: #f7f0eb;
}

details {
  padding: 18px 20px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .lang-button {
    flex: 1;
  }

  .hero {
    min-height: 680px;
  }

  .hero-copy {
    padding-bottom: 90px;
  }

  .quick-info,
  .style-grid,
  .service-list,
  .media-grid,
  .share-layout,
  .booking {
    grid-template-columns: 1fr;
  }

  .quick-info article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .booking-copy {
    position: static;
  }

  .share-copy {
    position: static;
  }

  .slots {
    grid-template-columns: 1fr;
  }

  .share-link-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero::after {
    background: rgba(255, 250, 246, 0.78);
  }

  h1 {
    font-size: 46px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }
}
