@font-face {
  font-family: "DSEG7 Classic";
  src: url("/fonts/DSEG7Classic-Regular.woff2?v=20261123t") format("woff2"),
       url("/fonts/DSEG7Classic-Regular.woff?v=20261123t") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  color: #5c3d49;
  background: #fbf6f6;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background-color: #f6eef2;
  background-image: url("/assets/bg-concept-a-soft-glyphs-v4.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overscroll-behavior: none;
}

body { padding: 20px 18px calc(28px + var(--tg-content-safe-area-inset-bottom, 0px)); min-height: 100vh; }

#app {
  max-width: 420px;
  margin: 0 auto;
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
}

h1, .start-title {
  margin: 18px 0 8px;
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #3d2430;
}

h2 {
  margin: 8px 0;
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #4a2c3a;
}

.dates-title { text-align: center; }

.dates-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.date-field { display: flex; flex-direction: column; min-width: 0; }

.date-field label { text-align: center; margin-bottom: 6px; }

.date-field .drum-btn {
  width: 100%;
  flex: 1 1 auto;
  min-height: 64px;
  padding: 12px 8px;
  white-space: nowrap;
}

.dates-board .drums { gap: 2px; font-size: 12px; text-align: center; }
.date-field .drum-btn small { font-size: 10px; }

.chart-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 4px 0 2px;
}

.chart-head h2 { margin: 0 0 8px; }

.chart-head .meta {
  margin: 0;
  color: #8d6f7c;
  font-size: 15px;
  line-height: 1.35;
}

.chart-head .result {
  margin: 6px 0 0;
  color: #4a2c3a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.chart-head .note {
  margin: 0;
  color: #8d6f7c;
  font-size: 14px;
  line-height: 1.35;
}

.stack > .thermo { margin-top: 16px; }

.brand {
  margin: 0;
  color: #d7a3b4;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.lead, .meta, .note { color: #8d6f7c; line-height: 1.4; }

.note { font-size: 14px; }

.stack { display: flex; flex-direction: column; gap: 12px; }

.grow { flex: 1; }

button, .btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary { background: #e7a8be; color: #4d3140; }
.secondary { background: #d7ecfb; color: #315d86; }
.ghost { background: #d7ecfb; color: #315d86; align-self: flex-start; }
button:disabled { opacity: 0.45; }

.disclaimer {
  margin-top: 22px;
  text-align: center;
  color: #c3aeb6;
  font-size: 13px;
  opacity: 0.7;
}

.card {
  background: #fff;
  border: 1px solid #f0dfe6;
  border-radius: 18px;
  padding: 14px;
}

.price-card {
  background: linear-gradient(#f6eef6, #e4eef8);
  border-radius: 18px;
  padding: 16px;
}

.price-card b { display: block; font-size: 42px; line-height: 1; }
.struck { color: #b598a6; text-decoration: line-through; font-size: 18px; }
.discount { color: #4a2c3a; font-weight: 700; font-size: 16px; }

label { display: block; color: #8d6f7c; font-size: 14px; margin-bottom: 6px; }

input {
  width: 100%;
  border: 1px solid #f0d5df;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: #5c3d49;
  background: #fff;
}

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

.drum-btn {
  background: #fff;
  border: 1px solid #f0d5df;
  border-radius: 16px;
  min-height: 64px;
  color: #5c3d49;
}

.drum-btn small { display: block; color: #b598a6; font-weight: 500; }

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(92, 61, 73, 0.28);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
}

/* Только циферблат: без белой карточки, без подписи «мама/папа». */
.sheet-card.clock-only {
  background: transparent;
  border-radius: 0;
  padding: 0 12px 24px;
  box-shadow: none;
  width: min(420px, 100%);
  margin: 0 auto;
}

.clock {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.35fr;
  gap: 2px;
  align-items: end;
  background: #0c0c0c;
  border-radius: 2px;
  padding: 16px 8px 12px;
}

/* Циферблат-часы: полупрозрачное стекло, округлые края, мягкий объём. */
.clock.clock-round {
  border-radius: 34px;
  padding: 18px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(28, 24, 26, 0.82), rgba(10, 9, 10, 0.88));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 rgba(0, 0, 0, 0.8) inset,
    0 10px 24px rgba(40, 20, 32, 0.32);
  backdrop-filter: blur(6px);
}

.clock-round .wheel div.on { text-shadow: 0 0 12px rgba(255, 255, 255, 0.45); }

/* Вместо кнопки «Готово» — круглая галочка под циферблатом. */
.clock-ok {
  display: none;
}

.clock-col small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.colon {
  padding-bottom: 48px;
  color: #fff;
  font-family: "DSEG7 Classic", "Courier New", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 40px;
  line-height: 1;
}

.wheel {
  height: 168px;
  overflow-y: auto;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
  touch-action: pan-y;
  overscroll-behavior: contain;
  background: transparent;
  mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent);
}

.wheel::-webkit-scrollbar { display: none; }

.wheel div {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  color: rgba(255, 255, 255, 0.32);
  font-family: "DSEG7 Classic", "Courier New", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  transform: scale(0.84);
  transition: color 0.16s linear, transform 0.16s linear;
}

.wheel div.on {
  color: #fff;
  font-weight: 400;
  transform: scale(1);
}

.lang-pop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.lang-chip {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  align-self: flex-start;
  gap: 8px;
  background: #fff;
  color: #5c3d49;
  border: 1px solid #f0d5df;
}

.fit { align-self: flex-start; }

.lang-chip small {
  color: #b598a6;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.plaque {
  background: #fff;
  border: 1px solid #f0d5df;
  border-radius: 16px;
  padding: 12px 14px;
  color: #6d4d5a;
  line-height: 1.35;
}

.link {
  background: transparent;
  color: #b85c78;
  padding: 4px 0 0;
  text-align: left;
  font-weight: 700;
  text-decoration: underline;
}

.plaque-text { margin: 0; }

.dark-plaque {
  background: #3d3140;
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  font-size: 32px;
  font-weight: 700;
}

.about-p, .about-list { color: #5c3d49; line-height: 1.45; }
.about-list { margin: 0; padding-left: 18px; }

.card-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: #fff;
  color: #5c3d49;
  border: 1px solid #f0d5df;
  text-align: left;
}

.card-btn small { color: #8d6f7c; font-weight: 500; }

.thermo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
  align-items: start;
}
.thermo-svg { display: block; width: 100%; height: auto; background: transparent; }
.thermo-legend { color: #5c3d49; font-size: 13px; line-height: 1.35; padding-top: 4px; }
.thermo-legend strong { display: block; margin-bottom: 10px; font-size: 15px; }
.thermo-legend p { margin: 12px 0 0; color: #8d6f7c; font-size: 13px; }
.key { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.swatch.girl { background: #E48AAB; }
.swatch.boy { background: #8EB4E0; }
.swatch.tie {
  background: repeating-linear-gradient(135deg, #8d8088 0 1.5px, #D6CED4 1.5px 5px);
}
.thermo-tip { min-height: 1.2em; font-weight: 700; color: #5c3d49; }

.error { color: #9a445c; min-height: 1.2em; }

.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
