/* =========================================================
   ATF nyilvános honlap — design tokenek és szekció-stílusok
   Forrás: docs/design/atf-home.html (Claude Design terv)
   ========================================================= */

:root {
    --atf-accent: #FF3F80;
    --atf-accent-dark: #e0306e;
    --atf-accent-soft: #FBE9F0;
    --atf-accent-soft-text: #c2205e;
    --atf-bg: #FBF8FA;
    --atf-dark: #241E2B;
    --atf-dark-lighten: #2f2739;
    --atf-dark-border: #3d3448;
    --atf-border: #EFE3EB;
    --atf-text: #241E2B;
    --atf-text-2: #6a6272;
    --atf-text-3: #7a7280;
    --atf-muted: #8a8391;
    --atf-nav: #4b4453;
    --atf-purple: #8b5cf6;
    --atf-purple-dark: #6a3fb0;
    --atf-purple-soft: #EDE7F6;
    --atf-success-soft: #E7F6EC;
    --atf-success: #1f8a4c;
    --atf-warning-soft: #FFF3E0;
    --atf-warning: #b56b00;
    --atf-radius: 18px;
    --atf-font-display: 'Space Grotesk', sans-serif;
    --atf-font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.atf-public {
    font-family: var(--atf-font-body);
    color: var(--atf-text);
    background: var(--atf-bg);
    overflow-x: hidden;
}

.atf-public * { box-sizing: border-box; }
.atf-public ::selection { background: var(--atf-accent); color: #fff; }
.atf-public a { color: var(--atf-accent); text-decoration: none; }
.atf-public a:hover { color: var(--atf-accent-dark); }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

@keyframes atf-floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- közös --- */
.atf-container { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.atf-section { padding-block: 96px; }
.atf-eyebrow {
    color: var(--atf-accent); font-weight: 700; font-size: 13px;
    letter-spacing: 0.14em; text-transform: uppercase;
}
.atf-h1 {
    font-family: var(--atf-font-display); font-weight: 700;
    font-size: clamp(42px, 5.6vw, 74px); line-height: 1.02;
    letter-spacing: -0.03em; margin: 22px 0 0;
}
.atf-h2 {
    font-family: var(--atf-font-display); font-weight: 700;
    font-size: clamp(30px, 4vw, 46px); line-height: 1.08;
    letter-spacing: -0.02em; margin: 12px 0 0;
}
.atf-lead { font-size: 17px; line-height: 1.6; color: var(--atf-text-2); margin: 16px 0 0; }

.atf-btn {
    display: inline-block; border-radius: 999px; font-weight: 600;
    font-family: var(--atf-font-display); white-space: nowrap; cursor: pointer;
    transition: filter .15s, background .15s, color .15s, border-color .15s, transform .15s;
}
.atf-public a.atf-btn-primary {
    background: var(--atf-accent); color: #fff; padding: 15px 30px; font-size: 16px;
    box-shadow: 0 10px 26px rgba(255, 63, 128, 0.3);
}
.atf-public a.atf-btn-primary:hover { filter: brightness(1.05); color: #fff; }
.atf-public a.atf-btn-outline {
    border: 1.6px solid var(--atf-dark); color: var(--atf-dark);
    padding: 15px 30px; font-size: 16px;
}
.atf-public a.atf-btn-outline:hover { background: var(--atf-dark); color: #fff; }
.atf-public a.atf-btn-dark {
    background: var(--atf-dark); color: #fff; padding: 10px 20px; font-size: 14px;
}
.atf-public a.atf-btn-dark:hover { color: #fff; filter: brightness(1.2); }

.atf-pill {
    display: inline-block; border-radius: 999px; padding: 3px 10px;
    font-size: 12.5px; font-weight: 700;
}
.atf-pill-accent { background: var(--atf-accent-soft); color: var(--atf-accent-soft-text); }
.atf-pill-purple { background: var(--atf-purple-soft); color: var(--atf-purple-dark); }
.atf-pill-success { background: var(--atf-success-soft); color: var(--atf-success); padding: 6px 14px; font-size: 13px; }
.atf-pill-warning { background: var(--atf-warning-soft); color: var(--atf-warning); padding: 6px 14px; font-size: 13px; }
.atf-pill-purple-lg { background: #F3EEF7; color: var(--atf-purple-dark); padding: 6px 14px; font-size: 13px; }

.atf-card {
    border: 1px solid var(--atf-border); border-radius: var(--atf-radius);
    overflow: hidden; background: #fff;
}

/* --- announcement bar --- */
.atf-announce {
    background: var(--atf-dark); color: #fff; font-size: 13px;
    letter-spacing: 0.02em; text-align: center; padding: 9px 16px; font-weight: 500;
}
.atf-announce a { color: var(--atf-accent); font-weight: 700; }

/* --- header --- */
.atf-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 248, 250, 0.82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--atf-border);
}
.atf-header-inner {
    max-width: 1200px; margin: 0 auto; padding: 14px 32px;
    display: flex; align-items: center; gap: 24px;
}
/* A nav + műveletek közös konténere: asztali nézetben egy sorban, jobbra igazítva. */
.atf-header-collapse {
    flex: 1; display: flex; align-items: center; gap: 24px;
}
.atf-header-actions {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
}
.atf-logo {
    display: flex; align-items: baseline; gap: 2px; color: var(--atf-text);
    font-family: var(--atf-font-display); font-weight: 700; font-size: 24px;
    letter-spacing: -0.02em;
}
.atf-logo:hover { color: var(--atf-text); }
.atf-logo-dot { color: var(--atf-accent); font-size: 30px; line-height: 0; }
.atf-nav {
    display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
    margin-left: 8px; font-size: 14.5px; font-weight: 500;
}
.atf-nav a { color: var(--atf-nav); }
.atf-nav a:hover { color: var(--atf-accent); }

/* nyelvváltó (HU / EN) */
.atf-lang-switch {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 600; font-family: var(--atf-font-display);
}
.atf-lang-switch a { color: var(--atf-nav); text-decoration: none; padding: 2px 4px; }
.atf-lang-switch a:hover { color: var(--atf-accent); }
.atf-lang-switch a.active { color: var(--atf-accent); }
.atf-lang-switch span { color: var(--atf-lines-default, #ccc); }

.atf-public a.atf-header-cta {
    margin-left: 18px; background: var(--atf-accent); color: #fff;
    padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
    font-family: var(--atf-font-display); white-space: nowrap;
    box-shadow: 0 6px 18px rgba(255, 63, 128, 0.28);
}
.atf-public a.atf-header-cta:hover { filter: brightness(1.05); color: #fff; }

/* --- hero --- */
.atf-hero {
    position: relative; max-width: 1200px; margin: 0 auto;
    padding: 72px 32px 40px; display: grid;
    grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.atf-hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--atf-accent-soft); color: var(--atf-accent-soft-text);
    padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
    letter-spacing: 0.02em;
}
.atf-hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--atf-accent); display: inline-block;
}
.atf-hero-lead { font-size: 18px; line-height: 1.6; color: var(--atf-text-2); max-width: 460px; margin: 22px 0 0; }
.atf-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.atf-hero-stats { display: flex; gap: 38px; margin-top: 44px; }
.atf-hero-stat-value { font-family: var(--atf-font-display); font-weight: 700; font-size: 30px; }
.atf-hero-stat-label { font-size: 13.5px; color: var(--atf-muted); margin-top: 2px; }
.atf-hero-stat-sep { width: 1px; background: #EADFE6; }
.atf-hero-image {
    position: relative; border-radius: calc(var(--atf-radius) + 10px);
    overflow: hidden; aspect-ratio: 4 / 5;
    background: var(--atf-accent-soft) center / cover no-repeat;
}
.atf-hero-float {
    position: absolute; background: #fff; border-radius: 18px; padding: 16px 20px;
    box-shadow: 0 18px 40px rgba(36, 30, 43, 0.14);
    display: flex; align-items: center; gap: 13px;
    animation: atf-floaty 5s ease-in-out infinite;
}
.atf-hero-float-badge {
    width: 44px; height: 44px; border-radius: 50%; background: var(--atf-accent);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: var(--atf-font-display); font-weight: 700;
}
.atf-hero-float-dark {
    position: absolute; background: var(--atf-dark); color: #fff; border-radius: 16px;
    padding: 14px 18px; box-shadow: 0 18px 40px rgba(36, 30, 43, 0.2);
    animation: atf-floaty 6s ease-in-out infinite;
}

/* --- sportág-chipek --- */
.atf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.atf-chip {
    background: #fff; border: 1px solid var(--atf-border); border-radius: 999px;
    padding: 9px 18px; font-size: 14px; font-weight: 600; color: #5a5364;
}

/* --- rólunk --- */
.atf-about {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.atf-about-image {
    border-radius: var(--atf-radius); overflow: hidden; aspect-ratio: 1 / 1;
    background: var(--atf-purple-soft) center / cover no-repeat;
}
.atf-about-image-small {
    position: absolute; right: -20px; bottom: -20px; width: 140px; height: 140px;
    border-radius: var(--atf-radius); overflow: hidden; border: 6px solid var(--atf-bg);
    background: var(--atf-accent-soft) center / cover no-repeat;
}
.atf-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.atf-feature {
    background: #fff; border: 1px solid var(--atf-border);
    border-radius: var(--atf-radius); padding: 20px;
}
.atf-feature-title { font-family: var(--atf-font-display); font-weight: 700; font-size: 17px; }
.atf-feature-text { font-size: 14.5px; color: var(--atf-text-3); margin-top: 6px; line-height: 1.55; }

/* --- rólunk v2 (statikus, a designer újratervezett „Shining Future Stars" szekciója) --- */
.atf-about2 { display: block; }
.atf-about2-head { max-width: 720px; }
.atf-about2-title {
    font-family: var(--atf-font-display); font-weight: 700;
    font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -0.025em; margin: 14px 0 0;
}
.atf-about2-subtitle { color: var(--atf-text-2); font-weight: 500; }

.atf-about2-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; margin-top: 52px; }
.atf-about2-media-sticky { position: sticky; top: 110px; }
.atf-about2-photo {
    border-radius: var(--atf-radius); overflow: hidden; aspect-ratio: 4 / 5;
    background: var(--atf-purple-soft) center / cover no-repeat;
}
.atf-about2-mark {
    position: relative; margin-top: -58px; margin-left: 22px; width: 132px; height: 132px;
    border-radius: var(--atf-radius); border: 6px solid var(--atf-bg);
    background: #fff center / 68% no-repeat; box-shadow: 0 12px 30px rgba(36, 30, 43, 0.14);
}
.atf-about2-stats { display: flex; gap: 28px; margin-top: 26px; padding-left: 2px; }
.atf-about2-stat-num { font-family: var(--atf-font-display); font-weight: 700; font-size: 26px; }
.atf-about2-stat-label { font-size: 13px; color: var(--atf-text-3); margin-top: 2px; }
.atf-about2-stat-sep { width: 1px; background: #EADFE6; }

.atf-about2-text-col { display: flex; flex-direction: column; gap: 42px; }
.atf-about2-intro { display: flex; flex-direction: column; gap: 18px; }
.atf-about2-text-col p { font-size: 16.5px; line-height: 1.7; color: var(--atf-text-2); margin: 0; }
.atf-about2-lead { font-size: 19px !important; line-height: 1.6 !important; color: #3d3547 !important; font-weight: 500; }
.atf-about2-text-col strong { color: var(--atf-dark); }
.atf-about2-h3 {
    font-family: var(--atf-font-display); font-weight: 700; font-size: 26px;
    letter-spacing: -0.015em; margin: 0 0 14px;
}
.atf-about2-champs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.atf-about2-chip {
    background: #fff; border: 1px solid var(--atf-border); border-radius: 999px;
    padding: 8px 15px; font-size: 14px; font-weight: 600; color: #4b4453;
}
.atf-about2-muted { font-size: 15px !important; line-height: 1.65 !important; color: var(--atf-text-3) !important; margin-top: 20px !important; }
.atf-about2-slogan {
    font-family: var(--atf-font-display); font-weight: 700 !important; font-size: 24px !important;
    line-height: 1.3 !important; letter-spacing: -0.015em; color: var(--atf-dark) !important; margin: 26px 0 0 !important;
}
.atf-about2-slogan span { color: var(--atf-accent); }

.atf-about2-cta {
    background: var(--atf-dark); color: #fff; border-radius: calc(var(--atf-radius) + 6px);
    padding: 44px 48px; margin-top: 64px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.atf-about2-cta-title { font-family: var(--atf-font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; margin: 0; }
.atf-about2-cta-lead { font-size: 16px; line-height: 1.6; color: #c9c2d1; margin: 12px 0 26px; }
/* A .atf-public a { color:accent } (0,2,0) erősebb a sima .atf-about2-cta-btn-nél (0,1,0),
   ezért a gomb feliratát a .atf-public prefixszel tesszük fehérré (különben pink szöveg
   pink gombon = láthatatlan). */
.atf-public a.atf-about2-cta-btn,
.atf-about2-cta-btn {
    display: inline-block; background: var(--atf-accent); color: #fff; padding: 14px 28px;
    border-radius: 999px; font-weight: 700; font-size: 15.5px; font-family: var(--atf-font-display);
    box-shadow: 0 10px 26px rgba(255, 63, 128, 0.3); min-height: 44px;
}
.atf-public a.atf-about2-cta-btn:hover,
.atf-about2-cta-btn:hover { color: #fff; background: var(--atf-accent-dark); }
.atf-about2-steps { display: flex; flex-direction: column; gap: 14px; }
.atf-about2-step { display: flex; gap: 14px; align-items: flex-start; }
.atf-about2-step span:last-child { font-size: 15.5px; color: #e4e0e9; line-height: 1.5; }
.atf-about2-step-num {
    flex: none; width: 26px; height: 26px; border-radius: 50%;
    background: var(--atf-dark-lighten); border: 1px solid var(--atf-dark-border);
    color: var(--atf-accent); display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}

.atf-about2-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.atf-about2-card { background: #fff; border: 1px solid var(--atf-border); border-radius: var(--atf-radius); padding: 22px; }
.atf-about2-card-title { font-family: var(--atf-font-display); font-weight: 700; font-size: 17px; }
.atf-about2-card-text { font-size: 14.5px; color: var(--atf-text-3); margin-top: 6px; line-height: 1.55; }

@media (max-width: 900px) {
    .atf-about2-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .atf-about2-media-sticky { position: static; }
    .atf-about2-cta { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px; }
    .atf-about2-cards { grid-template-columns: minmax(0, 1fr); }
}

/* --- szekció fejlécek --- */
.atf-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.atf-section-head-center { text-align: center; max-width: 640px; margin: 0 auto; }
.atf-section-link { font-weight: 600; font-size: 15px; }

/* --- fehér hátterű szekció --- */
.atf-band-white { background: #fff; border-block: 1px solid var(--atf-border); }

/* --- hírek --- */
.atf-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.atf-news-card { background: var(--atf-bg); transition: transform .2s; }
.atf-news-card:hover { transform: translateY(-4px); }
.atf-news-image { aspect-ratio: 16 / 10; background: var(--atf-accent-soft) center / contain no-repeat; }
.atf-news-body { padding: 22px; }
.atf-news-meta {
    display: flex; gap: 10px; align-items: center; font-size: 12.5px;
    color: var(--atf-muted); font-weight: 500;
}
.atf-news-title {
    font-family: var(--atf-font-display); font-weight: 600; font-size: 19px;
    line-height: 1.25; margin: 14px 0 0;
}
.atf-news-excerpt { font-size: 14.5px; color: var(--atf-text-3); line-height: 1.55; margin: 10px 0 0; }
.atf-news-more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14.5px; }

/* --- táborok --- */
.atf-camp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.atf-camp-card { box-shadow: 0 10px 30px rgba(36, 30, 43, 0.05); }
.atf-camp-image { position: relative; aspect-ratio: 4 / 3; background: var(--atf-purple-soft) center / contain no-repeat; }
.atf-camp-tag {
    position: absolute; top: 14px; left: 14px; color: #fff; font-size: 12px;
    font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.atf-camp-body { padding: 24px; }
.atf-camp-title { font-family: var(--atf-font-display); font-weight: 700; font-size: 21px; margin: 0; }
.atf-camp-meta {
    display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px;
    color: var(--atf-text-3); margin-top: 12px;
}
.atf-camp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.atf-camp-type { font-family: var(--atf-font-display); font-weight: 700; font-size: 20px; }
.atf-camp-days { font-size: 13px; color: var(--atf-muted); }

/* --- workshopok (sötét) --- */
.atf-dark-band { background: var(--atf-dark); color: #fff; }
.atf-dark-band .atf-h2 { color: #fff; }
.atf-dark-band .atf-section-lead { max-width: 340px; font-size: 15.5px; color: #c9c2d1; line-height: 1.6; }
.atf-workshop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.atf-workshop {
    display: flex; gap: 20px; align-items: center; background: var(--atf-dark-lighten);
    border: 1px solid var(--atf-dark-border); border-radius: var(--atf-radius); padding: 24px;
}
.atf-workshop-thumb {
    flex: none; width: 74px; height: 74px; border-radius: 16px;
    background: var(--atf-purple-dark) center / cover no-repeat;
}
.atf-workshop-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; margin-bottom: 8px; }
.atf-workshop-meta .atf-pill { font-size: 12px; color: #fff; }
.atf-workshop-when { color: #c9c2d1; padding: 3px 0; }
.atf-workshop-title { font-family: var(--atf-font-display); font-weight: 600; font-size: 18px; }
.atf-public a.atf-workshop-btn {
    flex: none; border: 1.5px solid #5a5266; color: #fff; padding: 9px 16px;
    border-radius: 999px; font-weight: 600; font-size: 13.5px;
}
.atf-public a.atf-workshop-btn:hover { background: #fff; color: var(--atf-dark); border-color: #fff; }

/* --- versenyek --- */
.atf-comp-list { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.atf-comp {
    display: flex; align-items: center; gap: 24px; background: #fff;
    border: 1px solid var(--atf-border); border-radius: var(--atf-radius);
    padding: 22px 26px; flex-wrap: wrap;
}
/* Kattintható verseny-kártya (a publikus részletoldalra) */
.atf-public a.atf-comp-link { color: var(--atf-text); transition: border-color .15s, transform .15s; }
.atf-public a.atf-comp-link:hover { border-color: var(--atf-accent); transform: translateY(-2px); }
.atf-comp-date { flex: none; text-align: center; width: 74px; }
.atf-comp-month {
    font-size: 12px; font-weight: 700; color: var(--atf-accent);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.atf-comp-day { font-family: var(--atf-font-display); font-weight: 700; font-size: 34px; line-height: 1; }
.atf-comp-sep { width: 1px; align-self: stretch; background: var(--atf-border); }
.atf-comp-info { flex: 1; min-width: 200px; }
.atf-comp-title { font-family: var(--atf-font-display); font-weight: 700; font-size: 19px; }
.atf-comp-loc { font-size: 14px; color: var(--atf-text-3); margin-top: 4px; }
.atf-comp-link { font-weight: 600; font-size: 14.5px; }

/* --- dokumentumok --- */
.atf-docs { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.atf-doc-list { display: flex; flex-direction: column; gap: 12px; }
.atf-doc {
    display: flex; align-items: center; gap: 18px; background: var(--atf-bg);
    border: 1px solid var(--atf-border); border-radius: 14px; padding: 18px 20px;
    color: var(--atf-text); transition: border-color .15s;
}
.atf-doc:hover { border-color: var(--atf-accent); color: var(--atf-text); }
.atf-doc-type {
    flex: none; font-family: var(--atf-font-display), monospace; font-weight: 700;
    font-size: 12px; padding: 8px 10px; border-radius: 8px;
}
.atf-doc-name { display: block; font-weight: 600; font-size: 15.5px; }
.atf-doc-size { font-size: 13px; color: var(--atf-muted); }
.atf-doc-dl { font-weight: 600; font-size: 14px; color: var(--atf-accent); }

/* --- galéria --- */
.atf-gallery {
    display: grid; grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px; gap: 14px; margin-top: 40px;
}
.atf-gallery-item { border-radius: var(--atf-radius); background: var(--atf-accent-soft) center / contain no-repeat; }
.atf-gallery-lg { grid-column: span 2; grid-row: span 2; }
.atf-gallery-wide { grid-column: span 2; }

/* --- támogatók --- */
.atf-sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.atf-sponsor {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2;
    border: 1px solid var(--atf-border); border-radius: var(--atf-radius);
    background-position: center; background-size: contain; background-repeat: no-repeat;
    transition: border-color .15s, transform .15s;
}
.atf-sponsor:hover { border-color: var(--atf-accent); transform: translateY(-3px); }
/* Sötét hátteret igénylő (fehér rajzolatú) logók */
.atf-sponsor-dark {
    background-color: var(--atf-dark);
    background-size: 70%;
}

/* --- kapcsolat --- */
.atf-contact-band { background: var(--atf-accent-soft); }
.atf-contact {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.atf-contact .atf-eyebrow { color: var(--atf-accent-soft-text); }
.atf-contact-lead { font-size: 17px; color: #7a5566; line-height: 1.6; margin: 16px 0 28px; }
.atf-contact-items { display: flex; flex-direction: column; gap: 16px; }
.atf-contact-item { display: flex; gap: 14px; align-items: center; }
.atf-contact-icon {
    flex: none; width: 42px; height: 42px; border-radius: 12px; background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--atf-font-display); font-weight: 700; color: var(--atf-accent);
}
.atf-contact-label { font-size: 13px; color: #a06f80; }
.atf-contact-value { font-weight: 600; }
.atf-location-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.atf-location-chip { background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; }
.atf-contact-form-card {
    background: #fff; border-radius: calc(var(--atf-radius) + 6px); padding: 34px;
    box-shadow: 0 20px 50px rgba(36, 30, 43, 0.08);
}
.atf-form { display: flex; flex-direction: column; gap: 16px; }
.atf-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.atf-form input, .atf-form select, .atf-form textarea {
    width: 100%; border: 1.5px solid #EAD9E2; border-radius: 12px; padding: 13px 15px;
    font-size: 15px; font-family: inherit; background: var(--atf-bg);
}
.atf-form input:focus, .atf-form textarea:focus {
    border-color: var(--atf-accent); outline: none; background: #fff;
}
.atf-form textarea { resize: vertical; }
.atf-form-submit {
    background: var(--atf-accent); color: #fff; border: none; padding: 15px;
    border-radius: 999px; font-weight: 700; font-size: 16px;
    font-family: var(--atf-font-display); cursor: pointer;
    box-shadow: 0 10px 26px rgba(255, 63, 128, 0.3);
}
.atf-form-submit:hover { filter: brightness(1.05); }

/* Kapcsolati űrlap beküldés-visszajelzés (siker / hiba) */
.atf-form-note {
    padding: 12px 16px; border-radius: 12px; margin-bottom: 16px;
    font-size: 14.5px; line-height: 1.5;
}
.atf-form-note-ok { background: #e7f7ec; color: #1c6b38; border: 1px solid #b6e6c6; }
.atf-form-note-error { background: #fdecef; color: #a01931; border: 1px solid #f5c2cd; }

/* --- footer --- */
.atf-footer { background: var(--atf-dark); color: #c9c2d1; }
.atf-footer-grid {
    max-width: 1200px; margin: 0 auto; padding: 64px 32px 28px;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
}
.atf-footer .atf-logo { color: #fff; font-size: 26px; }
.atf-footer .atf-logo:hover { color: #fff; }
.atf-footer-about { font-size: 14.5px; line-height: 1.6; margin: 16px 0 0; max-width: 260px; }
.atf-footer-social { display: flex; gap: 12px; margin-top: 20px; }
.atf-footer-social a {
    color: #c9c2d1; font-size: 13.5px; font-weight: 600;
    background: var(--atf-dark-lighten); padding: 8px 14px; border-radius: 999px;
}
.atf-footer-social a:hover { color: #fff; }
.atf-footer-heading {
    color: #fff; font-family: var(--atf-font-display); font-weight: 600;
    font-size: 15px; margin-bottom: 14px;
}
.atf-footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.atf-footer-links a { color: #c9c2d1; }
.atf-footer-links a:hover { color: #fff; }
.atf-footer-newsletter { display: flex; gap: 8px; }
.atf-footer-newsletter input {
    flex: 1; min-width: 0; border: 1px solid var(--atf-dark-border);
    background: var(--atf-dark-lighten); color: #fff; border-radius: 999px;
    padding: 11px 16px; font-size: 14px; font-family: inherit;
}
.atf-footer-newsletter input:focus { border-color: var(--atf-accent); outline: none; }
.atf-footer-newsletter button {
    flex: none; background: var(--atf-accent); color: #fff; border: none;
    padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
    font-family: var(--atf-font-display); cursor: pointer;
}
.atf-footer-bottom { border-top: 1px solid var(--atf-dark-border); }
.atf-footer-bottom-inner {
    max-width: 1200px; margin: 0 auto; padding: 20px 32px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 13px; color: #8b8496;
}

/* --- reszponzív --- */
@media (max-width: 980px) {
    /* minmax(0,1fr): a rács-oszlop a tartalom (kép/szöveg) min-content szélessége ALÁ is
       zsugorodhat — enélkül az „1fr” = minmax(auto,1fr) fix, tartalom-méretű oszlopot ad, és
       a kép/kártya kilóg keskeny kijelzőn (a riport ② hibája). */
    .atf-hero, .atf-about, .atf-docs, .atf-contact { grid-template-columns: minmax(0, 1fr); }
    .atf-news-grid, .atf-camp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .atf-workshop-grid { grid-template-columns: minmax(0, 1fr); }
    .atf-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .atf-nav { display: none; }
    .atf-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .atf-news-grid, .atf-camp-grid, .atf-sponsor-grid { grid-template-columns: 1fr; }
    .atf-footer-grid { grid-template-columns: 1fr; }
    .atf-section { padding-block: 64px; }
    .atf-sponsor-grid { grid-template-columns: 1fr 1fr; }
    /* A Rólunk feature-rács is egy oszlopra vált (a 2 oszlop kilógott 320px-en). */
    .atf-feature-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Rich-text törzsszöveg megjelenítése a részletoldalakon */
.atf-rich-content { line-height: 1.7; }
.atf-rich-content p { margin: 0 0 1em; }
.atf-rich-content ul,
.atf-rich-content ol { margin: 0 0 1em 1.5em; padding: 0; }
.atf-rich-content li { margin: 0 0 0.35em; }
.atf-rich-content a { color: var(--atf-accent); text-decoration: underline; }
.atf-rich-content a:hover { opacity: 0.8; }

/* Összecsukható szekciók a verseny-részletoldalon (natív <details>, JS nélkül) */
.atf-detail-section { border-top: 1px solid var(--atf-border); margin-top: 24px; padding-top: 12px; }
.atf-detail-section > summary {
    cursor: pointer; list-style: none; font-family: var(--atf-font-display);
    font-weight: 700; font-size: 1.3rem; padding: 8px 0; user-select: none;
    display: flex; align-items: center; gap: 10px;
}
.atf-detail-section > summary::-webkit-details-marker { display: none; }
.atf-detail-section > summary::before {
    content: "▸"; color: var(--atf-accent); font-size: 0.9em; transition: transform .15s;
}
.atf-detail-section[open] > summary::before { transform: rotate(90deg); }
.atf-detail-section > summary:hover { color: var(--atf-accent); }
.atf-detail-section > *:not(summary) { margin-top: 8px; }

/* Szervező-kártyák a verseny-részletoldalon */
.atf-organizer-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px; margin-top: 16px;
}
.atf-organizer-card {
    border: 1px solid var(--atf-border); border-radius: var(--atf-radius);
    background: #fff; padding: 16px 18px;
}
.atf-organizer-name {
    font-family: var(--atf-font-display); font-weight: 700; font-size: 16px;
    margin-bottom: 10px;
}
.atf-public a.atf-organizer-contact {
    display: flex; align-items: center; gap: 8px; color: var(--atf-text-2);
    font-size: 14.5px; padding: 3px 0;
}
.atf-public a.atf-organizer-contact:hover { color: var(--atf-accent); }
.atf-organizer-contact svg { flex: none; color: var(--atf-accent); }

/* Belépés link a publikus fejlécben (a Kapcsolat CTA előtt) */
.atf-public a.atf-header-login {
    color: var(--atf-nav); font-weight: 600; font-size: 14.5px;
    font-family: var(--atf-font-display); white-space: nowrap; padding: 6px 4px;
}
.atf-public a.atf-header-login:hover { color: var(--atf-accent); }

/* --- Felugró reklámkép (popup) --- */
/* A háttér-görgetés letiltása, amíg a popup nyitva van. */
html.atf-popup-open { overflow: hidden; }

.atf-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(18, 14, 24, 0.82);
    backdrop-filter: blur(2px);
    animation: atf-popup-fade 0.2s ease-out;
}
.atf-popup[hidden] { display: none; }

@keyframes atf-popup-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.atf-popup-box {
    position: relative;
    /* A kép teljes egészében elfér: a keret sosem nagyobb a képernyőnél. */
    max-width: min(92vw, 900px);
    max-height: 88vh;
    display: flex;
}

.atf-popup-img,
.atf-popup-link {
    display: block;
    max-width: 100%;
    max-height: 88vh;
}

.atf-popup-img {
    width: auto;
    height: auto;
    /* A teljes kép látszódjon, arányt tartva. */
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.atf-popup-img-clickable { cursor: pointer; }
.atf-popup-link { cursor: pointer; }

.atf-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #241E2B;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, background 0.12s ease;
}
.atf-popup-close:hover {
    transform: scale(1.08);
    background: var(--atf-accent);
    color: #fff;
}

@media (max-width: 640px) {
    .atf-popup { padding: 16px; }
    .atf-popup-close { top: -12px; right: -12px; width: 36px; height: 36px; font-size: 22px; }
}

/* --- Verseny-részletoldal: fejléc-meta (dátum + helyszín) nagyobb --- */
.atf-comp-meta {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    margin: 16px 0 10px;
}
.atf-comp-meta-text {
    font-size: 16px; font-weight: 600; color: var(--atf-text-2);
    font-family: var(--atf-font-display);
}
.atf-comp-meta-sep { margin: 0 8px; color: var(--atf-text-3); }

/* --- Kiemelt kép a térkép felett --- */
.atf-comp-featured { text-align: center; }
.atf-comp-featured-img {
    max-width: 100%; max-height: 520px; width: auto; height: auto;
    border-radius: 16px; object-fit: contain; cursor: zoom-in;
    box-shadow: 0 10px 30px rgba(36, 30, 43, 0.12);
}

/* --- Galéria: kép-gomb + videó-felirat --- */
.atf-gallery button.atf-gallery-item {
    border: none; padding: 0; cursor: zoom-in; width: 100%;
    background-size: contain; background-position: center; background-repeat: no-repeat;
}
.atf-gallery-video {
    flex-direction: column; gap: 6px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: var(--atf-text); padding: 12px;
    background: var(--atf-accent-soft);
}
.atf-gallery-video-icon { font-size: 26px; color: var(--atf-accent); }
.atf-gallery-video-label {
    font-size: 13px; font-weight: 600; text-align: center;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}

/* --- Lightbox (galéria + kiemelt kép nagyítva) --- */
html.atf-lightbox-open { overflow: hidden; }
.atf-lightbox {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(18, 14, 24, 0.9); backdrop-filter: blur(2px);
    animation: atf-popup-fade 0.2s ease-out;
}
.atf-lightbox[hidden] { display: none; }
.atf-lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.atf-lightbox-img {
    /* Teljes méret, de a képernyőhöz igazítva ha nagyobb (arányt tartva). */
    max-width: 94vw; max-height: 86vh; width: auto; height: auto;
    object-fit: contain; border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.atf-lightbox-video {
    max-width: 94vw; max-height: 86vh; width: auto; height: auto;
    border-radius: 10px; background: #000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.atf-lightbox-caption { color: #fff; font-size: 14px; text-align: center; opacity: 0.9; }
.atf-lightbox-close {
    position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
    border: none; border-radius: 999px; background: #fff; color: #241E2B;
    font-size: 28px; line-height: 1; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: transform 0.12s ease, background 0.12s ease;
}
.atf-lightbox-close:hover { transform: scale(1.08); background: var(--atf-accent); color: #fff; }

/* --- Média partnerek: logó fent, név + szerep alatta --- */
.atf-partner-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.atf-partner-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.atf-partner-logo-link { display: inline-block; }
.atf-partner-logo {
    max-width: 100%; max-height: 90px; width: auto; height: auto;
    object-fit: contain; display: block;
}
.atf-partner-logo-placeholder {
    display: flex; align-items: center; justify-content: center;
    min-height: 70px; font-weight: 700; color: var(--atf-text-2);
    font-family: var(--atf-font-display);
}
.atf-partner-name { font-weight: 700; font-size: 15px; margin-top: 4px; }
.atf-partner-role { font-size: 13px; color: var(--atf-text-3); }

/* --- Letölthető dokumentumok: bullet-lista --- */
.atf-doc-list { margin: 12px 0 0; padding-left: 22px; list-style: disc; }
.atf-doc-list li { margin-bottom: 8px; }

@media (max-width: 640px) {
    .atf-partner-grid { grid-template-columns: 1fr 1fr; }
    .atf-lightbox-close { top: 12px; right: 14px; width: 40px; height: 40px; }
}

/* =========================================================================
   Reszponzív rendbetétel (mobil/tablet) — a Playwright-teszt találatai alapján
   ========================================================================= */

/* ② Biztonsági szabály: a rács-elemek képei/média-elemei sose feszítsék szét az
   oszlopot (a min-content minimum miatt lógtak ki keskeny kijelzőn). */
.atf-hero img, .atf-about img, .atf-docs img,
.atf-about-image, .atf-about-image-small,
.atf-hero-media, .atf-hero-card { min-width: 0; max-width: 100%; height: auto; }

/* ①③ A hamburger-ikon — alapból REJTVE (asztali nézetben a .atf-nav látszik). */
.atf-nav-burger { display: none; }

@media (max-width: 980px) {
    /* ① A fejléc ne csorduljon túl keskeny kijelzőn: kisebb oldalpadding + gap. */
    .atf-header-inner { padding-left: 16px; padding-right: 16px; gap: 12px; flex-wrap: nowrap; }

    /* ③ Hamburger-ikon megjelenítése (a checkbox-hack vezérli a menüt). */
    .atf-nav-burger {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; padding: 10px; margin-left: auto; cursor: pointer;
        border-radius: 10px;
    }
    .atf-nav-burger span {
        display: block; height: 2px; width: 100%; background: var(--atf-nav);
        border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
    }
    /* Nyitott állapotban a ☰ → ✕ animáció. */
    .atf-nav-toggle:checked ~ .atf-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .atf-nav-toggle:checked ~ .atf-nav-burger span:nth-child(2) { opacity: 0; }
    .atf-nav-toggle:checked ~ .atf-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ③ A nav + műveletek (nyelvváltó/belépés/CTA) egy lenyíló panelbe kerülnek (a fejléc alá).
       A checkbox állapota nyitja/zárja az egész .atf-header-collapse-t. */
    .atf-header-collapse {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: var(--atf-bg, #fbf8fa); border-bottom: 1px solid var(--atf-border);
        box-shadow: 0 12px 24px rgba(36, 30, 43, 0.08);
        padding: 8px 16px 16px;
    }
    .atf-nav-toggle:checked ~ .atf-header-collapse { display: flex; }
    .atf-nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
    /* A menüpontok teljes szélesek, nagy (44px) érintési célponttal. */
    .atf-nav a {
        display: flex; align-items: center; width: 100%;
        min-height: 44px; padding: 6px 4px; font-size: 16px;
    }
    /* A műveletek a panel alján, elválasztva; a nyelvváltó marad kicsi, a login/CTA teljes szél. */
    .atf-header-actions {
        margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--atf-border);
        flex-wrap: wrap; gap: 12px;
    }
    .atf-public a.atf-header-cta { margin-left: 0; }
}

/* ④ Elég nagy érintési célpontok (min. 44px magas) a nyelvváltón és a „tovább"/„összes"
   linkeken. A szöveg mérete marad; csak a kattintható terület nő (negatív margóval, hogy a
   layout ne ugorjon). Minden felbontáson érvényes. */
.atf-lang-switch a,
.atf-section-link,
.atf-news-more {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 10px 8px; margin: -10px -2px;
}

/* ⑤ Popup mobilon: alulról felcsúszó „bottom sheet", nagyobb bezáró gombbal. */
@media (max-width: 640px) {
    .atf-popup { align-items: flex-end; padding: 0; }
    .atf-popup-box {
        width: 100%; max-width: 100%; max-height: 80vh;
        border-radius: 18px 18px 0 0; animation: atf-sheet-up 0.25s ease-out;
    }
    .atf-popup-close { width: 44px; height: 44px; top: 8px; right: 8px; font-size: 26px; }
    @keyframes atf-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
}

/* ── Adatkezelési tájékoztató oldal ─────────────────────────────────────── */
.atf-legal { line-height: 1.7; }
.atf-legal h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.atf-legal h3 { font-size: 1.05rem; margin: 18px 0 4px; }
.atf-legal p { margin: 0 0 12px; }
.atf-legal ul { margin: 0 0 14px 1.3em; }
.atf-legal li { margin: 0 0 6px; }
.atf-legal-updated { color: #8a8391; font-size: 14px; margin: 4px 0 20px; }
.atf-footer-legal-link { color: inherit; text-decoration: underline; }
.atf-footer-legal-link:hover { color: var(--atf-accent, #FF3F80); }

/* ── Süti (cookie) elfogadó sáv — statikus SSR, globális JS vezérli ──────── */
.atf-cookie {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    background: #241E2B; color: #fff;
    padding: 14px 20px;
    box-shadow: 0 -6px 24px rgba(36, 30, 43, 0.25);
}
.atf-cookie[hidden] { display: none; }
.atf-cookie-inner {
    max-width: 1120px; margin: 0 auto;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.atf-cookie-text { flex: 1 1 320px; font-size: 14px; line-height: 1.5; }
.atf-cookie-text a { color: #fff; text-decoration: underline; }
.atf-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.atf-cookie-btn {
    border: none; border-radius: 999px; padding: 10px 18px;
    font-weight: 600; font-size: 14px; font-family: 'Space Grotesk', sans-serif;
    cursor: pointer; min-height: 44px;
}
.atf-cookie-accept { background: #FF3F80; color: #fff; }
.atf-cookie-accept:hover { filter: brightness(1.06); }
.atf-cookie-decline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.atf-cookie-decline:hover { border-color: #fff; }
@media (max-width: 640px) {
    .atf-cookie-actions { width: 100%; }
    .atf-cookie-btn { flex: 1 1 auto; }
}

/* ── Szervező-kártya titulus (a név alatt) ──────────────────────────────── */
.atf-organizer-title { font-size: 13.5px; color: var(--atf-accent, #FF3F80); font-weight: 600; margin: 2px 0 6px; }

/* ── Minta feladat kártyák (videó-előnézet + megnevezés) ────────────────── */
.atf-sample-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.atf-sample-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    border: 1px solid var(--atf-border, #EFE3EB); border-radius: 14px; overflow: hidden;
    background: #fff; transition: box-shadow 0.15s ease, transform 0.15s ease;
    /* A kártya lehet <a> VAGY <button> (lejátszható videónál) — a button natív
       stílusát semlegesítjük, hogy azonosan nézzen ki. A justify-content:flex-start
       KRITIKUS: a <button> alapból középre igazít (justify-content:center), amitől a
       rövidebb nevű kártyán a thumb+név középre csúszott (rés a thumb fölött). */
    text-align: left; font: inherit; padding: 0; cursor: pointer; width: 100%;
    justify-content: flex-start;
}
.atf-sample-card:hover { box-shadow: 0 8px 22px rgba(36, 30, 43, 0.12); transform: translateY(-2px); }
.atf-sample-thumb {
    /* width:100% KELL — a thumb flex-elem (a ▶ ikon középre igazításához), és explicit
       szélesség nélkül a min-content szélességre zsugorodna (a kép ilyenkor apró marad).
       flex-shrink:0 KELL — a grid align-items:stretch miatt a kártyák egyforma magasak
       (a 2 soros névhez igazodva); enélkül az 1 soros nevű kártyáknál a thumb lecsúszna/
       torzulna. Így a thumb mindig fixen 16:9, a kártya tetején. */
    position: relative; width: 100%; flex: 0 0 auto; aspect-ratio: 16 / 9;
    background-size: cover; background-position: center;
    background-color: #241E2B; display: flex; align-items: center; justify-content: center;
}
.atf-sample-thumb-empty { background: linear-gradient(135deg, #241E2B, #3a3143); }
.atf-sample-play {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 63, 128, 0.92); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    padding-left: 3px; box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.atf-sample-name { padding: 10px 12px; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
