/* Skandinaviški mokymai – viešo puslapio stilius.
   Spalvos --primary ir --accent nustatomos administravime (Nustatymai). */
:root {
    --primary: #14325c;
    --on-primary: #fff;
    --accent: #f4c20d;
    --on-accent: #14202e;
    --ink: #14202e;
    --muted: #5d6b7b;
    --line: #e1e6ec;
    --surface: #f4f6f9;
    --error: #b42318;
    --radius: 10px;
    --font: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Material Symbols ikonos */
.ms {
    font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal;
    font-size: 1.15em; line-height: 1; letter-spacing: normal; text-transform: none;
    display: inline-block; white-space: nowrap; direction: ltr; vertical-align: -0.2em;
    -webkit-font-smoothing: antialiased; font-feature-settings: "liga";
    width: 1.15em; overflow: hidden; /* jei šriftas neužsikrautų, nerodomas ikonos pavadinimas */
}

/* Viršutinė juosta */
.topbar { background: var(--primary); color: var(--on-primary); font-size: .875rem; }
.topbar a { color: inherit; text-decoration: none; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; min-height: 40px; flex-wrap: wrap; }
.topbar-contacts, .topbar-social { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-contacts .ms { margin-right: .35rem; }

/* Antraštė */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; flex-wrap: wrap; }
.brand { text-decoration: none; }
.brand img { max-height: 54px; width: auto; }
.brand-text { font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: .25rem 1.5rem; flex-wrap: wrap; }
.main-nav > a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 600; padding: .4rem 0; border-bottom: 2px solid transparent; }
.main-nav > a:not(.btn):hover, .main-nav > a.active { border-color: var(--accent); }

/* Mygtukai */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid var(--primary);
    background: var(--primary); color: var(--on-primary); transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn-sm { padding: .45rem 1.1rem; font-size: .925rem; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }

/* Hero */
.hero {
    position: relative; color: #fff;
    background: linear-gradient(100deg, rgba(10, 20, 35, .88) 0%, rgba(10, 20, 35, .55) 100%), var(--hero-img, none), var(--primary);
    background-size: cover; background-position: center;
}
.hero-inner { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.hero-kicker { margin: 0 0 .75rem; font-weight: 600; color: var(--accent); }
.hero h1 { margin: 0 0 1rem; font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 20ch; letter-spacing: -.01em; }
.hero-sub { margin: 0 0 2rem; font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 46ch; opacity: .9; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Sekcijos */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-muted { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.intro { padding: 2.5rem 0 0; }
.intro .prose { font-size: 1.075rem; }
.empty { color: var(--muted); }

/* Filtras */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
    font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
    padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Mokymų datos (renginių kortelės) */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.event {
    display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
    border: 1px solid var(--line); overflow: hidden;
}
.event[hidden] { display: none; }
.event-date { display: flex; align-items: baseline; gap: .6rem; padding: 1.1rem 1.25rem .25rem; }
.event-day { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--primary); }
.event-month { font-weight: 600; color: var(--muted); }
.event-body { padding: .5rem 1.25rem 1rem; flex: 1; }
.event-body h3 { margin: 0 0 .4rem; font-size: 1.1rem; font-weight: 700; }
.event-note { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.event-note + .event-note { margin-top: .3rem; }
.event-foot {
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    padding: .85rem 1.25rem; border-top: 1px solid var(--line);
}
.event-left { white-space: nowrap; font-size: .9rem; font-weight: 600; color: var(--muted); display: inline-flex; gap: .35rem; align-items: center; }

/* Mokymų kortelės */
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; align-items: stretch; }
.course { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.course-media {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 10; background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.25rem;
}
.course-media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.course-content { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.6rem; }
.course-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.course-icon {
    font-size: 1.9rem; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); color: var(--primary); vertical-align: 0;
}
.course-duration {
    font-size: .85rem; font-weight: 700; color: var(--muted);
    background: var(--surface); padding: .25rem .7rem; border-radius: 999px;
}
.course-price { margin-left: auto; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.course h3 { margin: 0 0 .75rem; font-size: 1.25rem; font-weight: 800; }
.course-text { font-size: .96rem; flex: 1; margin-bottom: 1.5rem; }
.course-btn { align-self: flex-start; }
.prose { max-width: 72ch; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); font-weight: 700; }
.prose code { font-size: .88em; background: var(--surface); padding: .1rem .35rem; border-radius: 4px; }
.page.narrow.prose { max-width: none; }

/* Vidiniai puslapiai */
.page-head { background: var(--primary); color: var(--on-primary); padding: 2.5rem 0; }
.page-head h1 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; }
.page { padding: 2.5rem 0 4.5rem; }
.lead { font-size: 1.15rem; }
.notice { background: var(--surface); border-left: 4px solid var(--primary); padding: 1rem 1.25rem; margin: 0 0 1.5rem; border-radius: 4px; }
.notice-error { border-color: var(--error); color: var(--error); }

/* Forma */
.form { margin-top: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: .35rem; padding: 0; }
.field input[type=text], .field input:not([type]), .field input[type=email], .field input[type=tel],
.field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1px solid #c3ccd6; border-radius: 8px; padding: .75rem .85rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: 3px solid color-mix(in srgb, var(--primary) 20%, transparent); outline-offset: 0; }
.choices { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.field > label.choice, .choice { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.choice input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }
.err { color: var(--error); margin: .3rem 0 0; font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kontaktai */
.company-details { margin-bottom: 2.5rem; }
.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.branch { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.branch h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.branch p { margin: 0 0 .4rem; display: flex; gap: .5rem; align-items: flex-start; }
.branch .ms { color: var(--primary); margin-top: .15rem; }

/* Poraštė */
.site-footer { background: color-mix(in srgb, var(--primary) 82%, #000); color: rgba(255, 255, 255, .78); font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-grid.no-about { grid-template-columns: 1fr; }
.footer-logo { max-height: 46px; width: auto; margin-bottom: 1rem; background: #fff; padding: 6px 10px; border-radius: 6px; }
.footer-details p { margin: 0 0 1rem; }
.footer-details strong { color: #fff; }
.footer-main-contact { font-weight: 700; font-size: 1rem; }
.footer-branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.5rem 1.25rem; }
.footer-branch { display: flex; flex-direction: column; gap: .1rem; }
.footer-branch strong { color: #fff; margin-bottom: .15rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.1rem 0; font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Slapukų juosta */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50;
    max-width: 760px; margin-inline: auto;
    display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
    background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.25rem; box-shadow: 0 10px 30px rgba(10, 20, 35, .18); font-size: .95rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--primary); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .form .row { grid-template-columns: 1fr; gap: 0; }
    .header-inner { padding: .6rem 0; }
    .main-nav { width: 100%; justify-content: space-between; gap: .5rem; font-size: .95rem; }
    .nav-optional { display: none; }
    .topbar-social { display: none; }
    .site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
