/* ───────────── CMS stránky (migrované zo starého webu) ───────────── */

.cms-page {
    max-width: 1130px;
    margin: 0 auto;
    padding: 35px 15px 60px;
    text-align: left;
}

.cms-page-header {
    margin-bottom: 28px;
}

.cms-page-title {
    font-family: "Barlow condensed", sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

.cms-page-title::after {
    content: "";
    display: block;
    width: 46px;
    height: 4px;
    background-color: var(--neon);
    margin-top: 14px;
}

/* Obsah z legacy CMS — generická typografia */

.cms-page-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--dark);
}

.cms-page-content h1,
.cms-page-content h2,
.cms-page-content h3,
.cms-page-content h4 {
    font-family: "Barlow condensed", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 28px 0 12px;
}

.cms-page-content h1 { font-size: 32px; }
.cms-page-content h2 { font-size: 27px; }
.cms-page-content h3 { font-size: 22px; }
.cms-page-content h4 { font-size: 18px; }

.cms-page-content p {
    margin: 0 0 14px;
}

.cms-page-content a {
    color: var(--neon);
    text-decoration: underline;
}

.cms-page-content ul,
.cms-page-content ol {
    margin: 0 0 14px;
    padding-left: 26px;
}

.cms-page-content ul {
    list-style: disc;
}

.cms-page-content ol {
    list-style: decimal;
}

.cms-page-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

.cms-page-content iframe {
    max-width: 100%;
}

.cms-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}

.cms-page-content table td,
.cms-page-content table th {
    border: 1px solid #e3e3e3;
    padding: 8px 12px;
}

.cms-page-content blockquote {
    border-left: 4px solid var(--neon);
    padding: 6px 0 6px 18px;
    margin: 14px 0;
    color: #666;
}

/* Podstránky (deti) */

.cms-page-children {
    margin-top: 40px;
}

.cms-children-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.cms-child-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid #ececec;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.cms-child-card:hover {
    border-color: var(--neon-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.cms-child-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f2f2f2;
}

.cms-child-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cms-child-title {
    font-family: "Barlow condensed", sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    padding: 14px 16px;
    transition: color 0.15s ease;
}

.cms-child-card:hover .cms-child-title {
    color: var(--neon);
}

@media screen and (min-width: 768px) {
    .cms-children-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 1200px) {
    .cms-page {
        padding-top: 45px;
    }

    .cms-page-title {
        font-size: 48px;
    }

    .cms-children-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Náš tím — mriežka kariet (obsah stránky typu our_team z CMS) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px 22px;
    margin: 30px 0;
    text-align: center;
}

/* Karta = centrovaný stĺpec, aby meno/rola sedeli pod kruhovou fotkou
   (nezávisí od zdedeného text-align, ktorý prebíja .cms-page { text-align:left }) */
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.team-card-name {
    font-size: 19px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-align: center;
    width: 100%;
}

.team-card-role {
    font-size: 13px;
    color: var(--neon, #ff006a);
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 6px;
    text-align: center;
    width: 100%;
}

.team-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    text-align: center;
    width: 100%;
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .team-card-photo {
        width: 140px;
        height: 140px;
    }
}

/* Náš príbeh — taby, hero a cik-cak časová os (obsah typu story z CMS) */
.story-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 6px 0 26px;
}

.story-tabs a {
    flex: 0 1 220px;
    text-align: center;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 15px;
    color: #b5b5b5;
    text-decoration: none;
    border-bottom: 3px solid #e5e5e5;
}

.story-tabs a.active {
    color: var(--neon, #ff006a);
    border-bottom-color: var(--neon, #ff006a);
}

.story-hero {
    margin: 10px auto 40px;
    text-align: center;
    max-width: 640px;
}

.story-hero-img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.story-hero-caption {
    margin: 12px auto 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.story-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    margin-left: -1.5px;
    background: #ececec;
    border-radius: 2px;
}

.story-item {
    position: relative;
    width: 50%;
    padding: 0 36px 34px;
    box-sizing: border-box;
}

.story-item--left {
    left: 0;
    text-align: right;
}

.story-item--right {
    left: 50%;
    text-align: left;
}

.story-item::after {
    content: '';
    position: absolute;
    top: 14px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--neon, #ff006a);
}

.story-item--left::after { right: -8px; }
.story-item--right::after { left: -8px; }

.story-card {
    display: inline-block;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 16px;
    max-width: 340px;
    width: 100%;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.story-photo {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}

.story-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--neon, #ff006a);
    text-transform: none;
    margin: 0 0 3px;
}

.story-date {
    font-size: 12px;
    color: #9a9a9a;
    margin: 0 0 8px;
}

.story-text {
    font-size: 13px;
    line-height: 1.55;
    color: #555;
    margin: 0;
}

@media (max-width: 700px) {
    .story-timeline::before { left: 10px; margin-left: 0; }
    .story-item,
    .story-item--left,
    .story-item--right {
        width: 100%;
        left: 0;
        padding: 0 0 28px 32px;
        text-align: left;
    }
    .story-item--left::after,
    .story-item--right::after { left: 3px; right: auto; }
}

/* Tréningové stránky — galéria, videá, recenzie, CTA (sekcie z CMS) */
.tt-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 18px 0 30px;
}

.tt-gallery-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
}

.tt-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: 18px 0 30px;
}

.tt-video {
    position: relative;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}

.tt-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tt-reviews {
    margin: 18px 0 30px;
}

.tt-review {
    border-left: 4px solid var(--neon, #ff006a);
    background: #fafafa;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.6;
}

.tt-review footer {
    margin-top: 6px;
    font-size: 13px;
}

.tt-review-stars {
    color: #f5a623;
    letter-spacing: 2px;
    margin-left: 6px;
}

.tt-cta {
    text-align: center;
    margin: 30px 0 10px;
}

.tt-cta-btn {
    display: inline-block;
    background: var(--neon, #ff006a);
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 36px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

/* Galérijné stránky — popisky fotiek (sekcie z legacy migrácie) */
.lg-figure {
    margin: 0;
}

.lg-figure .tt-gallery-img {
    margin-bottom: 4px;
}

.lg-figure figcaption {
    font-size: 12px;
    line-height: 1.4;
    color: #777;
    text-align: center;
}

/* FAQ — akordeón otázok a odpovedí (sekcia z legacy migrácie) */
.faq-list {
    margin: 18px 0 30px;
}

.faq-item {
    border: 1px solid #ececec;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--neon, #ff006a);
}

.faq-question {
    cursor: pointer;
    list-style: none;
    padding: 14px 44px 14px 18px;
    font-weight: 700;
    font-size: 15px;
    position: relative;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--neon, #ff006a);
    line-height: 1;
}

.faq-item[open] .faq-question::after {
    content: '\2212';
}

.faq-answer {
    padding: 0 18px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #555;
}

/* Kontakt — prevádzky s mapou (sekcia z legacy migrácie) */
.contact-branches {
    margin: 18px 0 30px;
    display: grid;
    gap: 34px;
}

.contact-branch-name {
    color: var(--neon, #ff006a);
    font-size: 20px;
    margin: 0 0 14px;
}

.contact-branch-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: 22px;
    align-items: start;
}

.contact-line {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
}

.contact-line a {
    color: var(--neon, #ff006a);
    text-decoration: none;
}

.contact-note {
    font-size: 12px;
    color: #888;
}

.contact-branch-map iframe {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 12px;
}

@media (max-width: 700px) {
    .contact-branch-grid {
        grid-template-columns: 1fr;
    }
}

/* Kontakt — formulár „Napíšte nám" (polia .settings-field zo settings.css,
   tlačidlo .pf-btn z profile-shared.css; tu len rozloženie + doplnky) */
.contact-form-section {
    margin: 34px 0 48px;
    display: grid;
    grid-template-columns: 360px 1fr;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), 0 10px 34px rgba(0, 0, 0, 0.12);
}

/* Ľavý tmavý brand panel s nadpisom a sprievodným textom */
.contact-form-aside {
    background: #1d1d1d;
    color: #fff;
    padding: 38px 34px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

/* Neónový zárez v rohu — brand akcent tmavých kariet */
.contact-form-aside::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 26px 26px;
    border-color: transparent transparent var(--neon, #ff006a) transparent;
}

.contact-form-title {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 36px;
    line-height: 1.05;
    color: #fff;
    margin: 0;
}

.contact-form-title::after {
    content: "";
    display: block;
    width: 46px;
    height: 4px;
    margin-top: 12px;
    background: var(--neon, #ff006a);
}

.contact-form-aside p {
    color: #cfcfcf;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.contact-form-aside-note {
    margin-top: auto !important;
    color: #8f8f8f !important;
    font-size: 13px !important;
}

/* Pravá biela časť s formulárom */
.contact-form-main {
    background: #fff;
    padding: 34px 38px;
}

/* Zelený success box (vzor .auth-status z auth.css) */
.contact-status {
    background: #e6f7ed;
    color: #1b6b3a;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    margin: 0 0 16px;
    text-align: left;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

/* settings.css štýluje len input/select — textarea dorovnávame tu */
.contact-form .settings-field textarea {
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    background: #f4f4f6;
    width: 100%;
    min-height: 150px;
    resize: vertical;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.contact-form .settings-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--neon, #ff006a);
    box-shadow: 0 0 0 3px rgba(255, 0, 106, 0.12);
}

.contact-form-submit {
    justify-self: start;
    margin-top: 4px;
}

/* Honeypot — vizuálne odsunutý mimo obrazovku (zámerne nie [hidden],
   aby sa nebil s display pravidlami — viď guard v profile-shared.css) */
.contact-hp {
    position: absolute !important;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .contact-form-section {
        grid-template-columns: 1fr;
    }

    .contact-form-aside {
        padding: 28px 24px;
        gap: 12px;
    }

    .contact-form-aside-note {
        margin-top: 2px !important;
    }

    .contact-form-main {
        padding: 24px 20px 28px;
    }
}

@media (max-width: 700px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Partneri — grid log (sekcia z legacy migrácie) */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin: 18px 0 30px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 16px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.partner-card:hover {
    border-color: var(--neon, #ff006a);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
}

.partner-logo img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
}

.partner-name {
    font-weight: 700;
    font-size: 14px;
}

.partner-text {
    font-size: 12px;
    color: #777;
}

/* Tréningové stránky — piktogramy vlastností (sekcia z legacy migrácie) */
.picto-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 22px;
}

.picto-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    border: 1px solid #ececec;
    border-radius: 999px;
    background: #fafafa;
}

.picto-icon {
    width: 26px;
    height: 26px;
}

.picto-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.picto-emoji {
    font-size: 18px;
    line-height: 1;
}

/* Tréningové stránky — štruktúrované extra polia (pages.attributes):
   podtitulka, info boxy 1-3, hlavné video (partial training-extras) */
.training-extras {
    margin-top: 28px;
}

.training-extras-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 14px;
}

.training-extras-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.training-extras-box {
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fafafa;
    padding: 18px 20px;
}

.training-extras-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.training-extras-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.training-extras-video {
    margin: 22px 0 8px;
}

.training-extras-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.training-extras-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.training-extras-video-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 12px 0 0;
}

/* Karty podstránok — jednotná výška, fotka/placeholder + titulok */
.cms-child-card {
    display: flex;
    flex-direction: column;
    border: none !important;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.09);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cms-child-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.cms-child-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.cms-child-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cms-child-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon, #ff006a) 0%, #7a0033 100%);
}

.cms-child-image--placeholder span {
    font-size: 64px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Barlow Condensed", sans-serif;
}

.cms-child-title {
    padding: 14px 16px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 15px;
    text-align: left;
}
