/* ══════════════════════════════════════════
   HERO v3 — Text + Event + Vertical Calendar
   ══════════════════════════════════════════ */

/* SVG logo fix */
.site-logo img,
.site-logo .custom-logo-link img,
.site-logo .custom-logo,
.logo-mark img {
    height: 48px !important;
    width: auto !important;
    max-height: 48px !important;
    max-width: 200px !important;
    object-fit: contain !important;
}

.hero-v3{position:relative;min-height:100vh;display:flex;align-items:center;background:var(--primary-dark);overflow:hidden}
.hero-v3__bg{position:absolute;inset:0;z-index:1}
.hero-v3__bg img,.hero-v3__video{width:100%;height:100%;object-fit:cover;opacity:.65}
.hero-v3__overlay{position:absolute;inset:0;z-index:2;background:linear-gradient(180deg,rgba(var(--primary-dark-rgb),.55) 0%,rgba(var(--primary-dark-rgb),.25) 45%,rgba(var(--primary-dark-rgb),.7) 100%)}

/* 2-column grid: text + event */
.hero-v3__inner{position:relative;z-index:5;display:grid;grid-template-columns:1fr 1.4fr;grid-template-areas:"text slider" "actions slider";column-gap:48px;row-gap:24px;align-items:center;padding-top:calc(var(--header-height) + 32px);padding-bottom:32px}
.hero-v3__inner > .hero-v3__text{grid-area:text;align-self:center}
.hero-v3__inner > .hero-slider-events{grid-area:slider;align-self:center}
.hero-v3__inner > .hero-v3__actions,.hero-v3__inner > .hero__actions{grid-area:actions}

/* Col 1 — text */
.hero-v3__text{max-width:520px;animation:heroFadeIn .6s ease both}
.hero-v3__title{font-family:var(--font-display);font-weight:900;font-size:clamp(2.2rem,5vw,4.2rem);line-height:1.08;color:#fff;margin-bottom:16px;letter-spacing:-.03em}
.hero-v3__desc{color:rgba(255,255,255,.65);font-size:1.15rem;line-height:1.6;margin-bottom:24px;max-width:440px}

/* Col 2 — event card */
.hero-v3__event{background:rgba(255,255,255,.05);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:24px;animation:heroFadeIn .7s ease .15s both}
.next-event__label{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--accent);margin-bottom:12px}
.next-event__date{display:flex;align-items:baseline;gap:6px;margin-bottom:10px}
.next-event__day{font-family:var(--font-display);font-weight:900;font-size:2.4rem;line-height:1;color:#fff}
.next-event__month{font-family:var(--font-heading);font-weight:600;font-size:.9rem;color:rgba(255,255,255,.45);text-transform:capitalize}
.next-event__title{font-family:var(--font-heading);font-weight:700;font-size:1.35rem;color:#fff;line-height:1.3;margin-bottom:6px}
.next-event__excerpt{font-size:.82rem;color:rgba(255,255,255,.4);line-height:1.5;margin-bottom:16px}
.btn--sm{padding:8px 18px;font-size:.8rem}

/* Col 3 — vertical calendar */
.hero-v3__calendar{position:relative;background:rgba(255,255,255,.04);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:20px 14px 16px;animation:heroFadeIn .8s ease .3s both;overflow:hidden;align-self:stretch;display:flex;flex-direction:column}

.vcal__year{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-family:var(--font-display);font-weight:900;font-size:7rem;color:rgba(255,255,255,.03);letter-spacing:-.04em;pointer-events:none;white-space:nowrap;line-height:1}

.vcal__label{text-align:center;font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.14em;color:rgba(255,255,255,.35);margin-bottom:10px}

.vcal__timeline{position:relative;flex:1;display:flex;flex-direction:column;gap:0}
.vcal__line{position:absolute;left:42px;top:6px;bottom:6px;width:1.5px;background:rgba(255,255,255,.07)}

/* Each month row */
.vcal__row{display:flex;align-items:center;gap:8px;padding:3px 0;transition:opacity .3s}
.vcal__row--past{opacity:.35}

.vcal__month{width:30px;text-align:right;font-family:var(--font-heading);font-weight:700;font-size:.58rem;letter-spacing:.06em;color:rgba(255,255,255,.35);flex-shrink:0}
.vcal__row--now .vcal__month{color:var(--accent)}

/* Dots */
.vcal__dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.1);border:1.5px solid rgba(255,255,255,.08);flex-shrink:0;position:relative;z-index:1;transition:all .3s}
.vcal__dot--active{width:9px;height:9px;background:var(--accent);border-color:var(--accent);box-shadow:0 0 8px rgba(var(--accent-rgb),.3)}
.vcal__dot--now{width:11px;height:11px;background:#fff;border:2.5px solid var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.2),0 0 12px rgba(var(--accent-rgb),.4);animation:pulseDot 2s infinite}

@keyframes pulseDot{0%,100%{box-shadow:0 0 0 3px rgba(var(--accent-rgb),.2),0 0 12px rgba(var(--accent-rgb),.4)}50%{box-shadow:0 0 0 6px rgba(var(--accent-rgb),.1),0 0 20px rgba(var(--accent-rgb),.25)}}

/* Event chips */
.vcal__events{display:flex;flex-wrap:wrap;gap:3px;flex:1;min-width:0}
.vcal__chip{display:inline-flex;align-items:center;gap:3px;padding:2px 7px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.06);border-radius:6px;font-size:.6rem;font-weight:600;color:rgba(255,255,255,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;transition:all .2s}
.vcal__chip:hover{background:rgba(255,255,255,.12);border-color:rgba(var(--accent-rgb),.3)}
.vcal__row--now .vcal__chip{color:rgba(255,255,255,.9);background:rgba(255,255,255,.1)}
.vcal__icon{font-size:.7rem;line-height:1;flex-shrink:0}

.vcal__link{display:block;text-align:center;margin-top:8px;font-size:.7rem;font-weight:600;color:var(--accent);transition:opacity .2s}
.vcal__link:hover{opacity:.7}

@keyframes heroFadeIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}


/* ══════ RESPONSIVE ══════ */

@media(max-width:1280px){
  .hero-v3__inner{grid-template-columns:1fr 1fr;gap:28px}
  .hero-v3__title{font-size:clamp(1.6rem,3.5vw,2.6rem)}
}

@media(max-width:1024px){
  .hero-v3{min-height:auto;background:var(--primary-dark) !important}
  .hero-v3__inner{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;grid-template-areas:none!important;gap:24px!important;padding:calc(var(--header-height) + 28px) 18px 40px!important;align-items:stretch!important}
  .hero-v3__text{min-width:0;max-width:100%;width:100%}
  .hero-slider-events{min-width:0;max-width:100%;width:100%}
  .hero-v3__actions,.hero__actions{min-width:0;max-width:100%;width:100%;margin:0!important}
  .hero-v3__title{font-size:clamp(2.4rem,10vw,3.6rem)!important;line-height:1.05;margin-bottom:16px}
  .hero-v3__desc{font-size:1rem!important;max-width:100%!important}
  .hero__tag{margin-bottom:16px!important}
  /* Simple card: image on top, content below */
  .hero-slider-events__track{aspect-ratio:auto!important;height:auto!important;overflow:visible!important;position:relative!important}
  .hero-slide-event{position:relative!important;inset:auto!important;display:none!important;opacity:1!important;transform:none!important}
  .hero-slide-event.active{display:block!important}
  .hero-slide-event__img{position:relative!important;inset:auto!important;aspect-ratio:16/9!important;width:100%!important;height:auto!important;border-radius:16px!important;overflow:hidden!important;display:block!important;background:rgba(255,255,255,.04)}
  .hero-slide-event__img::after{display:none !important}
  .hero-slide-event__img img{position:relative!important;width:100%!important;height:100%!important;object-fit:cover!important;transform:none!important}
  .hero-slide-event__content{position:relative!important;inset:auto!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:14px 16px!important;z-index:auto;margin-top:12px;color:#fff}
  .next-event__date{display:flex!important;align-items:baseline;gap:10px;margin:0 0 8px 0!important}
  .next-event__day{font-size:2.2rem!important;color:var(--accent)!important;font-weight:800;line-height:1}
  .next-event__month{font-size:.78rem!important;color:#fff!important;text-transform:uppercase;letter-spacing:.1em;font-weight:700}
  .next-event__title{font-size:1rem!important;color:#fff!important;margin-bottom:6px!important;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .next-event__excerpt{display:none !important}
  .hero-slide-event__content .btn{padding:8px 14px!important;font-size:.78rem!important}
}

@media(max-width:480px){
  .hero-v3__title{font-size:clamp(1.8rem,8vw,2.4rem)}
  .hero-v3__desc{font-size:.9rem}
  .hero__actions{flex-direction:column;width:100%;gap:10px}
  .hero__actions .btn{width:100%;justify-content:center}
}


/* ══════════════════════════════════════════
   EVENTS SPLIT — Timeline left + Cards right
   ══════════════════════════════════════════ */

.events-split {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Events Timeline (left column) --- */
.events-timeline {
    position: relative;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 28px 20px 20px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.events-timeline__year {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 8rem;
    color: rgba(0,0,0,0.03);
    letter-spacing: -4px;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

.events-timeline__track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.events-timeline__line {
    position: absolute;
    left: 42px; top: 6px; bottom: 6px;
    width: 2px;
    background: var(--gray-200);
    z-index: 0;
}

/* Each row */
.etl-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    position: relative;
    z-index: 1;
}

.etl-month {
    width: 32px;
    text-align: right;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    flex-shrink: 0;
}
.etl-row--now .etl-month { color: var(--accent); font-weight: 800; }
.etl-row--past .etl-month { color: var(--gray-300); }
.etl-row--past { opacity: 0.5; }

/* Dots */
.etl-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 2px solid var(--gray-200);
    flex-shrink: 0;
    transition: all 0.3s;
}
.etl-dot--active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.25);
}
.etl-dot--now {
    width: 14px; height: 14px;
    background: #fff;
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15), 0 0 12px rgba(var(--accent-rgb), 0.3);
    animation: pulseDot 2s infinite;
}

/* Event chips */
.etl-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.etl-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s;
}
.etl-chip:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.1);
}
.etl-chip a { color: inherit; }
.etl-chip a:hover { color: var(--accent); }
.etl-icon { font-size: 0.8rem; flex-shrink: 0; }

.etl-row--now .etl-chip {
    background: rgba(var(--accent-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.2);
    color: var(--primary-dark);
    font-weight: 700;
}

.events-timeline__link {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    transition: opacity 0.2s;
}
.events-timeline__link:hover { opacity: 0.7; }

/* --- Events Cards (right column) --- */
.events-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Прикольная обводка карточек в секции событий */
.events-cards .card {
    border: 1px solid var(--gray-200);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: all 0.35s ease;
}
.events-cards .card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 19px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
    pointer-events: none;
}
.events-cards .card:hover::before {
    opacity: 1;
}
.events-cards .card:hover {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.12);
}

/* ══════ Responsive for events-split ══════ */
@media (max-width: 1024px) {
    .events-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .events-timeline {
        position: static;
    }
    .events-timeline__track {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 12px;
    }
    .events-timeline__line { display: none; }
    .etl-row { width: calc(25% - 9px); }
    .events-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-timeline__track { flex-direction: column; }
    .events-timeline__line { display: block; }
    .etl-row { width: 100%; }
    .events-cards { grid-template-columns: 1fr; }
}
/* ═══ STACKED HERO TITLE — multi-level ═══ */
.hero-v3__title--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .04em;
  line-height: .9 !important;
  font-weight: 900;
  letter-spacing: -.04em;
}
.hero-v3__title--stacked .hv3t__line {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.hero-v3__title--stacked .hv3t__line--1 {
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  color: #fff;
  margin-left: 0;
}
.hero-v3__title--stacked .hv3t__line--2 {
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  color: var(--accent);
  margin-left: .15em;
  letter-spacing: -.05em;
}
.hero-v3__title--stacked .hv3t__line--3 {
  font-size: clamp(1.3rem, 1.9vw, 1.9rem);
  font-weight: 600;
  color: rgba(255,255,255,.55);
  margin-left: .2em;
  font-style: italic;
}
.hero-v3__title--stacked .hv3t__line--4 {
  font-size: clamp(2rem, 3vw, 3rem);
  color: #fff;
  margin-left: .5em;
}
@media (max-width: 1024px) {
  .hero-v3__title--stacked { gap: .08em; }
  .hero-v3__title--stacked .hv3t__line--2 { margin-left: .2em; }
  .hero-v3__title--stacked .hv3t__line--3 { margin-left: 0; }
  .hero-v3__title--stacked .hv3t__line--4 { margin-left: .6em; }
}
@media (max-width: 480px) {
  .hero-v3__title--stacked .hv3t__line--1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-v3__title--stacked .hv3t__line--2 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .hero-v3__title--stacked .hv3t__line--3 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .hero-v3__title--stacked .hv3t__line--4 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
}
