:root {
  --ol: #2b331e; --ol2: #4a5a33; --ol3: #7d8a63; --cr: #f6f4ee; --ln: #e4e1d6; --soft: #eef1e4;
  --mu: #6b6f60; --tx: #1d2114; --bad: #a4471f; --glass: rgba(255, 255, 255, .94);
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: Inter, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: #fff; color: var(--tx); font-family: var(--sans); font-size: 15px; }
body { min-height: 100vh; overscroll-behavior-y: none; }
#fon { position: fixed; inset: 0; background: #fff url(img/fon.jpg) center 40% / cover no-repeat; z-index: -2; }
#fon::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .5); }
#ekran { padding: 12px 12px calc(96px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.skryt { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--tx); }

.zagruzka { display: flex; justify-content: center; padding-top: 18vh; }
.zagruzka img { width: 140px; opacity: .85; animation: dyh 1.6s ease-in-out infinite; }
@keyframes dyh { 50% { opacity: .4; } }

.glass { background: var(--glass); border: 1px solid rgba(43, 51, 30, .08); border-radius: 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.shapka { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 10px; }
.shapka h1 { font-family: var(--serif); font-size: 28px; color: var(--ol); font-weight: 700; letter-spacing: .02em; }
.shapka .ssylki { display: flex; gap: 6px; }
.ssylka { font-size: 13px; padding: 7px 11px; border-radius: 18px; background: var(--glass); border: 1px solid var(--ln); color: var(--ol); font-weight: 600; }

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 10px; padding: 0 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; font-size: 13.5px; padding: 8px 13px; border-radius: 20px; background: var(--glass); border: 1px solid var(--ln); color: #3a3f30; font-weight: 500; }
.tab.on { background: var(--ol); color: #fff; border-color: var(--ol); }
.tab.pov.on { background: var(--ol2); border-color: var(--ol2); }

.cdesc { padding: 11px 13px; margin-bottom: 10px; font-size: 13.5px; color: #4b5040; line-height: 1.45; }
.cdesc b { display: block; font-family: var(--serif); font-size: 23px; color: var(--ol); line-height: 1.1; margin-bottom: 2px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { padding: 8px; display: flex; flex-direction: column; text-align: left; }
.card .ph { width: 100%; aspect-ratio: 1; border-radius: 11px; background: #fff center / cover no-repeat; margin-bottom: 7px; }
.card .n { font-size: 13.5px; font-weight: 600; line-height: 1.25; min-height: 34px; color: #20251a; }
.card .p { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--mu); }
.card .p b { font-size: 14px; color: var(--tx); }
.plus { width: 30px; height: 30px; border-radius: 50%; background: var(--ol); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; line-height: 1; flex: 0 0 30px; }
.card.na .ph { filter: grayscale(.9); opacity: .55; }
.card.na .n { color: #9a9d92; }
.badge { display: inline-block; font-size: 11.5px; padding: 3px 8px; border-radius: 8px; background: #ece9df; color: #6b6450; font-weight: 600; }
.pusto { text-align: center; padding: 30px 16px; color: var(--mu); font-size: 14px; line-height: 1.5; }

/* товар */
.galereya { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; background: #fff; margin: 0 -2px; }
.galereya::-webkit-scrollbar { display: none; }
.galereya div { flex: 0 0 100%; aspect-ratio: 1 / .9; scroll-snap-align: center; background: #fff center / contain no-repeat; }
.dots { display: flex; justify-content: center; gap: 5px; margin: 8px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #c9c6ba; transition: width .2s; }
.dots i.on { background: var(--ol); width: 16px; }
.pb { padding: 14px; margin-top: 10px; }
.pn { font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1.05; color: var(--ol); }
.ps { font-size: 14px; color: #3f4435; line-height: 1.5; margin: 8px 0 10px; }
.ppg { font-size: 13px; color: var(--mu); margin-bottom: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.chip { font-size: 14px; padding: 9px 13px; border-radius: 11px; border: 1px solid var(--ln); background: #fff; font-weight: 500; color: #30352a; }
.chip.on { background: var(--ol); color: #fff; border-color: var(--ol); }
.chip.alt { border: 1.5px dashed var(--ol3); color: var(--ol); }
.chip.alt.on { border-style: solid; color: #fff; }
.svoj { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; }
.svoj input { width: 120px; }
.itogo { background: var(--soft); border-radius: 12px; padding: 10px 12px; margin: 8px 0 4px; font-size: 14px; }
.itogo b { font-size: 16px; }
.kol { display: inline-flex; align-items: center; border: 1px solid var(--ln); border-radius: 11px; background: #fff; overflow: hidden; }
.kol button { width: 38px; height: 36px; font-size: 19px; color: var(--ol); }
.kol span { min-width: 30px; text-align: center; font-weight: 600; }
details.rub { border-top: 1px solid var(--ln); }
details.rub summary { list-style: none; padding: 12px 0; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; color: #30352a; }
details.rub summary::-webkit-details-marker { display: none; }
details.rub summary::after { content: "⌄"; color: var(--mu); }
details.rub[open] summary::after { content: "⌃"; }
details.rub p { font-size: 13.5px; line-height: 1.55; color: #3f4435; padding-bottom: 12px; white-space: pre-line; }

/* корзина, формы */
.row { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 8px; }
.row .th { width: 54px; height: 54px; border-radius: 10px; background: #fff center / cover; flex: 0 0 54px; }
.row .info { flex: 1; min-width: 0; }
.row .nm { font-size: 14px; font-weight: 600; line-height: 1.25; }
.row .sub { font-size: 12.5px; color: var(--mu); margin-top: 3px; }
.row .pr { font-size: 14.5px; font-weight: 700; color: var(--ol); white-space: nowrap; }
.tot { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; padding: 12px 14px; }
.note { font-size: 12.5px; color: var(--mu); line-height: 1.45; padding: 8px 4px; }
.forma { padding: 14px; }
.fld { margin-bottom: 12px; }
.fld label, .lbl { display: block; font-size: 11.5px; color: var(--mu); margin-bottom: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.fld input, .fld textarea, .fld select, .vv { width: 100%; background: #fff; border: 1px solid var(--ln); border-radius: 11px; padding: 11px 12px; font-size: 15px; }
.fld textarea { min-height: 80px; resize: vertical; line-height: 1.45; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: 2px solid var(--ol3); border-color: transparent; }
.tel { display: flex; gap: 8px; }
.tel input { flex: 1; }
.knopka { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 11px; background: var(--soft); color: var(--ol); font-weight: 600; font-size: 14px; white-space: nowrap; }
.knopka.tem { background: var(--ol); color: #fff; }
.knopka.opas { background: #f6e7df; color: var(--bad); }
.knopka:disabled { opacity: .5; }
h2 { font-family: var(--serif); font-size: 25px; color: var(--ol); font-weight: 700; margin: 4px 2px 10px; }
.mb { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 50px; border-radius: 13px; background: var(--ol); color: #fff; font-weight: 600; font-size: 15.5px; z-index: 10; box-shadow: 0 6px 16px rgba(43, 51, 30, .3); max-width: 616px; margin: 0 auto; }
.mb:disabled { background: #a5a99b; }
.toast { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 20; background: #2b2f25; color: #fff; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); max-width: 616px; margin: 0 auto; }

/* успех и заказы */
.okc { width: 74px; height: 74px; border-radius: 50%; background: var(--ol); color: #fff; font-size: 38px; display: flex; align-items: center; justify-content: center; margin: 18px auto 12px; }
.center { text-align: center; }
.big { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--ol); }
.tl { padding: 12px 6px 4px; }
.st { display: flex; gap: 10px; position: relative; padding-bottom: 13px; }
.st:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 19px; bottom: 0; width: 2px; background: var(--ln); }
.st .dt { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ln); background: #fff; flex: 0 0 18px; z-index: 1; }
.st.done .dt { background: var(--ol); border-color: var(--ol); }
.st.otm .dt { background: var(--bad); border-color: var(--bad); }
.st b { font-size: 14px; display: block; }
.st span { font-size: 12.5px; color: var(--mu); }
.zk { padding: 13px 14px; margin-bottom: 10px; }
.zk .verh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.zk .verh b { font-size: 15.5px; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; background: var(--soft); color: var(--ol); }
.pill.fin { background: var(--ol); color: #fff; }
.pill.otm { background: #f6e7df; color: var(--bad); }
.zk ul { list-style: none; font-size: 13px; color: #3f4435; line-height: 1.5; margin: 4px 0; }

/* управление */
.urow { display: flex; align-items: center; gap: 9px; padding: 9px 10px; margin-bottom: 7px; }
.urow .th { width: 46px; height: 46px; border-radius: 9px; background: #f1f0ea center / cover; flex: 0 0 46px; }
.urow .info { flex: 1; min-width: 0; }
.urow .nm { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.urow .sub { font-size: 12px; color: var(--mu); margin-top: 2px; }
.urow .sub.bad { color: var(--bad); }
.strelki { display: flex; flex-direction: column; }
.strelki button { width: 28px; height: 22px; color: var(--ol3); font-size: 13px; }
.toggle { width: 44px; height: 26px; border-radius: 13px; background: #ccc; position: relative; flex: 0 0 44px; transition: background .15s; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle.on { background: var(--ol); }
.toggle.on::after { left: 21px; }
.radio { display: flex; gap: 6px; }
.dvoe { display: flex; gap: 8px; }
.dvoe > * { flex: 1; }
.rubr { border: 1px solid var(--ln); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: #fbfaf6; }
.rubr .dvoe { margin-bottom: 6px; align-items: center; }
.rubr .dvoe input { flex: 1; }
.rubr .dvoe button { flex: 0 0 auto; }
.rubr textarea { width: 100%; min-height: 70px; border: 1px solid var(--ln); border-radius: 10px; padding: 9px 10px; font-size: 14px; line-height: 1.45; resize: vertical; }
.rubr input { border: 1px solid var(--ln); border-radius: 10px; padding: 9px 10px; font-size: 14px; }
.fotos { display: flex; gap: 8px; flex-wrap: wrap; }
.foto { width: 76px; position: relative; }
.foto .im { width: 76px; height: 76px; border-radius: 10px; background: #fff center / cover; border: 1px solid var(--ln); }
.foto .upr { display: flex; justify-content: space-between; margin-top: 3px; }
.foto .upr button { font-size: 14px; color: var(--ol3); padding: 2px 5px; }
.foto .obl { position: absolute; top: 4px; left: 4px; font-size: 10px; background: var(--ol); color: #fff; padding: 2px 5px; border-radius: 6px; }
.foto.dob { height: 76px; border: 1.5px dashed var(--ol3); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--ol3); background: #fff; }
.foto.dob input { position: absolute; inset: 0; opacity: 0; }
.galki { display: flex; flex-wrap: wrap; gap: 6px; }
.knopki { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 30; overflow-y: auto; padding: 12px; }
.modal .vnutri { max-width: 616px; margin: 0 auto; background: #fff url(img/fon.jpg) center 40% / cover; border-radius: 18px; padding: 12px; position: relative; }
.modal .zakryt { position: sticky; top: 0; float: right; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: var(--ol); color: #fff; font-size: 18px; }
