/* ==========================================================================
   ТРОО «ФАРБ Тамбовской области» — собственный файл стилей (только для лендинга)
   Палитра: почти чёрный фон + яркий жёлто-оранжевый акцент, крупная типографика.
   Шрифты: Bebas Neue (акцидентные заголовки) + Manrope (текст).
   ========================================================================== */

:root {
    --black: #0d0d0f;
    --black-2: #16171b;
    --steel: #23252b;
    --yellow: #ffd21f;
    --orange: #ff6a00;
    --paper: #f2f2f0;
    --text: #d7d8dc;
    --muted: #8c8f98;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0; background: var(--paper); color: #17181c;
    font-family: 'Manrope', Arial, sans-serif; font-size: 16px; line-height: 1.62;
}

.frame { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.sec { padding: 80px 0; }

h1, h2, h3 { font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-weight: 400; letter-spacing: .02em; margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1; text-transform: uppercase; }

.sec__label {
    display: inline-block; font-family: 'Manrope', sans-serif; font-size: 12px;
    font-weight: 800; letter-spacing: .26em; text-transform: uppercase;
    color: var(--orange); margin-bottom: 14px;
}
.sec__label--dark { color: #a0a3ab; }

/* --------------------------- ГЛАВНОЕ МЕНЮ --------------------------- */
.bar { background: var(--black); position: sticky; top: 0; z-index: 70; }
.bar__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.bar__logo {
    font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: .1em;
    color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: .9;
}
.bar__logo span {
    font-family: 'Manrope', sans-serif; font-size: 9px; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); margin-top: 4px;
}
.bar__nav { display: flex; align-items: center; gap: 26px; }
.bar__nav a {
    color: #b9bcc4; text-decoration: none; font-size: 14px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; transition: .2s;
}
.bar__nav a:hover { color: var(--yellow); }
.bar__join {
    background: var(--yellow); color: var(--black) !important;
    padding: 10px 20px; transform: skewX(-8deg);
}
.bar__join:hover { background: var(--orange); color: #fff !important; }
.bar__burger { display: none; }

/* ------------------------------- HERO ------------------------------- */
.hero { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; left: -10%; top: 0; bottom: 0; width: 55%;
    background: linear-gradient(90deg, rgba(255,210,31,.09), transparent 70%);
}
.hero__row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 62px; padding-bottom: 62px; position: relative; }
.hero__since {
    font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
    color: var(--yellow); margin: 0 0 18px;
}
.hero h1 {
    color: #fff; font-size: clamp(52px, 9vw, 118px); line-height: .86;
    text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--yellow); -webkit-text-stroke: 0; }
.hero__desc { color: #a9acb4; max-width: 520px; margin: 0 0 28px; font-size: 16px; }
.hero__cta {
    display: inline-block; padding: 16px 34px; text-decoration: none;
    background: var(--orange); color: #fff; font-weight: 800; font-size: 14px;
    letter-spacing: .1em; text-transform: uppercase; transition: .2s;
}
.hero__cta:hover { background: var(--yellow); color: var(--black); }

.hero__pix { position: relative; }
.hero__pix img {
    width: 100%; height: 560px; object-fit: cover; display: block;
    filter: grayscale(.75) contrast(1.05);
}
.hero__plaque {
    position: absolute; right: -10px; bottom: 24px; background: var(--yellow); color: var(--black);
    font-family: 'Bebas Neue', sans-serif; font-size: 40px; line-height: .9;
    padding: 14px 20px; text-align: right; transform: skewX(-6deg);
}
.hero__plaque small { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: block; margin-top: 6px; }

/* ------------------------------- ABOUT ------------------------------ */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; }
.about__body p { margin: 0 0 16px; color: #33353b; }
.about__note {
    background: var(--black); color: #c9ccd2; padding: 22px 26px; margin-top: 22px;
    border-left: 6px solid var(--yellow);
}
.about__note b {
    display: block; font-family: 'Bebas Neue', sans-serif; font-size: 30px;
    color: #fff; letter-spacing: .06em; margin-bottom: 6px;
}
.about__note p { margin: 0; color: #b3b7bf; font-size: 15px; }

/* ---------------------------- DIRECTIONS ---------------------------- */
.directions { background: var(--black-2); color: var(--text); }
.directions__h { color: #fff; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cell {
    background: #1c1e23; border: 1px solid #2c2f36; padding: 26px 22px;
    position: relative; transition: .25s;
}
.cell:hover { border-color: var(--yellow); transform: translateY(-6px); }
.cell__i {
    font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: var(--orange);
    display: block; margin-bottom: 8px; line-height: 1;
}
.cell h3 { color: #fff; font-size: 26px; line-height: 1; margin-bottom: 10px; }
.cell p { margin: 0; font-size: 14.5px; color: #9ea2ab; }
.directions__wide { width: 100%; height: 340px; object-fit: cover; display: block; margin-top: 26px; filter: grayscale(.6); }

/* ------------------------------- FACTS ------------------------------ */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.number { border-top: 4px solid var(--black); padding-top: 16px; }
.number b {
    display: block; font-family: 'Bebas Neue', sans-serif; font-size: 54px;
    line-height: .9; color: var(--black); margin-bottom: 8px;
}
.number span { font-size: 14px; color: #5d6068; }
.callout {
    background: #fff; border: 2px solid var(--black); padding: 20px 24px;
    box-shadow: 8px 8px 0 var(--yellow);
}
.callout p { margin: 0; font-size: 16px; color: #2c2e34; }

/* ----------------------------- TIMELINE ----------------------------- */
.tournaments { background: #fff; }
.timeline { list-style: none; margin: 34px 0 0; padding: 0; position: relative; }
.timeline::before {
    content: ""; position: absolute; left: 148px; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(180deg, var(--yellow), var(--orange));
}
.tl { display: grid; grid-template-columns: 130px 1fr; gap: 40px; padding-bottom: 34px; position: relative; }
.tl:last-child { padding-bottom: 0; }
.tl__year {
    font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: var(--black);
    text-align: right; padding-top: 2px; letter-spacing: .03em;
}
.tl__body { position: relative; padding-left: 26px; }
.tl__body::before {
    content: ""; position: absolute; left: -12px; top: 10px; width: 14px; height: 14px;
    background: var(--orange); border: 3px solid #fff; border-radius: 50%;
}
.tl__body h3 { font-size: 26px; line-height: 1.05; margin-bottom: 6px; }
.tl__body p { margin: 0; color: #4a4d55; font-size: 15px; }

/* ------------------------------ DETAILS ----------------------------- */
.details { background: var(--steel); color: var(--text); }
.details__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; }
.details__grid h2 { color: #fff; }
.details__box p {
    margin: 0 0 14px; font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid #343842;
}
.details__box p:last-child { border-bottom: 0; }
.details__box span {
    display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--yellow); margin-bottom: 4px;
}
.details__box a { color: #fff; }

/* ------------------------------ CONTACTS ---------------------------- */
.contacts { background: var(--yellow); color: var(--black); }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.contacts__h { font-size: clamp(34px, 5vw, 64px); margin-bottom: 14px; }
.contacts .sec__label { color: #7a5b00; }
.contacts__links { display: grid; gap: 12px; }
.big-link {
    display: flex; flex-direction: column; text-decoration: none; color: var(--black);
    background: rgba(0,0,0,.06); border-left: 5px solid var(--black); padding: 16px 20px; transition: .2s;
}
.big-link:hover { background: rgba(0,0,0,.12); }
.big-link--static { border-left-color: rgba(0,0,0,.45); }
.big-link span { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.big-link b { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: .02em; }

/* -------------------------------- FOOT ------------------------------ */
.foot { background: var(--black); color: #7e828b; padding: 22px 0; font-size: 14px; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.foot p { margin: 0; }

/* ------------------------------- АДАПТИВ ---------------------------- */
@media (max-width: 1020px) {
    .hero__row { grid-template-columns: 1fr; }
    .hero__pix img { height: 380px; }
    .hero__plaque { right: 10px; }
    .about__grid, .details__grid, .contacts__grid { grid-template-columns: 1fr; gap: 30px; }
    .grid { grid-template-columns: 1fr 1fr; }
    .numbers { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .bar { position: relative; }
    .bar__row { position: relative; }
    .bar__burger {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 40px; padding: 0 10px; cursor: pointer; border: 1px solid #383b43;
    }
    .bar__burger span { display: block; height: 2px; background: var(--yellow); }
    .bar__nav {
        position: absolute; left: 0; right: 0; top: 100%; background: var(--black-2);
        flex-direction: column; align-items: stretch; gap: 0; max-height: 0; overflow: hidden;
        transition: max-height .3s;
    }
    .bar__toggle:checked ~ .bar__nav { max-height: 360px; }
    .bar__nav a { padding: 15px 22px; border-bottom: 1px solid #26282e; }
    .bar__join { margin: 12px 22px; text-align: center; }

    .grid, .numbers { grid-template-columns: 1fr; }
    .timeline::before { left: 8px; }
    .tl { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
    .tl__year { text-align: left; }
    .tl__body { padding-left: 0; }
    .tl__body::before { left: -30px; }
    .sec { padding: 54px 0; }
    .hero h1 { font-size: clamp(48px, 15vw, 80px); }
    .directions__wide { height: 220px; }
    .cell h3 { font-size: 22px; }
}
