:root {
  --cream: #fff8ef;
  --paper: #ffffff;
  --rose: #d97f8f;
  --rose-dark: #9f4356;
  --sage: #6f8b74;
  --ink: #38272a;
  --muted: #806d6f;
  --line: #ead9d6;
  --shadow: 0 18px 48px rgba(63, 39, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Rubik", system-ui, sans-serif;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(255, 248, 239, 0.9);
  border-bottom: 1px solid rgba(234, 217, 214, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 54px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.05;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 0.94rem;
}

.nav a,
.ghost-login,
.secondary-action {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}

.nav a:hover,
.ghost-login:hover,
.secondary-action:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.ghost-login {
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 74px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #f3ded8;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(52, 30, 34, 0.66), rgba(52, 30, 34, 0.16) 58%, rgba(52, 30, 34, 0.04)),
    linear-gradient(0deg, rgba(52, 30, 34, 0.42), transparent 44%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(710px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 84px) clamp(42px, 8vw, 92px);
  color: #fff;
  animation: hero-enter 620ms ease-out both;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kicker,
.section-label {
  margin: 0 0 10px;
  color: var(--rose-dark);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker {
  color: #ffe8e1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 600;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 600;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.hero p {
  max-width: 590px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: "Rubik", system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  color: #fff;
  background: var(--rose-dark);
  border: 1px solid var(--rose-dark);
  box-shadow: 0 10px 28px rgba(117, 43, 57, 0.24);
}

.secondary-action {
  color: var(--rose-dark);
  border-color: var(--line);
}

.intro,
.gallery-section,
.request-section,
.site-footer {
  padding: clamp(46px, 8vw, 92px) clamp(18px, 5vw, 70px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  background: #fffdf8;
}

.intro p:last-child,
.request-copy p,
.admin-panel p {
  color: var(--muted);
  line-height: 1.7;
}

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

.gallery-grid,
.admin-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card,
.admin-thumb {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(63, 39, 42, 0.08);
}

.gallery-card img,
.admin-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 0.9rem;
}

.gallery-card figcaption strong,
.gallery-card figcaption span {
  display: block;
}

.gallery-card figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

.gallery-card figcaption span {
  margin-top: 5px;
  line-height: 1.45;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.request-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  background: #f7ece7;
}

.request-form,
.modal-shell,
.admin-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.full,
.form-action,
.form-status {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #dfc8c3;
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(217, 127, 143, 0.42);
  outline-offset: 2px;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--sage);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 0.92rem;
}

.modal {
  width: min(1120px, calc(100% - 28px));
  max-height: min(900px, calc(100vh - 28px));
  padding: 0;
  background: transparent;
  border: 0;
}

.modal::backdrop {
  background: rgba(56, 39, 42, 0.48);
  backdrop-filter: blur(5px);
}

.login-modal {
  width: min(430px, calc(100% - 28px));
}

.login-modal h2 {
  padding-right: 42px;
  font-size: clamp(2rem, 7vw, 2.6rem);
}

.modal-shell {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
}

.icon-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  color: var(--muted);
  background: #fff8ef;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.admin-shell {
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.88), rgba(255, 255, 255, 0.98) 190px),
    var(--paper);
  overflow: auto;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-right: 44px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(340px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.admin-panel {
  padding: clamp(18px, 3vw, 26px);
  box-shadow: none;
}

.admin-panel h3 {
  margin-bottom: 6px;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 16px 0;
  padding: 24px 18px;
  color: var(--rose-dark);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.9), rgba(255, 253, 248, 0.96));
  border: 1px dashed #d6ada7;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-box span,
.upload-box small {
  display: block;
}

.upload-box span {
  font-size: 1.05rem;
}

.upload-box small {
  margin-top: 6px;
  color: var(--muted);
}

.admin-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.admin-thumb {
  position: relative;
}

.admin-thumb button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  aspect-ratio: 1;
  color: #fff;
  background: rgba(56, 39, 42, 0.72);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.request-list {
  display: grid;
  gap: 12px;
  max-height: 560px;
  overflow: auto;
}

.request-item {
  padding: 16px;
  background:
    linear-gradient(180deg, #fffdf8, #fff8ef);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "Rubik", system-ui, sans-serif;
}

.request-item strong,
.request-item span {
  display: block;
}

.request-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.request-item p {
  margin: 10px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.site-footer {
  color: #fff8ef;
  background: #3f2b2f;
}

.footer-logo {
  width: 72px;
}

.site-footer .brand small,
.site-footer p {
  color: rgba(255, 248, 239, 0.76);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.6fr) minmax(160px, 0.6fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-main p {
  max-width: 520px;
  margin-bottom: 0;
  line-height: 1.7;
}

.footer-email {
  display: inline-block;
  margin-top: 14px;
  color: #fff8ef;
  text-underline-offset: 4px;
}

.footer-links,
.social-links {
  display: grid;
  gap: 10px;
  font-family: "Rubik", system-ui, sans-serif;
}

.footer-links a,
.social-links a {
  color: #fff8ef;
  text-decoration: none;
}

.footer-links a:hover,
.social-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 248, 239, 0.18);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 0.9rem;
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(255, 248, 239, 0.96)),
    var(--cream);
}

.legal-header {
  position: static;
}

.legal-main {
  padding: clamp(42px, 8vw, 92px) clamp(18px, 5vw, 70px);
}

.legal-hero {
  max-width: 860px;
  margin-bottom: clamp(28px, 6vw, 62px);
}

.legal-hero h1 {
  max-width: none;
  margin-bottom: 18px;
}

.legal-hero p:not(.section-label) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  line-height: 1.65;
}

.legal-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1060px;
}

.legal-content article {
  min-height: 190px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(63, 39, 42, 0.08);
}

.legal-content h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.7;
}

.cookie-banner {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 20;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(620px, calc(100% - 28px));
  padding: 18px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: grid;
  animation: cookie-pop 180ms ease-out;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Rubik", system-ui, sans-serif;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@keyframes cookie-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-overlay,
  .cookie-banner.is-visible {
    animation: none;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .site-header,
  .nav,
  .intro,
  .request-section,
  .admin-grid,
  .footer-main,
  .legal-content {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav a,
  .ghost-login {
    min-width: 0;
    padding-inline: 8px;
    text-align: center;
  }

  .hero {
    min-height: 650px;
  }

  .hero-overlay {
    width: min(710px, calc(100% - 36px));
    margin: 0 18px 44px;
    text-align: left;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .hero-overlay {
    margin-bottom: 34px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cookie-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .cookie-banner p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .cookie-banner .primary-action {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .gallery-grid,
  .admin-gallery {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3rem;
  }
}
