/* Конструктор календарей neostamp.ru — в цветах и шрифтах сайта:
   бирюзовый #13a0b2 / #0d606d, жёлтый #f6ba18, заголовки Raleway, текст Open Sans, кнопки Roboto. */
.nk {
  --nk-accent: #13a0b2;
  --nk-deep: #0d606d;
  --nk-yellow: #f6ba18;
  --nk-ink: #2a2a2a;
  --nk-muted: #898989;
  --nk-line: #e3e7ea;
  --nk-soft: #f4f8f9;
  margin: 10px 0 40px;
  font-family: 'Open Sans', sans-serif;
  color: var(--nk-ink);
  /* Шаблон сайта на узком экране центрирует текст колонки; форма читается по левому краю. */
  text-align: left;
}
.nk *, .nk *::before, .nk *::after { box-sizing: border-box; }
.nk [hidden] { display: none !important; }

.nk-head { margin-bottom: 18px; }
.nk .nk-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.625em;
  color: #323232;
  position: relative;
  padding-bottom: 11px;
  margin: 0 0 14px;
}
.nk .nk-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3px;
  background: var(--nk-yellow);
}
.nk-lead { font-size: 14px; line-height: 24px; color: var(--nk-muted); margin: 0; }

/* Предпросмотр */
.nk-stage {
  background: linear-gradient(180deg, #eef3f5 0%, #e3eaee 100%);
  border-radius: 4px;
  padding: 18px 18px 12px;
  margin-bottom: 26px;
}
.nk-preview { position: relative; display: flex; justify-content: center; align-items: center; min-height: 260px; }
/* Лист: пропорция из размера листа (--nk-ratio = ширина / высота), высота не больше --nk-max-h. */
.nk-sheet {
  --nk-max-h: 560px;
  line-height: 0;
  aspect-ratio: var(--nk-ratio, 0.7071);
  width: min(100%, calc(var(--nk-max-h) * var(--nk-ratio, 0.7071)));
  background: #fff;
  box-shadow: 0 6px 22px rgba(13, 96, 109, .22);
}
.nk-sheet svg { display: block; width: 100%; height: 100%; }
.nk-busy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--nk-deep);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
}
.nk-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 13px; }
.nk-pager-title { font-weight: 600; color: var(--nk-deep); min-width: 0; text-align: center; }
.nk-pager-count { color: var(--nk-muted); white-space: nowrap; }
.nk-pager-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--nk-deep);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.nk-pager-btn:disabled { opacity: .35; cursor: default; }
.nk-pager-btn:not(:disabled):hover { background: var(--nk-accent); color: #fff; }

/* Шаги */
.nk-step { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.nk-step legend {
  border: 0;
  width: auto;
  margin: 0 0 12px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.125em;
  color: #242424;
}
.nk-num {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--nk-accent);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
  vertical-align: 1px;
}
.nk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.nk-two legend { grid-column: 1 / -1; }
.nk-wide { grid-column: 1 / -1; }
.nk-field { display: block; margin: 0; font-weight: 400; }
.nk-label { display: block; font-size: 12px; font-weight: 600; color: var(--nk-deep); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.nk-label b { color: #d7262f; }
.nk-input {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #d5dbe0;
  border-radius: 3px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--nk-ink);
  transition: border-color .2s, box-shadow .2s;
}
textarea.nk-input { height: auto; min-height: 64px; resize: vertical; }
.nk-input:focus { outline: 0; border-color: var(--nk-accent); box-shadow: 0 0 0 3px rgba(19, 160, 178, .15); }
.nk-short { width: 110px; }
.nk-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.nk-inline .nk-input { width: auto; }
.nk-hint { font-size: 13px; line-height: 21px; color: var(--nk-muted); margin: 0 0 12px; }

/* Виды */
.nk-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nk-kind { margin: 0; cursor: pointer; font-weight: 400; }
.nk-kind input { position: absolute; opacity: 0; pointer-events: none; }
.nk-kind-body {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  height: 100%;
  padding: 10px 12px;
  border: 1px solid var(--nk-line);
  border-radius: 4px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.nk-kind-shape {
  grid-row: 1 / 3;
  justify-self: center;
  border: 2px solid var(--nk-accent);
  border-radius: 2px;
  background: repeating-linear-gradient(180deg, #fff 0 4px, #e4f4f6 4px 6px);
}
.nk-kind-title { font-size: 12.5px; line-height: 17px; color: var(--nk-ink); }
.nk-kind-price { font-family: 'Roboto', sans-serif; font-weight: 500; font-size: 13px; color: var(--nk-deep); }
.nk-kind:hover .nk-kind-body { border-color: var(--nk-accent); }
.nk-kind input:checked + .nk-kind-body { border-color: var(--nk-accent); background: var(--nk-soft); box-shadow: inset 0 0 0 1px var(--nk-accent); }
.nk-kind input:focus-visible + .nk-kind-body { box-shadow: 0 0 0 3px rgba(19, 160, 178, .3); }

/* Цвета */
.nk-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.nk-swatch { margin: 0; cursor: pointer; text-align: center; font-weight: 400; }
.nk-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.nk-swatch span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #d5dbe0; transition: box-shadow .2s; }
.nk-swatch em { display: block; font-style: normal; font-size: 11px; color: var(--nk-muted); margin-top: 3px; }
.nk-swatch input:checked + span { box-shadow: 0 0 0 2px var(--nk-deep); }
.nk-swatch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(19, 160, 178, .4); }

/* Фото */
.nk-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.nk-photo { position: relative; width: 96px; margin: 0; }
.nk-photo img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 3px; background: var(--nk-soft); }
.nk-photo figcaption { font-size: 11px; color: var(--nk-muted); margin-top: 3px; }
.nk-photo-tools { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; }
.nk-photo-tools button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .9);
  color: var(--nk-deep);
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}
.nk-photo-tools button:hover { background: var(--nk-accent); color: #fff; }

/* Кнопки — как на сайте: Roboto 500, прописные, скругление 3px */
.nk-btn {
  display: inline-block;
  margin: 0;
  padding: 11px 20px;
  border: 0;
  border-radius: 3px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.nk-btn-light { background: var(--nk-accent); color: #fff; }
.nk-btn-light:hover { background: var(--nk-deep); }
.nk-btn-main { background: var(--nk-yellow); color: #282f39; padding: 15px 34px; font-size: 14px; }
.nk-btn-main:hover { color: #fff; background: #e0a50a; }
.nk-btn-main:disabled { opacity: .6; cursor: progress; }
.nk-link { border: 0; background: none; padding: 0; color: var(--nk-deep); font-size: 13px; text-decoration: underline; cursor: pointer; }

/* Цена */
.nk-qty { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 28px; }
.nk-price { flex: 1 1 260px; padding: 12px 16px; border-left: 3px solid var(--nk-yellow); background: var(--nk-soft); min-height: 64px; }
.nk-price-total { font-family: 'Roboto', sans-serif; font-weight: 500; font-size: 26px; line-height: 32px; color: var(--nk-deep); }
.nk-price-lines { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #555; }
.nk-price-lines small { font-size: 11.5px; color: var(--nk-muted); margin-top: 4px; }

/* Заказ */
.nk-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 400; color: #555; }
.nk-check input { margin-top: 3px; }
.nk-check a { color: var(--nk-deep); }
.nk-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.nk-status { font-size: 13px; margin: 8px 0 0; color: #555; min-height: 1em; }
.nk-submit .nk-status { margin: 0; flex: 1 1 240px; }
.nk-error { color: #c0262d; }
.nk-ok { color: #2e7d4f; font-weight: 600; }
.nk-off { padding: 14px 18px; background: var(--nk-soft); border-left: 3px solid var(--nk-yellow); font-size: 14px; }

@media (max-width: 767px) {
  .nk-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nk-two { grid-template-columns: 1fr; }
  .nk-stage { padding: 12px 10px 10px; margin-left: -5px; margin-right: -5px; }
  .nk-sheet { --nk-max-h: 460px; }
}
@media (max-width: 420px) {
  .nk-kinds { grid-template-columns: 1fr; }
}
