/* Shared styles for the newer pages (events, bundles, corporate, certificates,
   verify, team). Matches the design language of the original hand-built pages.
   Tokens and base element styles live in base.css. */
@import url('/assets/base.css');


/* ─── HEADER / NAV ──────────────────────────────────────────────────────── */
/* Floating rounded pill, matching the hand-built pages. */
header {
    position: fixed; top: 20px; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: center; padding: 0 20px; pointer-events: none;
}
.glass-nav {
    pointer-events: auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 12px 30px;
    width: 100%; max-width: 1060px; margin: 0 auto;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.logo { font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-item {
    padding: 8px 13px; border-radius: 20px; font-size: 0.9rem;
    font-weight: 600; color: var(--text-muted); white-space: nowrap;
}
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,0.06); }
.nav-btn-contact {
    background: var(--primary-gradient); color: #fff !important;
    padding: 10px 18px; border-radius: 50px; font-weight: 700;
}
.nav-btn-contact:hover { background: var(--primary-dark); }
.nav-btn-logout {
    background: rgba(239, 68, 68, 0.15); color: #f87171 !important;
    padding: 10px 18px; border-radius: 50px; font-weight: 700;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.nav-btn-logout:hover { background: rgba(239, 68, 68, 0.25); color: #fca5a5 !important; }

.dropdown { position: relative; }
.dropbtn { cursor: pointer; }
.dropdown-content {
    /* visibility, not display: display:none cannot be transitioned, so the menu
       vanished the instant the pointer left the button. */
    visibility: hidden; opacity: 0;
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: #1e293b; border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 8px; margin-top: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    /* Closing waits 220ms, so crossing the gap or moving diagonally towards a
       link no longer dismisses the menu. Opening is immediate. */
    transition: visibility 0s linear 0.22s, opacity 0.15s ease 0.07s;
}
/* The 6px margin-top above is a dead zone where the pointer is over neither
   the button nor the menu — that is what made the dropdown unusable. This
   bridges it with an invisible strip so the hover never breaks. */
.dropdown-content::before {
    content: ''; position: absolute;
    top: -10px; left: 0; right: 0; height: 10px;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    visibility: visible; opacity: 1;
    transition: visibility 0s, opacity 0.15s ease;
}
.dropdown-content a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 10px; font-size: 0.9rem; color: var(--text-muted);
}
.dropdown-content a:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ─── MOBILE NAV ────────────────────────────────────────────────────────── */
/* Matches the design the hand-built pages used: a 44px tappable button and a
   floating rounded panel, rather than a flat bar stuck under the header. */
.hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    justify-content: center; align-items: center;
    width: 44px; height: 44px; padding: 0; border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border); transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.1); }
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px; transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Positioned against .glass-nav, which is position:relative under 900px. */
.mobile-menu {
    display: none; position: absolute;
    top: calc(100% + 12px); left: 0; right: 0;
    background: rgba(10, 18, 38, 0.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 24px;
    padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    flex-direction: column; gap: 4px; z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: #cbd5e1; font-size: 1rem; font-weight: 600;
    padding: 14px 18px; min-height: 48px;
    display: flex; align-items: center;
    border-radius: 14px; transition: all 0.2s;
}
.mobile-menu a:hover { background: rgba(59,130,246,0.12); color: #fff; }
.mobile-divider { height: 1px; background: var(--glass-border); margin: 6px 0; }
.mobile-section-title {
    color: var(--text-muted); font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; padding: 8px 18px 4px;
}
.mobile-cta {
    background: var(--primary-gradient); color: #fff !important;
    justify-content: center; margin-top: 6px; font-weight: 700; border-radius: 14px;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    /* relative, so the absolutely-positioned .mobile-menu hangs off the pill. */
    .glass-nav { position: relative; border-radius: 20px; }
}

/* Nothing should be able to stretch the page sideways on a phone. */
html, body { max-width: 100%; overflow-x: hidden; }

/* ─── PAGE HEAD ─────────────────────────────────────────────────────────── */
.page-hero { padding: 150px 0 40px; text-align: center; }
.page-hero .eyebrow {
    display: inline-block; padding: 6px 16px; border-radius: 100px;
    background: rgba(59,130,246,0.12); color: #60a5fa;
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 16px;
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1;
    letter-spacing: -1.5px; margin-bottom: 16px; color: #fff;
}
.page-hero p { color: var(--text-muted); font-size: 1.08rem; max-width: 620px; margin: 0 auto; }

.section { padding: 30px 0 70px; }
.section-title { font-size: 1.6rem; margin-bottom: 8px; color: #fff; letter-spacing: -0.5px; }
.section-sub { color: var(--text-muted); margin-bottom: 26px; }

/* ─── CARDS ─────────────────────────────────────────────────────────────── */
.card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 26px;
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ─── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 13px 26px; border-radius: 50px;
    font-weight: 700; font-size: 0.98rem; font-family: inherit;
    border: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--primary-gradient); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-green { background: var(--accent-green); color: #04231a; }
.btn-green:hover { filter: brightness(1.1); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 0.86rem; }

/* ─── FORMS ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--text-muted); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; min-height: 48px;
    background: rgba(15, 23, 42, 0.8); border: 1px solid var(--glass-border);
    border-radius: 12px; color: #fff; font-size: 1rem; font-family: inherit;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}
.field .hint { font-size: 0.78rem; color: #64748b; margin-top: 5px; }

.alert { border-radius: 12px; padding: 13px 16px; font-size: 0.92rem; margin-bottom: 16px; }
.alert-ok  { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-err { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-info{ background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }

/* ─── TAGS / CHIPS ──────────────────────────────────────────────────────── */
.tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.75rem; font-weight: 700; padding: 4px 11px;
    border-radius: 100px; letter-spacing: 0.3px;
}
.tag-blue   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.tag-green  { background: rgba(16,185,129,0.15); color: #34d399; }
.tag-yellow { background: rgba(251,191,36,0.15); color: #fbbf24; }
.tag-red    { background: rgba(239,68,68,0.15); color: #f87171; }
.tag-purple { background: rgba(167,139,250,0.15); color: #a78bfa; }
.tag-muted  { background: rgba(148,163,184,0.12); color: #94a3b8; }

/* ─── EMPTY / LOADING ───────────────────────────────────────────────────── */
.empty {
    text-align: center; padding: 56px 24px; color: var(--text-muted);
    background: var(--glass-bg); border: 1px dashed var(--glass-border); border-radius: 20px;
}
.empty .icon { font-size: 2.6rem; display: block; margin-bottom: 12px; }
.empty h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }

.spinner {
    width: 34px; height: 34px; margin: 40px auto;
    border: 3px solid var(--glass-border); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.hidden { display: none !important; }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--glass-border); padding: 46px 0 30px; margin-top: 40px; }
/* 5 columns on desktop (the footer has 5), collapsing down by breakpoint.
   auto-fit with minmax(200px) capped it at 4 and wrapped Контакти alone. */
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-col .footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; display: block; }
.footer-col h2, .footer-col h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }

/* Social icons — 44px, the minimum comfortable touch target.
   .socials is the older class name some pages used; both are supported. */
.socials, .social-links-footer {
    display: flex; justify-content: flex-start; gap: 12px; margin-top: 10px;
}
/* The .footer-col selector is repeated so these win over `.footer-col a`. */
.footer-col ul li .socials a, .footer-col ul li .social-links-footer a,
.socials a, .social-links-footer a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    color: var(--text-muted); flex: 0 0 auto;
}
.socials a svg, .social-links-footer a svg { display: block; }
.socials a:hover, .social-links-footer a:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.footer-bottom {
    margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--glass-border);
    text-align: center; color: #64748b; font-size: 0.85rem;
}

/* ─── NUMBERED STEPS ────────────────────────────────────────────────────── */
/* Shared by /bundles and /corporate. Lived inline on bundles.html only,
   which left the same markup unstyled when corporate reused it. */
.howto { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.howto-step { text-align: center; padding: 20px; }
.howto-step .n {
    width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 12px;
    background: var(--primary-gradient); color: #fff; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.howto-step h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.howto-step p { color: var(--text-muted); font-size: 0.88rem; }
