/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background: #f7f7f7;
}
a { color: #005af0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.site-header {
    background: #fff;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo svg { display: block; }
.logo-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #005af0;
    letter-spacing: -0.02em;
}
.main-nav a {
    margin-left: 1.5rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}
.main-nav a:hover {
    border-color: #ffd700;
    color: #005af0;
}

/* ===== Main container ===== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.6));
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
    max-width: 800px;
}
.hero h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3rem;
    margin: 0 0 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero .cta {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: underline;
    letter-spacing: 0.5px;
}
.hero .cta:hover {
    color: #fff;
    text-decoration: none;
}

/* ===== Intro section ===== */
.intro-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border-left: 6px solid #ffd700;
}
.intro-section h2 {
    font-family: 'Times New Roman', Times, serif;
    color: #005af0;
    margin-top: 0;
    margin-bottom: 1rem;
}
.intro-section p {
    margin: 0.5rem 0;
}

/* ===== Tabs section ===== */
.tabs-section {
    margin-top: 1rem;
}
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.tabs input[type=radio] {
    display: none;
}
.tabs label {
    padding: 0.6rem 1.2rem;
    background: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    user-select: none;
}
.tabs label:hover {
    background: #d0d0d0;
}
.tabs input[type=radio]:checked + label {
    background: #005af0;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.tab-panels .panel {
    display: none;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* show active panel */
#tab1:checked ~ .tab-panels #panel1 { display: block; }
#tab2:checked ~ .tab-panels #panel2 { display: block; }
#tab3:checked ~ .tab-panels #panel3 { display: block; }
#tab4:checked ~ .tab-panels #panel4 { display: block; }
#tab5:checked ~ .tab-panels #panel5 { display: block; }
#tab6:checked ~ .tab-panels #panel6 { display: block; }

/* ===== Index table ===== */
.index-table {
    width: 100%;
    border-collapse: collapse;
}
.index-table th,
.index-table td {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}
.index-table th {
    text-align: left;
    font-family: 'Times New Roman', Times, serif;
    color: #005af0;
    font-weight: bold;
}
.index-table a {
    color: #005af0;
    font-weight: bold;
}
.index-table td:last-child {
    color: #555;
}

/* ===== Accent bar ===== */
.accent-bar {
    width: 80px;
    height: 4px;
    background: #ffd700;
    margin: 1.5rem 0;
    border-radius: 2px;
}

/* ===== Footer ===== */
.site-footer {
    background: #222;
    color: #ccc;
    padding: 3rem 2rem;
    margin-top: 4rem;
}
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-col {
    flex: 1;
    min-width: 200px;
}
.footer-col h3 {
    color: #ffd700;
    font-family: 'Times New Roman', Times, serif;
    margin-top: 0;
}
.footer-col a {
    color: #aaa;
    text-decoration: none;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .site-header { padding: 0.8rem 1rem; }
    main { padding: 1rem; }
    .footer-columns { flex-direction: column; }
}

/* order-fix: радио внутри .tabs, панели снаружи — сиблинг-селектор не достаёт */
.tabs-section:has(#tab1:checked) #panel1,.tabs-section:has(#tab2:checked) #panel2,.tabs-section:has(#tab3:checked) #panel3,
.tabs-section:has(#tab4:checked) #panel4,.tabs-section:has(#tab5:checked) #panel5,.tabs-section:has(#tab6:checked) #panel6{display:block}
