/* Druskos Rūsys — vyno rūsys ir degustacijos.
   Sandara — ../bendra/pasakotojas.css; čia tik šriftai ir spalvos.

   Tamsi ir šilta kaip rūsys su žvake: mūro tamsa, vyno bordo, senas auksas.
   Cormorant Garamond — klasikinė vyno etikečių antiqua. */

@font-face { font-family: 'Brygada 1918'; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Brygada1918-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Brygada 1918'; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Brygada1918-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../../assets/fonts/SchibstedGrotesk-400-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../../assets/fonts/SchibstedGrotesk-400-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;

  --fonas: #120d0c;
  --fonas-2: #1b1413;
  --tekstas: #efe4d6;          /* ant --fonas ≈ 16,0:1 */
  --tekstas-2: #a8988a;        /* ≈ 7,3:1 */
  --tekstas-3: #6e6158;        /* tik dekoracijai */
  --akcentas: #d2a86a;         /* senas auksas, ≈ 9,4:1 */
  --ant-akcento: #120d0c;
  --bordo: #8c1f35;
  --linija: rgba(239, 228, 214, .12);
  --virsus-fonas: rgba(18, 13, 12, .8);
  --milzinas-sp: 239, 228, 214;

  --serif: 'Brygada 1918', Garamond, Georgia, serif;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

h2, h3 { font-weight: 600; }
h2 { letter-spacing: -.01em; line-height: .95; }
.zenklas__vardas, .apacia__vardas { font-weight: 600; }
.milzinas { font-weight: 600; letter-spacing: -.02em; }

.zenklas__skliautas { fill: none; stroke: var(--akcentas); stroke-width: 2.2; stroke-linecap: round; }
.zenklas__lasas { fill: var(--bordo); }

/* Statinis butelis (be WebGL / be JS). */
.a__butelis { fill: #183526; }
.a__kapsule { fill: #6a1426; }
.a__etikete { fill: #ece2cf; }


/* ================= Savas maketas =================
   Skliautuotas rūsys prie žvakės: fone — plytų mūras, kuris centre ištirpsta
   tamsoje, viršuje kairėje — šilta žvakės dėmė. Pradžia simetriška: butelis
   stovi aukso arkoje, tekstas — centre po juo. Tekstai užrašyti ant vyno
   etikečių su dvigubu rėmeliu, degustacijos — arkinėse kortelėse, o
   pabaigoje — ilgasis penktadienio stalas su laisvomis vietomis. */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='64'%3E%3Crect x='1' y='1' width='58' height='30' fill='rgb(239,228,214)' fill-opacity='.025'/%3E%3Crect x='31' y='33' width='58' height='30' fill='rgb(239,228,214)' fill-opacity='.04'/%3E%3Cpath d='M0 0.5H120M0 32.5H120M0.5 0V32M60.5 0V32M30.5 32V64M90.5 32V64' stroke='rgb(239,228,214)' stroke-opacity='.09' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-size: 120px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 30%, #000 85%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 30%, #000 85%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 45% 40% at 12% 8%, rgba(255, 176, 92, .18), transparent 70%);
  animation: zvake 5s ease-in-out infinite alternate;
}
@keyframes zvake { 0% { opacity: .85; } 40% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: 1; } }

/* ---------- pradžia: butelis arkoje ---------- */
.ekranas { min-height: calc(100svh - 52px); align-items: center; text-align: center; }
.arka {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 92px;
  bottom: 0;
  width: min(54vh, 48vw);
  transform: translateX(-50%);
  border: 1px solid rgba(210, 168, 106, .55);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(140, 31, 53, .22), transparent 75%);
}
.arka::before {
  content: "";
  position: absolute;
  inset: 12px 12px 0;
  border: 1px solid rgba(210, 168, 106, .25);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.ekranas__apacia { justify-content: center; }
.ekranas .ekranas__tekstas { max-width: 640px; }
.antraste {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 5.4vw, 92px);
  line-height: .95;
  letter-spacing: -.015em;
}
.antraste em { display: block; font-style: italic; color: var(--akcentas); }
.ekranas__apie { margin: 0; color: var(--tekstas-2); font-size: 18px; }

/* ---------- vyno etiketės ---------- */
.sekcija__tekstas { color: #2a1a14; text-align: center; }
.sekcija__tekstas::before {
  inset: -46px -50px;
  background: radial-gradient(ellipse at 50% 0%, #f6ecdd, #e9dcc7);
  -webkit-mask-image: none;
  mask-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 10px transparent,
    inset 0 0 0 11px rgba(140, 31, 53, .55),
    inset 0 0 0 15px transparent,
    inset 0 0 0 16px rgba(176, 138, 78, .7),
    0 30px 60px -24px rgba(0, 0, 0, .85);
}
.sekcija__tekstas .nr { color: var(--bordo); }
/* Ornamentas po numeriu — linija su rombu viduryje. */
.sekcija__tekstas .nr::after {
  content: "";
  display: block;
  width: 120px;
  height: 9px;
  margin: 14px auto 0;
  background:
    linear-gradient(45deg, transparent 35%, #b08a4e 35% 65%, transparent 65%) center / 9px 9px no-repeat,
    linear-gradient(#b08a4e, #b08a4e) left center / 52px 1px no-repeat,
    linear-gradient(#b08a4e, #b08a4e) right center / 52px 1px no-repeat;
}
.sekcija__tekstas h2 { color: #2a1a14; }
.sekcija__tekstas .zodziai { margin-left: auto; margin-right: auto; color: #2a1a14; }
.sekcija__tekstas .skaicius { color: var(--bordo); }
.sekcija__tekstas .trumpas { color: #5e4a3e; }
/* Degustacijos ir pabaiga — be etiketės: ten savos kortelės. */
#degustacijos .sekcija__tekstas, #rezervacija .sekcija__tekstas { color: var(--tekstas); }
#degustacijos .sekcija__tekstas::before { display: none; }
/* Pabaigoje butelis stovi centre, po tekstu — todėl tamsus pagrindas. */
#rezervacija .sekcija__tekstas::before { inset: -40px -44px; background: rgba(18, 13, 12, .9); border: 1px solid rgba(210, 168, 106, .3); border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
#degustacijos .sekcija__tekstas h2, #rezervacija .sekcija__tekstas h2 { color: var(--tekstas); }
#degustacijos .nr, #rezervacija .nr { color: var(--akcentas); }

/* ---------- matuokliai ---------- */
.matuokliai { display: flex; justify-content: center; gap: 28px; margin-top: 28px; }
.matuoklis {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 225deg, var(--bordo) 0 var(--k), rgba(42, 26, 20, .12) var(--k) 270deg, transparent 270deg);
}
.matuoklis::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #f1e6d4; }
.matuoklis > * { position: relative; }
.matuoklis b { font: 500 34px/1 var(--serif); color: #2a1a14; }
.matuoklis span { font: 500 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6e5a4e; margin-top: 4px; }
/* 14 °C skalėje 0–25, 70 % skalėje 0–100; lankas — 270°. */
.matuoklis--t { --k: 151deg; }
.matuoklis--d { --k: 189deg; }

/* ---------- arkinės kortelės ---------- */
.arkos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0 0; padding: 0; }
.arkos li {
  display: flex;
  flex-direction: column;
  padding: 44px 18px 22px;
  border: 1px solid rgba(210, 168, 106, .45);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(140, 31, 53, .28), rgba(18, 13, 12, .92) 60%);
  text-align: center;
}
.arkos__kiek { margin: 0 0 10px; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--akcentas); }
.arkos h3 { margin-bottom: 10px; }
.arkos li > p:not([class]) { flex: 1; margin: 0 0 16px; font-size: 15px; color: var(--tekstas-2); }
.arkos__kaina { margin: 0; padding-top: 14px; border-top: 1px solid var(--linija); font: 500 13px/1.3 var(--mono); color: var(--tekstas); }

/* ---------- ilgasis stalas ---------- */
.stalas { max-width: 640px; margin: 0 auto 40px; }
.stalas[hidden] { display: none; }
.stalas__pav { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--akcentas); margin-bottom: 20px; }
.stalas__vaizdas { display: grid; gap: 8px; margin-bottom: 22px; }
.stalas__eile { display: flex; justify-content: space-between; padding: 0 18px; }
.stalas__eile i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(239, 228, 214, .35); transition: background .3s var(--lygus), border-color .3s var(--lygus); }
.stalas__eile i.uzimta { background: rgba(239, 228, 214, .18); border-color: transparent; }
.stalas__eile i.jusu { background: var(--akcentas); border-color: var(--akcentas); box-shadow: 0 0 14px rgba(210, 168, 106, .5); }
.stalas__lenta { height: 34px; border-radius: 4px; background: repeating-linear-gradient(90deg, #4a2c1e 0 2px, #5a3624 2px 40px); box-shadow: inset 0 0 0 1px rgba(210, 168, 106, .25); }
.stalas__valdymas { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 17px; }
.stalas__zingsniai { display: flex; align-items: center; gap: 6px; padding: 4px; border: 1px solid var(--linija); border-radius: 999px; }
.stalas__zingsniai button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(239, 228, 214, .08); color: var(--tekstas); font: 500 22px/1 var(--serif); cursor: pointer; }
.stalas__zingsniai button:hover { background: rgba(239, 228, 214, .16); }
.stalas__zingsniai button:disabled { opacity: .3; cursor: default; }
.stalas__zingsniai button:focus-visible { outline: 2px solid var(--akcentas); outline-offset: 2px; }
.stalas__zingsniai output { min-width: 28px; font: 500 26px/1 var(--serif); text-align: center; }
.stalas__busena { min-height: 1.6em; margin: 18px 0 0; color: var(--tekstas); }

@media (max-width: 860px) {
  .ekranas { min-height: 100svh; }
  .arka { width: 78vw; top: 80px; }
  .sekcija__tekstas::before, #rezervacija .sekcija__tekstas::before { inset: -34px calc(var(--krastas) * -1 + 4px); }
  .arkos { grid-template-columns: 1fr; }
  .arkos li { border-radius: 160px 160px 4px 4px; }
  .matuokliai { gap: 16px; }
  .matuoklis { width: 112px; }
  .stalas__eile { padding: 0 4px; }
  .stalas__eile i { width: 20px; height: 20px; }
  .stalas__valdymas { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  :root:not(.judesys) body::after { animation: none; }
}
