/* Fonts loaded via <link> in HTML for performance — no @import */

:root {
  --bg: #f8efe2;
  --surface: #ffffff;
  --surface-soft: #f5e9d7;
  --accent: #c1121f;
  --accent-strong: #8b0f1a;
  --accent-hover: #d21f2d;
  --accent-strong-hover: #700a12;
  --ink: #0f0c0a;
  --muted: #4e4036;
  --border: rgba(15, 12, 10, 0.12);
  --spot1-x: 15%;
  --spot1-y: 22%;
  --spot2-x: 84%;
  --spot2-y: 12%;
  --spot3-x: 60%;
  --spot3-y: 78%;
  --hero-min-height: calc(100vh - 92px);
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 20px 40px rgba(193, 18, 31, 0.18);
  --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 10%, #f8eee1 0, #fdf7ef 32%, #ffffff 70%);
  color: var(--ink);
  line-height: 1.7;
  font-size: 20px;
  min-height: 100vh;
  min-height: 100dvh;

  /* для липкого футера */
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  font-family: "Poppins", "Nunito", sans-serif;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

p {
  margin: 0 0 0.75rem;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.7rem 0.8rem;
  background: #fff;
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  background: #f3e9da;
  cursor: not-allowed;
}

.container {
  width: min(1180px, 100% - 2.8rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(248, 238, 225, 0.9);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}

.brand-tagline {
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-weight: 600;
  font-size: 1.08rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.site-nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  background: var(--surface-soft);
  transform: translateY(-2px);
}

.nav-cta {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  padding: 0.7rem 1.25rem;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.site-nav .nav-cta {
  color: #fff;
}

.nav-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(120deg, var(--accent-hover), var(--accent-strong-hover));
  box-shadow: 0 18px 36px rgba(193, 18, 31, 0.28);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: linear-gradient(120deg, var(--accent-hover), var(--accent-strong-hover));
  box-shadow: 0 18px 36px rgba(193, 18, 31, 0.28);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 999px;
  content: "";
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

.page-main {
  padding: 0 0 2rem;
  flex: 1 1 auto;
}

.hero {
  padding: 0.5rem 0 3rem;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: stretch;
}

.hero>.container {
  width: 100%;
  display: flex;
  align-items: stretch;
}

.page-hero {
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  padding: 0.5rem 0 2.6rem;
}

.hero-shell,
.page-hero {
  background: linear-gradient(130deg, #fff3e6, #f5e9d7 65%, #ffe9e5);
  border-radius: 28px;
  padding: 2.8rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.hero-shell::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at var(--spot1-x) var(--spot1-y), rgba(193, 18, 31, 0.18), transparent 42%),
    radial-gradient(circle at var(--spot2-x) var(--spot2-y), rgba(245, 233, 215, 0.24), transparent 40%),
    radial-gradient(circle at var(--spot3-x) var(--spot3-y), rgba(139, 15, 26, 0.14), transparent 45%);
  filter: blur(40px);
  opacity: 0.42;
  pointer-events: none;
}

.hero-shell::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--spot1-x) var(--spot1-y), rgba(255, 255, 255, 0.7), transparent 35%),
    radial-gradient(circle at var(--spot2-x) var(--spot2-y), rgba(193, 18, 31, 0.18), transparent 38%),
    radial-gradient(circle at var(--spot3-x) var(--spot3-y), rgba(245, 233, 215, 0.28), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  position: relative;
  z-index: 1;
  align-items: center;
}

.hero-grid>div:first-child {
  max-width: 700px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.hero-title {
  font-size: clamp(2.2rem, 3vw + 1.2rem, 3.3rem);
  margin-bottom: 0.85rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 60ch;
  color: var(--muted);
  margin-bottom: 1.4rem;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(193, 18, 31, 0.10);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.pill.soft {
  background: rgba(139, 15, 26, 0.08);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 14px;
  padding: 1rem 1.65rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-strong-hover));
  box-shadow: 0 22px 44px rgba(193, 18, 31, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.28) inset;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.hero-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  grid-auto-rows: 1fr;
  max-width: 540px;
  margin-left: auto;
  height: clamp(420px, 72vh, 640px);
  align-self: center;
}

.photo-card {
  --float-y: 0px;
  --float-rot: 0deg;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 6px;
  overflow: hidden;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  transform: translateY(var(--float-y)) rotate(var(--float-rot)) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
}

.photo-card img {
  border-radius: 14px;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.photo-card:hover {
  transform: translateY(calc(var(--float-y) - 4px)) rotate(var(--float-rot)) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.section {
  padding: 2.2rem 0 3rem;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-kicker {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.92rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.section-lead {
  color: var(--muted);
  max-width: 72ch;
  margin-top: 0;
  font-size: 1.12rem;
  line-height: 1.8;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.9rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.info-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.5rem;
  align-items: start;
}

.info-list li::before {
  content: "•";
  color: var(--accent-strong);
  font-size: 1.2rem;
  line-height: 1;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.45rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(193, 18, 31, 0.08);
}

.card-link:hover {
  color: var(--ink);
}

.card-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.card .pill {
  width: fit-content;
  background: rgba(193, 18, 31, 0.12);
}

.card-title {
  font-size: 1.22rem;
  margin-bottom: 0.15rem;
}

.card-text {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.card .nav-cta {
  margin-top: auto;
  display: inline-block;
  width: fit-content;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(193, 18, 31, 0.22);
}

.gallery {
  padding: 0;
}

.gallery-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 0;
}

.gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  font-size: 0;
  min-width: 0;
  min-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

.gallery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
  cursor: pointer;
  display: block;
}

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: none;
  letter-spacing: 0.01em;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(1.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: contain;
}

.lightbox::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  animation: lightbox-spin 0.9s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-loading::after {
  opacity: 1;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(16px);
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.lightbox.is-loading .lightbox-image {
  opacity: 0;
}

.lightbox.is-open .lightbox-image {
  transform: translateY(0);
}

.lightbox button {
  position: absolute;
  z-index: 1;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.02);
}

.lightbox-close:hover {
  transform: translateY(-2px) scale(1.02);
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.highlight {
  background: linear-gradient(145deg, #fffaf6, var(--surface));
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(193, 18, 31, 0.10);
  box-shadow: var(--shadow-card);
}

.contact-slab {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #fff2e5 0%, #ffe6e1 50%, #fff0eb 100%);
  border-radius: 22px;
  padding: 2rem 2.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(193, 18, 31, 0.06);
}

.contact-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

#poptavka {
  scroll-margin-top: 120px;
}

/* The panel is a navigation target, not an interactive control. */
#poptavka:focus {
  outline: none;
}

.form-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.footer {
  background: linear-gradient(180deg, #1a1512 0%, #0f0c0a 100%);
  color: #f7efe2;
  padding: 1.6rem 0 1.8rem;
  margin-top: auto;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer a {
  color: #ffd8d1;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

.footer-brand {
  font-size: 0.82rem;
  opacity: 0.55;
  font-weight: 400;
}

.footer-bottom {
  margin-top: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  opacity: 0.7;
}

.footer-credit {
  background: #0a0807;
  padding: 0.8rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(247, 239, 226, 0.45);
}

.footer-credit a {
  color: rgba(255, 216, 209, 0.5);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: #fff;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(193, 18, 31, 0.6);
  outline-offset: 3px;
}

.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;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    transition: none;
  }

  .lightbox,
  .lightbox-image {
    transition: none;
  }
}

/* === COOKIE BANNER – FULL WIDTH === */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner__body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.cookie-banner__text {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--accent-strong);
  font-weight: 700;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.cookie-banner__btn {
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.05rem;
  font-weight: 700;
  font-size: 1.03rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  text-align: center;
}

.cookie-banner__btn--ghost {
  background: #fff;
  border: 1px solid var(--border);
}

.cookie-banner__btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.cookie-banner__btn--primary:hover {
  transform: translateY(-2px);
}

.cookie-banner__btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* раскладка на шире 640px: текст слева, кнопки справа */
@media (min-width: 640px) {
  .cookie-banner__body {
    flex-direction: row;
    align-items: center;
  }

  .cookie-banner__actions {
    flex-direction: row;
    width: auto;
    margin-left: auto;
  }

  .cookie-banner__btn {
    width: auto;
  }
}

@keyframes lightbox-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .site-nav {
    position: absolute;
    inset: 100% 1rem auto 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 780px) {

  .hero-shell,
  .page-hero {
    padding: 1.8rem;
  }

  .hero-grid {
    gap: 2.1rem;
  }

  .hero-photos {
    height: clamp(360px, 60vh, 520px);
  }

  .section {
    padding: 1.6rem 0 2.4rem;
  }

  .panel {
    padding: 1.45rem 1.5rem;
  }

  .card {
    padding: 1.2rem 1.25rem 1.3rem;
  }

  .gallery-grid img {
    height: 200px;
  }

  .contact-slab {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.6rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 19px;
  }

  .container {
    width: min(100%, 100% - 1.6rem);
  }

  .hero-shell,
  .page-hero {
    padding: 1.5rem;
  }

  .hero-photos {
    grid-template-columns: 1fr 1fr;
  }

  .nav-bar {
    padding: 0.8rem 0;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(1.9rem, 5vw + 1rem, 2.4rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .site-nav {
    inset: 100% 0.8rem auto 0.8rem;
  }

  .cards-grid {
    gap: 0.8rem;
  }

  .gallery-grid img {
    height: 180px;
  }

  .panel {
    padding: 1.15rem 1.2rem;
  }

 .card {
    padding: 1rem 1.05rem 1.1rem;
  }
}

.gallery-grid {
  --gallery-thumb-height: 230px;
}

.gallery-grid figure {
  height: var(--gallery-thumb-height);
}

.gallery-button {
  height: 100%;
}

.gallery-grid img {
  height: 100%;
}

@media (max-width: 780px) {
  .gallery-grid {
    --gallery-thumb-height: 200px;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    --gallery-thumb-height: 180px;
  }
}
