:root {
  --ink: #1d201d;
  --muted: #646a62;
  --paper: #f4f1e9;
  --card: #fffdf7;
  --line: rgba(29, 32, 29, 0.17);
  --green: #3d5b47;
  --green-dark: #253a2d;
  --lime: #c9df73;
  --terracotta: #c96743;
  --red: #b23a2f;
  --shadow: 0 20px 60px rgba(31, 39, 31, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(201, 223, 115, 0.23), transparent 25rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.site-header {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0;
}

.header-contact {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.header-contact:hover {
  color: var(--paper);
  background: var(--ink);
}

.hero,
.catalog,
.contact-section,
.site-footer {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  padding: 32px 0 76px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-banner {
  aspect-ratio: 2 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  background: var(--green-dark);
  box-shadow: var(--shadow);
}

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

.hero-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 1fr);
  gap: clamp(42px, 6vw, 96px);
  align-items: start;
  margin-top: 28px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-section h2,
.reservation-dialog h2 {
  margin: 0;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 0.88;
}

h1 em,
h2 em {
  color: var(--green);
  font-weight: 400;
}

.hero-text {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
}

.hero-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, 0.5);
}

.hero-note > div {
  min-width: 0;
  padding: 5px 9px;
}

.hero-note p {
  margin: 7px 0 0;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.12;
}

.note-number {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.catalog {
  padding: 84px 0 110px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2,
.contact-section h2,
.reservation-dialog h2 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
}

.section-heading > p {
  max-width: 330px;
  margin: 0 0 8px;
  color: var(--muted);
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 42px 0 36px;
}

.category-filters {
  display: flex;
  flex: 1 1 auto;
  gap: 9px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-button {
  flex: 0 0 auto;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-button span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: rgba(29, 32, 29, 0.08);
  font-size: 0.72rem;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--paper);
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.filter-button.is-active span {
  background: rgba(255, 255, 255, 0.16);
}

.view-switcher {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.view-switcher > span {
  padding: 0 8px 0 10px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
}

.view-button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.view-button:hover,
.view-button.is-active {
  color: var(--paper);
  background: var(--green-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  min-width: 0;
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease, filter 200ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card[hidden] {
  display: none;
}

.product-card.status-reserved {
  opacity: 0.6;
  filter: saturate(0.3);
}

.product-card.status-sold {
  filter: grayscale(1);
  opacity: 0.72;
}

.product-card.status-reserved:hover,
.product-card.status-sold:hover {
  transform: none;
  box-shadow: none;
}

.product-gallery {
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 0;
}

.gallery-stage,
.gallery-placeholder {
  position: relative;
  min-height: 290px;
  flex: 1 1 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #dedbcf;
}

.gallery-main {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #e5e1d7;
}

.gallery-zoom-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.gallery-zoom-trigger:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: -4px;
}

.gallery-zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 38, 31, 0.78);
  font-size: 0.7rem;
  font-weight: 750;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.gallery-zoom-trigger:hover .gallery-zoom-hint,
.gallery-zoom-trigger:focus-visible .gallery-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.gallery-stage.has-image-error {
  display: grid;
  place-items: center;
}

.gallery-stage.has-image-error::after {
  max-width: 170px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  content: "Фотография временно недоступна";
}

.gallery-stage.has-image-error .gallery-main {
  display: none;
}

.gallery-placeholder {
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(201, 223, 115, 0.45), transparent 60%),
    #e7e2d5;
}

.gallery-placeholder span {
  font-family: Georgia, serif;
  font-size: 3rem;
  font-style: italic;
}

.gallery-placeholder p {
  margin: 5px 0 0;
  font-size: 0.82rem;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 160ms ease, background 160ms ease;
}

.product-gallery:hover .gallery-arrow,
.gallery-arrow:focus-visible {
  opacity: 1;
}

.gallery-prev {
  left: 14px;
}

.gallery-next {
  right: 14px;
}

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.7rem;
  font-weight: 700;
}

.gallery-thumbs {
  display: flex;
  gap: 7px;
  padding: 8px 1px 0;
  overflow-x: auto;
}

.gallery-thumb {
  width: 54px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: none;
  cursor: pointer;
}

.gallery-thumb.is-active {
  border-color: var(--green);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-lightbox {
  width: min(96vw, 1600px);
  height: min(94vh, 1000px);
  height: min(94dvh, 1000px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: rgba(15, 24, 20, 0.97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.image-lightbox::backdrop {
  background: rgba(9, 13, 11, 0.84);
  backdrop-filter: blur(5px);
}

.image-lightbox-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 54px 80px 24px;
}

.image-lightbox figure {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.image-lightbox figure > img {
  width: auto;
  height: auto;
  max-width: min(calc(96vw - 180px), 1420px);
  max-height: min(calc(94vh - 130px), 870px);
  max-height: min(calc(94dvh - 130px), 870px);
  display: block;
  object-fit: contain;
}

.image-lightbox figcaption {
  min-width: 0;
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}

.image-lightbox figcaption strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-lightbox-close,
.image-lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.image-lightbox-close:hover,
.image-lightbox-arrow:hover,
.image-lightbox-close:focus-visible,
.image-lightbox-arrow:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.2);
}

.image-lightbox-close {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
}

.image-lightbox-arrow {
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.25rem;
  transform: translateY(-50%);
}

.image-lightbox-prev {
  left: 18px;
}

.image-lightbox-next {
  right: 18px;
}

.image-lightbox-arrow[hidden] {
  display: none;
}

.product-status {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--lime);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.status-reserved .product-status {
  color: #343434;
  background: #d2d2cd;
}

.status-sold .product-status {
  color: white;
  background: var(--red);
}

.sold-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  padding: 8px 16px;
  border: 4px double var(--red);
  color: var(--red);
  background: rgba(255, 253, 247, 0.83);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-11deg);
}

.status-sold .sold-stamp {
  display: block;
}

.product-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.product-category {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-title-row {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.product-title-row h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.12;
}

.product-price {
  flex: 0 0 auto;
  margin: 1px 0 0;
  color: var(--terracotta);
  font-size: 1.1rem;
  font-weight: 850;
  white-space: nowrap;
}

.product-description {
  min-height: 0;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.product-actions {
  display: block;
  margin-top: auto;
}

.details-button {
  display: none;
}

.reserve-button,
.submit-reservation {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.reserve-button:hover,
.submit-reservation:hover {
  background: var(--terracotta);
}

.reserve-button:active,
.submit-reservation:active {
  transform: scale(0.99);
}

.reserve-button:disabled,
.submit-reservation:disabled {
  color: #70736e;
  background: #dedfd9;
  cursor: not-allowed;
}

.product-grid.is-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-grid.is-compact .product-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: stretch;
  border-radius: 20px;
}

.product-grid.is-compact .product-card:hover {
  transform: translateY(-2px);
}

.product-grid.is-compact .product-gallery {
  min-width: 0;
  height: auto;
  display: block;
  align-self: start;
  padding: 8px;
}

.product-grid.is-compact .gallery-stage,
.product-grid.is-compact .gallery-placeholder {
  height: auto;
  min-height: 128px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.product-grid.is-compact .gallery-thumbs,
.product-grid.is-compact .gallery-arrow,
.product-grid.is-compact .gallery-counter,
.product-grid.is-compact .gallery-zoom-hint {
  display: none;
}

.product-grid.is-compact .product-status {
  top: 15px;
  left: 15px;
  padding: 5px 7px;
  font-size: 0.56rem;
}

.product-grid.is-compact .sold-stamp {
  padding: 5px 8px;
  border-width: 3px;
  font-size: 0.82rem;
}

.product-grid.is-compact .product-content {
  min-width: 0;
  align-self: center;
  padding: 16px 16px 16px 8px;
}

.product-grid.is-compact .product-category {
  margin-bottom: 6px;
  font-size: 0.58rem;
}

.product-grid.is-compact .product-title-row {
  gap: 10px;
}

.product-grid.is-compact .product-title-row h3 {
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
}

.product-grid.is-compact .product-price {
  font-size: 0.92rem;
}

.product-grid.is-compact .product-details {
  display: none;
}

.product-grid.is-compact .product-card.is-details-open {
  grid-template-columns: 180px minmax(0, 1fr);
}

.product-grid.is-compact .product-card.is-details-open .product-details {
  display: block;
}

.product-grid.is-compact .product-description {
  min-height: 0;
  margin: 12px 0;
  font-size: 0.8rem;
}

.product-grid.is-compact .product-actions {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.product-grid.is-compact .details-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--green-dark);
  border-radius: 12px;
  color: var(--green-dark);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.product-grid.is-compact .details-button:hover {
  color: white;
  background: var(--green-dark);
}

.product-grid.is-compact .reserve-button {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 0.76rem;
}

.empty-filter {
  padding: 70px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-filter button {
  border: 0;
  color: var(--green);
  background: none;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.contact-section {
  margin-bottom: 30px;
  padding: clamp(50px, 7vw, 100px);
  border-radius: 36px;
  color: var(--paper);
  background: var(--green-dark);
}

.contact-section .eyebrow,
.contact-section h2 em {
  color: var(--lime);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 58px;
}

.contact-links a,
.contact-links .contact-location {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-links a:hover {
  border-color: var(--lime);
  background: rgba(255, 255, 255, 0.06);
}

.contact-links span,
.contact-links strong {
  display: block;
  overflow-wrap: anywhere;
}

.contact-links span {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.contact-links strong {
  font-family: Georgia, serif;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 400;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 34px;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-underline-offset: 3px;
}

.reservation-dialog {
  width: min(620px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.contact-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.reservation-dialog::backdrop,
.contact-dialog::backdrop {
  background: rgba(18, 22, 19, 0.72);
  backdrop-filter: blur(5px);
}

.contact-dialog h2 {
  margin: 0;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 0.88;
}

.contact-dialog-links {
  display: grid;
  gap: 9px;
  margin-top: 34px;
}

.contact-dialog-links a,
.contact-dialog-links .contact-location {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.contact-dialog-links a:hover {
  border-color: var(--green);
  transform: translateX(3px);
}

.contact-dialog-links span,
.contact-dialog-links strong {
  display: block;
  overflow-wrap: anywhere;
}

.contact-dialog-links span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.7rem;
}

.contact-dialog-links strong {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.dialog-shell {
  position: relative;
  padding: clamp(28px, 6vw, 56px);
}

.dialog-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.reservation-dialog form {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.form-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.form-field small {
  color: var(--muted);
  font-weight: 500;
}

.pickup-only > span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.pickup-only > div {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 14px;
  border: 1px solid var(--green);
  border-radius: 12px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--green);
}

.pickup-only strong,
.pickup-only small {
  display: block;
}

.pickup-only small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.form-field input,
.form-field textarea,
.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: var(--card);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input:focus,
.form-field textarea:focus,
.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 91, 71, 0.12);
}

.form-field textarea,
.admin-field textarea {
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
}

.form-feedback.is-error,
.form-feedback.is-success {
  display: block;
}

.form-feedback.is-error {
  color: #7c211a;
  background: #f4d7d1;
}

.form-feedback.is-success {
  color: var(--green-dark);
  background: #dfe9c1;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

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

  .product-grid.is-compact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-support {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
    gap: 40px;
  }

  .contact-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .catalog,
  .contact-section,
  .site-footer {
    width: min(100% - 28px, 1440px);
  }

  .site-header {
    min-height: 70px;
  }

  .brand {
    font-size: 0.68rem;
  }

  .hero {
    padding: 20px 0 64px;
  }

  .hero-banner {
    aspect-ratio: 1.9 / 1;
    border-radius: 20px;
  }

  .hero-support {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 22px;
  }

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

  .hero-note > div {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 6px;
    align-items: baseline;
  }

  .hero-note p {
    font-size: 1.05rem;
  }

  .catalog {
    padding: 58px 0 78px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 18px;
  }

  .catalog-toolbar {
    display: block;
    margin-top: 30px;
  }

  .category-filters {
    margin-bottom: 14px;
  }

  .view-switcher {
    width: max-content;
  }

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

  .product-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .product-gallery {
    height: auto;
    display: block;
    padding-bottom: 0;
  }

  .gallery-stage,
  .gallery-placeholder {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .product-grid.is-compact .product-card,
  .product-grid.is-compact .product-card.is-details-open {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .product-grid.is-compact .gallery-stage,
  .product-grid.is-compact .gallery-placeholder {
    min-height: 104px;
  }

  .product-grid.is-compact .product-content {
    padding: 12px 12px 12px 4px;
  }

  .product-grid.is-compact .product-title-row {
    display: block;
  }

  .product-grid.is-compact .product-price {
    margin-top: 5px;
  }

  .product-grid.is-compact .product-actions {
    grid-template-columns: 1fr;
  }

  .gallery-arrow {
    opacity: 1;
  }

  .image-lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .image-lightbox-shell {
    padding: 58px 12px 84px;
  }

  .image-lightbox-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .image-lightbox-prev {
    left: calc(50% - 58px);
  }

  .image-lightbox-next {
    right: calc(50% - 58px);
  }

  .image-lightbox figure > img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 170px);
    max-height: calc(100dvh - 170px);
  }

  .image-lightbox figcaption {
    padding: 0 8px;
  }

  .product-description {
    min-height: 0;
  }

  .contact-section {
    padding: 42px 24px;
    border-radius: 26px;
  }

  .contact-links {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .site-footer {
    flex-direction: column;
  }

  .dialog-shell {
    padding-top: 60px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
