:root {
  --black: #050605;
  --panel: #10130d;
  --yellow: #ffe100;
  --green: #0aa957;
  --white: #fff;
  --muted: #c8cabd;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 225, 0, 0.14), transparent 30rem),
    linear-gradient(135deg, #030403, #10130d 55%, #030403);
}

body[data-page="admin"] .admin-shell {
  display: none;
}

body[data-page="admin"].is-authenticated .admin-shell {
  display: block;
}

body[data-page="admin"].is-authenticated .login-screen {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 74px;
  padding: 0 clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
}

.brand,
.header-button,
.sticky-cta,
.contact-actions a,
.cover-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6));
}

.brand strong {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-header nav {
  display: flex;
  gap: 1.1rem;
  color: #f3f1df;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.header-button,
.sticky-cta,
.contact-actions a,
.cover-content a {
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
}

.catalog-book {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 5.5rem;
}

.book-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 98px);
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: var(--shadow);
}

.cover {
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.cover-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 50% 42%, rgba(255, 225, 0, 0.18), transparent 22rem);
}

.cover-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(720px, 100%);
  padding: clamp(1.5rem, 5vw, 4rem);
}

.cover-logo {
  width: clamp(190px, 28vw, 330px);
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 1.3rem;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.8));
}

.cover-content p,
.page-title span {
  margin: 0 0 0.8rem;
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Anton, Impact, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.9;
}

.cover-content span {
  color: #f5f2df;
  font-weight: 800;
}

.cover-content a {
  margin-top: 1.5rem;
}

.service-page,
.gallery-page,
.contact-page {
  padding: clamp(1rem, 3vw, 2rem);
}

.page-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-title h2,
.contact-page h2 {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.catalog-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.48fr) minmax(0, 0.52fr);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.catalog-card figure {
  margin: 0;
  min-height: 330px;
  background: #0b0d0a;
}

.catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position, center);
}

.card-copy {
  display: grid;
  align-content: center;
  padding: 1rem;
}

.card-copy small {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.card-copy h3 {
  margin: 0.35rem 0 0.6rem;
  color: var(--white);
  font-size: 1.35rem;
}

.card-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.card-copy ul {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}

.card-copy li {
  color: #f4f2df;
  font-size: 0.9rem;
  font-weight: 800;
}

.card-copy li::before {
  content: "• ";
  color: var(--yellow);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.price-slot {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.35rem;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--black);
  text-align: center;
}

.price-slot span {
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-slot strong {
  font-size: 0.9rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.photo-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0d0a;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile span {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-page {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.contact-page img {
  width: min(280px, 65vw);
  margin-bottom: 1rem;
}

.contact-page p {
  color: var(--muted);
  font-weight: 800;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  width: min(900px, 100%);
  margin-top: 1rem;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 30;
  transform: translateX(-50%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.admin-shell {
  width: min(1120px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}

.login-card {
  display: grid;
  gap: 0.85rem;
  width: min(430px, 100%);
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: var(--shadow);
}

.login-card img {
  width: 150px;
  justify-self: center;
}

.login-card h1 {
  margin: 0;
  font-size: clamp(2.6rem, 12vw, 4.4rem);
  text-align: center;
}

.login-card label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 0.78rem;
}

.login-card button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
}

.login-error {
  min-height: 1.2rem;
  margin: 0;
  color: #ff8b8b;
  font-weight: 800;
  text-align: center;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
}

.admin-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.admin-header p:not(.small-label),
.admin-note {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.small-label {
  margin: 0 0 0.5rem;
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.admin-actions button,
.admin-actions a {
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
}

.admin-actions button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.admin-actions a {
  background: rgba(0, 0, 0, 0.4);
  color: var(--yellow);
}

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

.admin-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
}

.admin-card h2 {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

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

.admin-card label {
  display: grid;
  gap: 0.35rem;
  color: #f4f2df;
  font-weight: 800;
}

.admin-card input,
.admin-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 0.72rem;
}

.admin-services,
.admin-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-service-item,
.admin-gallery-item {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-price-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 920px) {
  .catalog-header nav {
    display: none;
  }

  .catalog-book {
    width: min(100% - 1rem, 1120px);
  }

  .catalog-services,
  .photo-grid,
  .contact-actions,
  .admin-grid,
  .admin-services,
  .admin-gallery,
  .admin-price-row {
    grid-template-columns: 1fr;
  }

  .book-page {
    min-height: auto;
  }

  .cover {
    min-height: calc(100svh - 88px);
  }

  .catalog-card {
    grid-template-columns: 1fr;
  }

  .catalog-card figure {
    min-height: 260px;
    max-height: 340px;
  }
}

@media (max-width: 560px) {
  .catalog-header {
    height: 66px;
    padding-inline: 0.75rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .header-button {
    min-height: 42px;
    padding-inline: 0.85rem;
  }

  .cover-logo {
    width: min(270px, 74vw);
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .service-page,
  .gallery-page,
  .contact-page {
    padding: 0.85rem;
  }

  .page-title {
    display: grid;
  }

  .catalog-card figure {
    min-height: 240px;
  }

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

  .admin-header {
    display: grid;
  }

  .sticky-cta {
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
  }
}
