:root {
  --paper: #fffdf9;
  --ivory: #f8f1e8;
  --blush: #ead2cb;
  --beige: #d8c6b2;
  --gold: #b99558;
  --ink: #2f2924;
  --muted: #75685f;
  --line: rgba(91, 70, 49, 0.16);
  --shadow: 0 24px 60px rgba(65, 43, 24, 0.13);
  --radius: 8px;
  --admin-width: min(760px, 42vw);
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.admin-open .site-header,
body.admin-open main,
body.admin-open .site-footer {
  margin-right: var(--admin-width);
}

.site-header,
main,
.site-footer {
  transition: margin-right 220ms ease;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(255, 253, 249, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-name {
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: #5e5148;
  font-size: 17px;
  font-weight: 700;
}

/* Wrapper for the auto-generated section links; its children act as direct
   flex items of .main-nav so they line up like the static links. */
.nav-sections {
  display: contents;
}

.main-nav a,
.nav-admin {
  position: relative;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 9px 0;
  transition: color 180ms ease, transform 180ms ease;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
}

.language-switcher button {
  min-width: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
}

.language-switcher button.active {
  background: var(--gold);
  color: #fff;
}

.main-nav a::after,
.nav-admin::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.nav-admin:hover,
.main-nav a:focus-visible,
.nav-admin:focus-visible {
  color: var(--ink);
  transform: scale(1.06);
}

.main-nav a:hover::after,
.nav-admin:hover::after,
.main-nav a:focus-visible::after,
.nav-admin:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 130px clamp(18px, 6vw, 80px) 80px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(255, 253, 249, 0.96) 0%, rgba(255, 253, 249, 0.76) 39%, rgba(255, 253, 249, 0.18) 100%);
}

.hero-brand-name {
  position: absolute;
  z-index: 1;
  top: clamp(130px, 18svh, 210px);
  left: clamp(18px, 6vw, 80px);
  max-width: min(760px, calc(100% - clamp(36px, 12vw, 160px)));
  margin: 0;
  color: rgba(176, 130, 61, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5.3vw, 82px);
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 10px 36px rgba(255, 253, 249, 0.86);
  pointer-events: none;
}

.hero-brand-name[data-layout="center"] {
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
}

.hero-brand-name[data-layout="right"] {
  right: clamp(18px, 6vw, 80px);
  left: auto;
  text-align: right;
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
  top: var(--hero-offset, 0);
}

.hero-content[data-layout="center"] {
  margin-inline: auto;
  text-align: center;
}

.hero-content[data-layout="right"] {
  margin-inline-start: auto;
  margin-inline-end: 0;
  text-align: right;
}

.hero-content[data-layout="center"] .hero-actions,
.hero-content[data-layout="right"] .hero-actions {
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 500;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5.8vw, 70px);
  font-weight: 500;
}

h3 {
  font-size: 20px;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: #5c5149;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-content h1 {
  font-size: var(--hero-title-size, clamp(42px, 7vw, 82px));
}

.hero-content p:not(.eyebrow) {
  font-size: var(--hero-text-size, clamp(17px, 2vw, 21px));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 16px 32px rgba(185, 149, 88, 0.25);
}

.button.secondary {
  background: rgba(255, 253, 249, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.section {
  padding: clamp(70px, 9vw, 118px) clamp(18px, 5vw, 64px);
}

.section-heading {
  width: min(960px, 100%);
  margin-bottom: 36px;
}

.section-heading.split {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: end;
}

.section-heading[data-layout="center"],
.section-heading[data-layout="right"] {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.section-heading[data-layout="right"] {
  justify-items: end;
  text-align: right;
}

.section-heading[data-layout="center"] > p,
.section-heading[data-layout="right"] > p {
  max-width: 640px;
}

.section-heading.split > p {
  margin: 0;
  color: var(--muted);
}

.advantages {
  background: var(--ivory);
  padding-top: clamp(34px, 4vw, 56px);
}

#advantagesHeading {
  width: min(960px, 100%);
}

#advantagesHeading[data-layout="left"] {
  margin-inline-end: auto;
  text-align: left;
}

#advantagesHeading[data-layout="center"] {
  margin-inline: auto;
  text-align: center;
}

#advantagesHeading[data-layout="right"] {
  margin-inline-start: auto;
  margin-inline-end: 0;
  text-align: right;
}
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1680px, 100%);
  margin-inline: auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.advantage-grid article {
  min-height: 240px;
  background: var(--paper);
  padding: 28px;
}

.advantage-grid span {
  color: var(--gold);
  font-weight: 700;
}

.advantage-grid h3 {
  margin-top: 34px;
}

.advantage-grid p {
  color: var(--muted);
}

#advantagesHeading h2 {
  font-size: var(--advantages-title-size, clamp(40px, 5.8vw, 70px));
}

.advantage-grid h3 {
  font-size: var(--advantage-card-title-size, 20px);
}

.advantage-grid p {
  font-size: var(--advantage-card-text-size, 16px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1680px, 100%);
  margin-inline: auto;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--radius);
  background: #ddd;
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 600ms ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 70px 22px 22px;
  color: #fff;
  background: linear-gradient(180deg, rgba(47, 41, 36, 0), rgba(47, 41, 36, 0.86));
}

.service-card-content p {
  margin: 10px 0 18px;
}

.services .section-heading h2 {
  font-size: var(--services-title-size, clamp(40px, 5.8vw, 70px));
}

.service-card-content h3 {
  font-size: var(--service-card-title-size, 20px);
}

.service-card-content p {
  font-size: var(--service-card-text-size, 16px);
}

.service-card-content a {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  padding: 10px 14px;
}

.featured {
  background: linear-gradient(180deg, var(--paper), var(--ivory));
}

.featured .section-heading h2 {
  font-size: var(--featured-title-size, clamp(40px, 5.8vw, 70px));
}

.featured .section-heading > p {
  font-size: var(--featured-text-size, 16px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1680px, 100%);
  margin-inline: auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  background: var(--ivory);
  cursor: zoom-in;
  padding: 0;
}

.gallery-item:nth-child(3n + 1) {
  aspect-ratio: 4 / 5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.92);
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  gap: clamp(28px, 5vw, 72px);
  background: var(--paper);
  justify-content: center;
  justify-items: center;
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
}

.contact-copy h2 {
  font-size: var(--contacts-title-size, clamp(40px, 5.8vw, 70px));
}

.contact-copy p:not(.eyebrow) {
  font-size: var(--contacts-text-size, 16px);
}

.contact-row {
  font-size: var(--contact-row-text-size, 16px);
}

.contact-copy {
  width: min(780px, 100%);
  text-align: center;
}

.contact-copy[data-layout="left"] {
  margin-inline-end: auto;
  text-align: left;
}

.contact-copy[data-layout="center"] {
  margin-inline: auto;
  text-align: center;
}

.contact-copy[data-layout="right"] {
  margin-inline-start: auto;
  margin-inline-end: 0;
  text-align: right;
}

.contact-copy[data-layout="center"] .social-links,
.contact-copy[data-layout="right"] .social-links {
  justify-content: center;
}

.custom-block {
  background: var(--paper);
}

.custom-block:nth-of-type(even) {
  background: var(--ivory);
}

.custom-block-inner {
  display: grid;
  width: min(1280px, 100%);
  margin-inline: auto;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.custom-block-inner > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.custom-block-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.custom-block-copy h2 {
  font-size: var(--custom-title-size, clamp(40px, 5.8vw, 70px));
}

.custom-block-copy p:not(.eyebrow) {
  font-size: var(--custom-text-size, clamp(17px, 2vw, 20px));
}

.custom-block-inner[data-layout="center"] {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.custom-block-inner[data-layout="right"] {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  text-align: right;
}

.custom-block-inner[data-layout="right"] > img {
  order: 2;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.contact-row span {
  flex: 0 0 auto;
  color: var(--muted);
}

.contact-row strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.contact-row a {
  color: var(--gold);
}

.contact-row a:hover,
.contact-row a:focus-visible {
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
}

.social-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--gold);
  font-weight: 700;
}

.login-box,
.admin-section {
  display: grid;
  gap: 16px;
}

.admin-login-dialog {
  position: fixed;
  top: 86px;
  right: clamp(16px, 4vw, 48px);
  left: auto;
  width: min(420px, calc(100vw - 28px));
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  padding: 28px;
  box-shadow: var(--shadow);
}

.admin-login-dialog::backdrop {
  background: rgba(47, 41, 36, 0.42);
}

.admin-login-dialog .login-box {
  position: relative;
}

.admin-login-dialog h2 {
  font-size: clamp(32px, 5vw, 44px);
}

.admin-login-dialog .icon-close {
  top: -10px;
  right: -10px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-page {
  display: grid;
  min-height: calc(100svh - 92px);
  align-items: start;
  background: var(--ivory);
  padding: clamp(118px, 13vw, 170px) clamp(18px, 5vw, 64px) clamp(56px, 8vw, 96px);
}

.legal-page-inner {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  width: min(1120px, 100%);
  margin-inline: auto;
}

.legal-heading {
  display: grid;
  gap: 10px;
  width: min(980px, 100%);
  margin-inline: auto;
  text-align: center;
}

.legal-heading h1 {
  font-size: clamp(42px, 6vw, 78px);
}

.legal-text {
  width: min(980px, 100%);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.84);
  color: var(--muted);
  box-shadow: 0 18px 48px rgba(65, 43, 24, 0.08);
  padding: clamp(22px, 4vw, 46px);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.78;
}

.legal-text p {
  margin: 0 0 20px;
}

.legal-text p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: #fff;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-link {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  padding: 8px 12px;
  transition: background 180ms ease, transform 180ms ease;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 50;
  display: grid;
  width: clamp(46px, 4vw, 62px);
  height: clamp(46px, 4vw, 62px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  box-shadow: 0 16px 36px rgba(65, 43, 24, 0.2);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--ink);
  box-shadow: 0 18px 42px rgba(65, 43, 24, 0.28);
  transform: translateY(-2px);
}

body.admin-open .back-to-top {
  right: calc(var(--admin-width) + clamp(16px, 3vw, 36px));
}

.service-page {
  background: var(--ivory);
}

.service-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.service-page-hero > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-page-hero p {
  color: var(--muted);
}

.service-page-hero h2 {
  font-size: var(--service-page-title-size, clamp(40px, 5.8vw, 70px));
}

.service-page-hero p:not(.eyebrow) {
  font-size: var(--service-page-text-size, 16px);
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  color: var(--gold);
  font-weight: 800;
}

.legal-page .back-link {
  margin-bottom: 0;
}

.empty-gallery {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  padding: 28px;
}

.icon-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.9);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(24, 20, 17, 0.9);
  padding: 70px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 84svh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox button {
  position: absolute;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 34px;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.admin-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  display: none;
  width: var(--admin-width);
  justify-content: flex-end;
  background: transparent;
  pointer-events: none;
}

.admin-panel.open {
  display: flex;
}

.admin-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 42px rgba(65, 43, 24, 0.12);
  pointer-events: auto;
  padding: 28px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.admin-logout {
  min-height: 42px;
  padding: 9px 14px;
}

.admin-top .icon-close {
  position: static;
  flex: 0 0 auto;
}

.admin-back-to-top {
  position: sticky;
  top: calc(100% - 58px);
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  box-shadow: 0 14px 30px rgba(65, 43, 24, 0.18);
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.admin-back-to-top:hover,
.admin-back-to-top:focus-visible {
  background: var(--ink);
  transform: translateY(-2px);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tabs button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  padding: 9px 12px;
}

.admin-tabs button.active {
  background: var(--ink);
  color: #fff;
}

.admin-section {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.admin-section.active {
  display: grid;
}

.admin-help-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.72);
  padding: 14px;
}

.admin-help-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.admin-help-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.block-order-list {
  display: grid;
  gap: 8px;
}

.block-order-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  user-select: none;
}

.block-drag-handle {
  color: var(--gold);
  cursor: grab;
  font-size: 18px;
  line-height: 1;
  touch-action: none;
  user-select: none;
}

.block-order-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.block-order-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.block-order-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.block-order-actions {
  display: flex;
  gap: 6px;
}

.block-order-actions button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.block-order-item.dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.custom-block-admin,
.custom-block-admin-list {
  display: grid;
  gap: 12px;
}

.typography-admin {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 18px;
}

.typography-admin-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.typography-admin-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.typography-admin-list {
  display: grid;
  gap: 12px;
}

.typography-admin-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  padding: 12px;
}

.typography-admin-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

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

.typography-admin-fields input {
  padding: 10px 11px;
}

.custom-block-admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.custom-block-admin-card summary {
  cursor: pointer;
  font-weight: 800;
}

.service-admin-list {
  display: grid;
  gap: 16px;
}

.service-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.advantage-admin-list {
  display: grid;
  gap: 14px;
}

.advantage-admin-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.advantage-admin-card h3 {
  font-size: 17px;
}

.service-admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.service-admin-card summary {
  cursor: pointer;
  font-weight: 800;
}

.main-image-preview {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-image-preview img {
  width: min(280px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
}

.brand-logo-preview img {
  width: 116px;
  height: 116px;
  aspect-ratio: 1;
  object-fit: contain;
}

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

.admin-thumb {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
}

.admin-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.thumb-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thumb-actions button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  padding: 7px;
}

.danger-button {
  justify-self: start;
  border: 1px solid rgba(142, 48, 48, 0.28);
  border-radius: var(--radius);
  background: #fff5f3;
  color: #8e3030;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.danger-button:hover {
  background: #ffe8e3;
}

.delete-dialog {
  width: min(560px, calc(100vw - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 30px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.delete-dialog::backdrop {
  background: rgba(47, 41, 36, 0.48);
  backdrop-filter: blur(5px);
}

.delete-step {
  display: none;
}

.delete-step.active {
  display: grid;
  gap: 16px;
}

.delete-step > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.delete-service-list {
  display: grid;
  gap: 10px;
  max-height: 52svh;
  overflow: auto;
  padding-right: 4px;
}

.delete-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  padding: 13px 14px;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease;
}

.delete-service-item:hover {
  border-color: rgba(142, 48, 48, 0.34);
  transform: translateY(-1px);
}

.delete-service-item span {
  font-weight: 800;
}

.delete-service-item small {
  color: var(--muted);
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.admin-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1100px) {
  .advantage-grid,
  .service-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  body {
    font-size: 18px;
  }

  .site-header {
    padding-inline: clamp(64px, 6vw, 128px);
  }

  .main-nav {
    font-size: 18px;
  }

  .hero {
    min-height: 94svh;
    padding-inline: clamp(80px, 7vw, 150px);
    padding-bottom: clamp(90px, 8vw, 150px);
  }

  .hero-content {
    width: min(860px, 100%);
  }

  h1 {
    font-size: clamp(76px, 5.2vw, 112px);
  }

  h2 {
    font-size: clamp(62px, 4.2vw, 88px);
  }

  .section {
    padding-inline: clamp(80px, 7vw, 150px);
  }

  .service-card,
  .service-card img {
    min-height: 430px;
  }

  .gallery-grid {
    gap: 18px;
  }
}

@media (max-width: 820px) {
  body.admin-open .site-header,
  body.admin-open main,
  body.admin-open .site-footer {
    margin-right: 0;
  }

  .admin-panel {
    inset: 0;
    width: 100%;
    background: rgba(47, 41, 36, 0.38);
    pointer-events: auto;
  }

  body.admin-open .back-to-top {
    right: 14px;
  }

  .admin-shell {
    border-left: 0;
    box-shadow: none;
  }

  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 2px;
    font-size: 15px;
    scrollbar-width: thin;
  }

  .hero {
    min-height: 78svh;
    align-items: center;
    padding: 70px 18px 58px;
  }

  .hero-brand-name {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    max-width: 100%;
    margin-bottom: 28px;
    font-size: clamp(30px, 9vw, 54px);
  }

  .hero-brand-name[data-layout="center"],
  .hero-brand-name[data-layout="right"] {
    left: auto;
    right: auto;
    text-align: left;
    transform: none;
  }

  .hero-content {
    width: min(640px, 100%);
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.88), rgba(255, 253, 249, 0.72));
  }

  .section-heading.split,
  .contacts,
  .service-page-hero,
  .custom-block-inner,
  .custom-block-inner[data-layout="right"] {
    grid-template-columns: 1fr;
  }

  .custom-block-inner[data-layout="right"] > img {
    order: 0;
  }

  .service-page-hero > img {
    aspect-ratio: 16 / 10;
  }

  .legal-page {
    min-height: auto;
    padding-top: 92px;
  }

  .admin-shell {
    width: 100%;
    padding: 20px;
  }

  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-tabs button {
    flex: 0 0 auto;
  }

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

  .layout-control-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-login-dialog {
    top: 14px;
    right: 14px;
    width: calc(100vw - 28px);
    padding: 22px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .main-nav a,
  .nav-admin {
    padding-block: 7px;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 48px;
  }

  .hero-content {
    top: clamp(-2.5cm, var(--hero-offset, 0cm), 0cm);
  }

  .eyebrow {
    font-size: 12px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  h2 {
    font-size: clamp(31px, 10vw, 40px);
  }

  .legal-heading {
    text-align: left;
  }

  .legal-heading h1 {
    font-size: 36px;
  }

  .legal-text {
    padding: 20px;
    font-size: 15px;
    line-height: 1.68;
  }

  .hero-content p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-actions,
  .admin-actions,
  .confirm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .typography-admin-fields {
    grid-template-columns: 1fr;
  }

  .layout-control-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .danger-button {
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  .section {
    padding: 54px 16px;
  }

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

  .advantage-grid article {
    min-height: auto;
    padding: 22px;
  }

  .service-card,
  .service-card img {
    min-height: 310px;
  }

  .contact-row {
    display: grid;
    gap: 4px;
  }

  .custom-block-inner,
  .custom-block-inner[data-layout="right"] {
    text-align: left;
  }

  .contact-row strong {
    text-align: left;
  }

  .lightbox {
    padding: 64px 18px;
  }

  .lightbox-prev,
  .lightbox-next {
    bottom: 18px;
    top: auto;
  }

  .delete-dialog {
    padding: 22px;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-inline: 14px;
  }

  .main-nav {
    gap: 14px;
    font-size: 14px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 30px;
  }
}
