/*
Theme Name: Череповецкие маршруты
Author: Череповецкие маршруты
Description: Экскурсии по Череповцу и выездам. После активации тема сама создаёт туры, места и статьи.
Version: 1.0.7
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: cherepovets
*/

[hidden] {
  display: none !important;
}

html.chere-root {
  background: #f4efe6;
  --color-copper: #8a5a3c;
}

body.admin-bar {
  margin-top: 0 !important;
}

#wpadminbar {
  display: none;
}

img.h-full,
img.absolute.inset-0 {
  max-width: none;
  height: 100%;
}

@media (max-width: 767px) {
  .chere-clear-order {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }
}

.chere-policy section + section {
  margin-top: 3.25rem;
}

.chere-policy h2 {
  scroll-margin-top: 5.5rem;
}

.chere-policy ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.chere-policy li + li {
  margin-top: 0.25rem;
}

#tours {
  scroll-margin-top: 8rem;
}

.chere-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chere-kicker::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: #8a5a3c;
  flex: none;
}

.chere-kicker.on-dark {
  color: rgb(243 236 225 / 0.72);
}

.chere-hero {
  display: grid;
  gap: 1.75rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.chere-hero-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 16 / 10;
  background: #152026;
}

.chere-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chere-stats {
  border-top: 1px solid #8a5a3c;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-warm);
}

.chere-pitch {
  border-top: 1px solid rgb(243 236 225 / 0.18);
}

.chere-pitch article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  row-gap: 0.2rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgb(243 236 225 / 0.18);
}

.rounded-sm,
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl {
  border-radius: 2px;
}

.chere-mark {
  width: 1.65rem;
  height: 0.85rem;
  color: #8a5a3c;
  flex: none;
}

.chere-word {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.chere-bar {
  background: rgb(244 239 230 / 0.92);
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 #d8d0c3;
}

.chere-dossier {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.75rem;
}

.chere-dossier h1 {
  margin: 0.85rem 0 0;
  font-size: clamp(2.35rem, 4.6vw, 3.65rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.chere-dossier .lead {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--color-muted, #6b645b);
  font-size: 1.05rem;
  line-height: 1.65;
}

.chere-plate-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: #152026;
}

.chere-plate-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chere-plate:hover .chere-plate-photo img {
  transform: scale(1.03);
}

.chere-sheet {
  background: var(--color-paper, #faf6ef);
  border-top: 1px solid #8a5a3c;
  padding: 1.25rem 1.15rem 1.35rem;
}

.chere-step {
  border-top: 1px solid #8a5a3c;
  padding-top: 1.15rem;
}

.chere-step svg {
  color: #8a5a3c;
}

.chere-form {
  border: 0;
  border-top: 1px solid #8a5a3c;
  border-radius: 2px;
  box-shadow: none;
  background: #faf6ef;
}

.chere-index {
  counter-reset: chere;
}

.chere-index > li {
  counter-increment: chere;
}

.chere-index > li > a {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  column-gap: 0.35rem;
  align-items: baseline;
}

.chere-index > li > a::before {
  content: counter(chere, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 3;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1;
  color: #8a5a3c;
}

.chere-index > li > a > * {
  grid-column: 2;
}

footer .chere-mark {
  color: #e2c2a4;
}

.chere-pitch svg {
  margin-top: 0.2rem;
  color: #e2c2a4;
}

@media (min-width: 900px) {
  .chere-dossier {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    align-items: end;
    gap: 3rem;
    padding: 2.25rem 1.5rem 3.25rem;
  }
}

@media (min-width: 900px) {
  .chere-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: end;
    gap: 3.5rem;
    min-height: calc(100dvh - 8.25rem);
    padding: 2.75rem 1.5rem 4.5rem;
  }

  .chere-hero-photo {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 899px) {
  .chere-hero-photo {
    order: -1;
  }
}

.chere-cookie {
  position: fixed;
  z-index: 45;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
  background: #faf6ef;
  border-top: 1px solid #8a5a3c;
}

.chere-cookie p {
  margin: 0;
  max-width: 46rem;
  color: var(--color-muted, #6b645b);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.chere-cookie a {
  color: var(--color-accent, #3e5a64);
  text-underline-offset: 2px;
}

.chere-cookie button {
  height: 2.75rem;
  min-width: 7rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 2px;
  background: #152026;
  color: #f3ece1;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.chere-cookie button:hover {
  background: #1e2c34;
}

.chere-cookie a:focus-visible,
.chere-cookie button:focus-visible {
  outline: 2px solid #3e5a64;
  outline-offset: 2px;
}

html.chere-notice-off .chere-cookie {
  display: none;
}

html:not(.chere-notice-off) body {
  padding-bottom: 4.75rem;
}

html:not(.chere-notice-off) .chere-order-float {
  bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  html:not(.chere-notice-off) .chere-hero {
    min-height: calc(100dvh - 13.75rem);
  }
}

@media (max-width: 640px) {
  html:not(.chere-notice-off) body {
    padding-bottom: 8.75rem;
  }

  html:not(.chere-notice-off) .chere-order-float {
    bottom: calc(10.25rem + env(safe-area-inset-bottom, 0px));
  }

  html:not(.chere-notice-off) .chere-clear-order {
    padding-bottom: calc(15rem + env(safe-area-inset-bottom, 0px));
  }
}

.chere-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.65rem;
  row-gap: 0.15rem;
}

.chere-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.chere-legal .chere-legal-dot {
  color: rgba(243, 236, 225, 0.45);
  line-height: 1;
}
