:root {
  --sage: #87977b;
  --dark: #526247;
  --gold: #c8a24a;
  --cream: #fffdf8;
  --line: #e3decf;
  --ink: #384033;
  --muted: #686e61;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Georgia, serif; }
img { max-width: 100%; display: block; }

/* Header */
header { position: sticky; top: 0; background: #fffdf8ed; backdrop-filter: blur(6px); border-bottom: 1px solid #ded9ca; z-index: 3; }
.nav { max-width: 1120px; margin: auto; padding: 12px 22px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--dark); font-weight: bold; font-size: 20px; text-decoration: none; }
.brand img { width: 58px; height: 58px; border-radius: 50%; }
nav a { color: var(--dark); margin-left: 18px; text-decoration: none; }
nav a:hover { color: var(--gold); }

/* Hero */
.hero { max-width: 1120px; margin: auto; padding: 62px 22px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 45px; align-items: center; }
.eyebrow { color: var(--gold); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: bold; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: .95; color: var(--dark); margin: 12px 0 20px; }
h1 em { color: var(--gold); font-weight: normal; }
.hero p { font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-card, .panel, .product { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: 0 12px 30px #50483112; }
.hero-card { text-align: center; }
.hero-card img { width: min(100%, 360px); margin: 0 auto; }
.cross { color: var(--gold); font-size: 28px; }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 14px 23px; cursor: pointer; font: inherit; font-weight: bold; background: var(--dark); color: white; text-decoration: none; transition: background .2s, transform .1s; }
.btn:hover { background: #45543b; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible, nav a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.secondary { background: white; border: 1px solid #c9c3b3; color: var(--dark); }
.secondary:hover { background: #f6f4ec; }
.btn-block { width: 100%; margin-top: 18px; }

/* Sections */
section { max-width: 1120px; margin: auto; padding: 54px 22px; }
.section-head { text-align: center; margin-bottom: 30px; }
h2 { font-size: 36px; color: var(--dark); margin: 8px 0; }
h3 { color: var(--dark); }
.section-head p { color: var(--muted); }

/* Gallery */
.gallery { columns: 3 260px; column-gap: 16px; margin-bottom: 46px; }
.gallery-item { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: white; cursor: zoom-in; break-inside: avoid; box-shadow: 0 12px 30px #50483112; }
.gallery-item img { width: 100%; height: auto; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.menu-head h3 { font-size: 26px; margin: 0 0 6px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: #2b3324e6; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 18px; box-shadow: 0 20px 50px #0006; }
.lb-btn { position: fixed; border: 0; border-radius: 50%; width: 46px; height: 46px; background: #fffdf8; color: var(--dark); font: inherit; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px #0004; }
.lb-btn:hover { background: var(--gold); color: white; }
.lb-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* Menu */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product .icon { height: 110px; background: #eef0e7; border-radius: 18px; display: grid; place-items: center; font-size: 54px; }
.product h3 { font-size: 22px; }
.price { color: var(--gold); font-weight: bold; font-size: 18px; }
.product p { line-height: 1.6; color: #676c61; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); font-weight: bold; }

/* About */
.about { max-width: none; background: var(--dark); color: white; text-align: center; }
.about-inner { max-width: 900px; margin: auto; padding: 20px; }
.about h2 { color: white; }
.about p { font-size: 18px; line-height: 1.8; }

/* Order */
.order-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.summary { position: sticky; top: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
label { display: block; font-weight: bold; color: var(--dark); font-size: 13px; margin: 14px 0 7px; }
label .opt { font-weight: normal; color: #8a8e83; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #d7d1c0; border-radius: 12px; background: #fffdf9; font: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage); border-color: var(--sage); }
textarea { min-height: 100px; resize: vertical; }
input[type="file"] { padding: 10px; cursor: pointer; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--sage); color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.field-hint { margin: 6px 0 0; font-size: 12px; color: #8a8e83; }
.hidden-field { display: none; }

.back-link { display: inline-block; margin-bottom: 10px; color: var(--dark); text-decoration: none; font-weight: bold; font-size: 14px; }
.back-link:hover { color: var(--gold); }
.back-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.summary-item { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #ece8dc; }
.summary-item .icon { flex: none; width: 58px; height: 58px; background: #eef0e7; border-radius: 16px; display: grid; place-items: center; font-size: 30px; }
.summary-item small { display: block; color: var(--gold); font-weight: bold; margin-top: 3px; }
.summary-line { display: flex; justify-content: space-between; padding: 13px 0; color: var(--muted); }
.switch a { color: var(--dark); font-weight: bold; }
.total { display: flex; justify-content: space-between; font-size: 22px; font-weight: bold; color: var(--dark); border-top: 1px solid #ded9ca; padding-top: 18px; margin-top: 12px; }
.fine { font-size: 12px; color: #777; line-height: 1.5; }

/* Confirmation */
.confirm { text-align: center; padding: 40px 26px; }
.confirm .cross { font-size: 40px; }
.confirm p { line-height: 1.7; color: var(--muted); }

footer { text-align: center; padding: 30px; color: #74786e; font-size: 13px; }

.toast { position: fixed; right: 18px; bottom: 18px; background: var(--dark); color: white; padding: 15px; border-radius: 14px; display: none; max-width: calc(100vw - 36px); box-shadow: 0 10px 25px #0003; z-index: 5; }
.toast.show { display: block; }

@media (max-width: 800px) {
  .hero, .order-wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .products { grid-template-columns: 1fr; }
  .summary { position: static; }
  .nav { padding: 10px; }
  .brand { font-size: 15px; }
  .brand img { width: 46px; height: 46px; }
  nav a { margin-left: 9px; font-size: 12px; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}
