/* Сеттинг — общие стили всех страниц: шрифты, переменные, сброс, кнопки, поля, карточки.
   Подключается первым: base.css → cabinet.css | client.css | landing.css. */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/golos-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/golos-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --bg: #f2ebe1;
  --ink: #1a2420;
  --muted: #3e4c46;
  --paper: #fffaf3;
  --line: #d8ccb8;
  --pine: #2c5649;
  --pine-2: #1f3f35;
  --clay: #b85c3d;
  --danger: #8f3232;
  --ok: #2c5649;
  --shadow: 0 18px 50px rgba(40, 32, 20, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
      scroll-behavior: smooth;
    }
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 2px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #fff8ee, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #e4ddd0, transparent 45%),
    var(--bg);
  font: 16px/1.5 var(--font);
}

h1,
h2 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: 1.35rem;
}

.page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.page.narrow {
  width: min(460px, calc(100% - 32px));
  padding-top: 12vh;
}

.page.app {
  width: min(560px, calc(100% - 20px));
  padding: 16px 0 108px;
}

.page.app h1 {
  font-size: 1.7rem;
}

.page.app .hero-photo {
  width: 72px;
  height: 90px;
  border-radius: 16px;
}

.page.app .dates {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
}

.page.app .chip {
  flex: 0 0 auto;
  min-width: 68px;
}

.page.app .chip.on .d {
  color: rgba(255, 250, 243, 0.82);
}

.list-title {
  margin: 18px 0 4px;
  font-size: 0.95rem;
}

.hero {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-copy {
  min-width: 0;
}

.hero-photo {
  width: 128px;
  height: 160px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #efe6d8;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #123b2d;
  /* Логотип 0.1: рамка с толстой левой гранью, размеры от кегля (em) */
  padding: 0.36em 0.64em 0.43em 0.54em;
  background: #fff;
  border: max(1.5px, 0.09em) solid #123b2d;
  border-left-width: 0.32em;
  border-radius: 3px 0.64em 0.64em 3px;
}

.brand-bar {
  display: flex;
  width: fit-content;
  margin: 0 0 16px;
  text-decoration: none;
}

.brand-bar .brand-mark {
  font-size: 13px;
}

.brand-note {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.lead,
.hint {
  color: var(--muted);
  margin: 0;
}

.lead {
  max-width: 42em;
  font-size: 1.05rem;
}

.steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.steps li {
  margin: 0.4em 0;
}

.steps code {
  display: inline-block;
  margin: 0.15em 0;
  word-break: break-all;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.dates,
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.slot {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  min-height: 48px;
  cursor: pointer;
  font: inherit;
}

.chip .d {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: capitalize;
}

.chip .n {
  font-weight: 650;
}

.chip.on,
.slot.on,
.tab.on {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.chip.empty {
  opacity: 0.45;
}

.slot {
  min-width: 92px;
}

.slot:disabled {
  opacity: 0.4;
  cursor: default;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  font-size: 0.92rem;
}

input,
textarea,
button,
select {
  font: inherit;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 48px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 96px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  background: var(--pine);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background: var(--pine-2);
}

.btn.ghost {
  background: transparent;
  color: var(--pine);
  border: 1px solid var(--line);
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 650;
}

.badge.paid {
  background: #e4efe8;
  color: var(--pine);
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.error {
  color: var(--danger);
  min-height: 1.2em;
}

.ok {
  color: var(--ok);
  min-height: 1.2em;
}

.hidden {
  display: none !important;
}

.admin-top .brand-bar,
.call-bar .brand-bar {
  margin: 0;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  min-height: 44px;
  padding: 8px 14px;
  cursor: pointer;
}

.inline-form,
.row,
.day-add {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.list {
  margin-top: 8px;
}

.urls {
  padding-left: 18px;
}

.urls li {
  margin: 6px 0;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  width: min(420px, 92vw);
  background: var(--paper);
}

dialog::backdrop {
  background: rgba(28, 38, 34, 0.35);
}

menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
}

code {
  background: #efe6d8;
  padding: 1px 6px;
  border-radius: 6px;
}

@media (max-width: 860px) {
  .page {
      padding-top: 28px;
    }

  .hero {
      flex-direction: column;
      align-items: flex-start;
    }
}

body.client {
  --font: Manrope, "Segoe UI", sans-serif;
  --bg: #f7f9f8;
  --ink: #111916;
  --muted: #6d7773;
  --paper: #fff;
  --line: #e4ebe7;
  --pine: #123b2d;
  --pine-2: #0e3024;
  --ok: #1d6b48;
  --shadow: none;
  background: #f7f9f8;
  color: #111916;
}

body.client h1,
body.client h2,
body.client h3 {
  font-weight: 800;
  letter-spacing: -0.06em;
}

body.client .card {
  border-radius: 18px;
}

body.client .btn {
  min-height: 0;
  padding: 13px 19px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 9px 22px #123b2d1f;
}

body.client .btn.ghost {
  background: #fff;
  color: #111916;
  border: 1px solid #e4ebe7;
  box-shadow: none;
}

/* Наведение — как в кабинете: рамка ярче, текст темнеет, фон белый. */
body.client :is(.btn, .chip, .slot, a, .link-btn, summary) {
  transition: color 0.15s, background-color 0.15s, border-color 0.15s, text-decoration-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

body.client .btn:not(.ghost):not(:disabled):hover {
  background: #1d6b48;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px #1d6b4840;
}

body.client .btn:not(.ghost):not(:disabled):active {
  transform: none;
  box-shadow: 0 4px 10px #123b2d26;
}

body.client .btn.ghost:hover {
  background: #fff;
  border-color: #8fbca7;
  color: #111916;
}

body.client .chip:not(.on):not(:disabled):hover,
body.client .slot:not(.on):not(:disabled):hover {
  border-color: #8fbca7;
}

body.client a:not(.btn):hover,
body.client .link-btn:hover {
  color: #123b2d;
}

body.client .chip,
body.client .slot {
  border-radius: 13px;
  font-weight: 700;
}

body.client .chip.on,
body.client .slot.on {
  background: #e5f4ed;
  border-color: transparent;
  color: #217752;
}

body.client .chip.on .d,
body.client .page.app .chip.on .d {
  color: #217752;
}

body.client .eyebrow {
  color: #6d7773;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.client .hero-photo {
  border-color: #e4ebe7;
  background: #f7f9f8;
  border-radius: 18px;
}

body.client input:not([type="checkbox"]):not([type="radio"]),
body.client textarea,
body.client select {
  border-radius: 13px;
}

body.client a {
  color: #1d6b48;
}

body.client :focus-visible {
  outline-color: #217752;
}

@media (max-width: 760px) {
  @keyframes sheet-up {
      from { transform: translateY(24px); }
      to { transform: none; }
    }
}

.link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #217752;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Страница записи: фото в круге (снимок обрезается в кабинете). */

body.client .hero-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
}

.page.app .hero-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

@keyframes just-moved {
  0%, 40% { box-shadow: 0 0 0 3px rgba(33, 119, 82, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(33, 119, 82, 0); }
}
