/* Базовая типографика, утилиты, примитивы. */

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
}

main {
  display: block;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-x);
}

/* --- Typography utilities --- */

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }

p {
  line-height: var(--lh-relaxed);
}

a {
  color: inherit;
  transition: color var(--dur-fast) var(--ease);
}

/* --- Section head (общая для всех секций) --- */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(var(--space-xl), 4vw, var(--space-2xl));
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.section-head__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
}

.section-head__lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 0.875em 1.5em;
  min-height: 48px;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-full);
  text-align: center;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(224, 87, 42, 0.35);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-accent-hover);
  box-shadow: 0 10px 26px rgba(240, 104, 56, 0.45);
}
.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-strong);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.btn--large {
  min-height: 56px;
  padding: 1em 2em;
  font-size: var(--fs-lead);
}

.btn--compact {
  min-height: 40px;
  padding: 0.625em 1.25em;
  font-size: var(--fs-small);
}

/* --- Поля формы --- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.field--wide {
  grid-column: 1 / -1;
}

.field__label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text-muted);
}

.field__input {
  width: 100%;
  padding: 0.875em 1em;
  min-height: 48px;
  font-size: 16px; /* iOS не будет зумить */
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.field__input:focus-visible {
  border-color: var(--color-accent);
  background: var(--color-bg-card);
  outline: none;
}

.field__input::placeholder {
  color: var(--color-text-subtle);
}

textarea.field__input {
  min-height: 96px;
  resize: vertical;
  font-family: inherit;
}

select.field__input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8A49C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.75em;
}

/* --- Основная секция --- */
.site-header,
.hero,
.booking,
.visits,
.offers,
.events,
.menu,
.reviews,
.faq,
.final {
  display: block;
}

.booking,
.visits,
.offers,
.events,
.menu,
.reviews,
.faq,
.final {
  padding-block: var(--section-y);
}

/* Чередование фонов: перенесено в sections.css (index-v2) */

/* --- Утилиты --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
