/* ==========================================================================
   Mokinkis homepage ("L1 · Komanda"). Built from the brand's own tiles:
   cream canvas, tan blob, navy Playfair numerals, sand/tan/orange/rust
   stripes, rust dots and squiggles. Everything is scoped to .mk-home so the
   Divi header, footer and other pages are untouched.
   ========================================================================== */
.mk-home {
  --mk-cream: #eae2d7;
  --mk-cream-2: #f3eee7;
  --mk-tan: #cfa77f;
  --mk-sand: #d7c7b7;
  --mk-orange: #d78b58;
  --mk-rust: #af6a29;
  --mk-navy: #324256;
  --mk-ink: #25344a;
  --mk-ink-2: #56627a;
  --mk-royal: #0d3f80;
  --mk-gold: #c39d63;
  --mk-sale: #f43f5e; /* edtalk store sale red: sale price, −% badge */
  --mk-line: #e7dfd3;
  --mk-wrap: min(1200px, calc(100% - 64px));
  background: #fff;
  color: var(--mk-ink);
  font: 500 15px/1.55 Montserrat, Helvetica, Arial, sans-serif;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
.mk-home *, .mk-home *::before, .mk-home *::after { box-sizing: border-box; }
.mk-home :where(h1, h2, h3, p, ul, li, figure, blockquote) { margin: 0; padding: 0; }
.mk-home :where(ul) { list-style: none; }
.mk-home a { color: inherit; text-decoration: none; }
.mk-home img { display: block; max-width: 100%; }
.mkl-wrap { width: var(--mk-wrap); margin: 0 auto; }
.mkl-ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.mk-home .mkl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 22px; border-radius: 8px; font: 700 15px/1 Montserrat, sans-serif; white-space: nowrap; transition: background-color .2s ease; }
.mk-home .mkl-btn--navy { background: var(--mk-navy); color: #fbf7f1; }
.mk-home .mkl-btn--navy:hover { background: #26354a; }
.mk-home .mkl-btn--white { background: #fff; color: var(--mk-ink); }
.mk-home .mkl-btn--white:hover { background: var(--mk-cream-2); }
.mk-home .mkl-btn--sm { padding: 11px 15px; font-size: 13.5px; }
.mk-home a:focus-visible { outline: 2px solid var(--mk-navy); outline-offset: 3px; border-radius: 6px; }

/* ---------- brand marks ---------- */
.mkl-stripes { display: flex; gap: 6px; }
.mkl-stripes i { display: block; width: 12px; height: 64px; }
.mkl-stripes i:nth-child(1) { background: var(--mk-sand); }
.mkl-stripes i:nth-child(2) { background: var(--mk-tan); }
.mkl-stripes i:nth-child(3) { background: var(--mk-orange); }
.mkl-stripes i:nth-child(4) { background: var(--mk-rust); }
.mkl-dots circle { fill: var(--mk-rust); }
.mkl-squig path { fill: none; stroke: var(--mk-rust); stroke-width: 2.4; stroke-linecap: round; }
.mkl-blob path { fill: var(--mk-tan); }

/* ---------- hero (cream band) ---------- */
.mkl-top { position: relative; overflow: hidden; isolation: isolate; background: var(--mk-cream); }
.mkl-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 44px 0 52px; }
.mkl-kick { font: 700 12px/1.3 Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--mk-rust); }
.mk-home .mkl-top h1 { font: 700 60px/1.02 Montserrat, Helvetica, Arial, sans-serif; letter-spacing: -.035em; color: var(--mk-ink); text-wrap: balance; }
/* Two sentences, one per line at every width: the size follows the copy
   column (the longer line is 11.9em), so it also beats the fixed sizes below. */
.mkl-hero-copy { container-type: inline-size; }
.mk-home .mkl-top h1.mkl-h1-pair { font-size: 44px; font-size: min(48px, 8.2cqi); }
.mkl-h1-pair span { display: block; }
/* A page's search phrase inside its H1, above the headline people read: search
   engines find „Korepetitoriai Vilniuje ir Kaune“ in the H1, families read the
   message under it (Rytis 2026-10-02). The rust capitals of the city labels. */
.mk-home h1 .mkl-kicker { display: block; margin: 0 0 14px; font: 700 13px/1.35 Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mk-rust); text-wrap: balance; }
.mkl-lede { margin-top: 18px; max-width: 34em; font-size: 17px; line-height: 1.6; text-wrap: pretty; } /* 34em = the headline's line length */
.mkl-acts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.mk-home .mkl-proof { margin-top: 30px; padding-top: 22px; border-top: 1px solid #dccfbd; display: flex; align-items: center; gap: 14px; color: var(--mk-ink); }
.mk-home .mkl-proof .mkl-faces > * + * { margin-left: -10px; }
.mk-home .mkl-proof .mkl-faces img { width: 38px; height: 38px; border-color: var(--mk-cream); }
.mkl-proof-text { display: flex; flex-direction: column; gap: 2px; font: 500 14px/1.4 Montserrat, sans-serif; }
.mkl-proof-main { display: inline-flex; align-items: center; gap: 5px; }
.mkl-proof-main svg { width: 15px; height: 15px; fill: var(--mk-gold); }
.mkl-proof-main b { font-weight: 700; }
.mkl-proof-sub { color: var(--mk-ink-2); }
.mk-home .mkl-proof:hover .mkl-proof-sub { color: var(--mk-ink); }
.mkl-hero-art { position: relative; aspect-ratio: 1.42; }
.mkl-hero-art > .mkl-blob { position: absolute; left: 11%; top: 13%; width: 91%; height: 89%; z-index: -1; }
.mkl-hero-art > .mkl-stripes { position: absolute; top: -40px; right: 2%; }
.mkl-hero-art > .mkl-dots { position: absolute; left: -3%; bottom: -4%; width: 56px; height: 80px; }
.mkl-hero-photo {
  position: absolute; inset: 0 9% 10% 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath d='M22 36C40 9 94 3 140 9C182 15 198 44 196 92C194 140 190 180 150 193C110 205 50 201 20 176C-3 156 3 118 5 86C7 64 10 50 22 36Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' preserveAspectRatio='none'%3E%3Cpath d='M22 36C40 9 94 3 140 9C182 15 198 44 196 92C194 140 190 180 150 193C110 205 50 201 20 176C-3 156 3 118 5 86C7 64 10 50 22 36Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.mk-home .mkl-hero-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 52% 60%; }

/* ---------- sections: white and light cream bands alternate ---------- */
.mkl-sec { padding: 60px 0 64px; }
.mkl-sec--tint { background: #f5f0e8; }
.mkl-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.mk-home .mkl-sec-head h2 { font: 700 30px/1.2 Montserrat, Helvetica, Arial, sans-serif; letter-spacing: -.022em; color: var(--mk-ink); }
.mk-home .mkl-sec-head p { margin-top: 6px; color: var(--mk-ink-2); font-size: 15px; }
.mk-home .mkl-more { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 4px; border-bottom: 1.5px solid var(--mk-gold); font: 700 14px/1 Montserrat, sans-serif; white-space: nowrap; }
.mkl-grid { display: grid; gap: 32px 24px; }
.mkl-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 20px; }
.mkl-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mkl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.mkl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mkl-price { font: 700 15px/1 Montserrat, sans-serif; white-space: nowrap; }
.mkl-price small { font-size: 13px; font-weight: 500; color: var(--mk-ink-2); }

/* ---------- tile ---------- */
.mkl-tile { position: relative; aspect-ratio: 1; overflow: hidden; isolation: isolate; border-radius: 14px; background: var(--mk-cream); container-type: inline-size; transition: transform .25s ease; }
.mkl-tile > .mkl-blob { position: absolute; left: 7%; top: 9%; width: 88%; height: 86%; z-index: -1; }
.mkl-tile > .mkl-stripes { position: absolute; top: 0; right: 7%; gap: 1.6cqw; }
.mkl-tile > .mkl-stripes i { width: 3.2cqw; height: 13cqw; }
.mkl-tile > .mkl-dots { position: absolute; left: 6%; bottom: 7%; width: 13cqw; height: 13cqw; }
.mkl-tile > .mkl-squig { position: absolute; width: 26cqw; height: 12cqw; }
.mkl-tile > .mkl-squig--br { right: 4%; bottom: 5%; }
.mkl-tile > .mkl-squig--tl { left: 5%; top: 6%; }
.mkl-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2.4cqw; padding: 0 8%; }
.mkl-face--col { flex-direction: column; gap: 3cqw; }
.mkl-num { font: 700 46cqw/.78 "Playfair Display", Georgia, serif; color: var(--mk-navy); letter-spacing: -.03em; }
.mkl-num--2 { font-size: 36cqw; }
.mkl-num--3 { font-size: 25cqw; }
.mkl-lab { display: flex; flex-direction: column; gap: .5cqw; font: 600 6.8cqw/1.04 Oswald, "Arial Narrow", sans-serif; letter-spacing: .01em; text-transform: uppercase; color: var(--mk-navy); }
.mkl-face--col .mkl-lab { align-items: center; text-align: center; }
.mkl-suf { margin-bottom: 1cqw; font: 400 7.6cqw/1 Oswald, "Arial Narrow", sans-serif; text-transform: none; }
.mkl-word { font: 600 25cqw/.86 Oswald, "Arial Narrow", sans-serif; letter-spacing: .02em; color: var(--mk-navy); }
.mkl-ttl { font: 800 italic 12.5cqw/1 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: -.01em; color: var(--mk-navy); text-align: center; }
.mk-home .mkl-tile--img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- service card ---------- */
.mkl-svc { display: flex; flex-direction: column; gap: 12px; }
.mkl-svc:hover .mkl-tile { transform: translateY(-3px); }
.mkl-svc-body { display: flex; flex: 1; flex-direction: column; }
.mk-home .mkl-svc h3 { font: 700 15px/1.3 Montserrat, sans-serif; }
.mk-home .mkl-svc-meta { margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--mk-ink-2); }
.mkl-svc-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
/* Overlapping photo stack. Each item keeps its 28px circle (flex: none) and the
   overlap lives on the item, not the image — otherwise the generic
   img { max-width: 100% } squeezes photos inside the narrower links into ovals. */
.mkl-faces { display: inline-flex; align-items: center; }
.mkl-faces > * { flex: none; }
.mkl-faces > * + * { margin-left: -8px; }
.mk-home .mkl-faces a { display: block; border-radius: 50%; }
.mk-home .mkl-faces img { display: block; width: 28px; height: 28px; max-width: none; aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--mk-cream); }
.mkl-faces-more { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--mk-navy); color: #f3ead9; font: 700 10.5px/1 Montserrat, sans-serif; }

/* ---------- spaces ---------- */
.mkl-places { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.mkl-city { margin: 22px 0 4px; font: 700 13px/1 Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mk-rust); }
.mkl-city:first-child { margin-top: 0; }
.mkl-loc { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 92px 40px; gap: 14px; align-items: center; padding: 14px 2px; border-top: 1px solid var(--mk-line); }
.mkl-loc-n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--mk-navy); color: #f3ead9; font: 700 12.5px/1 Montserrat, sans-serif; transition: background-color .2s; }
.mkl-loc.is-on .mkl-loc-n { background: var(--mk-rust); }
.mk-home .mkl-loc-a { font: 700 15.5px/1.35 Montserrat, sans-serif; letter-spacing: -.01em; }
.mk-home .mkl-loc-m { margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--mk-ink-2); }
.mk-home .mkl-loc-m a { color: var(--mk-ink); font-weight: 600; white-space: nowrap; }
.mkl-loc-faces { display: flex; justify-content: flex-end; }
/* Google Maps link: the Maps pin in a round button; with a mouse, "Google Maps"
   shows as a tooltip above it */
.mkl-gmaps { display: block; flex: none; width: 12px; height: 17px; }
.mk-home .mkl-loc-route { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--mk-line); border-radius: 50%; background: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.mk-home .mkl-loc-route:hover { border-color: #d6cab8; background: var(--mk-cream-2); }
.mk-home .mkl-loc-route:focus-visible { outline: 2px solid var(--mk-navy); outline-offset: 2px; border-radius: 50%; } /* beats the 6px of .mk-home a:focus-visible */
.mkl-loc-route .mkl-gmaps { width: 13px; height: 19px; }
.mk-home .mkl-loc-route span { position: absolute; right: 0; bottom: calc(100% + 9px); z-index: 2; padding: 7px 10px; border-radius: 7px; background: var(--mk-navy); color: #fbf7f1; font: 600 12px/1 Montserrat, sans-serif; white-space: nowrap; opacity: 0; transform: translateY(3px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.mk-home .mkl-loc-route span::after { content: ""; position: absolute; top: 100%; right: 15px; border: 5px solid transparent; border-top-color: var(--mk-navy); }
.mk-home .mkl-loc-route:hover span,
.mk-home .mkl-loc-route:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) {
  .mk-home .mkl-loc-route span { display: none; }
}
.mkl-online { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: var(--mk-cream-2); }
.mkl-online .mkl-ic { width: 24px; height: 24px; color: var(--mk-rust); }
.mkl-online b { display: block; font: 700 16px/1.3 Montserrat, sans-serif; }
.mkl-online span { font-size: 13.5px; color: var(--mk-ink-2); }
.mkl-map-col { position: relative; align-self: stretch; }
.mkl-map { position: sticky; top: 136px; aspect-ratio: 8 / 7; overflow: hidden; border-radius: 18px; background: #efe8de; }
.mk-home .mkl-map img { width: 100%; height: 100%; }
.mkl-pin { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--mk-navy); color: #f3ead9; font: 700 12px/1 Montserrat, sans-serif; box-shadow: 0 4px 10px -4px rgba(37, 52, 74, .6); transition: background-color .2s, transform .2s; }
.mkl-pin.is-on { background: var(--mk-rust); transform: scale(1.15); box-shadow: 0 0 0 10px rgba(175, 106, 41, .18); }
.mkl-map-credit { position: absolute; right: 12px; bottom: 10px; font: 500 10.5px/1 Montserrat, sans-serif; color: #8d8474; }

/* ---------- tutors ---------- */
.mkl-tutor { position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px; border: 1px solid var(--mk-line); border-radius: 18px; background: #fff; }
.mkl-tutor-ph { position: relative; display: block; width: 104px; height: 104px; margin-bottom: 14px; }
.mkl-tutor-ph svg { position: absolute; inset: -6px -12px -6px -4px; width: calc(100% + 16px); height: calc(100% + 12px); }
.mkl-tutor-ph svg path { fill: var(--mk-tan); }
.mk-home .mkl-tutor-ph img { position: relative; width: 96px; height: 96px; margin: 4px 0 0 2px; border-radius: 50%; object-fit: cover; }
.mk-home .mkl-tutor h3 { font: 700 18px/1.25 Montserrat, sans-serif; letter-spacing: -.012em; }
.mkl-rating { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font: 700 14px/1 Montserrat, sans-serif; }
.mkl-rating svg { width: 15px; height: 15px; fill: var(--mk-gold); }
.mkl-rating em { font-style: normal; font-weight: 500; color: var(--mk-ink-2); }
/* Every card has the same rows, one line each — the grid lines up without
   padding any card, and a tutor with little to list never looks empty. */
.mk-home .mkl-tutor-sub { margin-top: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 14.5px/1.35 Montserrat, sans-serif; letter-spacing: -.005em; color: var(--mk-ink); }
.mk-home .mkl-tutor-sub em { font-style: normal; font-weight: 600; color: var(--mk-ink-2); }
.mk-home .mkl-tutor-meta { margin-top: 3px; min-height: 1.45em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 13px/1.45 Montserrat, sans-serif; color: var(--mk-royal); }
.mk-home .mkl-tutor-place { display: flex; gap: 12px; margin-top: 3px; min-height: 1.45em; overflow: hidden; white-space: nowrap; font: 500 13px/1.45 Montserrat, sans-serif; color: var(--mk-ink-2); }
.mk-home .mkl-tutor-place span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.mk-home .mkl-tutor-place em { font-style: normal; font-weight: 600; }
.mk-home .mkl-tutor-place .mkl-ic { width: 14px; height: 14px; color: var(--mk-rust); }
/* The city, top right beside the photo: the capitals of the „Mokymo vietos“
   city headings (.mkl-city). Online-only tutors get NUOTOLIU in grey. */
.mk-home .mkl-tutor-city { position: absolute; top: 23px; right: 20px; display: inline-flex; align-items: center; gap: 5px; font: 700 12px/1 Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mk-rust); }
.mk-home .mkl-tutor-city .mkl-ic { width: 14px; height: 14px; stroke-width: 2; }
.mk-home .mkl-tutor-city.is-online { color: var(--mk-ink-2); }
.mk-home .mkl-tutor-city.is-online .mkl-ic { color: var(--mk-rust); }

/* The next free time: one tile on every card. */
.mk-home .mkl-tutor-next { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding: 10px 12px 10px 10px; border-radius: 12px; background: var(--mk-cream-2); color: var(--mk-ink); transition: background-color .15s, color .15s; }
.mkl-tutor-next-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--mk-rust); transition: background-color .15s, color .15s; }
.mk-home .mkl-tutor-next-ic .mkl-ic { width: 17px; height: 17px; }
.mkl-tutor-next-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mk-home .mkl-tutor-next small { font: 700 10px/1.2 Montserrat, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--mk-ink-2); }
.mk-home .mkl-tutor-next b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 15px/1.2 Montserrat, sans-serif; color: var(--mk-ink); }
.mk-home .mkl-tutor-next.is-none b { font-weight: 600; color: var(--mk-ink-2); }
.mk-home .mkl-tutor-next:hover { background: var(--mk-navy); }
.mk-home .mkl-tutor-next:hover small { color: #cfd6e0; }
.mk-home .mkl-tutor-next:hover b { color: #fbf7f1; }
.mk-home .mkl-tutor-next:hover .mkl-tutor-next-ic { background: rgba(255, 255, 255, .12); color: #e2c79a; }

/* One price line — the first lesson on its right — and the button across
   the card: the same on every card, first-lesson price or not. */
.mkl-tutor-foot { display: grid; gap: 12px; margin-top: 16px; }
.mk-home .mkl-tutor-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 18px; }
.mk-home .mkl-tutor-intro { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 12px/1.2 Montserrat, sans-serif; color: var(--mk-rust); }
.mk-home .mkl-tutor-foot .mkl-btn { width: 100%; }

/* The tutor cards keep their full width everywhere: two across on tablets,
   and on phones a row to swipe instead of two squeezed columns. */
@media (max-width: 900px) {
  #mokytojai .mkl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 560px) {
  #mokytojai .mkl-grid--4 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 8px; margin: -2px -2px 0; }
  #mokytojai .mkl-grid--4::-webkit-scrollbar { display: none; }
  #mokytojai .mkl-tutor { scroll-snap-align: start; padding: 20px 18px 18px; }
  #mokytojai .mkl-tutor-city { top: 21px; right: 18px; }
}
/* The narrowest phones: the label drops its icon and tightens so it clears the photo. */
@media (max-width: 380px) {
  .mk-home .mkl-tutor-city { letter-spacing: .1em; }
  .mk-home .mkl-tutor-city .mkl-ic { display: none; }
}

/* ---------- reviews ---------- */
.mkl-rev { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 30px 28px 26px; border-radius: 18px; background: var(--mk-cream); }
.mkl-rev > .mkl-blob { position: absolute; right: -18%; bottom: -30%; width: 70%; height: 90%; z-index: -1; opacity: .55; }
.mkl-rev-q { width: 34px; height: 26px; fill: var(--mk-rust); }
.mk-home .mkl-rev blockquote { margin-top: 14px; border: 0; font: 500 16.5px/1.6 Montserrat, sans-serif; color: var(--mk-ink); }
.mkl-rev figcaption { margin-top: auto; padding-top: 18px; font: 600 13px/1.4 Montserrat, sans-serif; }
.mkl-rev figcaption span { font-weight: 500; color: var(--mk-ink-2); }

/* ---------- shop carousel (white section right under the hero) ---------- */
.mkl-shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.mk-home .mkl-shop-head h2 { font: 700 30px/1.2 Montserrat, Helvetica, Arial, sans-serif; letter-spacing: -.022em; }
.mk-home .mkl-shop-head p { margin-top: 6px; font-size: 15px; color: var(--mk-ink-2); }
.mkl-shop-nav { display: flex; align-items: center; gap: 10px; }
.mkl-shop-nav .mkl-more { margin-right: 10px; }
.mk-home .mkl-shop-btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--mk-ink); cursor: pointer; box-shadow: inset 0 0 0 1px var(--mk-line); transition: background-color .2s, opacity .2s; }
.mk-home .mkl-shop-btn:hover { background: var(--mk-cream-2); }
.mk-home .mkl-shop-btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.mkl-shop-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Cards at the shop's size (.mks-shop-grid, site-pages.css): five across with
   20px gaps, four at 981–1100px. */
.mkl-shop-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5); align-items: start; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: none; padding: 4px 2px 10px; margin: -4px -2px 0; }
.mkl-shop-track::-webkit-scrollbar { display: none; }
.mkl-shop-track:focus-visible { outline: 2px solid var(--mk-navy); outline-offset: 4px; border-radius: 16px; }
/* tiles, laid out like the edtalk store: the picture (a red "−N%" badge when on
   sale), the name, then the price row — the sale price in red with the old one
   struck through — and a "Pirkti" button. */
.mkl-pcard { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; }
.mk-home .mkl-pcard-ph { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--mk-cream-2); }
.mk-home .mkl-pcard-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mkl-pcard:hover .mkl-pcard-ph img { transform: scale(1.04); }
/* The tiles' own orange stripes sit in this corner: a white ring and a lift keep the badge readable on any picture. */
.mk-home .mkl-pcard-off { position: absolute; z-index: 1; top: 10px; right: 10px; padding: 8px 11px; border-radius: 999px; background: var(--mk-sale); color: #fff; font: 800 14.5px/1 Montserrat, sans-serif; letter-spacing: -.02em; box-shadow: 0 0 0 3px #fff, 0 8px 18px -5px rgba(20, 28, 40, .5); }
/* Up to three lines of name: most shop names need three, and two cut off the part
   that tells two similar products apart („… (2022 m.)“ / „… (2023 m.)“). The
   two-line floor stays; a third line makes only its own card taller, because the
   grids and the carousel do not stretch their cards (never a gap before a
   neighbour's price). */
.mk-home .mkl-pcard-name { display: -webkit-box; min-height: 2.7em; margin-top: 12px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font: 600 14.5px/1.35 Montserrat, sans-serif; }
/* The name is its card's heading, as WooCommerce lists products (an H2), in the
   card's own type rather than a heading's. */
#main-content .mkl-pcard .mkl-pcard-h { margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.mkl-pcard-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-home .mkl-pcard-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; min-width: 0; color: var(--mk-ink); }
.mkl-pcard-price b { font: 700 19px/1.1 Montserrat, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.mkl-pcard-price.is-sale b { color: var(--mk-sale); }
.mkl-pcard-price s { font: 500 13px/1.1 Montserrat, sans-serif; color: #8b93a1; white-space: nowrap; }
.mkl-pcard-from { font: 500 13px/1 Montserrat, sans-serif; color: var(--mk-ink-2); }
.mk-home .mkl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mk-home .mkl-pcard-buy { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border: 1px solid #e0d8cb; border-radius: 999px; background: #fff; color: var(--mk-ink); font: 600 13.5px/1 Montserrat, sans-serif; white-space: nowrap; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.mk-home .mkl-pcard-buy:hover { border-color: var(--mk-ink); }
.mk-home .mkl-pcard-buy svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mk-home .mkl-pcard-buy .mkl-i-check,
.mk-home .mkl-pcard-buy .mkl-buy-done,
.mk-home .mkl-pcard-buy.added .mkl-i-plus,
.mk-home .mkl-pcard-buy.added .mkl-buy-label { display: none; }
.mk-home .mkl-pcard-buy.added .mkl-i-check,
.mk-home .mkl-pcard-buy.added .mkl-buy-done { display: inline; }
.mk-home .mkl-pcard-buy.added { border-color: #2f7d4f; background: #2f7d4f; color: #fff; }
.mk-home .mkl-pcard-buy.loading { opacity: .6; pointer-events: none; }
.mk-home .mkl-pcard .added_to_cart { display: none; } /* WooCommerce's "view cart" link; the header cart count shows it */
/* A narrow card (two to a row on phones, five in the shop, the homepage row and
   on programme pages) puts its button under the price, full width. */
.mkl-pcard { container-type: inline-size; }
@container (max-width: 280px) {
  .mkl-pcard-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .mk-home .mkl-pcard-buy { justify-content: center; }
}

/* ---------- news ---------- */
.mkl-post { display: flex; flex-direction: column; gap: 12px; }
.mkl-post-ph { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: var(--mk-cream-2); }
.mk-home .mkl-post-ph img { width: 100%; height: 100%; object-fit: cover; }
.mk-home .mkl-post h3 { font: 600 14.5px/1.35 Montserrat, sans-serif; }
.mk-home .mkl-post-date { font-size: 12.5px; color: var(--mk-ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .mkl-shop-track { grid-auto-columns: calc((100% - 3 * 20px) / 4); } /* the shop is four across here too */
  .mkl-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mkl-grid--5, .mkl-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .mk-home { --mk-wrap: calc(100% - 32px); }
  .mkl-hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px 0 28px; }
  /* No arrow buttons from here down: about the shop's card size, less a slice
     of the next card that shows the row scrolls. */
  .mkl-shop-track { grid-auto-columns: calc((100% - 4 * 14px) / 4.2); gap: 14px; }
  .mkl-shop-head { align-items: flex-start; }
  .mkl-shop-btn { display: none !important; }
  .mkl-hero-art { order: -1; }
  .mkl-hero-art > .mkl-stripes { top: -32px; }
  .mk-home .mkl-top h1 { font-size: 46px; }
  .mkl-sec { padding: 40px 0 44px; }
  .mkl-sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mk-home .mkl-sec-head h2 { font-size: 25px; }
  .mkl-places { grid-template-columns: minmax(0, 1fr); }
  .mkl-map-col { order: -1; }
  .mkl-map { position: relative; top: 0; }
}
@media (max-width: 700px) {
  .mkl-hero-art { aspect-ratio: 1.42; }
  .mk-home .mkl-top h1 { font-size: 40px; }
  .mkl-shop-track { grid-auto-columns: calc((100% - 2 * 14px) / 2.2); }
  .mkl-shop-head { flex-direction: column; gap: 10px; }
  .mkl-lede { font-size: 16px; }
  .mkl-grid--6, .mkl-grid--5, .mkl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .mkl-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .mkl-tutor { padding: 18px 14px 16px; }
  .mk-home .mkl-tutor-city { top: 19px; right: 14px; }
  .mkl-tutor-foot .mkl-btn { width: 100%; }
  .mkl-loc { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .mkl-loc-faces { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mkl-tile, .mkl-pin, .mkl-loc-route span { transition: none; }
}

/* Divi gives #page-container overflow: hidden, which makes it a scroll box and disables
   position: sticky for the map. clip crops the same way without creating one. */
body.home #page-container { overflow: clip; }

/* Space addresses link to their /erdves/{adresas}/ pages (inc/site-pages.php), and the
   link covers the whole row, so a click anywhere on it opens the page. The tutor photos,
   the phone link and the Google Maps button stay clickable above it. */
.mk-home .mkl-loc-a a { transition: color .2s; }
.mk-home .mkl-loc-a a:hover { color: var(--mk-rust); }
.mk-home .mkl-loc-a a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.mk-home .mkl-loc-a a:focus-visible { outline: none; }
.mk-home .mkl-loc-a a:focus-visible::after { outline: 2px solid var(--mk-navy); outline-offset: 3px; }
.mk-home .mkl-loc-faces a,
.mk-home .mkl-loc-m a { position: relative; z-index: 1; }
.mk-home .mkl-loc-route { z-index: 1; }

/* Map pins link to the same pages; the highlighted one sits above its neighbours. */
.mk-home a.mkl-pin { z-index: 1; color: #f3ead9; }
.mk-home a.mkl-pin.is-on { z-index: 2; }
.mk-home a.mkl-pin:focus-visible { border-radius: 50%; }
