/* ============================================================
   DENIS GLINCHEVSKY — Shared Stylesheet
   Style: original minimal, matches index.html exactly
   ============================================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 740px;
    margin: 0 auto;
    padding: 0 20px 20px;
    background-color: #fafafa;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- Site Header --- */
.site-header {
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0 0;
    margin-bottom: 0;
}

.site-header__eyebrow {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 4px;
}

.site-header__name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.site-header__sub {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 2px;
    padding-bottom: 12px;
}

/* --- Navigation --- */
.site-nav {
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 30px;
}

.site-nav__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.site-nav a {
    display: inline-block;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover {
    color: #111;
    border-bottom-color: #ccc;
}

.site-nav a.active {
    color: #111;
    border-bottom-color: #0066cc;
    font-weight: 500;
}

/* --- Page title --- */
header.page-header {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

header.page-header h1 {
    font-size: 2.3rem;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.meta-info {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* --- Section headings --- */
h2 {
    font-size: 1.6rem;
    color: #222;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.1rem;
    color: #333;
    margin-top: 24px;
    margin-bottom: 8px;
}

p { margin-bottom: 14px; }

/* --- Intro row (photo + lead text) --- */
.intro-row {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 25px;
}

.intro-box {
    flex: 1;
    background-color: #f0f4f8;
    border-left: 4px solid #0066cc;
    padding: 15px;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* --- Image blocks --- */
.img-infobox {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 220px;
    background: #f8f8f8;
    border: 1px solid #d0d0d0;
    font-size: 0.8rem;
    color: #555;
}

.img-infobox img {
    flex: 1;
    min-height: 0;
    height: 0;
    width: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.img-infobox .img-caption {
    padding: 6px 8px;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0;
}

.img-inline {
    float: right;
    margin: 5px 0 15px 20px;
    width: 280px;
    background: #f8f8f8;
    border: 1px solid #d0d0d0;
    font-size: 0.8rem;
    color: #555;
}

.img-inline img { width: 100%; max-width: 100%; height: auto; display: block; }

.img-inline .img-caption {
    padding: 6px 8px;
    text-align: center;
    line-height: 1.3;
}

.img-fullwidth {
    width: 100%;
    margin: 20px 0;
    background: #f8f8f8;
    border: 1px solid #d0d0d0;
    font-size: 0.8rem;
    color: #555;
}

.img-fullwidth img { width: 100%; max-width: 100%; height: auto; display: block; }

.img-fullwidth .img-caption {
    padding: 6px 10px;
    text-align: center;
    line-height: 1.3;
}

/* Section heading with club logo */
.section-heading-with-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.section-heading-with-logo h2 { margin: 0; border: none; padding: 0; }

.img-club-logo { width: 36px; height: 36px; flex-shrink: 0; }
.img-club-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Clearfix */
.clearfix::after { content: ''; display: table; clear: both; }

/* --- Blockquote --- */
.blockquote {
    font-style: italic;
    border-left: 3px solid #ccc;
    padding-left: 15px;
    margin: 20px 0;
    color: #555;
}

/* --- Stats table --- */
.stats-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
}

.stats-table th,
.stats-table td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 12px;
}

.stats-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.stats-table tr:nth-child(even) { background-color: #f9f9f9; }

/* --- Divider --- */
.rule {
    border: none;
    border-top: 1px solid #eee;
    margin: 28px 0;
}

/* --- Contact grid --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.contact-card {
    background: #f0f4f8;
    border: 1px solid #ddd;
    padding: 16px;
}

.contact-card h3 {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 6px;
    border: none;
    padding: 0;
}

.contact-card a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
}

.contact-card a:hover { text-decoration: underline; }

/* --- Social icons --- */
.social-links {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 3px;
    transition: background 0.15s;
}

.social-links a:hover { background: #0066cc; }

.social-links svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

/* --- Gallery grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.gallery-item:hover img { opacity: 0.85; }

.gallery-item .gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 7px;
    transform: translateY(100%);
    transition: transform 0.2s;
}

.gallery-item:hover .gallery-label { transform: translateY(0); }

.gallery-section-title {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin: 28px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

/* --- Achievement list --- */
.achievement-list {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.achievement-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.achievement-year {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    min-width: 62px;
}

/* --- Site Footer --- */
.site-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer__links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.15s;
}

.site-footer__links a:hover { color: #333; }

/* --- Mobile --- */
@media (max-width: 600px) {
    .intro-row { flex-direction: column; }
    .img-infobox { width: 100%; }
    .img-infobox img { height: 240px; }
    .img-inline { float: none; width: 100%; margin: 0 0 16px; }
    .stats-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer { flex-direction: column; }
    header.page-header h1 { font-size: 1.7rem; }
}
