@import url('fonts/fonts.css');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0F1115; /* Dark Charcoal Gym */
    color: #E2E8F0;
    line-height: 1.6;
}

h1, h2, h3, summary { font-family: 'Oswald', sans-serif; color: #D69E2E; /* Gold/Yellow accents */ text-transform: uppercase; letter-spacing: 1px;}

/* SKELETON B: INTERACTIVE DOM + FLEX ROW-REVERSE SCRAMBLER */

._bg_obrnat_konteiner {
    display: flex;
    flex-direction: column-reverse; /* Reverses the entire vertical block flow */
    min-height: 100vh;
}

/* 
DOM Order (Bottom to Top visual due to column-reverse):
- <dialog> (Visually Top / Header)
- <picture> (Visually Hero)
- <details> (Visually Services)
- <menu> (Visually Footer)
*/

/* Header Simulation using Dialog */
dialog._bg_dialog_header {
    position: relative; display: flex; justify-content: space-between; align-items: center;
    background: #1A202C; border: none; width: 100%; padding: 25px 10%; color: #FFF;
    border-bottom: 2px solid #9B2C2C; /* Deep Red */
}
._bg_alfa_logo { font-size: 32px; font-weight: 700; color: #E2E8F0; letter-spacing: 2px; font-family: 'Oswald', sans-serif;}
._bg_alfa_logo span { color: #D69E2E; }
._bg_navigacia a { color: #A0AEC0; text-decoration: none; margin-left: 25px; font-weight: 500; font-size: 15px; text-transform: uppercase;}
._bg_navigacia a:hover, ._bg_navigacia a._bg_aktiven { color: #D69E2E; }

/* Hero Simulation using Picture wrapper */
picture._bg_kartina_hero {
    display: flex; align-items: center; gap: 50px; padding: 100px 10%;
    background: radial-gradient(circle at 70% 50%, #2D3748 0%, #0F1115 100%);
    border-bottom: 1px solid #2D3748;
}
._bg_tekst_hero { flex: 1; }
._bg_tekst_hero h1 { font-size: 64px; line-height: 1.1; margin-bottom: 25px; color: #FFF;}
._bg_tekst_hero p { font-size: 20px; color: #CBD5E0; margin-bottom: 35px; }

._bg_butonia_red {
    display: inline-block; padding: 16px 35px; background: #9B2C2C; color: #FFF !important;
    font-family: 'Oswald', sans-serif; text-decoration: none; font-size: 18px; letter-spacing: 1px; transition: 0.3s;
    border: 2px solid transparent; text-transform: uppercase;
}
._bg_butonia_red:hover { background: transparent; border-color: #9B2C2C; color: #FC8181 !important; }

picture._bg_kartina_hero img { flex: 1; max-width: 550px; width: 100%; border-radius: 4px; box-shadow: -20px 20px 0px rgba(155, 44, 44, 0.4); }

/* Content Section using Details/Summary (forcing open via HTML) */
details._bg_sektia_detajli {
    padding: 80px 10%;
    background: #0F1115;
}
details._bg_sektia_detajli > summary {
    font-size: 42px; margin-bottom: 50px; text-align: center; list-style: none;
}
details._bg_sektia_detajli > summary::-webkit-details-marker { display: none; }

._bg_mrezha_trenirovki { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
._bg_karta_trenior {
    background: #1A202C; padding: 40px 30px; border-top: 4px solid #D69E2E; 
    transition: 0.3s;
}
._bg_karta_trenior:hover { background: #2D3748; }
._bg_karta_trenior h3 { font-size: 26px; color: #FFF; margin-bottom: 15px;}

/* Form inside Details */
._bg_zala_forma { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px;}
._bg_zala_forma input, ._bg_zala_forma textarea {
    background: #1A202C; border: 1px solid #4A5568; color: #FFF; padding: 16px; font-family: 'Roboto', sans-serif; font-size: 16px;
}
._bg_zala_forma input:focus, ._bg_zala_forma textarea:focus { outline: none; border-color: #D69E2E; }

/* Footer using Menu */
menu._bg_meniu_futer {
    background: #000000; padding: 40px 10%; display: flex; justify-content: space-between; align-items: center; list-style: none;
    border-top: 1px solid #2D3748; font-size: 14px;
}
menu._bg_meniu_futer li a { color: #718096; text-decoration: none; text-transform: uppercase; letter-spacing: 1px;}
menu._bg_meniu_futer li a:hover { color: #D69E2E; }

/* Inner Overrides */
._bg_vatreshna picture._bg_kartina_hero { justify-content: center; text-align: center; padding: 70px 10%; background: #9B2C2C;}
._bg_vatreshna picture._bg_kartina_hero h1 { margin: 0; color: #FFF;}
._bg_statiq { max-width: 800px; margin: 0 auto; font-size: 18px; color: #CBD5E0; }
._bg_statiq p { margin-bottom: 25px; }

@media (max-width: 768px) {
    dialog._bg_dialog_header { flex-direction: column; gap: 20px; }
    picture._bg_kartina_hero { flex-direction: column; text-align: center; }
    picture._bg_kartina_hero img { box-shadow: 0px 20px 0px rgba(155, 44, 44, 0.4); }
    menu._bg_meniu_futer { flex-direction: column; gap: 15px; text-align: center;}
}
