/* ============================================================
   CYBERLINE — Custom overrides & 2026 design additions
   ============================================================ */

/* ----------------------------------------------------------
   1. HERO — text-shadow fix + CTA buttons
   ---------------------------------------------------------- */
.banner-content .banner-title {
    text-shadow: none !important;
}

.hero-cta-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.tj-primary-btn.btn-outline {
    background: transparent;
    border: 2px solid var(--tj-color-theme-primary);
    color: var(--tj-color-common-white);
}
.tj-primary-btn.btn-outline .btn-inner {
    background: transparent;
}
.tj-primary-btn.btn-outline:hover {
    background: var(--tj-color-theme-primary);
}

/* ----------------------------------------------------------
   2. CLUBS — Bento grid
   ---------------------------------------------------------- */
.clubs-bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    grid-template-rows: 320px 320px;
    gap: 12px;
    margin-top: 40px;
}

/* Московская — tall left */
.clubs-bento-grid .club-bento-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}
/* Кулакова — right top */
.clubs-bento-grid .club-bento-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}
/* Спутник — right bottom */
.clubs-bento-grid .club-bento-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}
/* Запрудный — tall right */
.clubs-bento-grid .club-bento-card:nth-child(4) {
    grid-column: 3;
    grid-row: 1 / 3;
}

.club-bento-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-image: var(--club-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: default;
    transition: transform 0.4s ease;
}
.club-bento-card:hover {
    transform: scale(1.01);
}

.club-bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 20, 40, 0.96) 0%,
        rgba(10, 20, 40, 0.5) 50%,
        rgba(10, 20, 40, 0.15) 100%
    );
    transition: background 0.3s ease;
}
.club-bento-card:hover .club-bento-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 20, 40, 0.98) 0%,
        rgba(10, 20, 40, 0.65) 55%,
        rgba(10, 20, 40, 0.2) 100%
    );
}

.club-bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px;
    z-index: 2;
}

.club-bento-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.club-bento-stats span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tj-color-common-white);
    background: rgba(37, 99, 235, 0.55);
    border: 1px solid rgba(37, 99, 235, 0.6);
    border-radius: 4px;
    padding: 3px 8px;
    backdrop-filter: blur(4px);
}

.club-bento-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--tj-color-common-white);
    margin-bottom: 4px;
    line-height: 1.1;
}
.clubs-bento-grid .club-bento-card:nth-child(1) .club-bento-title,
.clubs-bento-grid .club-bento-card:nth-child(4) .club-bento-title {
    font-size: 36px;
}

.club-bento-addr {
    font-size: 13px;
    color: var(--tj-color-grey-1);
    margin-bottom: 8px;
}

.club-bento-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}
.club-bento-card:hover .club-bento-desc {
    max-height: 120px;
    opacity: 1;
    margin-top: 8px;
}

/* Tablet */
@media only screen and (min-width: 576px) and (max-width: 991px) {
    .clubs-bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 260px;
    }
    .clubs-bento-grid .club-bento-card:nth-child(1) { grid-column: 1; grid-row: 1; }
    .clubs-bento-grid .club-bento-card:nth-child(2) { grid-column: 2; grid-row: 1; }
    .clubs-bento-grid .club-bento-card:nth-child(3) { grid-column: 1; grid-row: 2; }
    .clubs-bento-grid .club-bento-card:nth-child(4) { grid-column: 2; grid-row: 2; }
}

/* Mobile */
@media (max-width: 575px) {
    .clubs-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .clubs-bento-grid .club-bento-card {
        grid-column: 1 !important;
        grid-row: auto !important;
        min-height: 240px;
    }
    /* Explicit reset for tall desktop cards (iOS Safari safety) */
    .clubs-bento-grid .club-bento-card:nth-child(1),
    .clubs-bento-grid .club-bento-card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }
    .club-bento-desc {
        max-height: 80px;
        opacity: 1;
        margin-top: 8px;
    }
    .clubs-bento-grid .club-bento-card:nth-child(1) .club-bento-title,
    .clubs-bento-grid .club-bento-card:nth-child(4) .club-bento-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .hero-cta-wrap { justify-content: center; }
}

/* ----------------------------------------------------------
   3. BOOKING — info strip (replaces marquee)
   ---------------------------------------------------------- */
.booking-info-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 28px 0;
    border-top: 1px solid var(--tj-color-border-1);
    border-bottom: 1px solid var(--tj-color-border-1);
    margin-top: 40px;
}
.booking-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 32px;
    color: var(--tj-color-text-body);
    font-size: 15px;
}
.booking-info-item i {
    color: var(--tj-color-theme-primary);
    font-size: 18px;
    flex-shrink: 0;
}
.booking-info-item strong {
    color: var(--tj-color-common-white);
}
.booking-info-sep {
    color: var(--tj-color-border-1);
    font-size: 24px;
    line-height: 1;
    padding: 0 8px;
}
@media (max-width: 767px) {
    .booking-info-sep { display: none; }
    .booking-info-item { padding: 8px 16px; }
    .booking-info-strip { gap: 4px; }
}

/* ----------------------------------------------------------
   4. PRICING — tier selector sidebar (.cl-tier-select)
   ---------------------------------------------------------- */
.cl-tier-select {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cl-tier-select .pricing-box {
    cursor: pointer;
    margin-bottom: 0 !important;
    transition: transform 0.2s ease !important;
}
.cl-tier-select .pricing-box:hover {
    transform: translateY(-2px);
}
.cl-tier-inner {
    padding: 18px 22px 16px !important;
}
.cl-tier-inner .package-name {
    font-size: 17px !important;
    margin-bottom: 6px !important;
}
.cl-pkg-price {
    font-size: 22px !important;
    margin: 6px 0 0 !important;
    line-height: 1 !important;
    align-items: baseline !important;
}
.cl-pkg-price .package-currency {
    font-size: 13px !important;
}
.cl-pkg-price .package-period {
    font-size: 13px !important;
    margin-top: 0 !important;
}

/* ----------------------------------------------------------
   5. ABOUT — choose-box: number in clip-corner badge
   ---------------------------------------------------------- */
.choose-box .count-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--tj-ff-heading);
    letter-spacing: 0.03em;
}

/* ----------------------------------------------------------
   5b. FUNFACT — full-bleed photo strip with counters
   ---------------------------------------------------------- */
.cl-funfact-section {
    position: relative;
    overflow: hidden;
}

.cl-funfact-inner {
    position: relative;
    padding: clamp(60px, 9vw, 110px) 0;
    background: url('/assets/images/cyber_slides/1_web.jpg') center / cover;
}

.cl-funfact-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 12, 0.82);
}

.cl-funfact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cl-funfact-item {
    text-align: center;
    padding: 30px clamp(24px, 5vw, 80px);
}

.cl-funfact-num {
    display: block;
    font-size: clamp(56px, 7vw, 96px);
    font-weight: 700;
    font-family: var(--tj-ff-heading);
    color: var(--tj-color-common-white);
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.cl-funfact-num .counter { color: inherit; }

.cl-funfact-num sup {
    font-size: 0.42em;
    vertical-align: super;
    color: var(--tj-color-theme-primary);
}

.cl-funfact-lbl {
    font-size: 15px;
    color: var(--tj-color-text-body);
    line-height: 1.6;
}

.cl-funfact-sep {
    width: 1px;
    height: 72px;
    background: rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .cl-funfact-sep { display: none; }
    .cl-funfact-item { width: 50%; }
}
@media (max-width: 399px) {
    .cl-funfact-item { width: 100%; }
}

/* ----------------------------------------------------------
   5b. BOOKING — phone alt link
   ---------------------------------------------------------- */
.booking-phone-alt {
    margin-top: 16px;
    font-size: 14px;
    color: var(--tj-color-grey-1);
}
.booking-phone-alt a {
    color: var(--tj-color-common-white);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.5);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.booking-phone-alt a:hover {
    color: var(--tj-color-theme-primary);
    text-decoration-color: var(--tj-color-theme-primary);
}

/* ----------------------------------------------------------
   PRICING (new) — hardware card wrap + mini price table
   ---------------------------------------------------------- */

/* Neutralise countup-item-wrap styling when wrapping thw-card */
.cl-hw-wrap {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Mini price table */
.mpt-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.mpt-head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 20px;
    background: rgba(37, 99, 235, 0.1);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}
.mpt-head span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tj-color-common-white);
    text-align: center;
}
.mpt-head .mpt-slot-col { text-align: left; }
.mpt-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}
.mpt-row:last-child { border-bottom: none; }
.mpt-row:hover { background: rgba(37, 99, 235, 0.06); }
.mpt-slot {
    font-size: 13px;
    color: var(--tj-color-grey-1);
    text-align: left;
}
.mpt-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--tj-color-common-white);
    text-align: center;
}
.mpt-wknd { color: rgba(255, 255, 255, 0.7); }
.mpt-na { color: var(--tj-color-grey-2); font-size: 16px; }

/* Hardware card */
.thw-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    border-top-right-radius: 0;
    padding: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    height: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.cl-hw-wrap:hover .thw-card {
    border-color: rgba(37, 99, 235, 0.5) !important;
    box-shadow: 0 0 32px rgba(37, 99, 235, 0.12) !important;
    transform: translateY(-2px);
}
.thw-card .pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
}
.thw-card-body {
    padding-top: 36px;
}
.thw-specs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
}
.thw-spec {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.thw-spec:last-child { border-bottom: none; }
.thw-key {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tj-color-theme-primary);
    min-width: 36px;
    flex-shrink: 0;
}
.thw-val {
    font-size: 14px;
    color: var(--tj-color-common-white);
    font-weight: 500;
}
.thw-periph {
    padding-top: 16px;
    border-top: 1px solid rgba(37, 99, 235, 0.18);
}
.thw-periph-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tj-color-grey-2);
    margin-bottom: 10px;
}
.thw-periph-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}
.thw-periph-grid span {
    font-size: 13px;
    color: var(--tj-color-grey-1);
    line-height: 1.4;
}
/* PS5 special card */
.thw-card-ps5 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}
.thw-ps5-desc {
    font-size: 15px;
    color: var(--tj-color-grey-1);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 991px) {
    .cl-tier-select { flex-direction: row; flex-wrap: wrap; }
    .cl-tier-select .pricing-box { flex: 1 1 calc(50% - 6px); }
}
@media (max-width: 575px) {
    .cl-tier-select .pricing-box { flex: 1 1 calc(50% - 6px); }
    .thw-periph-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   6. CONTACTS — photo column + address choose-box cards
   ---------------------------------------------------------- */
.cl-contact-photo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 380px;
}
.cl-contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    transition: transform 0.6s ease;
}
.cl-contact-photo:hover img {
    transform: scale(1.04);
}
.cl-contact-photo-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(8, 8, 12, 0.88), transparent);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cl-vk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(37, 99, 235, 0.45);
    border-radius: 8px;
    color: var(--tj-color-common-white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(6px);
    flex: 1 1 auto;
    justify-content: center;
    white-space: nowrap;
}
.cl-vk-btn:hover {
    background: var(--tj-color-theme-primary);
    border-color: var(--tj-color-theme-primary);
    color: var(--tj-color-common-white);
}

/* Address card meta line */
.cl-addr-meta {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--tj-color-theme-primary);
    margin-top: 6px;
    opacity: 0.85;
}

@media (max-width: 991px) {
    .cl-contact-photo { min-height: 300px; }
}
@media (max-width: 767px) {
    .cl-contact-photo { min-height: 260px; }
}

/* ----------------------------------------------------------
   7. FOOTER — compact info bar
   ---------------------------------------------------------- */
.footer-compact {
    padding: clamp(20px, 3vw, 36px) 0;
    border-top: 1px solid var(--tj-color-border-1);
    border-bottom: 1px solid var(--tj-color-border-1);
}
.fc-row {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.fc-logo-link { flex-shrink: 0; }
.fc-logo {
    height: 32px;
    width: auto;
    display: block;
}
.fc-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
}
.fc-contacts a {
    font-size: 14px;
    font-weight: 500;
    color: var(--tj-color-grey-1);
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.fc-contacts a i { font-size: 13px; color: var(--tj-color-theme-primary); }
.fc-contacts a:hover { color: var(--tj-color-theme-primary); }
.fc-vk {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 7px;
    color: var(--tj-color-grey-1);
    flex-shrink: 0;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.fc-vk svg { fill: currentColor; display: block; }
.fc-vk:hover {
    background: var(--tj-color-theme-primary);
    border-color: var(--tj-color-theme-primary);
    color: var(--tj-color-common-white);
}
.fc-hours {
    font-size: 13px;
    font-weight: 700;
    color: var(--tj-color-theme-primary);
    letter-spacing: 0.04em;
}
.fc-legal p {
    font-size: 12px;
    color: var(--tj-color-grey-2);
    margin: 0;
    line-height: 1.6;
}
@media (max-width: 767px) {
    .fc-row { gap: 16px; }
    .fc-contacts { gap: 14px; }
    .fc-legal p { font-size: 11px; }
}

/* ----------------------------------------------------------
   8. NAV — active section highlight on scroll
   ---------------------------------------------------------- */
.mainmenu ul li.nav-active > a,
.mainmenu ul li.nav-active > a:hover {
    color: var(--tj-color-theme-primary) !important;
}

/* ----------------------------------------------------------
   9. PRICING TABLE
   ---------------------------------------------------------- */
.pricing-table-wrap {
    margin-bottom: 40px;
}
.pricing-table-hint {
    font-size: 12px;
    color: var(--tj-color-grey-2);
    text-align: center;
    margin-bottom: 8px;
}
.pricing-table-scroll {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.pricing-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

/* Header row */
.pricing-table thead tr {
    border-bottom: 1px solid rgba(37, 99, 235, 0.25);
}
.pricing-table thead th {
    padding: 14px 20px;
    font-family: var(--tj-ff-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tj-color-common-white);
    text-align: center;
    white-space: nowrap;
}
.pricing-table thead th:first-child {
    text-align: left;
    width: 110px;
}
/* PS5 column — subtle separator */
.pricing-table .pt-ps5 {
    border-left: 1px solid rgba(37, 99, 235, 0.2);
}

/* Group header row (Будние / Выходные) */
.pricing-table .pt-group-row td {
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tj-color-theme-primary);
    background: rgba(37, 99, 235, 0.08);
    border-top: 1px solid rgba(37, 99, 235, 0.15);
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}
.pricing-table .pt-group-row.pt-weekend td {
    background: rgba(37, 99, 235, 0.13);
}

/* Data rows */
.pricing-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.18s ease;
}
.pricing-table tbody tr:not(.pt-group-row):hover {
    background: rgba(37, 99, 235, 0.07);
}
.pricing-table tbody tr:last-child {
    border-bottom: none;
}
.pricing-table tbody td {
    padding: 11px 20px;
    font-size: 14px;
    color: var(--tj-color-common-white);
    text-align: center;
    white-space: nowrap;
}
.pricing-table tbody .pt-slot-label {
    text-align: left;
    color: var(--tj-color-grey-1);
    font-size: 13px;
    padding-left: 20px;
}
/* Weekend rows — slightly lighter */
.pricing-table tbody tr.pt-weekend:not(.pt-group-row) td {
    color: rgba(255, 255, 255, 0.9);
}
/* N/A value */
.pricing-table .pt-na {
    color: var(--tj-color-grey-2);
    font-size: 16px;
}

/* Hardware section heading */
.pricing-hw-heading {
    padding: 8px 0 20px;
    border-top: 1px solid var(--tj-color-border-1);
    margin-top: 4px;
}
.pricing-hw-heading h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--tj-color-common-white);
    margin: 0;
}

/* Remove old pricing-price-row (no longer needed) */

/* ----------------------------------------------------------
   10. MOBILE MENU — social icons row
   ---------------------------------------------------------- */
.cl-mob-socials {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.cl-mob-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--tj-color-common-white);
    transition: background 0.2s ease;
    text-decoration: none;
}
.cl-mob-socials a:hover {
    background: var(--tj-color-theme-primary);
    color: var(--tj-color-common-white);
}

/* ----------------------------------------------------------
   11. CLUBS — «Скоро» badge in bento grid stats
   ---------------------------------------------------------- */
.club-bento-stats .cs-soon {
    border: 1px dashed rgba(255, 193, 7, 0.45);
    background: rgba(255, 193, 7, 0.06);
    color: rgba(255, 193, 7, 0.7);
}
.club-bento-stats .cs-soon em {
    font-style: normal;
    font-size: .72em;
    opacity: .75;
    margin-left: 2px;
    letter-spacing: .02em;
}

/* ----------------------------------------------------------
   11. PRICING — «Скоро» tier cards in sidebar
   ---------------------------------------------------------- */
.cl-tier-soon {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}
.cl-pkg-soon {
    font-size: .8em;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 193, 7, 0.6) !important;
}
.pricing-price-row { display: none; }
