/* Jazykivo — shared stylesheet: fonts, resets, responsive layout, interactive states */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/baloo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/baloo2-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunitosans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunitosans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020;
}

:root {
  --bg: oklch(98% 0.008 250);
  --blue: oklch(58% 0.16 258);
  --blue-dark: oklch(30% 0.05 258);
  --orange: oklch(70% 0.18 45);
  --teal: oklch(55% 0.14 195);
  --heading: 'Baloo 2', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --body: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }
::selection { background: oklch(85% 0.06 195); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; color: var(--blue-dark);
  padding: 12px 18px; z-index: 200; border-radius: 0 0 10px 0; font-weight: 800; text-decoration: none;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid oklch(70% 0.14 258 / 0.5);
  outline-offset: 2px;
}

/* ---- responsive layout grids (override inline grid-template-columns) ---- */
@media (max-width: 900px) {
  .grid-hero, .grid-2 { grid-template-columns: 1fr !important; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-footer { grid-template-columns: repeat(2, 1fr) !important; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .grid-footer { grid-template-columns: 1fr !important; }
  h1 { font-size: 28px !important; }
}

/* ---- header / nav ---- */
.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid oklch(90% 0.02 258);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--blue-dark); position: relative; transition: 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 24px 18px;
    box-shadow: 0 12px 24px rgba(20,30,60,0.08); border-top: 1px solid oklch(93% 0.01 258);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }
}

/* ---- FAQ accordion (native details/summary) ---- */
.faq-item { background: #fff; border-radius: 16px; border: 1px solid oklch(93% 0.01 258); overflow: hidden; }
.faq-item summary {
  padding: 18px 20px; cursor: pointer; font-weight: 700; color: oklch(26% 0.03 258); font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--teal); font-size: 20px; flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item .faq-answer { padding: 0 20px 18px; color: oklch(45% 0.02 258); font-size: 14px; line-height: 1.6; }

/* ---- filter buttons ---- */
.filter-btn { transition: background 0.15s, color 0.15s, border-color 0.15s; }
.filter-btn.active { background: var(--blue) !important; color: #fff !important; border-color: var(--blue) !important; }
[data-category][hidden] { display: none !important; }

/* ---- cart badge ---- */
.cart-badge { display: none; }
.cart-badge.show { display: flex; }

/* ---- toast ---- */
.toast { display: none; }
.toast.show { display: block; animation: toast-in 0.2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---- form state toggling ---- */
[data-form-success] { display: none; }
.form-sent [data-form-default] { display: none; }
.form-sent [data-form-success] { display: flex; }
[data-success-name]:empty, [data-success-contact]:empty { display: none; }

/* ---- buttons ---- */
.btn { transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
button.btn { cursor: pointer; }
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---- product/course card hover ---- */
.hover-card { transition: box-shadow 0.15s ease, transform 0.15s ease; }
.hover-card:hover { box-shadow: 0 10px 26px rgba(20,30,60,0.09); transform: translateY(-2px); }

/* ---- images that replace the design's monospace placeholder boxes ---- */
.ph-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- form field error ---- */
.field-error { border-color: oklch(55% 0.18 25) !important; }
.form-msg { font-size: 13px; font-weight: 700; margin-top: 4px; }
.form-msg.error { color: oklch(50% 0.18 25); }

@media print {
  header, footer, .no-print { display: none !important; }
}
