/* ==========================================================================
   theflyingpeople.com – дизайн система и обща рамка на сайта
   Меню, долна лента (телефон), долна част (footer), търсене, бутони.
   Всички класове започват с tf-, за да не се смесват със стария main.css.
   Рамката се слага във всички страници с tools/obshto/obshto.py.
   ========================================================================== */

:root {
    /* Марка */
    --tf-sky: #3CB4E5;          /* синьото от логото */
    --tf-sky-50: #EEF8FD;
    --tf-sky-100: #D6EFFA;
    --tf-sky-600: #1C8DC2;
    --tf-primary: #136F9E;      /* основни бутони и връзки – контраст 5.3:1 с бяло */
    --tf-primary-hover: #0E5A82;
    --tf-navy: #0B1B33;         /* тъмни площи, footer */
    --tf-navy-800: #12284A;
    --tf-accent: #F5A623;       /* залез – само за акценти */

    /* Текст и линии */
    --tf-ink: #0F1B2D;
    --tf-text: #334155;
    --tf-muted: #64748B;
    --tf-line: #E3E9F0;
    --tf-soft: #F5F8FB;
    --tf-white: #FFFFFF;

    /* Шрифт */
    --tf-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --tf-fs-xs: 0.8125rem;
    --tf-fs-sm: 0.875rem;
    --tf-fs-base: 1rem;
    --tf-fs-lg: 1.125rem;
    --tf-fs-xl: 1.375rem;
    --tf-fs-2xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
    --tf-fs-3xl: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);

    /* Отстояния, радиуси, сенки */
    --tf-s1: 0.25rem; --tf-s2: 0.5rem; --tf-s3: 0.75rem; --tf-s4: 1rem;
    --tf-s5: 1.5rem; --tf-s6: 2rem; --tf-s7: 3rem; --tf-s8: 4rem;
    --tf-r-sm: 8px; --tf-r: 12px; --tf-r-lg: 18px; --tf-r-full: 999px;
    --tf-shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
    --tf-shadow: 0 8px 24px rgba(15, 27, 45, 0.08), 0 2px 6px rgba(15, 27, 45, 0.04);
    --tf-shadow-lg: 0 24px 60px rgba(15, 27, 45, 0.16);
    --tf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    /* Рамка */
    --tf-header-h: 72px;
    --tf-tabbar-h: 64px;
    --tf-max: 1200px;
}
@media (max-width: 959px) { :root { --tf-header-h: 64px; } }

/* --------------------------------------------------------------------------
   Общи
   -------------------------------------------------------------------------- */
.tf-skip {
    position: absolute; left: 8px; top: -60px; z-index: 10050;
    background: var(--tf-navy); color: #fff; padding: 10px 16px; border-radius: var(--tf-r-sm);
    font: 600 var(--tf-fs-sm)/1 var(--tf-font); text-decoration: none;
}
.tf-skip:focus { top: 8px; }

.tf-header a:focus-visible, .tf-header button:focus-visible,
.tf-footer a:focus-visible, .tf-footer button:focus-visible,
.tf-tabbar a:focus-visible, .tf-tabbar button:focus-visible,
.tf-search button:focus-visible, .tf-search a:focus-visible, .tf-btn:focus-visible {
    outline: 3px solid var(--tf-sky); outline-offset: 2px; border-radius: var(--tf-r-sm);
}

.tf-ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Бутони */
.tf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px; border-radius: var(--tf-r-full);
    font: 600 var(--tf-fs-sm)/1 var(--tf-font); letter-spacing: 0.01em;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: background-color .2s var(--tf-ease), color .2s, border-color .2s, transform .2s var(--tf-ease), box-shadow .2s;
    white-space: nowrap;
}
.tf-btn--primary { background: var(--tf-primary); color: #fff; box-shadow: 0 6px 16px rgba(19, 111, 158, 0.28); }
.tf-btn--primary:hover { background: var(--tf-primary-hover); color: #fff; transform: translateY(-1px); }
.tf-btn--ghost { background: transparent; color: var(--tf-ink); border-color: var(--tf-line); }
.tf-btn--ghost:hover { border-color: var(--tf-ink); }
.tf-btn--light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.22); }
.tf-btn--light:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* Страницата не е под лентите */
body.tf-shell { padding-bottom: 0 !important; }
@media (max-width: 767px) {
    body.tf-shell { padding-bottom: calc(var(--tf-tabbar-h) + env(safe-area-inset-bottom)) !important; }
}
body.tf-lock { overflow: hidden; }

/* --------------------------------------------------------------------------
   Горно меню
   -------------------------------------------------------------------------- */
.tf-header {
    position: fixed; inset: 0 0 auto 0; z-index: 10000;
    height: var(--tf-header-h);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
    font-family: var(--tf-font);
}
.tf-header.is-scrolled { border-bottom-color: var(--tf-line); box-shadow: 0 4px 20px rgba(15, 27, 45, 0.06); background: rgba(255,255,255,0.97); }
.tf-header__in {
    max-width: var(--tf-max); height: 100%; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 16px;
}
.tf-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; margin-right: auto; }
.tf-logo img { height: 46px; width: auto; display: block; }
.tf-logo span {
    font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.7rem; line-height: 1;
    color: var(--tf-primary); white-space: nowrap; letter-spacing: 0.01em;
}
@media (max-width: 959px) { .tf-logo img { height: 40px; } .tf-logo span { font-size: 1.5rem; } }

.tf-nav { display: flex; align-items: center; }
.tf-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tf-nav__item { position: relative; list-style: none; }
.tf-nav__link, .tf-nav__btn {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
    border-radius: var(--tf-r-full); border: 0; background: transparent; cursor: pointer;
    font: 600 0.9375rem/1 var(--tf-font); color: var(--tf-ink); text-decoration: none;
    transition: background-color .15s, color .15s;
}
.tf-nav__link:hover, .tf-nav__btn:hover, .tf-nav__item.is-open > .tf-nav__btn { background: var(--tf-soft); color: var(--tf-primary); }
.tf-nav__item.is-current > .tf-nav__link, .tf-nav__item.is-current > .tf-nav__btn { color: var(--tf-primary); }
.tf-nav__item.is-current > .tf-nav__link::after, .tf-nav__item.is-current > .tf-nav__btn::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--tf-sky);
}
.tf-nav__btn .tf-chev { width: 14px; height: 14px; transition: transform .2s var(--tf-ease); }
.tf-nav__item.is-open > .tf-nav__btn .tf-chev { transform: rotate(180deg); }

/* Падащ панел */
.tf-panel {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
    min-width: 300px; padding: 10px; background: #fff; border: 1px solid var(--tf-line);
    border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow-lg);
    opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s var(--tf-ease), visibility 0s linear .18s;
}
.tf-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* мост за мишката */
.tf-nav__item.is-open > .tf-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.tf-panel--wide { min-width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.tf-panel__title {
    grid-column: span 1; margin: 6px 12px 4px; font: 700 var(--tf-fs-xs)/1.2 var(--tf-font);
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-muted);
}
.tf-panel__col { display: flex; flex-direction: column; }
.tf-panel a {
    display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--tf-r);
    text-decoration: none; color: var(--tf-ink); transition: background-color .15s;
}
.tf-panel a:hover { background: var(--tf-sky-50); }
.tf-panel a.is-current { background: var(--tf-sky-50); }
.tf-panel a .tf-ico { margin-top: 2px; color: var(--tf-sky-600); }
.tf-panel b { display: block; font: 600 var(--tf-fs-sm)/1.3 var(--tf-font); }
.tf-panel small { display: block; margin-top: 2px; font: 400 var(--tf-fs-xs)/1.4 var(--tf-font); color: var(--tf-muted); }
.tf-panel__foot {
    grid-column: 1 / -1; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--tf-line);
}

.tf-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.tf-iconbtn {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--tf-r-full); border: 0; background: transparent; color: var(--tf-ink); cursor: pointer;
    transition: background-color .15s, color .15s;
}
.tf-iconbtn:hover { background: var(--tf-soft); color: var(--tf-primary); }
.tf-burger { display: none; }
.tf-drawer-foot { display: none; }

/* Мобилно меню – цял екран, групи като акордеон */
@media (max-width: 959px) {
    /* backdrop-filter прави лентата „рамка“ за fixed панела и го реже – на телефон без него */
    .tf-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,0.98); }
    .tf-header__in { padding: 0 8px 0 16px; gap: 4px; }
    .tf-burger { display: inline-flex; }
    .tf-actions .tf-btn { display: none; }
    .tf-nav {
        position: fixed; left: 0; right: 0; top: var(--tf-header-h); bottom: 0;
        background: #fff; display: block; overflow-y: auto; -webkit-overflow-scrolling: touch;
        padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .2s, transform .2s var(--tf-ease), visibility 0s linear .2s;
        border-top: 1px solid var(--tf-line);
    }
    .tf-header.is-menu-open .tf-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .tf-header.is-menu-open { background: #fff; }
    .tf-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .tf-nav__item { border-bottom: 1px solid var(--tf-line); }
    .tf-nav__link, .tf-nav__btn {
        width: 100%; height: 56px; padding: 0 4px; border-radius: 0; justify-content: space-between;
        font-size: 1.0625rem;
    }
    .tf-nav__link:hover, .tf-nav__btn:hover, .tf-nav__item.is-open > .tf-nav__btn { background: transparent; }
    .tf-nav__item.is-current > .tf-nav__link::after, .tf-nav__item.is-current > .tf-nav__btn::after { display: none; }
    .tf-panel, .tf-panel--wide {
        position: static; transform: none; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none;
        border-radius: 0; display: none; opacity: 1; visibility: visible;
    }
    .tf-panel::before { display: none; }
    .tf-nav__item.is-open > .tf-panel { display: block; transform: none; }
    .tf-panel a { padding: 10px 8px; }
    .tf-panel__title { margin: 12px 8px 4px; }
    .tf-drawer-foot { display: grid; gap: 10px; margin-top: 20px; }
    .tf-drawer-foot .tf-btn { width: 100%; min-height: 50px; font-size: var(--tf-fs-base); }
}

/* --------------------------------------------------------------------------
   Долна лента (само телефон)
   -------------------------------------------------------------------------- */
.tf-tabbar { display: none; }
@media (max-width: 767px) {
    .tf-tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
        height: calc(var(--tf-tabbar-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(255,255,255,0.96);
        -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
        border-top: 1px solid var(--tf-line);
        font-family: var(--tf-font);
    }
    .tf-tabbar a, .tf-tabbar button {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        border: 0; background: transparent; cursor: pointer; text-decoration: none;
        color: var(--tf-muted); font: 600 0.6875rem/1 var(--tf-font); padding: 0;
        -webkit-tap-highlight-color: transparent;
    }
    .tf-tabbar .tf-ico { width: 22px; height: 22px; }
    .tf-tabbar .is-current { color: var(--tf-primary); }
    .tf-tabbar .is-current .tf-ico { stroke-width: 2.2; }
}
/* плаващият бутон за Viber стои над долната лента */
@media (max-width: 767px) {
    body.tf-shell #viber-chat-widget { bottom: calc(var(--tf-tabbar-h) + 12px + env(safe-area-inset-bottom)) !important; right: 12px !important; }
}
/* старата лента и старото меню вече не се показват */
body.tf-shell .mobile-bottom-nav, body.tf-shell .navbar { display: none !important; }

/* --------------------------------------------------------------------------
   Долна част (footer)
   -------------------------------------------------------------------------- */
.tf-footer {
    background: var(--tf-navy); color: rgba(255,255,255,0.72);
    font-family: var(--tf-font); font-size: var(--tf-fs-sm); line-height: 1.6;
    margin: 0 !important;
}
.tf-footer__cta {
    max-width: var(--tf-max); margin: 0 auto; padding: 48px 20px 40px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tf-footer__cta h2 { margin: 0; color: #fff; font: 700 var(--tf-fs-2xl)/1.15 var(--tf-font); font-size: var(--tf-fs-2xl) !important; letter-spacing: -0.02em; }
.tf-footer__cta p { margin: 6px 0 0; color: rgba(255,255,255,0.7); font-size: var(--tf-fs-base); }
.tf-footer__cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tf-footer__grid {
    max-width: var(--tf-max); margin: 0 auto; padding: 40px 20px 32px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px;
}
.tf-footer__brand img { height: 52px; width: auto; display: block; margin-bottom: 12px; }
.tf-footer__brand p { margin: 0 0 16px; max-width: 30ch; }
.tf-footer h3 {
    margin: 0 0 14px; color: #fff; font: 700 var(--tf-fs-xs)/1.2 var(--tf-font);
    font-size: var(--tf-fs-xs) !important; /* main.css налага размер на всички h3 на телефон */
    letter-spacing: 0.08em; text-transform: uppercase;
}
.tf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tf-footer li, .tf-footer p { font-size: var(--tf-fs-sm); line-height: 1.6; }
.tf-footer a { color: rgba(255,255,255,0.78); text-decoration: none; transition: color .15s; }
.tf-footer a:hover { color: #fff; }
.tf-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.tf-footer__contact .tf-ico { width: 18px; height: 18px; margin-top: 2px; color: var(--tf-sky); }
.tf-social { display: flex; gap: 8px; }
.tf-social a {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--tf-r-full); background: rgba(255,255,255,0.08); color: #fff;
}
.tf-social a:hover { background: rgba(255,255,255,0.16); }
.tf-social svg { width: 18px; height: 18px; fill: currentColor; }
.tf-footer__bottom {
    max-width: var(--tf-max); margin: 0 auto; padding: 20px 20px 28px;
    display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); font-size: var(--tf-fs-xs);
}
.tf-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tf-footer__bottom a, .tf-footer__bottom button { color: rgba(255,255,255,0.55); }
.tf-footer__bottom button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.tf-footer__bottom a:hover, .tf-footer__bottom button:hover { color: #fff; }
@media (max-width: 1023px) {
    .tf-footer__grid { grid-template-columns: 1fr 1fr; }
    .tf-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .tf-footer__cta { padding: 36px 20px 28px; }
    .tf-footer__cta-btns, .tf-footer__cta-btns .tf-btn { width: 100%; }
    .tf-footer__grid { gap: 28px 20px; padding-top: 32px; }
    .tf-footer__contact { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Търсене
   -------------------------------------------------------------------------- */
.tf-search[hidden] { display: none; }
.tf-search {
    position: fixed; inset: 0; z-index: 10040; display: flex; justify-content: center; align-items: flex-start;
    padding: 12vh 16px 16px; background: rgba(11, 27, 51, 0.55);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-family: var(--tf-font);
}
.tf-search__box {
    width: 100%; max-width: 640px; max-height: 76vh; display: flex; flex-direction: column;
    background: #fff; border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow-lg); overflow: hidden;
}
.tf-search__bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; border-bottom: 1px solid var(--tf-line); }
.tf-search__bar .tf-ico { color: var(--tf-muted); }
.tf-search__bar input {
    flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent;
    font: 500 var(--tf-fs-lg)/1 var(--tf-font); color: var(--tf-ink);
}
.tf-search__list { overflow-y: auto; padding: 8px; margin: 0; list-style: none; }
.tf-search__list a { display: block; padding: 10px 12px; border-radius: var(--tf-r); text-decoration: none; color: var(--tf-ink); }
.tf-search__list a:hover, .tf-search__list a.is-active { background: var(--tf-sky-50); }
.tf-search__list b { display: block; font: 600 var(--tf-fs-sm)/1.35 var(--tf-font); }
.tf-search__list small { display: block; margin-top: 2px; color: var(--tf-muted); font-size: var(--tf-fs-xs); line-height: 1.45; }
.tf-search__list mark { background: #FFF1C2; color: inherit; border-radius: 3px; }
.tf-search__empty { padding: 20px 14px; color: var(--tf-muted); font-size: var(--tf-fs-sm); }
.tf-search__hint { padding: 10px 18px; border-top: 1px solid var(--tf-line); color: var(--tf-muted); font-size: var(--tf-fs-xs); }
@media (max-width: 767px) { .tf-search { padding: 0; } .tf-search__box { max-width: none; max-height: none; height: 100%; border-radius: 0; } }

@media (prefers-reduced-motion: reduce) {
    .tf-header, .tf-panel, .tf-nav, .tf-btn { transition: none !important; }
}
@media print { .tf-header, .tf-tabbar, .tf-footer, .tf-search { display: none !important; } }

/* --------------------------------------------------------------------------
   Отзиви от Google (началната страница)
   -------------------------------------------------------------------------- */
.tf-reviews {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    max-width: var(--tf-max); margin: 0 auto 40px; font-family: var(--tf-font);
}
.tf-reviews__sum {
    grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: var(--tf-r-full); background: #fff; border: 1px solid var(--tf-line);
    color: var(--tf-ink); text-decoration: none; font-size: var(--tf-fs-sm); box-shadow: var(--tf-shadow-sm);
}
.tf-reviews__sum b { font-size: var(--tf-fs-lg); }
.tf-reviews__sum span:last-child { color: var(--tf-muted); }
.tf-review {
    margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 24px;
    background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow);
    transition: transform .2s var(--tf-ease), box-shadow .2s;
}
.tf-review:hover { transform: translateY(-3px); box-shadow: var(--tf-shadow-lg); }
.tf-review__text {
    margin: 0; position: relative; padding-top: 30px; color: var(--tf-text);
    font-size: var(--tf-fs-base); line-height: 1.65;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
}
.tf-review__text::before {
    content: '\201C'; position: absolute; top: 0; left: -2px; font: 700 44px/0.8 Georgia, serif; color: var(--tf-sky);  opacity: .35;
}
.tf-review__text.is-open { -webkit-line-clamp: unset; display: block; }
.tf-review__more {
    align-self: flex-start; margin-top: -10px; padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--tf-primary); font: 600 var(--tf-fs-sm)/1 var(--tf-font);
}
.tf-review__who { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--tf-line); }
.tf-review__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--tf-sky-50); }
.tf-review__photo--init { display: inline-flex; align-items: center; justify-content: center; color: var(--tf-primary); font: 700 1.25rem/1 var(--tf-font); }
.tf-review__who b { display: block; color: var(--tf-ink); font-size: var(--tf-fs-base); }
.tf-review__who small { display: block; color: var(--tf-muted); font-size: var(--tf-fs-xs); margin-top: 2px; }
.tf-review__stars { color: #F5B301; letter-spacing: 1px; font-size: 0.95rem; }
@media (max-width: 1023px) { .tf-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
    .tf-reviews { grid-template-columns: 1fr; gap: 14px; }
    .tf-review { padding: 20px; }
}

/* --------------------------------------------------------------------------
   Заглавна лента на вътрешните страници – една за всички
   (старите .aviation-header и .page-header; !important побеждава вградените стилове)
   -------------------------------------------------------------------------- */
body.tf-shell .aviation-header,
body.tf-shell .page-header {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    background:
        radial-gradient(900px 340px at 85% -20%, rgba(60, 180, 229, 0.38), transparent 65%),
        radial-gradient(700px 300px at 0% 120%, rgba(60, 180, 229, 0.18), transparent 60%),
        linear-gradient(160deg, #0B1B33 0%, #12355E 55%, #136F9E 100%) !important;
    padding: calc(var(--tf-header-h) + 44px) 20px 52px !important;
    font-family: var(--tf-font);
}
body.tf-shell .aviation-header::before { display: none; }
body.tf-shell .aviation-header .clouds,
body.tf-shell .aviation-header .stars,
body.tf-shell .aviation-header .header-line { display: none !important; }
body.tf-shell .aviation-header .header-content,
body.tf-shell .page-header .container { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 0; }
body.tf-shell .aviation-header .header-title,
body.tf-shell .page-header h1,
body.tf-shell .page-header .page-header__title {
    margin: 0 0 12px !important; color: #fff;
    font: 800 clamp(2rem, 1.35rem + 2.4vw, 3rem)/1.12 var(--tf-font) !important;
    letter-spacing: -0.02em; text-shadow: none; text-transform: none;
}
body.tf-shell .aviation-header .header-subtitle,
body.tf-shell .page-header p:not(.page-header__title) {
    max-width: 640px; margin: 0 auto !important; opacity: 1 !important;
    color: rgba(255, 255, 255, 0.8); font: 400 clamp(1rem, 0.95rem + 0.3vw, 1.15rem)/1.6 var(--tf-font) !important;
    letter-spacing: 0; padding: 0 !important;
}
@media (max-width: 767px) {
    body.tf-shell .aviation-header, body.tf-shell .page-header { padding: calc(var(--tf-header-h) + 28px) 18px 36px !important; }
}

/* Път (трохи) */
.tf-crumbs ol {
    list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0;
    font: 500 var(--tf-fs-xs)/1.4 var(--tf-font); color: rgba(255, 255, 255, 0.62);
}
.tf-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.tf-crumbs li + li::before { content: ''; width: 5px; height: 5px; margin: 0 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.tf-crumbs a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.tf-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tf-crumbs [aria-current] { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
@media (max-width: 767px) { .tf-crumbs [aria-current] { max-width: 24ch; } }

/* --------------------------------------------------------------------------
   Единни компоненти върху стария main.css (етап 2)
   -------------------------------------------------------------------------- */

/* Бутони: .btn / .btn-primary / .btn-outline / .btn-secondary стават като .tf-btn */
body.tf-shell .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 24px !important; border-radius: var(--tf-r-full) !important;
    font: 600 var(--tf-fs-base)/1.2 var(--tf-font) !important; letter-spacing: 0.005em; text-decoration: none;
    transition: background-color .2s var(--tf-ease), color .2s, border-color .2s, transform .2s var(--tf-ease), box-shadow .2s;
}
body.tf-shell .btn-primary {
    background: var(--tf-primary) !important; color: #fff !important; border: 1px solid transparent !important;
    box-shadow: 0 6px 16px rgba(19, 111, 158, 0.26) !important;
}
body.tf-shell .btn-primary:hover { background: var(--tf-primary-hover) !important; transform: translateY(-1px); }
body.tf-shell .btn-outline {
    background: #fff !important; color: var(--tf-primary) !important; border: 1.5px solid rgba(19, 111, 158, 0.35) !important; box-shadow: none !important;
}
body.tf-shell .btn-outline:hover { border-color: var(--tf-primary) !important; background: var(--tf-sky-50) !important; color: var(--tf-primary-hover) !important; }
body.tf-shell .btn-secondary { border-radius: var(--tf-r-full) !important; }
@media (max-width: 479px) { body.tf-shell .btn { font-size: var(--tf-fs-sm) !important; padding: 0 18px !important; } }

/* Заглавия на секции */
body.tf-shell .section-title {
    color: var(--tf-ink) !important; font: 800 var(--tf-fs-2xl)/1.15 var(--tf-font) !important; letter-spacing: -0.02em;
}
body.tf-shell .section-subtitle { color: var(--tf-muted) !important; font: 400 var(--tf-fs-lg)/1.6 var(--tf-font) !important; max-width: 640px; margin-left: auto; margin-right: auto; }
body.tf-shell .about-content h1, body.tf-shell .about-content h2 {
    color: var(--tf-ink) !important; font: 800 var(--tf-fs-2xl)/1.15 var(--tf-font) !important; letter-spacing: -0.02em;
}
body.tf-shell .separator { width: 56px; height: 3px; border-radius: 3px; background: var(--tf-sky); }

/* Карти: еднакви ъгли, рамка и сянка */
body.tf-shell :is(.service-card, .feature-card, .info-box, .program-card, .phase-card, .discipline-card,
    .simulator-card, .flight-card, .airport-card, .docs-card, .instructor-card, .media-pub-card, .vl-card, .price-card) {
    border-radius: var(--tf-r-lg) !important;
    box-shadow: var(--tf-shadow) !important;
}
body.tf-shell :is(.service-card, .feature-card, .program-card, .phase-card, .discipline-card, .simulator-card,
    .flight-card, .airport-card, .docs-card, .instructor-card, .media-pub-card, .vl-card) {
    border: 1px solid var(--tf-line) !important;
}
body.tf-shell :is(.service-card, .feature-card, .program-card, .simulator-card, .docs-card, .media-pub-card):hover {
    box-shadow: var(--tf-shadow-lg) !important;
}

/* Блокът „За нас“ – на телефон една колона (в main.css общото правило отменя мобилното) */
@media (max-width: 767px) { body.tf-shell .about-grid { grid-template-columns: 1fr !important; } }

/* Връзката „Всички видео уроци“ – пътят горе вече го показва, оставяме я по-дискретна */
body.tf-shell .vl-back { font: 600 var(--tf-fs-sm)/1 var(--tf-font); color: var(--tf-primary); margin: 4px 0 18px; }

/* Иконки на мястото на старите емоджита (tools/obshto/emoji_ikoni.py) */
.tf-i {
    display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.17em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
    color: var(--tf-sky-600);
}
.tf-i + * { margin-left: 0; }
:is(h1, h2, h3, h4, h5, strong, b, button, a.btn, .btn) > .tf-i:first-child { color: inherit; }

/* --------------------------------------------------------------------------
   Оферти (Полет-Урок): еднакви карти – снимка, заглавие, кратък текст, цена, два бутона
   -------------------------------------------------------------------------- */
.tf-offers-section { padding: 72px 0 80px !important; background: #fff; font-family: var(--tf-font); }
.tf-section-head { text-align: center; max-width: 700px; margin: 0 auto 32px; }
.tf-section-head h2 { margin: 0 0 12px; color: var(--tf-ink) !important; font: 800 var(--tf-fs-2xl)/1.15 var(--tf-font) !important; letter-spacing: -0.02em; }
.tf-section-head p { margin: 0; color: var(--tf-muted); font-size: var(--tf-fs-lg); line-height: 1.6; }

.tf-campaign {
    max-width: 960px; margin: 0 auto 36px; padding: 20px 24px; display: flex; align-items: center; gap: 20px; justify-content: space-between;
    background: linear-gradient(135deg, #F0FAFF 0%, #EAF6FB 100%); border: 1px solid var(--tf-sky-100); border-radius: var(--tf-r-lg);
}
.tf-campaign p { margin: 0; color: var(--tf-text); font-size: var(--tf-fs-sm); line-height: 1.6; }
.tf-campaign .tf-campaign__title { margin: 0 0 4px; color: var(--tf-ink); font-weight: 700; font-size: var(--tf-fs-base); }
@media (max-width: 767px) { .tf-campaign { flex-direction: column; align-items: stretch; } }

.tf-offers { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px !important; max-width: 1120px; margin: 0 auto; }
@media (max-width: 899px) { .tf-offers { grid-template-columns: 1fr !important; gap: 20px !important; } }

.tf-offer {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: #fff !important; border: 1px solid var(--tf-line) !important; border-radius: var(--tf-r-lg) !important;
    box-shadow: var(--tf-shadow) !important; overflow: hidden; transition: box-shadow .25s, transform .25s var(--tf-ease);
}
.tf-offer:hover { box-shadow: var(--tf-shadow-lg) !important; transform: translateY(-2px); }
.tf-offer::before, .tf-offer::after { display: none !important; }
.tf-offer__media { position: relative; aspect-ratio: 16 / 10; height: auto !important; overflow: hidden; background: var(--tf-soft); }
.tf-offer__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--tf-ease); }
.tf-offer:hover .tf-offer__media img { transform: scale(1.03); }
.tf-offer__media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(11, 27, 51, 0.35), transparent); pointer-events: none; }
.tf-offer__dur, .tf-offer__badge {
    position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--tf-r-full); font: 600 var(--tf-fs-xs)/1 var(--tf-font);
}
.tf-offer__dur { left: 14px; bottom: 14px; background: rgba(255, 255, 255, 0.94); color: var(--tf-ink); }
.tf-offer__dur .tf-ico { width: 14px; height: 14px; color: var(--tf-sky-600); }
.tf-offer__badge { left: 14px; top: 14px; background: #B42318; color: #fff; letter-spacing: 0.02em; }
.tf-offer__badge--accent { background: var(--tf-navy); }

.tf-offer__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 24px !important; }
.tf-offer__eyebrow { margin: 0; color: var(--tf-sky-600); font: 700 var(--tf-fs-xs)/1.2 var(--tf-font); letter-spacing: 0.08em; text-transform: uppercase; }
.tf-offer .flight-title { margin: 0 !important; color: var(--tf-ink) !important; font: 700 1.375rem/1.25 var(--tf-font) !important; letter-spacing: -0.01em; }
.tf-offer .flight-title::before { content: none !important; }
.tf-offer__desc {
    margin: 0; color: var(--tf-text); font-size: var(--tf-fs-base) !important; line-height: 1.65 !important;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.tf-offer__desc.is-open, .tf-offer__desc--open { -webkit-line-clamp: unset; display: block; }
.tf-more { align-self: flex-start; margin-top: -8px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--tf-primary); font: 600 var(--tf-fs-sm)/1 var(--tf-font); }
.tf-offer__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tf-offer__tags li {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--tf-r-full);
    background: var(--tf-sky-50); color: #0E5A82; font: 500 var(--tf-fs-xs)/1.2 var(--tf-font);
}
.tf-offer__tags .tf-i { color: inherit; width: 1em; height: 1em; }

.tf-offer__price { margin: auto 0 0 !important; padding: 16px 0 0 !important; border-top: 1px solid var(--tf-line); background: none !important; }
.tf-offer__price .price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; }
.tf-offer__price .price-old { order: 2; color: var(--tf-muted) !important; font-size: var(--tf-fs-sm) !important; text-decoration: line-through; font-weight: 500; }
.tf-offer__price .price-new { order: 1; color: var(--tf-ink) !important; font: 800 1.5rem/1.1 var(--tf-font) !important; letter-spacing: -0.01em; }
.tf-offer__price .xmas-save {
    order: 3; padding: 4px 10px; border-radius: var(--tf-r-full); background: #ECFDF3; color: #067647; border: 0;
    font: 700 var(--tf-fs-xs)/1.2 var(--tf-font); box-shadow: none;
}
.tf-offer__until, .tf-offer__note, .tf-offer .price-video { margin: 8px 0 0 !important; color: var(--tf-muted) !important; font-size: var(--tf-fs-xs) !important; line-height: 1.5; font-weight: 400; display: block; }
.tf-offer__until { color: #B42318 !important; font-weight: 600; }

.tf-offer__cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.tf-offer__cta .tf-btn { width: 100%; min-height: 48px; font-size: var(--tf-fs-sm); }
.tf-offer__share { margin: -2px 0 0 !important; padding: 0 !important; border: 0 !important; justify-content: flex-end; display: flex; background: none !important; }
.tf-offer__sharebtn {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 0; background: none; cursor: pointer;
    color: var(--tf-muted); font: 500 var(--tf-fs-xs)/1 var(--tf-font); border-radius: var(--tf-r-sm);
}
.tf-offer__sharebtn:hover { color: var(--tf-primary); background: var(--tf-soft); }
.tf-offer__sharebtn .tf-ico { width: 16px; height: 16px; }

/* Широки карти (промо пакет, ваучер) – снимка вляво, текст вдясно */
.tf-offer--wide { grid-column: 1 / -1; display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.tf-offer--wide .tf-offer__media { aspect-ratio: auto; min-height: 100%; }
.tf-offer__media--mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: #fff; }
.tf-offer__media--mosaic img { position: relative; inset: auto; height: 100%; min-height: 0; }
.tf-offer__media--mosaic img:first-child { grid-row: 1 / 3; }
.tf-offer__media--voucher { background: radial-gradient(600px 300px at 30% 20%, #1C3E66, #0B1B33); display: flex; align-items: center; justify-content: center; padding: 28px; }
.tf-offer__media--voucher img { position: relative; inset: auto; width: 100%; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.tf-offer__media--voucher::after { display: none; }
.tf-offer:hover .tf-offer__media--voucher img { transform: none; }
@media (max-width: 899px) {
    .tf-offer--wide { display: flex !important; }
    .tf-offer--wide .tf-offer__media { aspect-ratio: 16 / 10; min-height: 0; }
    .tf-offer__media--voucher { aspect-ratio: auto !important; }
}
@media (max-width: 479px) { .tf-offer__cta { grid-template-columns: 1fr; } .tf-offer__body { padding: 20px !important; } }

.tf-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 10px; }
.tf-steps li { counter-increment: st; position: relative; padding-left: 40px; color: var(--tf-text); font-size: var(--tf-fs-sm); line-height: 1.6; }
.tf-steps li::before {
    content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: var(--tf-sky-50); color: var(--tf-primary); font: 700 var(--tf-fs-xs)/1 var(--tf-font);
}
.tf-offer__more summary { cursor: pointer; color: var(--tf-primary); font: 600 var(--tf-fs-sm)/1.4 var(--tf-font); list-style: none; }
.tf-offer__more summary::-webkit-details-marker { display: none; }
.tf-offer__more summary::after { content: ' +'; }
.tf-offer__more[open] summary::after { content: ' −'; }
.tf-offer__more p { margin: 10px 0 0; color: var(--tf-text); font-size: var(--tf-fs-sm); line-height: 1.65; }

/* Обща информация под офертите */
.tf-offers-info { max-width: 1120px; margin: 36px auto 0; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
.tf-offers-info__item { padding: 22px 24px; border-radius: var(--tf-r-lg); background: var(--tf-soft); border: 1px solid var(--tf-line); }
.tf-offers-info__item h3 { margin: 0 0 8px; color: var(--tf-ink); font: 700 var(--tf-fs-base)/1.3 var(--tf-font) !important; }
.tf-offers-info__item p { margin: 0; color: var(--tf-text); font-size: var(--tf-fs-sm); line-height: 1.6; }
.tf-offers-info__contact { background: var(--tf-navy); border-color: var(--tf-navy); }
.tf-offers-info__contact h3 { color: #fff; }
.tf-offers-info__contact p { color: rgba(255, 255, 255, 0.75); }
.tf-offers-info__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tf-offers-info__contact .tf-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.tf-offers-info__contact .tf-btn--ghost:hover { border-color: #fff; }
@media (max-width: 899px) { .tf-offers-info { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Начална страница (етап 3): три пътя, предимства, факти, отзиви
   -------------------------------------------------------------------------- */
.tf-paths-section, .tf-why-section, .tf-reviews-section { padding: 80px 0 !important; font-family: var(--tf-font); }
.tf-paths-section { background: #fff; }
.tf-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: var(--tf-max); margin: 0 auto; }
.tf-path {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow);
    transition: transform .25s var(--tf-ease), box-shadow .25s;
}
.tf-path:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow-lg); }
.tf-path__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tf-soft); }
.tf-path__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--tf-ease); }
.tf-path:hover .tf-path__media img { transform: scale(1.04); }
.tf-path__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.tf-path__eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--tf-sky-600); font: 700 var(--tf-fs-xs)/1.2 var(--tf-font); letter-spacing: .08em; text-transform: uppercase; }
.tf-path__eyebrow .tf-ico { width: 16px; height: 16px; }
.tf-path__title { color: var(--tf-ink); font: 800 1.5rem/1.2 var(--tf-font); letter-spacing: -0.015em; }
.tf-path__text { color: var(--tf-text); font-size: var(--tf-fs-base); line-height: 1.6; }
.tf-path__meta { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tf-line); }
.tf-path__meta b { color: var(--tf-ink); font-size: var(--tf-fs-lg); }
.tf-path__meta span { color: var(--tf-muted); font-size: var(--tf-fs-sm); }
.tf-path__go { display: inline-flex; align-items: center; gap: 8px; color: var(--tf-primary); font: 700 var(--tf-fs-base)/1 var(--tf-font); }
.tf-path__go .tf-ico { width: 18px; height: 18px; transition: transform .2s var(--tf-ease); }
.tf-path:hover .tf-path__go .tf-ico { transform: translateX(4px); }
@media (max-width: 959px) { .tf-paths { grid-template-columns: 1fr; max-width: 560px; } .tf-path__media { aspect-ratio: 16 / 9; } }

/* „За нас“ */
body.tf-shell .about-section { padding: 80px 0 !important; background: var(--tf-soft) !important; }
body.tf-shell .about-content p { color: var(--tf-text); line-height: 1.7; }

/* Защо свръхлека авиация */
.tf-why-section { background: #fff; }
.tf-why-intro { max-width: 820px; margin: 0 auto 40px; text-align: center; color: var(--tf-text); font-size: var(--tf-fs-lg); line-height: 1.75; }
.tf-why-intro strong { color: var(--tf-ink); }
.tf-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: var(--tf-max); margin: 0 auto; }
.tf-feature { padding: 28px; border-radius: var(--tf-r-lg); background: var(--tf-soft); border: 1px solid var(--tf-line); }
.tf-feature__ico { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; border-radius: 14px; background: #fff; color: var(--tf-primary); box-shadow: var(--tf-shadow-sm); }
.tf-feature__ico .tf-ico { width: 24px; height: 24px; }
.tf-feature h3 { margin: 0 0 8px; color: var(--tf-ink); font: 700 1.125rem/1.3 var(--tf-font) !important; }
.tf-feature p { margin: 0; color: var(--tf-text); font-size: var(--tf-fs-sm) !important; line-height: 1.65; }
@media (max-width: 959px) { .tf-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .tf-features { grid-template-columns: 1fr; } .tf-feature { padding: 22px; } }

/* Отзиви */
.tf-reviews-section { background: linear-gradient(180deg, var(--tf-soft) 0%, #fff 100%) !important; }

/* Факти */
.tf-facts-section { padding: 0 0 80px !important; background: #fff; font-family: var(--tf-font); margin-top: -32px; }
.tf-facts {
    list-style: none; margin: 0 auto; padding: 28px 32px; max-width: var(--tf-max);
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
    background: var(--tf-navy); border-radius: var(--tf-r-lg); color: #fff;
}
.tf-facts li { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 2px solid rgba(60, 180, 229, 0.6); }
.tf-facts b { font: 800 1.375rem/1.2 var(--tf-font); letter-spacing: -0.01em; }
.tf-facts span { color: rgba(255, 255, 255, 0.72); font-size: var(--tf-fs-sm); line-height: 1.5; }
@media (max-width: 899px) { .tf-facts { grid-template-columns: 1fr 1fr; padding: 24px; } }
@media (max-width: 479px) { .tf-facts { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Курсове (етап 3): път до лиценза, програма, инструктор, галерия, записване
   -------------------------------------------------------------------------- */
.tf-course-section { padding: 72px 0 !important; background: #fff; font-family: var(--tf-font); }
.tf-course-section--soft { background: var(--tf-soft) !important; }
.tf-eyebrow { margin: 0 0 8px; color: var(--tf-sky-600); font: 700 var(--tf-fs-xs)/1.2 var(--tf-font); letter-spacing: .08em; text-transform: uppercase; }
.tf-link { display: inline-flex; align-items: center; gap: 8px; color: var(--tf-primary); font-weight: 700; text-decoration: none; }
.tf-link .tf-ico { width: 18px; height: 18px; transition: transform .2s; }
.tf-link:hover .tf-ico { transform: translateX(4px); }

.tf-roadmap { list-style: none; margin: 0 auto; padding: 0; max-width: var(--tf-max); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: rm; position: relative; }
.tf-roadmap::before { content: ''; position: absolute; left: 12%; right: 12%; top: 28px; height: 2px; background: linear-gradient(90deg, var(--tf-sky-100), var(--tf-sky), var(--tf-sky-100)); }
.tf-roadmap li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 8px; counter-increment: rm; }
.tf-roadmap__ico { position: relative; z-index: 1; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tf-primary); color: #fff; box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(19, 111, 158, .3); margin-bottom: 8px; }
.tf-roadmap__ico .tf-ico { width: 26px; height: 26px; }
.tf-roadmap b { color: var(--tf-ink); font-size: var(--tf-fs-lg); }
.tf-roadmap b::before { content: counter(rm) '. '; color: var(--tf-sky-600); }
.tf-roadmap li > span:last-child { color: var(--tf-text); font-size: var(--tf-fs-sm); line-height: 1.6; }
@media (max-width: 899px) {
    .tf-roadmap { grid-template-columns: 1fr; gap: 0; max-width: 520px; }
    .tf-roadmap::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: var(--tf-sky-100); }
    .tf-roadmap li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; align-items: start; padding: 0 0 24px; }
    .tf-roadmap__ico { grid-row: 1 / 3; margin: 0; }
}
.tf-course-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

.tf-features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 959px) { .tf-features--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .tf-features--4 { grid-template-columns: 1fr; } }
.tf-course-section .tf-feature { background: #fff; }
.tf-course-section:not(.tf-course-section--soft) .tf-feature { background: var(--tf-soft); }

.tf-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; max-width: var(--tf-max); }
.tf-split h2 { margin: 0 0 16px; color: var(--tf-ink) !important; font: 800 var(--tf-fs-2xl)/1.15 var(--tf-font) !important; letter-spacing: -0.02em; }
.tf-split p { color: var(--tf-text); line-height: 1.7; }
.tf-split a:not(.tf-link) { color: var(--tf-primary); }
.tf-split__media { margin: 0; border-radius: var(--tf-r-lg); overflow: hidden; box-shadow: var(--tf-shadow-lg); aspect-ratio: 4 / 5; }
.tf-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-reqs { margin: 24px 0; padding: 20px 24px; border-radius: var(--tf-r-lg); background: var(--tf-navy); color: rgba(255,255,255,.85); }
.tf-reqs h3 { margin: 0 0 10px; color: #fff; font: 700 var(--tf-fs-base)/1.3 var(--tf-font) !important; }
.tf-reqs ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: var(--tf-fs-sm); line-height: 1.6; }
.tf-reqs b { color: #fff; }
@media (max-width: 899px) { .tf-split { grid-template-columns: 1fr; gap: 28px; } .tf-split__media { aspect-ratio: 16 / 10; } }

.tf-program { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: var(--tf-max); margin: 0 auto; }
.tf-program__card { padding: 28px; background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow); }
.tf-program__card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--tf-ink); font: 700 var(--tf-fs-lg)/1.3 var(--tf-font) !important; }
.tf-program__card h3 .tf-ico { color: var(--tf-sky-600); }
.tf-table { width: 100%; border-collapse: collapse; font-size: var(--tf-fs-sm); }
.tf-table td { padding: 11px 0; border-top: 1px solid var(--tf-line); color: var(--tf-text); vertical-align: top; line-height: 1.5; }
.tf-table td:last-child { text-align: right; white-space: nowrap; color: var(--tf-ink); font-weight: 700; padding-left: 16px; }
.tf-table small { color: var(--tf-muted); }
.tf-phase { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: var(--tf-r-full); background: var(--tf-sky-50); color: #0E5A82; font-size: var(--tf-fs-xs); font-weight: 700; }
.tf-program__note { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--tf-r); background: var(--tf-soft); color: var(--tf-text); font-size: var(--tf-fs-sm); line-height: 1.6; }
@media (max-width: 899px) { .tf-program { grid-template-columns: 1fr; } .tf-program__card { padding: 22px; } }

.tf-instructor { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: start; padding: 36px; border-radius: var(--tf-r-lg); background: linear-gradient(160deg, #0B1B33, #12355E); color: rgba(255,255,255,.82); }
.tf-instructor img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.15); }
.tf-instructor h2 { margin: 0 0 8px; color: #fff !important; font: 800 var(--tf-fs-2xl)/1.15 var(--tf-font) !important; }
.tf-instructor .tf-eyebrow { color: var(--tf-sky); }
.tf-instructor__role { color: #fff; font-weight: 600; font-size: var(--tf-fs-sm); }
.tf-instructor p { line-height: 1.7; margin: 0 0 10px; }
@media (max-width: 699px) { .tf-instructor { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; gap: 20px; } .tf-instructor img { margin: 0 auto; width: 140px; height: 140px; } }

.tf-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: var(--tf-max); margin: 0 auto; }
.tf-gallery figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--tf-r); overflow: hidden; background: #e8eef4; }
.tf-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--tf-ease); }
.tf-gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 699px) { .tf-gallery { grid-template-columns: 1fr 1fr; gap: 8px; } }

.tf-enroll { max-width: var(--tf-max); margin: 48px auto 0; padding: 32px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-radius: var(--tf-r-lg); background: var(--tf-primary); color: #fff; }
.tf-enroll h2 { margin: 0 0 6px; color: #fff !important; font: 800 var(--tf-fs-2xl)/1.15 var(--tf-font) !important; }
.tf-enroll p { margin: 0; color: rgba(255,255,255,.85); }
.tf-enroll__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tf-enroll .tf-btn--primary { background: #fff; color: var(--tf-primary); box-shadow: none; }
.tf-enroll .tf-btn--primary:hover { background: var(--tf-sky-50); color: var(--tf-primary-hover); }
@media (max-width: 599px) { .tf-enroll { padding: 26px 22px; } .tf-enroll__btns, .tf-enroll__btns .tf-btn { width: 100%; } }
/* таблиците на програмата пренасят текста на телефон */
.tf-table { table-layout: fixed; }
.tf-table td:first-child { white-space: normal !important; overflow-wrap: anywhere; }
.tf-table td:last-child { width: 64px; }
.tf-program__card { min-width: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   Аероклуб (етап 4): инициатива отгоре, меню на разделите, еднакви блокове
   -------------------------------------------------------------------------- */
.tf-club-intro { padding: 40px 0 0 !important; background: #fff; font-family: var(--tf-font); }
.tf-initiative {
    display: grid; gap: 8px; max-width: 1100px; margin: 0 auto; padding: 28px 32px; text-decoration: none;
    border-radius: var(--tf-r-lg); color: #fff;
    background: radial-gradient(600px 240px at 90% 0%, rgba(60,180,229,.35), transparent 60%), linear-gradient(135deg, #0B1B33, #12406B);
    box-shadow: var(--tf-shadow-lg); transition: transform .2s var(--tf-ease);
}
.tf-initiative:hover { transform: translateY(-2px); }
.tf-initiative__tag { justify-self: start; padding: 5px 12px; border-radius: var(--tf-r-full); background: rgba(255,255,255,.12); font: 700 var(--tf-fs-xs)/1 var(--tf-font); letter-spacing: .06em; text-transform: uppercase; }
.tf-initiative__title { font: 800 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.25 var(--tf-font); letter-spacing: -0.01em; }
.tf-initiative__text { color: rgba(255,255,255,.78); line-height: 1.6; max-width: 70ch; }
.tf-initiative__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--tf-sky); font-weight: 700; }
.tf-initiative__go .tf-ico { width: 18px; height: 18px; }

.tf-subnav {
    display: flex; gap: 6px; max-width: 1100px; margin: 0 auto; padding: 6px; overflow-x: auto; scrollbar-width: none;
    background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--tf-line); border-radius: var(--tf-r-full); box-shadow: var(--tf-shadow-sm);
}
.tf-subnav-wrap { position: sticky; top: calc(var(--tf-header-h) + 8px); z-index: 50; padding: 24px 20px 0; }
.tf-subnav::-webkit-scrollbar { display: none; }
.tf-subnav a { flex: none; padding: 8px 14px; border-radius: var(--tf-r-full); color: var(--tf-text); text-decoration: none; font: 600 var(--tf-fs-sm)/1 var(--tf-font); }
.tf-subnav a:hover, .tf-subnav a.is-active { background: var(--tf-sky-50); color: var(--tf-primary); }
:is(#za-nas, #istoriya, #uslugi, #instruktor, #ekip, #deca-video, #misiya, #deynost, #mediya, #galeriya, #strategia) { scroll-margin-top: calc(var(--tf-header-h) + 72px); }

body.tf-shell .tf-block {
    background: #fff !important; border: 1px solid var(--tf-line) !important; border-radius: var(--tf-r-lg) !important;
    box-shadow: var(--tf-shadow) !important; color: var(--tf-text);
}
body.tf-shell .tf-block > h2, body.tf-shell .tf-block h2:first-child {
    color: var(--tf-ink) !important; font: 800 var(--tf-fs-2xl)/1.2 var(--tf-font) !important; letter-spacing: -0.02em;
}
body.tf-shell .tf-block h2 .tf-i { display: none; }
/* „Нашата история“ остава тъмна, но в цвета на марката */
body.tf-shell #istoriya.tf-block { background: linear-gradient(160deg, #0B1B33, #12355E) !important; border-color: transparent !important; color: rgba(255,255,255,.85); }
body.tf-shell #istoriya.tf-block h2 { color: #fff !important; }
/* вложените цветни кутии стават неутрални */
body.tf-shell .tf-block:not(#istoriya) [style*="linear-gradient"]:not(img):not(.btn):not(a) {
    background: var(--tf-soft) !important; border-color: var(--tf-line) !important; box-shadow: none !important;
}
body.tf-shell .tf-block:not(#istoriya) [style*="linear-gradient"]:not(a) :is(h2, h3, h4, h5, p, span, li, strong, div) { color: var(--tf-ink) !important; }
body.tf-shell .tf-block:not(#istoriya) [style*="linear-gradient"] .tf-i { color: var(--tf-sky-600) !important; }
body.tf-shell .tf-block :is(h3, h4) { color: var(--tf-ink); }
@media (max-width: 767px) {
    .tf-initiative { padding: 22px; }
    .tf-subnav { border-radius: var(--tf-r); margin-left: -4px; margin-right: -4px; }
}

/* main.css слага overflow на body и така body става „кутия за скрол“ – тогава position: sticky не работи.
   clip пази защитата от хоризонтален скрол, без да прави body кутия за скрол. */
html:has(body.tf-shell) { overflow-x: clip !important; }
body.tf-shell { overflow: visible !important; overflow-x: clip !important; }

/* --------------------------------------------------------------------------
   Каталог на видео уроците: търсене, раздели, плочки
   -------------------------------------------------------------------------- */
body.tf-shell .vl-wrap { max-width: var(--tf-max) !important; font-family: var(--tf-font); }
body.tf-shell .vl-promo { border-radius: var(--tf-r-lg) !important; background: var(--tf-sky-50) !important; border: 1px solid var(--tf-sky-100) !important; }
body.tf-shell .vl-note { border-radius: var(--tf-r-lg) !important; background: var(--tf-soft) !important; border: 1px solid var(--tf-line); color: var(--tf-text) !important; }
.vl-search { position: sticky; top: calc(var(--tf-header-h) + 8px); z-index: 40; display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 6px 6px 6px 18px; background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r-full); box-shadow: var(--tf-shadow-sm); }
.vl-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font: 500 var(--tf-fs-base)/1 var(--tf-font); color: var(--tf-ink); }
.vl-search span { padding-right: 14px; color: var(--tf-muted); font-size: var(--tf-fs-sm); white-space: nowrap; }
body.tf-shell .vl-toc { margin-bottom: 36px !important; }
body.tf-shell .vl-chip { background: #fff !important; border: 1px solid var(--tf-line); color: var(--tf-text) !important; font: 600 var(--tf-fs-sm)/1.2 var(--tf-font) !important; }
body.tf-shell .vl-chip:hover { border-color: var(--tf-sky); color: var(--tf-primary) !important; }
body.tf-shell .vl-chip span { background: var(--tf-sky-50) !important; color: var(--tf-primary) !important; }
body.tf-shell .vl-group { margin: 0 0 44px !important; scroll-margin-top: calc(var(--tf-header-h) + 80px); }
body.tf-shell .vl-group h2 { color: var(--tf-ink) !important; font: 800 var(--tf-fs-xl)/1.25 var(--tf-font) !important; margin: 0 0 16px !important; }
body.tf-shell .vl-mod { color: var(--tf-sky-600) !important; font-size: var(--tf-fs-xs) !important; margin-bottom: 4px; }
.vl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.vl-tile {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--tf-line); border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow-sm);
    transition: transform .2s var(--tf-ease), box-shadow .2s;
}
.vl-tile:hover { transform: translateY(-3px); box-shadow: var(--tf-shadow-lg); }
.vl-tile[hidden] { display: none; }
.vl-tile__img { position: relative; display: block; aspect-ratio: 16 / 9; background: #0B1B33; overflow: hidden; }
.vl-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--tf-ease); }
.vl-tile:hover .vl-tile__img img { transform: scale(1.04); }
.vl-tile__play {
    position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.94); box-shadow: var(--tf-shadow);
}
.vl-tile__play svg { width: 18px; height: 18px; fill: var(--tf-primary); margin-left: 2px; }
.vl-tile__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.vl-tile__body b { color: var(--tf-ink); font: 700 var(--tf-fs-base)/1.35 var(--tf-font); }
.vl-tile__body > span:last-child { color: var(--tf-muted); font-size: var(--tf-fs-sm); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.vl-tile__tag { align-self: flex-start; padding: 3px 9px; border-radius: var(--tf-r-full); background: #ECFDF3; color: #067647; font: 700 var(--tf-fs-xs)/1.2 var(--tf-font); }
.vl-empty { text-align: center; color: var(--tf-muted); padding: 24px; }
@media (max-width: 599px) { .vl-grid { grid-template-columns: 1fr; } .vl-search { top: calc(var(--tf-header-h) + 6px); } }

/* атрибутът hidden винаги скрива – иначе .btn { display: inline-flex } показва скрити бутони */
body.tf-shell [hidden] { display: none !important; }

/* SkyRadar документация: колоните не се разпъват от таблиците на телефон */
body.tf-shell .docs-layout > * { min-width: 0; }
@media (max-width: 860px) { body.tf-shell .docs-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
/* Симулатори: платното се свива до ширината на екрана, без да се изкривява */
body.tf-shell .canvas-container canvas, body.tf-shell .simulator-card canvas { max-width: 100%; height: auto; }
/* Наръчник ПВП: заглавието на отворената тема (h2, за да има едно h1 на страница) */
.pvp-topic-title { margin: 0 0 12px; color: var(--tf-ink); font: 800 clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem)/1.2 var(--tf-font) !important; letter-spacing: -0.015em; }
