/* Подвал на Приказко, the footer of every page of the site: the meadow at its darkest, under a soft wave of ground,
   with a warm lantern glow. Three parts side by side on wide screens (За Приказко, Меню, Контакти), stacked on a phone.
   From the home mockup's footer.css (dom/5-krastopat-karta), unchanged apart from the first rule. Self-contained: its
   own light-dark() colours, it follows the page's color-scheme. Fonts: Rubik 400 and 500, Kurale.
   Put in by design/contract-2026-12-02/tools/add-footer.mjs, linked as the page's last stylesheet. */

/* The older page footers (pateka.css, kategorii.css, prikazko.css) style .podval too. This rule sets back what they
   set and footer.css does not, so the footer looks the same on every page. The wave of ground rises 22px over the
   bottom of the page above it, as on the home mockup. */
footer.podval {
  display: block;
  max-width: none;
  margin: 0;
  border-top: 0;
  text-align: left;
}

.podval {
  --p-tlo: light-dark(#AFB388, #0F1510);
  --p-tlo-2: light-dark(#A2A77C, #0B100C);
  --p-tekst: light-dark(#2B2A1E, #F1E6CD);
  --p-tih: light-dark(#3F3D2B, #BDB498);
  --p-rab: light-dark(rgba(60, 40, 20, .16), rgba(255, 236, 200, .12));
  --p-nad: light-dark(rgba(255, 252, 240, .34), rgba(255, 236, 200, .07));
  --p-sjai: light-dark(rgba(255, 236, 190, .5), rgba(255, 190, 105, .12));
  --p-zlato: #F2D27C;
  --p-zlato-2: light-dark(#C2913A, #D9A84C);
  --p-mastilo: #2A1F18;
  --p-fokus: light-dark(#2A2236, #F6D788);
  --p-zrno: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .74 .07 0 0 0 -.015'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  position: relative;
  padding: 26px 16px calc(26px + env(safe-area-inset-bottom, 0px));
  color: var(--p-tekst);
  font: 400 1rem/1.5 "Rubik", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  background:
    var(--p-zrno),
    radial-gradient(60% 120px at 50% 0%, var(--p-sjai), transparent),
    linear-gradient(180deg, var(--p-tlo), var(--p-tlo-2));
}
/* the soft wave of ground the footer starts with */
.podval-rab {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  display: block;
  width: 100%;
  height: 22px;
  fill: var(--p-tlo);
  pointer-events: none;
}

.podval-ram {
  display: grid;
  gap: 26px;
  max-width: 1120px;
  margin: 0 auto;
}

.podval-glava {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 8px;
  font: 400 1.5rem/1.15 "Kurale", Georgia, "Times New Roman", serif;
}
/* a short painted stroke of gold under each heading */
.podval-glava::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 4px;
  border-radius: 3px 5px 4px 2px;
  background: var(--p-zlato-2);
  opacity: .8;
}
.podval-chast p { margin: 0; color: var(--p-tih); font-size: 1rem; line-height: 1.6; }

.podval a { color: inherit; }
.podval a:focus-visible { outline: 3px solid var(--p-fokus); outline-offset: 3px; border-radius: 12px; }

/* Меню: the five worlds with their motifs, then every story */
.podval-spisak { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.podval-vrazka {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 4px 12px 4px 4px;
  border-radius: 18px;
  font: 500 .9375rem/1.2 "Rubik", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  text-decoration: none;
}
.podval-vrazka:hover { background: var(--p-nad); }
.podval-znache {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--motiv);
  background: var(--disk);
  box-shadow: inset 0 0 0 1px var(--p-rab);
}
.podval-znache svg { display: block; width: 24px; height: 24px; }
.podval-vrazka--dino { --disk: light-dark(#ECE2C2, #33352A); --motiv: light-dark(#8A6A3E, #E2C98A); }
.podval-vrazka--more { --disk: light-dark(#DDEBEF, #183149); --motiv: light-dark(#3D7690, #A8D0E2); }
.podval-vrazka--dzhungla { --disk: light-dark(#DCE8CF, #173629); --motiv: light-dark(#4C7342, #A2CC8E); }
.podval-vrazka--fei { --disk: light-dark(#F6E2EA, #3D2E40); --motiv: light-dark(#C25F82, #E9A2BE); }
.podval-vrazka--kosmos { --disk: light-dark(#E2E0F4, #1B1F48); --motiv: light-dark(#6A62B4, #F6DE9A); }
.podval-vrazka--vsichki { --disk: light-dark(#F8EFD8, #4A3622); --motiv: light-dark(#7A5A2E, #F2D27C); }
.podval-sreda { fill: light-dark(#F0C860, #E2B65E); }
.podval-zhilka { stroke: var(--disk); }

/* Контакти: the way to the page, the two networks, the year */
.podval-kontakti {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 6px 0 16px;
  border-radius: 23px;
  font: 500 .9375rem/1.2 "Rubik", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  text-decoration: none;
  background: var(--p-nad);
  box-shadow: inset 0 0 0 1px var(--p-rab);
}
.podval-kontakti svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  color: var(--p-mastilo);
  background: var(--p-zlato);
}
.podval-kontakti:hover { box-shadow: inset 0 0 0 1px var(--p-zlato-2), 0 0 18px 2px var(--p-sjai); }
/* on the Контакти page itself the pill is where you are: no arrow, no glow, a gold ring */
.podval-kontakti[aria-current="page"] { padding-right: 16px; box-shadow: inset 0 0 0 1.5px var(--p-zlato-2); }
.podval-kontakti[aria-current="page"] svg { display: none; }

.podval-mrezhi { display: flex; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.podval-mrezha {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--p-nad);
  box-shadow: inset 0 0 0 1px var(--p-rab);
}
.podval-mrezha svg { width: 24px; height: 24px; }
.podval-mrezha:hover { box-shadow: inset 0 0 0 1px var(--p-zlato-2), 0 0 18px 2px var(--p-sjai); }
.podval .podval-prava { margin-top: 16px; font-size: .875rem; }

/* side by side on wide screens */
@media (min-width: 760px) {
  .podval { padding: 34px 32px calc(34px + env(safe-area-inset-bottom, 0px)); }
  .podval-ram { grid-template-columns: 1.15fr 1fr 1fr; gap: 40px; align-items: start; }
}

/* За Приказко: the way to the За Приказко page, under the words (the only link to that page on the site) */
.podval-oshte {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font: 500 .9375rem/1.2 "Rubik", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  text-decoration: underline 2px var(--p-zlato-2);
  text-underline-offset: 5px;
}
.podval-oshte:hover { text-decoration-color: currentColor; }
.podval-oshte[aria-current="page"] { text-decoration: none; }
