/* =========================================================
   TOMŠA – dizajn „Trasa k vodičáku“ (V39)
   Načítava sa po tomsa-f.css a prepisuje ho.
   ========================================================= */

/* Písma na vlastnom hostingu (/assets/fonts/). Kým nie sú nahraté,
   použije sa Segoe UI / Arial – web funguje aj bez nich. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/assets/fonts/SchibstedGrotesk-VariableFont_wght.ttf") format("truetype"); }

:root {
  --t-ink: #10213a;
  --t-muted: #3f4d61;
  --t-soft: #5a6779;
  --t-line: #e3e6eb;
  --t-bg: #f5f6f8;
  --t-red: #d71f27;
  --t-red-dark: #b5161d;
  --t-blue: #174d84;
  --t-on-dark: #c8d2df;
  --t-body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --t-head: "Schibsted Grotesk", "Segoe UI", Arial, sans-serif;
  /* premenné pre staršie štýly podstránok */
  --f-font: var(--t-body);
  --f-bg: var(--t-bg);
  --f-ink: var(--t-ink);
  --f-muted: var(--t-muted);
  --f-red: var(--t-red);
  --f-red-dark: var(--t-red-dark);
  --f-navy: var(--t-ink);
  --f-line: var(--t-line);
  --f-r: 22px;
  --f-r-md: 16px;
  --f-r-sm: 12px;
}

/* ---------- Základ ---------- */
.tomsa-public, .tomsa-public button, .tomsa-public input, .tomsa-public select, .tomsa-public textarea { font-family: var(--t-body) !important; }
.tomsa-public { background: var(--t-bg) !important; color: var(--t-ink); font-size: 17px; }
.tomsa-public main { background: var(--t-bg) !important; }
.tomsa-public h1, .tomsa-public h2, .tomsa-public h3 { font-family: var(--t-head) !important; font-weight: 900 !important; letter-spacing: -0.03em !important; }
.tomsa-public h4, .tomsa-public strong, .tomsa-public dt { font-family: inherit; }

.t-wrap { box-sizing: border-box; width: var(--tomsa-w, min(1320px, calc(100% - 48px))); margin-left: auto; margin-right: auto; }
.tomsa-public main .t-section { padding: 72px 0 64px !important; }
.tomsa-public main .t-section-tight { padding: 0 0 64px !important; }

.t-h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 4.9rem); line-height: .98; text-wrap: balance; color: var(--t-ink); }
.t-h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--t-ink); }
.t-h3 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1; color: var(--t-ink); }

/* Tlačidlá */
.t-btn, .t-btn:visited { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 56px; padding: 0 1.6rem; border-radius: 10px; font-weight: 700; font-size: 1.08rem; text-decoration: none !important; transition: background-color .15s ease, color .15s ease; }
.t-btn-red, .t-btn-red:visited { background: var(--t-red); color: #fff !important; }
.t-btn-red:hover { background: var(--t-red-dark); }
.t-btn-outline, .t-btn-outline:visited { border: 2px solid var(--t-ink); color: var(--t-ink) !important; }
.t-btn-outline:hover { background: var(--t-ink); color: #fff !important; }

/* ---------- Hlavička: bez červeného pásu, telefón namiesto „Prihláška“ ---------- */
.tomsa-public .tomsa-final-topbar { display: none !important; }
.tomsa-public header.sticky, .tomsa-public header { border-bottom: 1px solid var(--t-line); }
.tomsa-public header .tomsa-final-nav nav { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.tomsa-public header .tomsa-final-nav nav a { font-family: var(--t-body) !important; font-size: 1rem !important; font-weight: 700 !important; color: var(--t-ink) !important; background: transparent !important; border-radius: 8px !important; }
.tomsa-public header .tomsa-final-nav nav a[aria-current="page"] { color: var(--t-red) !important; }
.tomsa-public header .tomsa-final-apply a.tomsa-header-call { border-radius: 10px !important; background: var(--t-red) !important; box-shadow: none !important; }
.tomsa-header-call, .tomsa-header-call:visited { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; background: var(--t-red); color: #fff !important; font-family: var(--t-body); font-weight: 700; font-size: 1rem; text-decoration: none !important; white-space: nowrap; }
.tomsa-header-call:hover { background: var(--t-red-dark); }
.tomsa-public header .tomsa-final-apply .tomsa-header-call:focus-visible { outline-color: var(--t-ink) !important; }
.tomsa-public header .tomsa-mobile-call, .tomsa-public header a.tomsa-mobile-menu-apply { border-radius: 10px !important; background: var(--t-red) !important; font-family: var(--t-body) !important; }

/* ---------- Úvod ---------- */
.t-hero { background: #fff; }
.t-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 64px 0 72px; }
.t-hero-copy { display: flex; flex-direction: column; gap: 26px; padding-top: 12px; }
.t-kicker { margin: 0; display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; font-weight: 700; color: var(--t-blue); }
.t-kicker span { width: 34px; height: 4px; background: repeating-linear-gradient(90deg, var(--t-red) 0 10px, transparent 10px 16px); }
.t-lead { margin: 0; max-width: 31rem; font-size: 1.2rem; line-height: 1.55; color: var(--t-muted); }
.t-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.t-address { margin: 0; font-size: .95rem; color: var(--t-soft); }
.t-address strong { color: var(--t-ink); }

.t-route { background: var(--t-ink); color: #fff; border-radius: 22px; padding: 30px 30px 26px; }
.t-route h2 { margin: 0 0 22px; color: #fff !important; font-size: 1.65rem; font-weight: 800 !important; letter-spacing: -0.02em !important; }
.t-route ol { margin: 0; padding: 0; list-style: none; }
.t-route li { display: flex; gap: 18px; }
.t-route-rail { flex: 0 0 auto; width: 40px; display: flex; flex-direction: column; align-items: center; }
.t-route-num { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; box-sizing: border-box; border-radius: 50%; border: 4px solid var(--t-red); background: #fff; color: var(--t-ink); font-family: var(--t-head); font-weight: 900; }
.t-route-line { flex: 1; width: 4px; min-height: 18px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.55) 0 8px, transparent 8px 14px); }
.t-route-body { display: flex; flex-direction: column; gap: 3px; padding-bottom: 22px; }
.t-route-body strong { font-size: 1.12rem; }
.t-route-body span { color: var(--t-on-dark); font-size: .98rem; line-height: 1.5; }
.t-route-link, .t-route-link:visited { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; min-height: 36px; margin-top: 6px; color: #fff !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.t-route-link:hover { color: #fecaca !important; }
.t-route-finish { align-items: center; }
.t-route-finish .t-route-body { padding-bottom: 0; }
.t-route-flag { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--t-red); color: #fff; }
.t-route :focus-visible { outline-color: #fff !important; }

.t-dashes { height: 8px; background: repeating-linear-gradient(90deg, var(--t-ink) 0 46px, var(--t-bg) 46px 70px); }

.t-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-bottom: 30px; }
.t-section-head p { margin: 0; max-width: 26rem; color: var(--t-muted); }
.t-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.t-group { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--t-line); }
.t-group-label { font-weight: 700; color: var(--t-soft); font-size: .95rem; }
.t-group-codes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.t-group-codes strong { font-family: var(--t-head); font-weight: 900; font-size: 2.75rem; line-height: 1; color: var(--t-blue); }
.t-group-codes strong.is-small { font-size: 1.75rem; }
.t-group p { margin: 0; color: var(--t-muted); font-size: 1rem; line-height: 1.5; }
.t-group.is-featured { background: var(--t-ink); border-color: var(--t-ink); }
.t-group.is-featured .t-group-label, .t-group.is-featured p { color: var(--t-on-dark); }
.t-group.is-featured .t-group-codes strong { color: #fff; }

.t-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--t-line); border-radius: 22px; overflow: hidden; }
.t-photo { position: relative; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; color: var(--t-soft); background: repeating-linear-gradient(135deg, #eceff3 0 14px, #f4f6f8 14px 28px); }
.t-photo strong { color: var(--t-ink); font-size: 1.1rem; }
.t-photo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-why-copy { padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.t-why-copy dl { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.t-why-copy dt { font-weight: 700; font-size: 1.15rem; }
.t-why-copy dd { margin: 4px 0 0; color: var(--t-muted); }

.t-band { background: #fff; border-top: 1px solid var(--t-line); border-bottom: 1px solid var(--t-line); }
.t-prep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 64px 0; }
.t-prep-col { display: flex; flex-direction: column; gap: 18px; }
.t-list { display: flex; flex-direction: column; }
.t-list-row, .t-list-row:visited { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--t-line); color: var(--t-ink) !important; text-decoration: none !important; }
.t-list-row:last-child { border-bottom: 1px solid var(--t-line); }
.t-list-row span { display: flex; flex-direction: column; gap: 2px; }
.t-list-row strong { font-size: 1.08rem; }
.t-list-row small { color: var(--t-soft); font-size: .92rem; }
.t-list-row svg { flex: 0 0 auto; color: var(--t-red); }
.t-list-row:hover strong { color: var(--t-red); }
.t-test, .t-test:visited { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px; border: 2px solid var(--t-ink); color: var(--t-ink) !important; text-decoration: none !important; }
.t-test strong { font-size: 1.2rem; }
.t-test span { color: var(--t-muted); }
.t-test-dark, .t-test-dark:visited { background: var(--t-ink); color: #fff !important; }
.t-test-dark span { color: var(--t-on-dark); }
.t-test:hover { border-color: var(--t-red); }
.t-test-dark :focus-visible, .t-test-dark:focus-visible { outline-color: var(--t-blue) !important; }

.t-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; }
.tomsa-public main .t-section.t-contact { padding-bottom: 80px !important; }
.t-contact-copy { display: flex; flex-direction: column; gap: 20px; }
.t-contact-phone, .t-contact-phone:visited { font-family: var(--t-head); font-weight: 900; font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; color: var(--t-red) !important; text-decoration: none !important; }
.t-contact-mail, .t-contact-mail:visited { font-size: 1.25rem; font-weight: 700; color: var(--t-ink) !important; }
.t-contact-copy p { margin: 0; font-size: 1.1rem; color: var(--t-muted); }
.t-contact-copy p strong { color: var(--t-ink); }
.t-contact .tomsa-map-frame-dark { min-height: 320px; border-radius: 22px; background: var(--t-ink); }
.t-contact .tomsa-map-frame-dark .tomsa-map-placeholder { background: var(--t-ink); }
.t-contact .tomsa-map-placeholder button { border-radius: 10px !important; }

/* ---------- Podstránky: hlavička, karty, tlačidlá ---------- */
.f-pagehero-wrap.f-top { padding-top: 0; }
.f-pagehero { position: relative; overflow: hidden; background: var(--t-ink) !important; border: 0 !important; border-radius: 0 0 22px 22px !important; }
.f-pagehero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--t-red) 0 34px, transparent 34px 54px); }
.f-pagehero .f-h1 { color: #fff !important; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; }
.f-pagehero p { color: var(--t-on-dark) !important; }
.f-btn, .tomsa-contact-button, .tomsa-faq-call-v31, .tomsa-map-link, main#main-content a.rounded-full, .tomsa-map-placeholder button { border-radius: 10px !important; }
.tomsa-contact-card, .tomsa-map-card, .tomsa-faq-item-v31, .tomsa-legal-card, .tomsa-404-card-v32, .tomsa-faq-help-v31 { border-radius: 16px !important; }
.tomsa-faq-help-v31 { background: var(--t-ink) !important; }
main#main-content .bg-red-600.h-14 { background: var(--t-blue) !important; }

/* Pätička */
.tomsa-footer-v31 { background: var(--t-ink) !important; border-top: 0 !important; }
.tomsa-footer-v31 p, .tomsa-footer-v31 a { font-family: var(--t-body) !important; }

/* ---------- Responzívnosť ---------- */
@media (max-width: 1180px) {
  .t-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-group:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .t-hero-grid, .t-why, .t-prep, .t-contact { grid-template-columns: 1fr; }
  .t-hero-grid { gap: 36px; padding: 40px 0 48px; }
  .t-photo { min-height: 220px; }
  .t-prep { gap: 40px; }
}
@media (max-width: 560px) {
  .tomsa-public main .t-section { padding: 52px 0 48px !important; }
  .t-groups { grid-template-columns: 1fr; }
  .t-group:last-child { grid-column: auto; }
  .t-btn { width: 100%; }
  .t-route { padding: 24px 20px 20px; }
  .t-why-copy { padding: 26px 22px; }
  .t-contact .tomsa-map-frame-dark { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .t-btn { transition: none; } }

/* =========================================================
   V40 – živší úvod: červený kruh, značky skupín, cesta s autíčkom
   ========================================================= */
.t-hero { position: relative; overflow: hidden; background: #fff; }
.t-hero-grid { position: relative; z-index: 1; }
.t-hero-ring { position: absolute; z-index: 0; top: -170px; right: -150px; width: 560px; height: 560px; box-sizing: border-box; border-radius: 50%; border: 74px solid var(--t-red); opacity: .09; pointer-events: none; }
.t-h1-accent { color: var(--t-red); }

.t-signs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.t-signs li { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; box-sizing: border-box; border-radius: 8px; background: var(--t-blue); color: #fff; font-family: var(--t-head); font-weight: 900; font-size: 1.05rem; letter-spacing: -0.01em; box-shadow: inset 0 0 0 2px var(--t-blue), inset 0 0 0 4px #fff; }

/* Cesta pod úvodom (nahrádza prerušovanú čiaru) */
.t-dashes { display: none; }
.t-road { position: relative; height: 72px; overflow: hidden; background: var(--t-ink); }
.t-road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 46px, transparent 46px 74px); }
.t-road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: rgba(255,255,255,.18); }
.t-road-car { position: absolute; left: 68%; bottom: 14px; animation: t-drive 2.6s cubic-bezier(.22,.61,.36,1) .3s both; }
.t-car { display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
@keyframes t-drive { from { left: -130px; } to { left: 68%; } }

@media (max-width: 960px) {
  .t-hero-ring { top: auto; bottom: -260px; right: -220px; width: 520px; height: 520px; border-width: 68px; }
  .t-road-car { left: 58%; }
  @keyframes t-drive { from { left: -130px; } to { left: 58%; } }
}
@media (max-width: 560px) {
  .t-hero-ring { width: 380px; height: 380px; border-width: 50px; bottom: -200px; right: -180px; }
  .t-signs { gap: 6px; }
  .t-signs li { min-width: 37px; height: 38px; padding: 0 6px; font-size: .95rem; }
  .t-road { height: 60px; }
  .t-road-car { bottom: 10px; left: 50%; }
  .t-car { width: 80px; height: 32px; }
  @keyframes t-drive { from { left: -110px; } to { left: 50%; } }
}
@media (prefers-reduced-motion: reduce) {
  .t-road-car { animation: none; }
}

/* =========================================================
   V44 – farebný variant „Grafit a žltá“ (dopravné značky)
   Tmavé plochy sú grafitové, akcenty žlté; tlačidlá na volanie
   zostávajú červené ako v logu.
   ========================================================= */
:root {
  --t-ink: #1f2328;
  --t-blue: #1f2328;
  --t-bg: #f3f3f1;
  --t-on-dark: #d6d8dc;
  --t-muted: #454b54;
  --t-soft: #5f6670;
  --t-line: #e0e0dc;
  --t-yellow: #ffc21a;
}
.t-signs li { background: var(--t-yellow); color: var(--t-ink); box-shadow: inset 0 0 0 2px var(--t-ink); }
.t-route-num { border-color: var(--t-yellow); }
.t-route-flag { background: var(--t-yellow); color: var(--t-ink); }
.t-route-line { background: repeating-linear-gradient(180deg, var(--t-yellow) 0 8px, transparent 8px 14px); opacity: .9; }
.t-kicker span { background: repeating-linear-gradient(90deg, var(--t-ink) 0 10px, transparent 10px 16px); }
.t-group.is-featured .t-group-codes strong { color: var(--t-yellow); }
.t-road::before { background: repeating-linear-gradient(90deg, var(--t-yellow) 0 46px, transparent 46px 74px); }
.t-hero-ring { opacity: .06; }
.t-route-link:hover { color: var(--t-yellow) !important; }
.t-route :focus-visible, .t-test-dark:focus-visible, .tomsa-footer-v31 :focus-visible { outline-color: var(--t-yellow) !important; }

/* Podstránky */
.f-pagehero::after { background: repeating-linear-gradient(90deg, var(--t-yellow) 0 34px, transparent 34px 54px); }
main#main-content .bg-red-600.h-14 { background: var(--t-yellow) !important; color: var(--t-ink) !important; box-shadow: inset 0 0 0 2px var(--t-ink) !important; }
.tomsa-faq-item-v31[open] { border-color: #e6d9a8; }
.tomsa-contact-badge-icon { background: var(--t-ink) !important; }
.tomsa-contact-card-primary .tomsa-contact-badge-icon { background: var(--t-red) !important; }
.tomsa-footer-v31-brand p a, .tomsa-footer-v31-contacts svg { color: var(--t-yellow) !important; }

/* V45 – štítok „Autoškola TOMŠA · Malacky“ ako žltá značka so špendlíkom
   (namiesto prerušovanej čiarky) */
.t-kicker { padding: 7px 14px 7px 11px; border-radius: 8px; background: var(--t-yellow); color: var(--t-ink); box-shadow: inset 0 0 0 2px var(--t-ink); font-size: .95rem; gap: 8px; line-height: 1.2; }
.t-kicker span {
  width: 15px; height: 15px; flex: 0 0 auto; background: var(--t-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* V46 – štítok nad nadpisom odstránený */
.t-kicker { display: none !important; }
